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
AmountSecrets wraps bls_ringct::RevealedCommitment to provide some methods
for ergonomic usage, eg: decrypting from Ciphertext using various blsttc
components, eg SecretKey, SecretKeyShare, SecretKeySet, DecryptionShare
Represents a Digital Bearer Certificate (Dbc).
A Builder for aggregating SpentProofs and generating the final Dbc outputs.
Represents a one-time-use Owner key(pair).
A public key.
A public key and an associated set of public key shares.
A signature.
A signature share.
SpentProof’s are constructed when a DBC is logged to the spentbook.
Represents the data to be signed by the SpentBook in a SpentProof.
A share of a SpentProof, combine enough of these to form a
SpentProof.
Structure representing a Token amount.
A builder to create a RingCt transaction from
inputs and outputs.
Enums
Traits
For the spent proofs to verify, the caller must provide
an implementation of this trait which must have/know
the pubkey of the spentbook section that signed each of the proofs.
Functions
Get the public commitments for the transaction for a key image spend.
Type Definitions
a BlindingFactor
a Commitment
A KeyImage can be thought of as a specific type
of public key. blsttc::PublicKey is a newtype
wrapper around blstrs::G1Affine. We use
PublicKey because it impls Hash and Ord traits
that are useful for storing the KeyImage in
a map.
Specialisation of
std::Result
.