Trait schnorrkel::musig::AggregatePublicKey
source · pub trait AggregatePublicKey {
// Required methods
fn weighting(&self, choice: &PublicKey) -> Option<Scalar>;
fn public_key(&self) -> PublicKey;
}
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§
sourcefn weighting(&self, choice: &PublicKey) -> Option<Scalar>
fn weighting(&self, choice: &PublicKey) -> Option<Scalar>
Return delinearization weighting for one of many public keys being aggregated.
sourcefn public_key(&self) -> PublicKey
fn public_key(&self) -> PublicKey
Returns aggregated public key.