Only 4.000 lines into coco-cashu and complexity is already lingering in the shadows. I can feel it creeping up.
Drop your favourite books on design and architecture belowπ
My personal goal for coco-cashu is to make Cashu wallet dev so easy and accessible that Opus can one shot a Cashu electrum wallet.
I think we can get there
When people say that Javscript coercion sucks, I usually responded that it does not as long as you know the rules.
Well I just debugged a bug for one hour because an untyped API passed a string instead of a number.
And as it turns out "5" + 0 > 8 === true
I stand corrected
Today I build the first example Cashu CLI wallet using coco-cashu.
- mint info & keysets cache with revalidation
- proof storage and state management
- coin selection
- send / receive / mint
49 lines of code.
I agree with this. Thatβs why I get the most out of AI when coding something I know how to do (vaguely). If it goes down the wrong direction I can immediately stop it there and rephrase or build an example to iterate on.
Sometimes you got to πͺΏπ«
Yes this is indeed an issue. With an npub being a static identifier we should make sure it carries as little personal information as possible. The social graph can be a dead giveaway for tracking and personalisation software.
Imagine relays returning your feed but every 10th note is an injected ad that was selected based on your social graph lmao
View quoted note β