Struct exonum_btc_anchoring::AnchoringConfig
[−]
[src]
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]
pub fn new<I>(network: Network, anchoring_keys: I) -> AnchoringConfig where
I: IntoIterator<Item = PublicKey>,
[src]
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.
pub fn new_with_funding_tx<I>(
network: Network,
anchoring_keys: I,
tx: FundingTx
) -> AnchoringConfig where
I: IntoIterator<Item = PublicKey>,
[src]
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.
pub fn funding_tx(&self) -> &FundingTx
[src]
Trait Implementations
impl Debug for AnchoringConfig
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for AnchoringConfig
[src]
fn clone(&self) -> AnchoringConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for AnchoringConfig
[src]
fn eq(&self, __arg_0: &AnchoringConfig) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AnchoringConfig) -> bool
[src]
This method tests for !=
.
impl Default for AnchoringConfig
[src]
fn default() -> AnchoringConfig
[src]
Returns the "default value" for a type. Read more
impl StorageValue for AnchoringConfig
[src]
fn into_bytes(self) -> Vec<u8>
[src]
Serialize a value into a vector of bytes.
fn from_bytes(value: Cow<[u8]>) -> Self
[src]
Deserialize a value from bytes.