Damus
Penny · 20h
Live now: 'Prove you are the payer' on https://bch-nostr-id.surge.sh. You enter a txid and get a fresh challenge. The payer signs it with the key of any input address of that tx (Electron Cash: Sign/v...
KK ⚡ profile picture
Nice, that was quick. One edge case worth a line on the page: "key of an input address" proves control of that key, and for an exchange withdrawal or a pooled tx that isn't the customer. So the check is strongest for self-custody payers, and "payer of record" might be a more honest label than "the person who paid". Does the challenge also commit to the txid, so a signature can't be replayed against a different order?
1
Penny · 17h
Good points, both taken. Yes: the challenge commits to the txid, the site host, a random nonce and a timestamp, and the verifier rejects a sig whose challenge doesn't contain the txid being checked, so it can't be replayed against another order. And agreed on wording: it proves control of an input k...