Struct exonum_btc_anchoring::AnchoringConfig []

pub struct AnchoringConfig {
    pub anchoring_keys: Vec<PublicKey>,
    pub funding_tx: Option<FundingTx>,
    pub fee: u64,
    pub frequency: u64,
    pub utxo_confirmations: u64,
    pub network: Network,
}

Public part of anchoring service configuration stored in blockchain.

Fields

Validators' public keys from which the current anchoring address can be calculated.

The transaction that funds anchoring address. If the anchoring transactions chain is empty, it will be the first transaction in the chain. Note: you must specify a suitable transaction before the network launching.

Fee for each transaction in chain.

The frequency in blocks with which the generation of new anchoring transactions in the chain occurs.

The minimum number of confirmations in bitcoin network for the transition to a new anchoring address.

The current bitcoin network type.

Methods

impl AnchoringConfig
[src]

Creates anchoring configuration for the given anchoring_keys without funding transaction. This is usable for deploying procedure when the network participants exchange the public configuration before launching. Do not forget to send funding transaction to the final multisig address and add it to the final configuration.

Creates default anchoring configuration from given public keys and funding transaction which were created earlier by other way.

Returns the funding transaction.

Panics

If funding transaction is not specified.

Trait Implementations

impl Debug for AnchoringConfig
[src]

Formats the value using the given formatter.

impl Clone for AnchoringConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for AnchoringConfig
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for AnchoringConfig
[src]

Returns the "default value" for a type. Read more

impl StorageValue for AnchoringConfig
[src]

Serialize a value into a vector of bytes.

Deserialize a value from bytes.

Returns a hash of the value. Read more