File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change 6
6
pipe
7
7
)
8
8
9
- from eth_typing import (
10
- Hash32 ,
11
- )
12
-
13
9
from eth .utils import bls
14
10
from eth .utils .bitfield import (
15
11
set_voted ,
16
12
)
17
- from eth .beacon .utils .hash import hash_
18
-
19
- from eth .beacon .enums .signature_domain import SignatureDomain
20
-
21
13
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
38
15
39
16
40
17
def verify_votes (
You can’t perform that action at this time.
0 commit comments