Skip to content

dan-da/sn_dbc

 
 

Repository files navigation

sn_dbc

Safe Network DBCs

Crate Documentation CI Safe Rust
Documentation unsafe forbidden
MaidSafe website SAFE Dev Forum SAFE Network Forum

About

This crate provides a library and API for working with Digital Bearer Certificates (DBC) on the Safe Network.

Safe Network DBCs are envisioned to be a private and fungible digital currency that utilize a distributed (and sharded) spentbook/mint rather than a blockchain.

Some key properties of these DBCs:

  • distributed mint means that it is not necessary to trust in a single mint entity
  • sharded mint means that the system scales indefinitely
  • transactions are settled immmediately
  • privacy by default. all transactions use privacy features.
  • utilizes a one-time key for each payment (aka stealth address)
  • use BLS cryptography

At present DBC ownership is single signature only. Multi-sig support is planned.

Some writeups about the technology can be found at:

https://safenetforum.org/t/safenetwork-dbc-technical-series

Building

$ git clone https://github.com/maidsafe/sn_dbc.git
$ cd sn_dbc
$ cargo build

Running

mint-repl example

A mint-repl example is provided which enables interacting with a mock spentbook/mint and wallet.

$ cd sn_dbc
$ cargo run --example mint-repl

Additional examples can be found in a separate crate:

https://github.com/maidsafe/sn_dbc_examples

benchmark(s)

$ cd sn_dbc
$ cargo bench

tests

$ cd sn_dbc
$ cargo test

Key dependencies:

This crate depends most heavily on:

License

This SAFE Network library is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT https://opensource.org/licenses/MIT) at your option.

Contributing

Want to contribute? Great 🎉

There are many ways to give back to the project, whether it be writing new code, fixing bugs, or just reporting errors. All forms of contributions are encouraged!

For instructions on how to contribute, see our Guide to contributing.

About

No description, website, or topics provided.

Resources

License

BSD-3-Clause, MIT licenses found

Licenses found

BSD-3-Clause
LICENSE-BSD
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%