Egge's avatar
Egge
egge@npub.cash
npub1mhcr...c226
Building https://npub.cash 🥜 Working on awesome nostr, cashu and Lightning stuff 💜⚡️
Egge's avatar
Egge 1 year ago
Cooking some pretty interesting stuff for cashu-ts right now! 🔥 A soon to be released version will not only enable users to get full control over the outputs generated by a method, it also introduces the concept of "Output Factories" 🏭 🥜 An output factory describes how the library should generate outputs. The best part is, that users can now control the kind of output they want to receive, but still let the library handle splitting, amounts and fees. With a factory you will be able to instantiate a CashuWallet class that will make sure all change outputs that might be created by calling "send" or "mintProofs", will automatically be created using the factory you specified (e.g. locked to you pubkey). image
Egge's avatar
Egge 1 year ago
GM nostr 💜🥩 image
Egge's avatar
Egge 1 year ago
100.000 means that pizza day is the day someone bought 2 pizzas for a billion dollars. Damn
Egge's avatar
Egge 1 year ago
Turns out the new stable release of NextJS depends on a React version that is a release candidate. I really do love TypeScript, but this whole ecosystem is simply f'ed up...
Egge's avatar
Egge 1 year ago
Just released a tiny cashu-ts update (v2.1) 🔥 🥜 Added a MintInfo class that makes it easier to check wether a mint supports a certain optional NUT: image
Egge's avatar
Egge 1 year ago
This is turning out to be the biggest change I have made to cashu-ts so far... But the possibilities are endless! In this example we receive a token and swap it into proofs locked to two pubkeys, as well as some standard secret locked proofs. All in one operation. image
Egge's avatar
Egge 1 year ago
Implementing fully customisable blinded messages in cashu-ts nearly drove me insane. Maybe it had something to do with the fact that my phone had deleted my local music and I listened to the same 4 songs on the plane, over and over again for 4 hours… idk… but at the end I decided that the blinding / unblinding logic inside cashu-ts needs a massive refactor before we can continue the custom messages. So LFGN 🥜 image
Egge's avatar
Egge 1 year ago
Egge's avatar
Egge 1 year ago
cashu-ts v2.0 released! I am thrilled to announce that v2.0 of your favourite cashu lib for the web has just been released! Next to adding a bunch of awesome new features, this release streamlines a lot of the libraries API and improves DX. Here's a quick overview: What's New: - Enhanced token handling with V4 Tokens as the default. - Payment requests and WebSocket updates with NUT-17 and NUT-18 support. - Send, receive and verify DELQs with NUT-12 support. - Streamlined the API, as well as most of the typing. - Added functionalities like fees and coin selection and the new checkProofsStates() method. If you want to get started using cashu-ts: npm i @cashu/cashu-ts If you are upgrading from an older version make sure to check out the migration doc:
Egge's avatar
Egge 1 year ago
Well... I tried to not do this for a long time, but I just can not help myself 🥲 image
Egge's avatar
Egge 1 year ago
Wow… that’s super cool! I contributed much to the spec for these and did not even think about this usecase. Onwards! 🔥🥜 View quoted note →
Egge's avatar
Egge 1 year ago
I identify as a Cashu now image
Egge's avatar
Egge 1 year ago
Would it not be amazing if there was an easy way to support the people that build the libraries that we use everyday? And what about the dependencies of those libraries? Introducing: npmnut - a simple "protocol" and cli-tool to advertise donation addresses and send donations to package developers! The CLI tool parses your npm modules and looks for "npmnut" keys in their package.json files. These are supposed to be nprofiles of the developers. It then mints some Nuts from a preferred mint and sends them via DM to the developers of the package. Because sending tokens is quite lean, this works for direct dependencies and transitive dependencies and is quite fast. I got inspired to build this by @hzrd149! I hacked this together over the last few hours, so there is still a lot of work to be done. I'll publish the code in a repo later today.
Egge's avatar
Egge 1 year ago
Can someone hook me up with one of these Bitcoinize Printer POS devices? I’d love to build some Cashu Stuff with it, but they seem to be out-of-stock :/
Egge's avatar
Egge 1 year ago
What programming language to learn next?