DONE ✅ 2-3 hours ain't bad - appears to work but I'm too tired to verify or review GN

Maybe the commands below works? No real Code Review yet, or polish, or finish coverage, docs, review cli args, polish, ♻️ etc. but it is a starting point!

git clone https://github.com/niallyoung/goNDK.git

cd goNDK && git checkout gift-wrap-part-1 && cd examples/client-giftwrap

make build

bash scripts/test-encrypt-decrypt.sh

https://github.com/niallyoung/goNDK/pull/12 🙏

=== Sending Gift Wrap to jb55 ===

Recipient: npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s (jb55)

Message: successful vibed gift-wrap for you bro, see more at https://github.com/niallyoung/goNDK

Relay: wss://relay.damus.io

1. Generating sender identity...

Sender: npub1hpe6yarmdqzcfskjac37ttnswz28wx2uh4txww7dskraa7974k7q0kt06y

2. Sending encrypted message...

🔑 Loading key from /tmp/giftwrap-send-56632/sender.key...

✓ Using identity: npub1hpe6yarmdqzcfskjac37ttnswz28wx2uh4txww7dskraa7974k7q0kt06y

🔌 Connecting to wss://relay.damus.io...

✓ Connected

📤 Publishing...

✅ Message sent to relay!

The encrypted gift wrap has been published to wss://relay.damus.io

Only jb55 can decrypt this message using their private key.

Reply to this note

Please Login to reply.

Discussion

perfect timing, am about to test giftwrap support in nostrdb. trying this now

getting an error on decrypt: unknown version 141

fixed - sorry entire sub-dir got caught up in .gitignore

Try:

git clone https://github.com/niallyoung/goNDK.git

cd goNDK

git checkout origin/gift-wrap-part-1

cd examples/identity-generator

make build

cd ../client-giftwrap

make build

bash scripts/test-encrypt-decrypt.sh

any luck receiving / decrypting?