[][src]Trait schnorr::MuSigContext

pub trait MuSigContext {
    fn commit(&self, transcript: &mut Transcript);
fn challenge(&self, index: usize, transcript: &mut Transcript) -> Scalar;
fn len(&self) -> usize;
fn key(&self, index: usize) -> PublicKey; }

The context for signing - can either be a Multikey or Multimessage context.

Required methods

fn commit(&self, transcript: &mut Transcript)

Takes a mutable transcript, and commits the internal context to the transcript.

fn challenge(&self, index: usize, transcript: &mut Transcript) -> Scalar

Takes an index of a public key and mutable transcript, and returns the suitable challenge for that public key.

fn len(&self) -> usize

Length of the number of pubkeys in the context

fn key(&self, index: usize) -> PublicKey

Returns the pubkey for the index i

Loading content...

Implementors

impl MuSigContext for MultiKey[src]

impl<M: AsRef<[u8]>> MuSigContext for Multimessage<M>[src]

Loading content...