Crates.io | onft |
lib.rs | onft |
version | 0.1.0-beta.2 |
source | src |
created_at | 2021-09-25 22:52:09.735742 |
updated_at | 2021-09-26 20:58:30.29688 |
description | Bespoke protocol and high-level implementation of Non-fungible token (NFT) technology 🚀 |
homepage | |
repository | |
max_upload_size | |
id | 456331 |
size | 39,989 |
Bespoke protocol and high-level implementation of Non-fungible token (NFT) technology 🚀
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.