Jacek Sieka 6669e698b5
spec updates
* more work on block processing
* fix some unsigned issues
* fix ssz issue when last chunk is not full
* work around empty const seq compiler bug
* XXX -> TODO
2018-11-29 16:16:07 -06:00

25 lines
872 B
Nim

# beacon_chain
# Copyright (c) 2018 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
# Temporary dumping ground for extra types and helpers that could make it into
# the spec potentially
import
./spec/[crypto, digest]
const
BEACON_CHAIN_SHARD* = 0xffffffffffffffff'u64
type
InitialValidator* = object
## Eth1 validator registration contract output
pubkey*: ValidatorPubKey
deposit_size*: uint64
proof_of_possession*: seq[byte]
withdrawal_credentials*: Eth2Digest
randao_commitment*: Eth2Digest