-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
Description
The Mithril Aggregator must be able to receive single signatures from Mithril Signers and to produce a multi signature that is embedded in a certificate with the following assertions:
- The real Mithril cryptographic library is used
- Stake distribution is static and fake
- Signer keys are static
1. Receive and validate single signatures
- Compute the digest and verify a received single signature with a
MultiSignertrait and its implementation (and config & DI) - Use this
MultiSignerin theregister_signatureshttp handler - Add the verified single signatures to the
MultiSignerstate
2. Produce a multi signatures and a certificate
- Wait for the quorum and then compute the multi signature with the
MultiSigner - Produce a certificate associated to the multi signature
- Use this
MultiSignerstore in thecertificate_certificate_hashhttp handler
3. Will be done later
- (Maybe it is not the best option) Notify the
Snapshotterof the newly produced certificate hash so that it triggers the production/upload of the snapshot archive (check if it is needed)