Crate dti

Source
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
ShortName
Short names or ticker symbols of the digital token
UnderlyingAssetExternalIdentifier
Underlying asset external identifier type for the digital token

Enums§

DigitalLedgerTechnologyType
Category of systems implementing distributed ledger technology based on their consensus mechanisms
DigitalTokenIdentifierType
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