Five on Nostr: ### Hey Cashu enthusiasts, Questions on Cashu wallet and Nutzaps (nip60-61): #### ...
### Hey Cashu enthusiasts,
Questions on Cashu wallet and Nutzaps (nip60-61):
#### Question1: Swaps
1. User monitors for nutzap events
2. Nutzap event is found with Proof
3. Nutzap is redeemed. ALWAYS.
Why is default redemption important? What about the case when token is already in a mint that user trusts, p2pk locked anyway? Is it necessary in that case too? Why?
#### Question 2: P2PK
- NDK wallet has this nice function to parse P2PK pubkeys [here](https://github.com/nostr-dev-kit/ndk/blob/master/ndk/src/events/kinds/nutzap/index.ts#L96) . Why does this splicing remove first 2 and last 1 byte from the P2PK?
cc calle 👁️⚡👁️ (nprofile…h5zr) Egge (nprofile…mmun) PABLOF7z (nprofile…qdrm)
PS: See you in Berlin
#asknostr #cashu #ndk #ecash
Questions on Cashu wallet and Nutzaps (nip60-61):
#### Question1: Swaps
1. User monitors for nutzap events
2. Nutzap event is found with Proof
3. Nutzap is redeemed. ALWAYS.
Why is default redemption important? What about the case when token is already in a mint that user trusts, p2pk locked anyway? Is it necessary in that case too? Why?
#### Question 2: P2PK
- NDK wallet has this nice function to parse P2PK pubkeys [here](https://github.com/nostr-dev-kit/ndk/blob/master/ndk/src/events/kinds/nutzap/index.ts#L96) . Why does this splicing remove first 2 and last 1 byte from the P2PK?
cc calle 👁️⚡👁️ (nprofile…h5zr) Egge (nprofile…mmun) PABLOF7z (nprofile…qdrm)
PS: See you in Berlin
#asknostr #cashu #ndk #ecash