[][src]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]

pub fn new<I>(network: Network, anchoring_keys: I) -> AnchoringConfig where
    I: IntoIterator<Item = PublicKey>, 
[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.

pub fn new_with_funding_tx<I>(
    network: Network,
    anchoring_keys: I,
    tx: FundingTx
) -> AnchoringConfig where
    I: IntoIterator<Item = PublicKey>, 
[src]

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]

Returns the funding transaction.

Panics

If funding transaction is not specified.

Trait Implementations

impl Default for AnchoringConfig
[src]

impl PartialEq<AnchoringConfig> for AnchoringConfig
[src]

impl Clone for AnchoringConfig
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AnchoringConfig
[src]

impl Serialize for AnchoringConfig
[src]

impl<'de> Deserialize<'de> for AnchoringConfig
[src]

impl CryptoHash for AnchoringConfig
[src]

impl StorageValue for AnchoringConfig
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> CryptoHash for T where
    T: Message
[src]

impl<T> UniqueHash for T where
    T: CryptoHash
[src]

impl<T> Erased for T

impl<T> SerializeContent for T where
    T: Serialize
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default