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

@@ -183,6 +183,17 @@ import { useFetchImplementation } from 'nostr-tools/nip05'
useFetchImplementation(require('node-fetch'))
```
### Including NIP-07 types
```js
import { Nip07 } from 'nostr-tools/nip07'
declare global {
interface Window {
nostr?: Nip07;
}
}
```
### Encoding and decoding NIP-19 codes
```js