oh nice, is code up somewhere?
Discussion
Not yet, applying it in a larger piece but I can extract it, will have a stab for the next โhourโ ๐ have draft NIPs too got some more ideas coming just got to get a basic client use-case ready first then extract and open up a lot of the foundations
Finally making progress AI assist, just never enough hours when working full time as well
๐คช ok maybe more than 1 hour lol
"Timeline
4 weeks for core extraction across 4 phases, with clear success criteria and risk mitigation."
initial client merged to https://github.com/niallyoung/goNDK v0.0.9 is up
I'll start extracting gift-wrap support and smash out an overdue update to event/ - branch will be up shortly, but give me 24h and I'll have a well-engineerd cli
(may not be 100% compliant on launch, but maybe out-of-the-box if we can find some samples / known-good test data, then PORT!)

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.
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?