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:
António Conselheiro
2024-05-26 11:58:12 -03:00
committed by GitHub
parent 9f5984d78d
commit 88454de628
7 changed files with 36 additions and 1 deletions

View File

@@ -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', []))
}