Crates.io | dti |
lib.rs | dti |
version | 0.1.2 |
source | src |
created_at | 2023-07-01 18:47:57.699045 |
updated_at | 2023-08-04 13:02:07.633807 |
description | A library to handle digital token identifiers as defined in ISO 24165 |
homepage | https://21analytics.ch |
repository | https://gitlab.com/21analytics/dti |
max_upload_size | |
id | 905638 |
size | 841,225 |
dti
is a Rust library to handle digital token identifiers as defined in ISO 24165.
To learn more about DTI visit Digital Token Identifier Foundation.
fn main() {
let data = dti::DTIData::new().unwrap();
let r: &dti::Record = dti::by_dti(&data, "4H95J0R2X").unwrap();
assert_eq!(
r.normative
.as_ref()
.unwrap()
.genesis_block_hash
.clone()
.unwrap_or_default(),
"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
);
}
Add dti
to your Cargo.toml
:
cargo add dti
This crate is developed and maintained by 21 Analytics.
This project is licensed under the GNU Affero General Public license.