Expand description
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.
Re-exports§
pub use error::Result;
Modules§
- Contains crate-level errors and implementations
- Light prelude layer which provides direct imports
Structs§
- Single block within a larger blockchain, providing access to a block of data
- Representation of an Onft blockchain
- Hash for a block allowing full blockchain usage
Enums§
- Contains ownership keys and information for a given block