Struct sn_dbc::DbcPacket[][src]

pub struct DbcPacket { /* fields omitted */ }
Expand description

Represents a DBC plus some metadata that is useful for transporting DBCs between individuals, but is not necessary for Mint operations. As such, this is a client-only struct that the payment sender would create before passing to the recipient.

The MintNodes never use it.

When creating a DBC, the sender should start with a well-known public_use_key provided by the recipient.

The sender then obtains DBC owner key via: DerivedKeySet::from(well_known).derived_public_key().

The owner key is then passed into DbcContent::new().

After reissue, the client constructs the Dbc and then puts it into a DbcPacket along with the DerivedKeySet

Implementations

Create a new DbcPacket. validates that the DerivedKeySet matches the Dbc owner

dbc getter

owner_keyset getter

returns the DerivedKeySet representing the owner’s reusable well-known key and a random (one-time) derivation index.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.