Expand description
§DTI Rust library
This crate provides functionality to handle digital token identifiers as defined in ISO 24165. To learn more about DTI visit Digital Token Identifier Foundation.
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"
);
Structs§
- DTIData
- All DTI recrods
- Fork
- Each fork is a creation of two or more different versions of a distributed ledger originating from a common starting point with a single history; A fork may or may not result in the creation of a new digital token
- Header
- Contains the DTI, DTI Type, DTL
- Informative
- Basic information about the digital token.
- Metadata
- Information related to actions of DTIF in regards to this specific token
- Normative
- Indept Normative data
- Record
- A single DTI record
- Short
Name - Short names or ticker symbols of the digital token
- Underlying
Asset External Identifier - Underlying asset external identifier type for the digital token
Enums§
- Digital
Ledger Technology Type - Category of systems implementing distributed ledger technology based on their consensus mechanisms
- Digital
Token Identifier Type - Category of the digital token identifier
- Error
- An error
Functions§
- by_dti
- Look up one specfic DTI
- get_
all_ dtis - Returns a simple list of Strings of all DTIS
- get_
latest_ dti_ data - Download the latest DTI Data set from dtif.org/data.json
- read_
dti_ data_ from_ file - Use local DTI Data file