New docs, whoβ€˜s dis? image
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
πŸ₯œπŸ’œ πŸ’΅πŸ’© image
I never thought I’d enjoy being a library dev, but here I am πŸ₯œ
πŸ‘€ Contributions welcome πŸ’œπŸ₯œ
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.
Dear Nut-Connoisseurs πŸ₯œ Please join the Cashu Matrix Server 🫑 Also make sure to drop by the Cashu-ts room:
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