trustchain_core/
lib.rs

1//! Core traits and logic (data layer independent).
2pub mod attestor;
3pub mod chain;
4pub mod commitment;
5pub mod controller;
6pub mod data;
7pub mod display;
8pub mod graph;
9pub mod holder;
10pub mod issuer;
11pub mod key_manager;
12pub mod resolver;
13pub mod subject;
14pub mod utils;
15pub mod vc;
16pub mod verifier;
17pub mod vp;
18
19/// Environment variable name for Trustchain data.
20pub const TRUSTCHAIN_DATA: &str = "TRUSTCHAIN_DATA";
21
22/// Environment variable name for Trustchain config file.
23pub const TRUSTCHAIN_CONFIG: &str = "TRUSTCHAIN_CONFIG";
24
25/// The value used in a DID document to identify the default Trustchain service endpoint.
26pub const TRUSTCHAIN_SERVICE_ID_VALUE: &str = "TrustchainID";
27
28/// The value used for identifying a service containing a Trustchain controller proof within a DID document.
29pub const TRUSTCHAIN_PROOF_SERVICE_ID_VALUE: &str = "trustchain-controller-proof";
30
31/// The value of the type for the service containing a Trustchain controller proof within a DID document.
32pub const TRUSTCHAIN_PROOF_SERVICE_TYPE_VALUE: &str = "TrustchainProofService";
33
34/// String slice for JSON file extension for consistency.
35pub const JSON_FILE_EXTENSION: &str = ".json";