Skip to content

Commit c0a3226

Browse files
committed
Remove create_signing_message
1 parent 19ebc7b commit c0a3226

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

eth/beacon/aggregation.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,12 @@
66
pipe
77
)
88

9-
from eth_typing import (
10-
Hash32,
11-
)
12-
139
from eth.utils import bls
1410
from eth.utils.bitfield import (
1511
set_voted,
1612
)
17-
from eth.beacon.utils.hash import hash_
18-
19-
from eth.beacon.enums.signature_domain import SignatureDomain
20-
2113

22-
def create_signing_message(slot: int,
23-
parent_hashes: Iterable[Hash32],
24-
shard_id: int,
25-
shard_block_hash: Hash32,
26-
justified_slot: int) -> bytes:
27-
"""
28-
Return the signining message for attesting.
29-
"""
30-
# TODO: Will be updated with SSZ encoded attestation.
31-
return hash_(
32-
slot.to_bytes(8, byteorder='big') +
33-
b''.join(parent_hashes) +
34-
shard_id.to_bytes(2, byteorder='big') +
35-
shard_block_hash +
36-
justified_slot.to_bytes(8, 'big')
37-
)
14+
from eth.beacon.enums import SignatureDomain
3815

3916

4017
def verify_votes(

0 commit comments

Comments
 (0)