What is Nostr?
fishcake / The Fishcake šŸ¶šŸ¾šŸŸšŸŽ‚šŸ‡ÆšŸ‡µ
npub137cā€¦k37w
2024-10-17 06:36:15
in reply to nevent1qā€¦s3xg

fishcake on Nostr: One fix for types: function nip44Encrypt(rumor: Rumor | VerifiedEvent, privateKey: ...

One fix for types:

function nip44Encrypt(rumor: Rumor | VerifiedEvent, privateKey: Uint8Array, publicKey: string): string {
const key = nip44.v2.utils.getConversationKey(privateKey, publicKey)
return nip44.v2.encrypt(JSON.stringify(rumor), key)
}


It does not have any impact, just cosmetics
Author Public Key
npub137c5pd8gmhhe0njtsgwjgunc5xjr2vmzvglkgqs5sjeh972gqqxqjak37w