File tree Expand file tree Collapse file tree 7 files changed +16
-16
lines changed Expand file tree Collapse file tree 7 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
from eth .rlp .sedes import (
12
- uint256 ,
12
+ uint384 ,
13
13
)
14
14
15
15
@@ -29,7 +29,7 @@ class Attestation(rlp.Serializable):
29
29
# Proof of custody bitfield
30
30
('custody_bitfield' , binary ),
31
31
# BLS aggregate signature
32
- ('aggregate_sig' , CountableList (uint256 )),
32
+ ('aggregate_sig' , CountableList (uint384 )),
33
33
]
34
34
35
35
def __init__ (self ,
Original file line number Diff line number Diff line change 17
17
from eth .rlp .sedes import (
18
18
hash32 ,
19
19
uint64 ,
20
- uint256 ,
20
+ uint384 ,
21
21
)
22
22
from eth .beacon .utils .hash import hash_eth2
23
23
@@ -62,7 +62,7 @@ class BaseBeaconBlock(rlp.Serializable):
62
62
('state_root' , hash32 ),
63
63
('randao_reveal' , hash32 ),
64
64
('candidate_pow_receipt_root' , hash32 ),
65
- ('signature' , CountableList (uint256 )),
65
+ ('signature' , CountableList (uint384 )),
66
66
67
67
#
68
68
# Body
Original file line number Diff line number Diff line change 12
12
13
13
from eth .rlp .sedes import (
14
14
hash32 ,
15
- uint256 ,
15
+ uint384 ,
16
16
)
17
17
18
18
@@ -22,9 +22,9 @@ class DepositInput(rlp.Serializable):
22
22
"""
23
23
fields = [
24
24
# BLS pubkey
25
- ('pubkey' , uint256 ),
25
+ ('pubkey' , uint384 ),
26
26
# BLS proof of possession (a BLS signature)
27
- ('proof_of_possession' , CountableList (uint256 )),
27
+ ('proof_of_possession' , CountableList (uint384 )),
28
28
# Withdrawal credentials
29
29
('withdrawal_credentials' , hash32 ),
30
30
# Initial RANDAO commitment
Original file line number Diff line number Diff line change 6
6
from eth .rlp .sedes import (
7
7
uint24 ,
8
8
uint64 ,
9
- uint256 ,
9
+ uint384 ,
10
10
)
11
11
12
12
@@ -20,7 +20,7 @@ class Exit(rlp.Serializable):
20
20
# Index of the exiting validator
21
21
('validator_index' , uint24 ),
22
22
# Validator signature
23
- ('signature' , CountableList (uint256 )),
23
+ ('signature' , CountableList (uint384 )),
24
24
]
25
25
26
26
def __init__ (self ,
Original file line number Diff line number Diff line change 5
5
)
6
6
from eth .rlp .sedes import (
7
7
uint24 ,
8
- uint256 ,
8
+ uint384 ,
9
9
)
10
10
from .proposal_signed_data import ProposalSignedData
11
11
@@ -17,11 +17,11 @@ class ProposerSlashing(rlp.Serializable):
17
17
# First proposal data
18
18
('proposal_data_1' , ProposalSignedData ),
19
19
# First proposal signature
20
- ('proposal_signature_1' , CountableList (uint256 )),
20
+ ('proposal_signature_1' , CountableList (uint384 )),
21
21
# Second proposal data
22
22
('proposal_data_2' , ProposalSignedData ),
23
23
# Second proposal signature
24
- ('proposal_signature_2' , CountableList (uint256 )),
24
+ ('proposal_signature_2' , CountableList (uint384 )),
25
25
]
26
26
27
27
def __init__ (self ,
Original file line number Diff line number Diff line change 7
7
)
8
8
from eth .rlp .sedes import (
9
9
uint24 ,
10
- uint256 ,
10
+ uint384 ,
11
11
)
12
12
from .attestation_data import AttestationData
13
13
@@ -24,7 +24,7 @@ class SlashableVoteData(rlp.Serializable):
24
24
# Attestation data
25
25
('data' , AttestationData ),
26
26
# Aggregate signature
27
- ('aggregate_signature' , CountableList (uint256 )),
27
+ ('aggregate_signature' , CountableList (uint384 )),
28
28
]
29
29
30
30
def __init__ (self ,
Original file line number Diff line number Diff line change 8
8
)
9
9
from eth .rlp .sedes import (
10
10
uint64 ,
11
- uint256 ,
11
+ uint384 ,
12
12
hash32 ,
13
13
)
14
14
@@ -25,7 +25,7 @@ class ValidatorRecord(rlp.Serializable):
25
25
"""
26
26
fields = [
27
27
# BLS public key
28
- ('pubkey' , uint256 ),
28
+ ('pubkey' , uint384 ),
29
29
# Withdrawal credentials
30
30
('withdrawal_credentials' , hash32 ),
31
31
# RANDAO commitment
You can’t perform that action at this time.
0 commit comments