From db9fdb9b72fdc5ee5b27b5655fbb2669b84da003 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Sat, 17 Nov 2018 18:20:39 -0500 Subject: [PATCH] Switch from alt_bn255 to BLS12-381 --- specs/core/0_beacon-chain.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 273bf75f5..0304b11b2 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -137,7 +137,7 @@ An `AttestationRecord` has the following fields: # Hash of last justified beacon block 'justified_block_hash': 'hash32', # BLS aggregate signature - 'aggregate_sig': ['uint256'] + 'aggregate_sig': ['uint384'] } ``` @@ -227,7 +227,7 @@ A `ValidatorRecord` has the following fields: ```python { # BLS public key - 'pubkey': 'uint256', + 'pubkey': 'uint384', # Withdrawal shard number 'withdrawal_shard': 'uint16', # Withdrawal address @@ -609,6 +609,8 @@ def add_validator(validators: List[ValidatorRecord], return index ``` +`BLSVerify` is a function for verifying a BLS-12-381 signature, defined in the BLS-12-381 spec. + ## Routine for removing a validator ```python