Crate sn_dbc

Source

Re-exports§

pub use blsttc;
pub use blsttc::rand;

Modules§

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.

Structs§

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.

Enums§

Error
Node error variants.

Functions§

random_derivation_index

Type Aliases§

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.