Nostly Cashu Redeem now supports the nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcppemhxue69uhkummn9ekx7mp0qqsyv47lazt9h6ycp2fsw270khje5egjgsrdkrupjg27u796g7f5k0s0pfy4z Extension for signing P2PK locked tokens. So you can use it instead of entering your nsec.

https://www.nostrly.com/cashu-redeem/

It's the ONLY Nostr extension I'm aware of that currently supports Schnorr signing.

Hopefully more will in time.... FREE THE SCHNORR!

https://github.com/nostr-protocol/nips/pull/1842

#nostr #cashu #bitcoin #schnorr #p2pk #nut11

Reply to this note

Please Login to reply.

Discussion

Question nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcppemhxue69uhkummn9ekx7mp0qqsyv47lazt9h6ycp2fsw270khje5egjgsrdkrupjg27u796g7f5k0s0pfy4z - why does your signer take the sha256 hash as the input (sigHash), rather than the raw string to sign?

It would be better for people to SEE what they are signing for, instead of just a random hash string... the method could then hash for signing.

actually I don't remember.

does the raw string normally make sense for a human?

Nostr events are always presented in raw form for signing, and I believe it is probably safer to present the raw string for signing too so user can be sure they are not signing something unintended or malicious that might lose them money (eg a bitcoin transaction)

eg, for a Cashu P2PK token, the raw string would be something like:

[\"P2PK\",{\"nonce\":\"859d4935c4907062a6297cf4e663e2835d90d97ecdd510745d32f6816323a41f\",\"data\":\"0249098aa8b9d2fbec49ff8598feb17b592b986e62319a4fa488a3dc36387157a7\",\"tags\":[[\"sigflag\",\"SIG_INPUTS\"]]}]

If I was drafting the method from scratch for NIP07/46, it would return all the data needed to do checks and verification on what was signed and who by eg:

async function signString(message: string) : {hash, sig, pubkey} // sha256 hash of message, Schnorr sig of hash, pubkey of signer

nostr:npub1xv8mzscll8vvy5rsdw7dcqtd2j268a6yupr6gzqh86f2ulhy9kkqmclk3x As you guys are leading the way on supporting Schnorr signing outside of the structure of Nostr events, I’d appreciate your thoughts on a “standard” method signature that is future proof which all signers could adopt… if we can convince fiatjaf to include as optional in NIP07/46… or adopt informally if not. As above, it might be better renamed to avoid issues with your established method.

The current iteration is mostly aligned with Alby existing except expects a raw message string.

https://github.com/nostr-protocol/nips/pull/1842

Please do - the proposed spec is here:

https://github.com/nostr-protocol/nips/pull/1842

i hope he implement it soon. its the best signer available at the moment.

I’m glad you like it. I don’t get much direct feedback, so thanks.

your welcome. 🫡

you did a great job on aka signer. updating ui and active development can make it much more better.

also, i created some github issues and suggested some improvements.

the new method by nostr:nprofile1qqsvas85f5xkf4ke67susnpnpa2x0e6jej9svhmjp6r55zldr32pd5spzemhxue69uhk2er9dchxummnw3ezumrpdejz7qgwwaehxw309ahx7uewd3hkctcpremhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet59uelz8x4 is also a great improvement. 🔥

you do implement, please let me know and will broadcast around the #cashu community