mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
Fix typo
This commit is contained in:
parent
30696049cc
commit
94330ffb10
3
44.md
3
44.md
|
@ -74,8 +74,9 @@ export function encrypt(privkey: string, pubkey: string, text: string, v = 1) {
|
|||
}
|
||||
|
||||
export function decrypt(privkey: string, pubkey: string, payload: string) {
|
||||
let data
|
||||
try {
|
||||
payload = JSON.parse(payload) as {
|
||||
data = JSON.parse(payload) as {
|
||||
ciphertext: string
|
||||
nonce: string
|
||||
v: number
|
||||
|
|
Loading…
Reference in New Issue
Block a user