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.
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.
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.
If funding transaction is not specified.
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize a value into a vector of bytes.
Deserialize a value from bytes.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Clear for T where T: InitializableFromZeroed + ?Sized, | |
Completely overwrites this value.
impl<T> InitializableFromZeroed for T where T: Default, | |
Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more