Bespoke toolkit for Non-fungible token (NFT) technology 🚀
Instead of forcing a consensus algorithm or peer networking on you, Onft provides you with the tools to create a reliable and fast NFT system 👐
This allows you to focus on implementing the important stuff, as well as getting benefits such as automatic improvements and updates over this project's lifecycle, whilst still being fully standardized.
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! 😊
Simply add the following to your Cargo.toml
file:
[dependencies]
onft = "0.1.0-beta.2"
This project is dual-licensed under both the MIT and Apache licenses, so feel free to use either at your discretion.