29 Commits

Author SHA1 Message Date
Jacek Sieka
d1839dad9a
more small fixes
* move consts to top
* move some functions to validator.nim
* add some validator functoin smoke tests
2018-11-23 16:44:43 -06:00
Jacek Sieka
3ce94623e3
spec updates 2018-11-23 13:42:47 -06:00
Mamy Ratsimbazafy
9989f2fe56
"Stub" hashSSZ function for BeaconBlock (#18)
* FIx hash_ssz in the generic case

* Add a stub hash function for BeaconBlocks
2018-11-22 11:17:05 +01:00
tersec
0fe8c6762c update data structures (#17) 2018-11-20 18:52:14 -06:00
Dustin Brody
d0fd1b4eb7 update some helper functions to current spec, along with a couple of data types that needed tweaking/fixing 2018-11-15 16:54:36 -08:00
Dustin Brody
8493949456 update ShardAndCommittee and CrosslinkRecord 2018-11-15 10:20:27 -08:00
Dustin Brody
b2d93f75c1 update ValidatorRecord 2018-11-15 10:16:09 -08:00
Dustin Brody
150d0b6055 rm CrystallizedState, add ShardReassignmentRecord, add BeaconState 2018-11-15 10:01:54 -08:00
Dustin Brody
9ea109ba4c rm ActiveState 2018-11-15 08:47:56 -08:00
Dustin Brody
6a95e2c664 add AttestationSignedData 2018-11-15 08:44:52 -08:00
Dustin Brody
0b45eb5b74 update AttestationRecord 2018-11-15 08:35:25 -08:00
Mamy Ratsimbazafy
45fb4f83a2
Merge branch 'master' into bls-scheme2 2018-11-12 17:18:14 +01:00
mratsim
6a3c7d6aa5 Update for bls scheme 2 2018-11-12 10:13:24 +01:00
mratsim
dab75a76a2 comment out aggregated sig + make SSZ compile again 2018-11-12 09:46:16 +01:00
Jacek Sieka
5bdcee6536
document spec links 2018-11-11 19:19:58 -06:00
tersec
f389c454d6 first part of spec updating; some constants, structure changes, data type changes from int to uint (#9)
* first part of spec updating; some constants, structure changes, data type changes from int to uint

* Update beacon_chain/datatypes.nim

Co-Authored-By: tersec <tersec@users.noreply.github.com>
2018-11-09 10:34:30 +01:00
Mamy Ratsimbazafy
f60d578fb3
Signature aggregation in block processing (#5)
* signature-aggreg-in-block-processing

* Message is a Blake2 hash not simple concat

* Address comments:

- Range change in parent_hashes computation
- Slot not beind module Cycles anymore
- justified_slot part of the hash

Not addressed: using parent.slot_number instead of block.slot_number
2018-10-02 18:09:11 +02:00
mratsim
99a394e084 Config CI + use Milagro BLS signatures 2018-09-26 18:26:39 +02:00
mratsim
ca4082b316 Update to latest spec 2018-09-24 17:44:48 +02:00
mratsim
f7e876471e initial impl of fork choice rules. Main types sorted out 2018-09-03 18:42:22 +02:00
mratsim
14bb9b6efd Revamp per block processing / state transition 2018-08-21 18:21:45 +02:00
mratsim
0b560f7307 Update helpers get_indices_for_slot and get_block_hash following spec fixes, see https://github.com/ethereum/beacon_chain/pull/62 2018-08-21 14:45:35 +02:00
mratsim
f203859316 Use Ethereum Foundation naming convention (snake_case + MACRO_CASE) 2018-08-17 18:21:10 +02:00
mratsim
f8b2e790e3 sync with latest spec, closes #2 2018-08-16 12:02:59 +02:00
mratsim
d65d714c3b Stub Partial crosslink records checks 2018-07-23 18:36:02 +02:00
mratsim
585072ae15 Add getCutoffs helper (buggy) 2018-07-23 16:22:37 +02:00
mratsim
4c6665832b Add the pseudo renadom shuffle 2018-07-23 14:58:41 +02:00
mratsim
2438aaada8 Update everything to latest spec change from July 21 2018-07-23 12:15:56 +02:00
mratsim
65dbb086d1 Add the types used in the beacon chain 2018-07-20 20:18:56 +02:00