GithubHelp home page GithubHelp logo

storopoli / cashu-rs-mint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thesimplekid/cashu-rs-mint

0.0 0.0 0.0 333 KB

Cashu mint

License: BSD 3-Clause "New" or "Revised" License

Shell 20.53% Rust 62.64% Nix 8.32% Just 8.50%

cashu-rs-mint's Introduction

cashu-rs-mint

Disclaimer: The author is NOT a cryptographer and this work has not been reviewed. This means that there is very likely a fatal flaw somewhere. Cashu is still experimental and not production-ready.

WIP

Implemented NUTs:

Development

nix develop

This will launch a nix shell with a regtest bitcoind node as well as two lightning nodes.

In order to use the node first a channel will need to be opened.

  ln1 newaddr
  ln2 newaddr
  btc sendtoaddress <ln1 bitcoin address> 100
  btc sendtoaddress <ln2 bitcoin address> 100
  btc getnewaddress
  btc generatetoaddress 50 <btc address>

Connect ln nodes

  ln2 getinfo
  ln1 connect <pubkey of ln1> 127.0.0.1 15352

Open a channel from ln1 to ln2

  ln1 fundchannel id=<pubkey of ln2> amount=10000000

Open a channel from ln2 to ln1

  ln1 getinfo
  ln2 fundchannel id=<pubkey of ln1> amount=10000000

Generate blocks to confirm channels

  btc getnewaddress
  btc generatetoaddress 50 <btc address>

Start the mint, by default the mint will use ln1

  cargo r

Implemented Lightning Backends

License

Code is under the BSD 3-Clause License

Contribution

All contributions welcome.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

Contact

I can be contacted for comments or questions on nostr at [email protected] (npub1qjgcmlpkeyl8mdkvp4s0xls4ytcux6my606tgfx9xttut907h0zs76lgjw) or via email [email protected].

cashu-rs-mint's People

Contributors

thesimplekid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.