mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-03-25 17:21:52 +01:00
Added optional signSchnorr() method
This commit is contained in:
parent
0619f370bc
commit
39bf3cdbea
1
07.md
1
07.md
@ -21,6 +21,7 @@ async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertex
|
||||
async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-04 (deprecated)
|
||||
async window.nostr.nip44.encrypt(pubkey, plaintext): string // returns ciphertext as specified in nip-44
|
||||
async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes ciphertext as specified in nip-44
|
||||
async window.nostr.signSchnorr(message: string): string // Returns `sig` for the SHA256 hash of `message`
|
||||
```
|
||||
|
||||
### Recommendation to Extension Authors
|
||||
|
1
46.md
1
46.md
@ -105,6 +105,7 @@ Each of the following are methods that the _client_ sends to the _remote-signer_
|
||||
| `nip04_decrypt` | `[<third_party_pubkey>, <nip04_ciphertext_to_decrypt>]` | `<plaintext>` |
|
||||
| `nip44_encrypt` | `[<third_party_pubkey>, <plaintext_to_encrypt>]` | `<nip44_ciphertext>` |
|
||||
| `nip44_decrypt` | `[<third_party_pubkey>, <nip44_ciphertext_to_decrypt>]` | `<plaintext>` |
|
||||
| `sign_schnorr` | `[<message_string_to_sign>]` | `<sig_for_sha256_hash_of_message>` |
|
||||
|
||||
### Requested permissions
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user