mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
nip46: remove deprecated getRelays()
This commit is contained in:
8
nip46.ts
8
nip46.ts
@@ -5,7 +5,6 @@ import { getConversationKey, decrypt, encrypt } from './nip44.ts'
|
|||||||
import { NIP05_REGEX } from './nip05.ts'
|
import { NIP05_REGEX } from './nip05.ts'
|
||||||
import { SimplePool } from './pool.ts'
|
import { SimplePool } from './pool.ts'
|
||||||
import { Handlerinformation, NostrConnect } from './kinds.ts'
|
import { Handlerinformation, NostrConnect } from './kinds.ts'
|
||||||
import type { RelayRecord } from './relay.ts'
|
|
||||||
import { Signer } from './signer.ts'
|
import { Signer } from './signer.ts'
|
||||||
|
|
||||||
var _fetch: any
|
var _fetch: any
|
||||||
@@ -238,13 +237,6 @@ export class BunkerSigner implements Signer {
|
|||||||
return this.cachedPubKey
|
return this.cachedPubKey
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated removed from NIP
|
|
||||||
*/
|
|
||||||
async getRelays(): Promise<RelayRecord> {
|
|
||||||
return JSON.parse(await this.sendRequest('get_relays', []))
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Signs an event using the remote private key.
|
* Signs an event using the remote private key.
|
||||||
* @param event - The event to sign.
|
* @param event - The event to sign.
|
||||||
|
|||||||
Reference in New Issue
Block a user