mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-09 08:38:50 +00:00
Fix typo
This commit is contained in:
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) {
|
export function decrypt(privkey: string, pubkey: string, payload: string) {
|
||||||
|
let data
|
||||||
try {
|
try {
|
||||||
payload = JSON.parse(payload) as {
|
data = JSON.parse(payload) as {
|
||||||
ciphertext: string
|
ciphertext: string
|
||||||
nonce: string
|
nonce: string
|
||||||
v: number
|
v: number
|
||||||
|
|||||||
Reference in New Issue
Block a user