Crate sn_dbc

source ·

Re-exports

Modules

  • 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

  • An encrypted message.
  • Represents a Digital Bearer Certificate (Dbc).
  • A Builder for aggregating SignedSpends and generating the final Dbc outputs.
  • 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.
  • 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.
  • This is a public address to which tokens can be sent. The tokens will be sent via a unique Dbc.
  • A public key.
  • A public key and an associated set of public key shares.
  • A signature.
  • A signature share.
  • SignedSpend’s are constructed when a DBC is logged to the spentbook.
  • Represents the data to be signed by the DerivedKey of the Dbc being spent.
  • Structure representing a Token amount.
  • A builder to create a DBC transaction from inputs and outputs.

Enums

  • Node error variants.

Functions

Type Aliases

  • This is used to generate a new DbcId from a PublicAddress, and the corresponding DerivedKey from the MainKey of that PublicAddress.
  • Specialisation of std::Result.