mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-13 23:39:08 -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) {
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user