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
anchoring_keys: Vec<PublicKey>
Validators' public keys from which the current anchoring address can be calculated.
funding_tx: Option<FundingTx>
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: u64
Fee for each transaction in chain.
frequency: u64
The frequency in blocks with which the generation of new anchoring transactions in the chain occurs.
utxo_confirmations: u64
The minimum number of confirmations in bitcoin network for the transition to a new anchoring address.
network: Network
The current bitcoin network type.
Methods
impl AnchoringConfig
[src]
fn new<I>(network: Network, anchoring_keys: I) -> AnchoringConfig where
I: IntoIterator<Item = PublicKey>,
I: IntoIterator<Item = PublicKey>,
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.
fn new_with_funding_tx<I>(
network: Network,
anchoring_keys: I,
tx: FundingTx
) -> AnchoringConfig where
I: IntoIterator<Item = PublicKey>,
network: Network,
anchoring_keys: I,
tx: FundingTx
) -> AnchoringConfig where
I: IntoIterator<Item = PublicKey>,
Creates default anchoring configuration from given public keys and funding transaction which were created earlier by other way.
fn funding_tx(&self) -> &FundingTx
Trait Implementations
impl Debug for AnchoringConfig
[src]
impl Clone for AnchoringConfig
[src]
fn clone(&self) -> AnchoringConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for AnchoringConfig
[src]
fn eq(&self, __arg_0: &AnchoringConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AnchoringConfig) -> bool
This method tests for !=
.
impl Default for AnchoringConfig
[src]
fn default() -> AnchoringConfig
Returns the "default value" for a type. Read more