Bespoke toolkit for Non-fungible token (NFT) technology
What is Onft?
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.
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.