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

Predicates #8997

Open
mehdi-aouadi opened this issue Jan 14, 2025 · 0 comments
Open

Predicates #8997

mehdi-aouadi opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@mehdi-aouadi
Copy link
Contributor

mehdi-aouadi commented Jan 14, 2025

Predicates

New is_valid_inclusion_list_signature

def is_valid_inclusion_list_signature(
        state: BeaconState, 
        signed_inclusion_list: SignedInclusionList) -> bool:
    """
    Check if ``signed_inclusion_list`` has a valid signature.
    """
    message = signed_inclusion_list.message
    index = message.validator_index
    pubkey = state.validators[index].pubkey
    domain = get_domain(state, DOMAIN_IL_COMMITTEE, compute_epoch_at_slot(message.slot))
    signing_root = compute_signing_root(message, domain)
    return bls.Verify(pubkey, signing_root, signed_inclusion_list.signature)
@mehdi-aouadi mehdi-aouadi self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant