pub struct PrivateCode { /* private fields */ }
Expand description

Represents the private side of a payment code, as seen from the perspective of the sender. This is what the sender will use in conjunction with a receiver’s public payment code in order to be able to send funds.

Implementations

Constructs a new payment code from the private side using a BIP32 seed.

Constructs a new ephemeral payment code at the given index from the private side using a BIP32 seed.

Generates a version 1 public payment code matching this private payment code, optionally with bitmessage.

Generates a version 2 public payment code matching this private payment code.

Derives a receive private key at the given index, with respect to a public payment code. Used for spending purposes. If the index is invalid, it should be incremented.

Derives a receive address at the given index. If the index is invalid, it should be incremented.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.