AggregatePublicKey

Trait AggregatePublicKey 

Source
pub trait AggregatePublicKey {
    // Required methods
    fn weighting(&self, choice: &PublicKey) -> Option<Scalar>;
    fn public_key(&self) -> PublicKey;
}
๐Ÿ‘ŽDeprecated since 0.11.0: This module will be replaced in the future
Expand description

Any data structure used for aggregating public keys.

Internally, these must usually iterate over the public keys being aggregated in lexicographic order, so any BTreeMap<PublicKey,V> works. Alternative designs sound plausible when working with some blockchain scheme.

Required Methodsยง

Source

fn weighting(&self, choice: &PublicKey) -> Option<Scalar>

๐Ÿ‘ŽDeprecated since 0.11.0: This module will be replaced in the future

Return delinearization weighting for one of many public keys being aggregated.

Source

fn public_key(&self) -> PublicKey

๐Ÿ‘ŽDeprecated since 0.11.0: This module will be replaced in the future

Returns aggregated public key.

Implementations on Foreign Typesยง

Sourceยง

impl<K, V> AggregatePublicKey for BTreeMap<K, V>
where K: Borrow<PublicKey> + Ord,

Sourceยง

fn weighting(&self, choice: &PublicKey) -> Option<Scalar>

๐Ÿ‘ŽDeprecated since 0.11.0: This module will be replaced in the future
Sourceยง

fn public_key(&self) -> PublicKey

๐Ÿ‘ŽDeprecated since 0.11.0: This module will be replaced in the future

Implementorsยง