Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sync committee duty #9104

Open
mehdi-aouadi opened this issue Feb 11, 2025 · 0 comments
Open

Update sync committee duty #9104

mehdi-aouadi opened this issue Feb 11, 2025 · 0 comments
Labels

Comments

@mehdi-aouadi
Copy link
Contributor

mehdi-aouadi commented Feb 11, 2025

Modified sync committee duty

Modified beacon block root

def get_sync_committee_message(state: BeaconState,
                               block_root: Root,
                               validator_index: ValidatorIndex,
                               privkey: int,
                               store: Store) -> SyncCommitteeMessage:
    epoch = get_current_epoch(state)
    domain = get_domain(state, DOMAIN_SYNC_COMMITTEE, epoch)
    signing_root = compute_signing_root(block_root, domain)
    signature = bls.Sign(privkey, signing_root)

    return SyncCommitteeMessage(
        slot=state.slot,
        beacon_block_root=get_attester_head(store, block_root),
        validator_index=validator_index,
        signature=signature,
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant