Comments (1)
The public key of the sync committee is obtained from the local beaconState.
type BeaconState struct {
....
currentSyncCommittee *ethpb.SyncCommittee
}
committeeKeys := currentSyncCommittee.Pubkeys
for i := uint64(0); i < sync.SyncCommitteeBits.Len(); i++ {
vIdx, exists := s.ValidatorIndexByPubkey(bytesutil.ToBytes48(committeeKeys[i]))
// Impossible scenario.
if !exists {
return nil, nil, 0, errors.New("validator public key does not exist in state")
}
if sync.SyncCommitteeBits.BitAt(i) {
pubKey, err := bls.PublicKeyFromBytes(committeeKeys[i])
if err != nil {
return nil, nil, 0, err
}
votedKeys = append(votedKeys, pubKey)
if err := helpers.IncreaseBalance(s, vIdx, participantReward); err != nil {
return nil, nil, 0, err
}
earnedProposerReward += proposerReward
} else {
if err := helpers.DecreaseBalance(s, vIdx, participantReward); err != nil {
return nil, nil, 0, err
}
}
}
The signature of the sync committee is maybe obtained from mevRelay.
sa, err := signed.Block().Body().SyncAggregate()
if err != nil {
return nil, errors.Wrap(err, "could not get sync aggregate from block")
}
state, _, err = altair.ProcessSyncAggregate(ctx, state, sa)
The result is failed to verify the signature. What's the reason for this?
if err := VerifySyncCommitteeSig(s, votedKeys, sync.SyncCommitteeSignature); err != nil {
return nil, 0, errors.Wrap(err, "could not verify sync committee signature")
}
from prysm.
Related Issues (20)
- Devnet: transactions on 2nd execution client will never be validated.
- The given withdrawal credentials is already in ETH1_ADDRESS_WITHDRAWAL_PREFIX form. Have you already set the EL (eth1) withdrawal addresss HOT 1
- Contradictory logs when syncing
- Reports of Windows users losing peers #13431 HOT 6
- are the fields in chain_reorg event response reversed?
- Google Container Registry Shutdown HOT 4
- Incompatible with k8s.io/[email protected]+ HOT 3
- Out of memory (OOM) - Prysm killed HOT 5
- Prysm Killed - Out of Memory HOT 6
- Cli args CMD to start prysm without GRPC gateway but http rest api HOT 1
- cannot obtain database lock, database may be in use by another process HOT 2
- Using Prysm BN with the `--bootstrap-node` with and invalid signature leads to a wrong error message.
- how to fethc data from network level? HOT 10
- OOM and Utilization Issues when using Prysm v5 HOT 13
- Maybe Clock Drift on Windows Server HOT 3
- I've been syncing Ethereum for three days, and it still hasn't completed! HOT 3
- Local devnet blocked when running for too long. HOT 7
- run local testnet failed: could not set config params: version 0x05000000 for fork electra in config interop conflicts with existing config named=mainnet HOT 1
- local devnet, how to start with "canun" fork by default
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prysm.