Yeah, I got that working a few months ago, but was told it was a bad idea.

What changed?

Reply to this note

Please Login to reply.

Discussion

You got what working? I don't believe that.

Yeah. ‘Working’ might be a generous description, but I implemented several working methods - like keyforamount, swapforamount, mint/bolt11foramount. I stopped when I was told it was a bad idea, but it greatly simplified the proof management and payment.

I hacked it all in nutshell Cashu mint.

Proof of work is in this branch below. Bottom line, I was successful in deriving the public/private key for any arbitrary amount and issuing the promises.

https://github.com/trbouma/cashu/tree/amount_key

Yeah but that's the easy mode with broken privacy.

I was just proving the math worked. Didn’t get as far as working on privacy implications. Could easily be addressed by a wallet by breaking an amount into the sum of two random components, etc. Anyway, very keen to see this idea is still alive.