mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-20 22:38:11 +00:00
Switch from alt_bn255 to BLS12-381
This commit is contained in:
parent
ac207e4cc8
commit
db9fdb9b72
@ -137,7 +137,7 @@ An `AttestationRecord` has the following fields:
|
|||||||
# Hash of last justified beacon block
|
# Hash of last justified beacon block
|
||||||
'justified_block_hash': 'hash32',
|
'justified_block_hash': 'hash32',
|
||||||
# BLS aggregate signature
|
# BLS aggregate signature
|
||||||
'aggregate_sig': ['uint256']
|
'aggregate_sig': ['uint384']
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ A `ValidatorRecord` has the following fields:
|
|||||||
```python
|
```python
|
||||||
{
|
{
|
||||||
# BLS public key
|
# BLS public key
|
||||||
'pubkey': 'uint256',
|
'pubkey': 'uint384',
|
||||||
# Withdrawal shard number
|
# Withdrawal shard number
|
||||||
'withdrawal_shard': 'uint16',
|
'withdrawal_shard': 'uint16',
|
||||||
# Withdrawal address
|
# Withdrawal address
|
||||||
@ -609,6 +609,8 @@ def add_validator(validators: List[ValidatorRecord],
|
|||||||
return index
|
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
|
## Routine for removing a validator
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
Loading…
x
Reference in New Issue
Block a user