Crate sn_dbc Copy item path Source pub use blsttc ;
pub use blsttc::rand ;
rng This is a helper module to make it a bit easier
and regular for API callers to instantiate
an Rng when calling sn_dbc methods that require
them. Ciphertext An encrypted message. Dbc Represents a Digital Bearer Certificate (Dbc). DbcBuilder A Builder for aggregating SignedSpends and generating the final Dbc outputs. DbcId DbcSecrets DbcTransaction DerivedKey This is the key that unlocks the value of a Dbc.
Holding this key gives you access to the tokens of the
Dbc with the corresponding DbcId.
Like with the keys to your house or a safe, this is not something you share publicly. FeeOutput Hash Input MainKey A Dbc MainKey is held by anyone who wants to
send or receive tokens using Dbcs. It is held privately
and not shared with anyone. Output PublicAddress This is a public address to which tokens can be sent.
The tokens will be sent via a unique Dbc. PublicKey A public key. PublicKeySet A public key and an associated set of public key shares. Signature A signature. SignatureShare A signature share. SignedSpend SignedSpend’s are constructed when a DBC is logged to the spentbook. Spend Represents the data to be signed by the DerivedKey of the Dbc being spent. Token Structure representing a Token amount. TransactionBuilder A builder to create a DBC transaction from
inputs and outputs. Error Node error variants. random_derivation_index DerivationIndex This is used to generate a new DbcId
from a PublicAddress, and the corresponding
DerivedKey from the MainKey of that PublicAddress. Result Specialisation of std::Result
.