mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
including interface for nip07 (#403)
* including interface for nip07 * fix types for NIP-07 * including NIP-07 export to jsr * fix readme about nip07 * including in nip7 interface an output signature compatible with the event returned by the signer
This commit is contained in:
committed by
GitHub
parent
9f5984d78d
commit
88454de628
3
nip46.ts
3
nip46.ts
@@ -7,6 +7,7 @@ import { NIP05_REGEX } from './nip05.ts'
|
||||
import { SimplePool } from './pool.ts'
|
||||
import { Handlerinformation, NostrConnect } from './kinds.ts'
|
||||
import { hexToBytes } from '@noble/hashes/utils'
|
||||
import { RelayRecord } from './index.ts'
|
||||
|
||||
var _fetch: any
|
||||
|
||||
@@ -216,7 +217,7 @@ export class BunkerSigner {
|
||||
/**
|
||||
* Calls the "get_relays" method on the bunker.
|
||||
*/
|
||||
async getRelays(): Promise<{ [relay: string]: { read: boolean; write: boolean } }> {
|
||||
async getRelays(): Promise<RelayRecord> {
|
||||
return JSON.parse(await this.sendRequest('get_relays', []))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user