Switch from alt_bn255 to BLS12-381

This commit is contained in:
vbuterin 2018-11-17 18:20:39 -05:00 committed by GitHub
parent ac207e4cc8
commit db9fdb9b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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