mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 06:05:23 -05:00
Switch from alt_bn255 to BLS12-381
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user