Struct exonum_btc_anchoring::blockchain::AnchoringSchema [] [src]

pub struct AnchoringSchema<T> { /* fields omitted */ }

Anchoring information schema.

Methods

impl<T> AnchoringSchema<T> where
    T: AsRef<Snapshot>, 
[src]

[src]

Creates anchoring schema for the given snapshot.

[src]

Returns table that contains signatures for the anchoring transaction with the given normalized txid.

[src]

Returns table that saves a list of lects for the validator with the given validator_key.

[src]

Returns table that keeps the lect index for every anchoring txid for the validator with given validator_key.

[src]

Returns the table of known signatures, where key is the tuple (txid, validator_id, input).

Read more.

[src]

Returns the table that keeps the anchoring transaction for any known txid.

[src]

Returns table that maps anchoring transactions to their heights.

[src]

Returns the actual anchoring configuration.

[src]

Returns the nearest following configuration if it exists.

[src]

Returns the previous anchoring configuration if it exists.

[src]

Returns the anchoring configuration from the genesis block.

[src]

Returns the configuration that is the actual for the given height. For non-existent heights, it will return the configuration closest to them.

[src]

Returns lect for validator with the given public_key.

[src]

Returns previous lect for validator with the given public_key.

[src]

Returns a lect that is currently supported by at least 2/3 of the current set of validators.

[src]

Returns position in lects table of validator with the given anchoring_key for transaction with the given txid.

Important traits for Vec<u8>
[src]

Returns the state_hash for anchoring tables.

It contains a list of root_hash of the actual lects tables.

impl<'a> AnchoringSchema<&'a mut Fork>
[src]

[src]

Mutable variant of the signatures index.

[src]

Mutable variant of the lects index.

[src]

Mutable variant of the lect_indexes index.

[src]

Mutable variant of the known_signatures index.

[src]

Mutable variant of the known_txs index.

[src]

Mutable variant of the signatures index.

[src]

Creates and commits the genesis anchoring configuration from the proposed cfg.

[src]

Adds lect from validator with the given public key.

[src]

Adds signature to known if it is correct.

impl<T> AnchoringSchema<T>
[src]

[src]

Converts schema back into snapshot.

Trait Implementations

impl<T: Debug> Debug for AnchoringSchema<T>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for AnchoringSchema<T> where
    T: Send

impl<T> Sync for AnchoringSchema<T> where
    T: Sync