Avatar
jb55
32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245
I made damus, npubs, and zaps ⚡️ Independent bitcoin core and lightning dev.

I am marking a note flag that says it has already been unwrapped. the giftwraps themselves are stored as well like any other note, so its not processed twice.

we probably don't need to store the wraps. maybe eventually I won't and just add a noteid metadata entry that says they have already been processed

should probably think of some good UX for this. maybe the user can switch to "private mode" and all iteractions are giftwrapped by default

nostr:note1v2hszt5qh0pfvndd2thmfd38m28ttn3lxs772jge5sm7mgw5wdcqe5emh4

unwrapping is done in the multi-threaded ingester, so it won't have any performance impact

private likes, private thread replies, anything

i want to create test vectors but making them by hand is annoying.

working on adding this to nostril now:

nostril --giftwrap-to pubkey --content hi --kind 1

seriously how is this not a thing!? nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 is noone doing giftwrap stuff?

nostr:note1sp4xegfn2fhqd3rq8w25my47q4qydwcc8rudhazkxfq83v9y7yhsssxp9l

finalizing giftwrap support in nostrdb, but got interrupted by this chonky guy. zimbabwe is wild.

https://jb55.com/s/chonky-boy-visit.mp4

Replying to Avatar Niall Young

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

👀

nostr:note1p9dgxne03hv50xlw60dstm3cnd4kmjwgg5ctzgu97pqyxttvzxfqvshxc8

are there any command-line tools for making giftwraps or should I add this to nostril? 🤔

I have come to the conclusion all these people sincerely believe but are deluding themselves and each other with regurgitated stories that never end up having any evidence

unfortunately ipfs is retarded and doesn’t have the right incentive structure. we would likely need some structure to find peers that would most likely have content you’re interested in.

how to do this effectively is a hard problem and will take lots of thought and care

i am reminded of something nostr:npub1g53mukxnjkcmr94fhryzkqutdz2ukq4ks0gvy5af25rgmwsl4ngq43drvk was saying recently on the notedeck call about using webrtc for sharing files and blobs between users p2p.

making media and filesharing censorship resistant is something I want to invest heavily into notedeck and damus android. blossom is cool, but so is p2p tech like bittorrent v2 and webrtc filesharing.

reposted... oof

you don’t need lots of friends. 0 friends is fine too, you can just solo travel and enjoy your own company.

bro ships

nostr:note12fhpdqr6xz0nuq5l08q5dry8zvk8cnkdx6xxuxlx78pg76mmdeasdjn2lh

we don't recommend running debug build for this reason... i think this change will break scrolling (see the comment you removed)

there is a concern of storing unencrypted data at rest, i am not sure how i feel about that, but at least they can’t be broadcasted since they are rumors without a signature.

it was redeemed already

my only concern are people coding to an ecash interface instead of a lightning interface. that would be pretty bad for self sovereignty.

not sure why my grift is. losing money on giving away free software? I'm the worst grifter of all time.