From 6a95e2c664a5dfd39f5e6667c9f86717fa1273f7 Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Thu, 15 Nov 2018 08:44:52 -0800 Subject: [PATCH] add AttestationSignedData --- beacon_chain/datatypes.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/beacon_chain/datatypes.nim b/beacon_chain/datatypes.nim index a01eb4466..60bcd6b3a 100644 --- a/beacon_chain/datatypes.nim +++ b/beacon_chain/datatypes.nim @@ -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