add AttestationSignedData

This commit is contained in:
Dustin Brody 2018-11-15 08:44:52 -08:00
parent 0b45eb5b74
commit 6a95e2c664
1 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,16 @@ type
justified_block_hash: Blake2_256_Digest # Hash of last justified beacon block
aggregate_sig*: Signature # BLS aggregate signature
AttestationSignedData* = object
fork_version*: uint64 # Fork version
slot*: uint64 # Slot number
shard*: uint16 # Shard number
parent_hashes*: seq[Blake2_256_Digest]
# CYCLE_LENGTH parent hashes
shard_block_hash*: Blake2_256_Digest # Shard block hash
shard_block_combined_data_root*: Blake2_256_Digest # Root of data between last hash and this one
justified_slot*: uint64 # Slot of last justified beacon block referenced in the attestation
ValidatorStatusCodes* {.pure.} = enum
PendingActivation = 0
Active = 1