Module aggregator

Source

Structsยง

AggNonceQueueItem ๐Ÿ”’
FinalSigQueueItem ๐Ÿ”’

Enumsยง

AggregatorError

Functionsยง

collect_and_call ๐Ÿ”’
Use items collected from the broadcast receiver for an async function call.
create_nonce_streams ๐Ÿ”’
Creates a stream of nonces from verifiers. This will automatically get the first response from the verifiers.
get_next_pub_nonces ๐Ÿ”’
nonce_aggregator ๐Ÿ”’
For each expected sighash, we collect a batch of public nonces from all verifiers. We aggregate and send aggregated nonce and all public nonces (needed for partial signature verification) to the agg_nonce_sender. Then repeat for the next sighash.
nonce_distributor ๐Ÿ”’
Reroutes aggregated nonces and public nonces for each aggregated nonce to the signature aggregator.
signature_aggregator ๐Ÿ”’
Collects partial signatures and corresponding public nonces from given stream and aggregates them. Each partial signature will also be verified if PARTIAL_SIG_VERIFICATION is set to true.
signature_distributor ๐Ÿ”’
Reroutes aggregated signatures to the caller. Also sends 2 aggregated nonces to the verifiers.