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
πŸ“£ Looking for the bravest of the brave We have just released a new RC of cashu-ts v2.2. This is an experimental canary release, including the output of our revamped build pipeline and the new OutputData / Factory patterns. While the API is non-breaking, these changes are considered experimental and require some field testing. Therefore, we would highly appreciate any brave testers who would go ahead and take the RC for a test ride. What would be most interesting is whether the new build output can be plugged into existing projects without breaking anything. This version includes: New build pipeline (dropped ES5, targeting ES2020) Custom Output Data Output Factories Binary Token En/Decoding Modern P2PK (locktime, refund keys) DX: Migrated to modern TypeScript Changed bundler to vite Changed Testing to vitest Added browser testing using Playwright Thanks to the new build pipeline we will also be offering a standalone build, available for projects that prefer loading cashu-ts from a script tag, rather than using a bundler. This will be released in a couple of hours https://www.npmjs.com/package/@cashu/cashu-ts/v/2.2.0-rc3
Egge's avatar
Egge 1 year ago
The β€žUpdating nutzap-redemption historyβ€œ part of NIP-61 seems to suggestiv that NutZaps can only be claimed into a nutsack wallet. As a kind:7376 event expects to point to a new token event ID. Is that right? Cc @PABLOF7z
Egge's avatar
Egge 1 year ago
Pull Request Looking For Reviewers! ⚠️ The big CustomOutput PR, that has been cooking for 3 weeks, is now finally ready (and looking) for review βš οΈβ€¨I would really appreciate everyones help on this one
Egge's avatar
Egge 1 year ago
Web Components are a rabbit hole… thanks @Leito πŸ™„
Egge's avatar
Egge 1 year ago
Another day, another nutjar update! nutjar-button v0.3 is a web component that lets you add Lightning Donation to your web page with close to 0 coding and configuration. All you need is a nostr key! πŸ₯œ NIP-61 aka. Nutzaps using Cashu πŸ’» Reusable Web Component 🎨 Theming and Customization
Egge's avatar
Egge 1 year ago
Okay, I tested the WC API and I love it. nutjar-ui is going to be called "nutjar-button" and it is going to be a Web Component! πŸ₯œ πŸ”₯ image
Egge's avatar
Egge 1 year ago
⚑πŸ₯œ nutjar-ui let's you add Lightning Donations to any website with close to no setup at all. It uses Cashu and NIP-61 under the hood to handle payments and send them to your nostr key. The component is hosted on a CDN and can be included using a single tag:
Egge's avatar
Egge 1 year ago
Nutzaps are going to be everywhere... Obviously on nostr apps, but also on the web πŸ₯œ πŸ”₯ Nutjar.js-button (working title) allows you to add Lightning donations to your website, without any coding, no wallet signup, heck you do not even need to know cashu. All you need is a nostr key.
Egge's avatar
Egge 1 year ago
New docs, whoβ€˜s dis? image
Egge's avatar
Egge 1 year ago
I was finally able to finish the first end-to-end test using the new output logic inside cashu-ts!! In this pretty extensive test you can see the new factory approach. You will be able to provide a default factory function that is now applied to all the outputs that will be kept. image
Egge's avatar
Egge 1 year ago
They do it right πŸ•ŠοΈ image
Egge's avatar
Egge 1 year ago
πŸ₯œπŸ’œ πŸ’΅πŸ’© image
Egge's avatar
Egge 1 year ago
I never thought I’d enjoy being a library dev, but here I am πŸ₯œ
Egge's avatar
Egge 1 year ago
I hate these algorithms so much… a random image of a stone that looks like a human toe got put into my reddit feed and yes, I read through that post. What I did not know, was that I unknowingly opted in for 5 days of super annoying recommendations of content from r/Rocks all over my feed.
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
↑