#high-level #technology #nft #block #token #chain #protocols

onft

Bespoke protocol and high-level implementation of Non-fungible token (NFT) technology 🚀

2 releases

0.1.0-beta.2 Sep 26, 2021
0.1.0-beta.1 Sep 25, 2021

#16 in #technology

36 downloads per month

MIT/Apache

20KB
275 lines

Onft

Crates.io Docs

Bespoke protocol and high-level implementation of Non-fungible token (NFT) technology 🚀

Example

use onft::Chain;

// create
let mut chain = Chain::default();
println!("Chain: {:?}", chain);

// add block
chain.push_data("Hello, world!").unwrap();
println!("Chain: {:?}", chain);

// verify
if let Ok(true) = chain.verify() {
    println!("Verified")
} else {
    eprintln!("Not verified")
}

Check the useful examples/ directory or the item-level documentation for more examples! 😊

Usage

Simply add the following to your Cargo.toml file:

[dependencies]
onft = "0.1.0-beta.2"

Licensing

This project is dual-licensed under both the MIT and Apache licenses, so feel free to use either at your discretion.

Dependencies

~1.9–5.5MB
~133K SLoC