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
owner_keyset getter
returns the DerivedKeySet representing the owner’s reusable well-known key and a random (one-time) derivation index.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for DbcPacket
impl UnwindSafe for DbcPacket
Blanket Implementations
Mutably borrows from an owned value. Read more