[−][src]Trait schnorrkel::musig::AggregatePublicKey
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
fn weighting(&self, choice: &PublicKey) -> Option<Scalar>
Return delinearization weighting for one of many public keys being aggregated.
fn public_key(&self) -> PublicKey
Returns aggregated public key.
Implementations on Foreign Types
impl<K, V> AggregatePublicKey for BTreeMap<K, V> where
K: Borrow<PublicKey> + Ord,
[src]
K: Borrow<PublicKey> + Ord,
fn weighting(&self, choice: &PublicKey) -> Option<Scalar>
[src]
fn public_key(&self) -> PublicKey
[src]
Implementors
impl<'a, K> AggregatePublicKey for AggregatePublicKeySlice<'a, K> where
K: Borrow<PublicKey> + PartialEq<K>,
[src]
K: Borrow<PublicKey> + PartialEq<K>,