erigon icon indicating copy to clipboard operation
erigon copied to clipboard

Caplin: beacon committee subscription api

Open domiwei opened this issue 1 year ago • 2 comments

This pr implements following beacon api https://ethereum.github.io/beacon-APIs/#/Validator/prepareBeaconCommitteeSubnet Steps:

  1. once receive committee subscription request, record this subscription info associated with validator index.
  2. if isAggregator flag is on, prepare internal data structure to collect and aggregate incoming attestation.
  3. set expiry and begin to subscribe beacon_attestation_{subnet}, so we are capable of receiving attestation data from peer.
  4. whenever receive attestation data, try aggregate it if needed.

domiwei avatar Mar 15 '24 09:03 domiwei

General feedback: Maybe for aggregating signatures and public key it is better to do another AttestationAggregator struct. the reason is that we can get that from different sources such as: aggregates topic, attestation topics or from the beacon API.

Giulio2002 avatar Mar 25 '24 14:03 Giulio2002