Skip to content

Commit 9c3e753

Browse files
committed
Remove create_signing_message
1 parent 306b7e3 commit 9c3e753

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

eth/beacon/aggregation.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,14 @@
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.utils.blake import blake
1813

1914
from eth.beacon.enums.signature_domain import SignatureDomain
2015

2116

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 blake(
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-
)
38-
39-
4017
def verify_votes(
4118
message: bytes,
4219
votes: Iterable[Tuple[int, bytes, int]],

0 commit comments

Comments
 (0)