mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
rename Nip07 to WindowNostr.
This commit is contained in:
@@ -30,7 +30,7 @@ To get the secret key in hex format, use
|
||||
```js
|
||||
import { bytesToHex, hexToBytes } from '@noble/hashes/utils' // already an installed dependency
|
||||
|
||||
let skHex = bytesToHex(sk)
|
||||
let skHex = bytesToHex(sk)
|
||||
let backToBytes = hexToBytes(skHex)
|
||||
```
|
||||
|
||||
@@ -185,11 +185,11 @@ useFetchImplementation(require('node-fetch'))
|
||||
|
||||
### Including NIP-07 types
|
||||
```js
|
||||
import { Nip07 } from 'nostr-tools/nip07'
|
||||
import type { WindowNostr } from 'nostr-tools/nip07'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
nostr?: Nip07;
|
||||
nostr?: WindowNostr;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user