pub struct PublicCode {
    pub network: Network,
    /* private fields */
}
Expand description

Represents the public side of a payment code. This is what the party that wishes to receive funds shares with sending parties.

Fields

network: Network

Implementations

The version of this BIP47 payment code.

Parses a WIF-formatted payment code.

Returns the notification mode to be used with this payment code.

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

Attempts to extract a public payment code from a notification transaction. If the designated pubkey and input are unknown and set to None, automatic extraction will be attempted. They can also be supplied if they are known (for example if acquired through a side channel).

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

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

Converts the given value to a String. 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.