Skip to content

Getting memory 'memory access out of bounds' running nip44Decrypt in handleEvent callback #459

Closed Answered by yukibtc
brandonsbytes asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, tomorrow I'll investigate.


It's available a way to automatically decrypt Gift Wraps, without manually using nip44Decrypt:

let unwrapped = UnwrappedGift.fromGiftWrap(keys, event);
let sender = unwrapped.sender;
let rumor = unwrapped.rumor;

if (event.kind === 1059) {
try {
let content = UnwrappedGift.fromGiftWrap(keys, event);
let sender = content.sender;
let rumor = content.rumor;

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@brandonsbytes
Comment options

Answer selected by brandonsbytes
Comment options

You must be logged in to vote
1 reply
@yukibtc
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants