Commit Graph

2294 Commits

Author SHA1 Message Date
Paul Hauner
3c4c9b9ff6 Fix mistaken mut on boolean_bitfield 2018-07-12 18:53:11 +10:00
Paul Hauner
f48fb29b03 Add num_true_bits to bitfield 2018-07-12 18:19:20 +10:00
Paul Hauner
eb2ac990d7 Update bool_bitfield tests 2018-07-12 17:50:02 +10:00
Paul Hauner
acb5a17748 Move deposit process into file & add tests 2018-07-12 17:49:42 +10:00
Paul Hauner
b3bd3fa992 Updat readme 2018-07-12 16:44:21 +10:00
Paul Hauner
b1679af191 Create new "transition" mod, add untested fn
Untested fn is process_ffg_deposits. Will add tests now.
2018-07-12 16:41:44 +10:00
Paul Hauner
0448fd5ace Downgrade rand to suit bls repo 2018-07-12 15:37:36 +10:00
Paul Hauner
d1ce859f65 Removed parity submod, use parity-common for RLP 2018-07-12 15:10:02 +10:00
Paul Hauner
ae15382911 Add travis.yml 2018-07-12 15:04:02 +10:00
Paul Hauner
6ad9eaee06 Add travis logo to readme 2018-07-12 15:01:28 +10:00
Paul Hauner
5e362567e6 Add BooleanBitfield struct 2018-07-12 14:59:50 +10:00
Paul Hauner
4c7b2eec2c Implement get_attesters_and_proposer 2018-07-12 10:54:43 +10:00
Paul Hauner
10b2d7407e Remove sample_size from val shuffling 2018-07-12 10:46:40 +10:00
Paul Hauner
707f116344 Add keypair gen fn for testing 2018-07-11 18:17:04 +10:00
Paul Hauner
ff3795dbf0 Update shuffling function 2018-07-11 18:16:16 +10:00
Paul Hauner
911eda7a2a Add zero method to active_state 2018-07-11 18:14:40 +10:00
Paul Hauner
0d7ea19a55 Add comment for get_crosslink... fn 2018-07-11 14:17:44 +10:00
Paul Hauner
be441a9df9 Add get_crosslink_aggvote_msg fn 2018-07-11 14:16:31 +10:00
Paul Hauner
29cfc4dce9 Change get_shuffling to borrow 2018-07-11 14:16:09 +10:00
Paul Hauner
5bcb62f6c4 Add zero() methods for cry_state and agg_vote 2018-07-11 14:14:22 +10:00
Paul Hauner
6e0eec6543 Add extra shuffling test 2018-07-11 12:26:39 +10:00
Paul Hauner
e73290dd56 Add shuffling fn for state_transition 2018-07-10 19:08:36 +10:00
Paul Hauner
517beb9611 Comment out some tests (being lazy) 2018-07-10 19:08:10 +10:00
Paul Hauner
0f0212bd1d Change state_hash to be a struct 2018-07-10 19:07:41 +10:00
Paul Hauner
242318f7c2 Update state_hash to be concat of 2 hashes 2018-07-09 17:13:04 +10:00
Paul Hauner
ca5e063806 Update README 2018-07-09 16:54:20 +10:00
Paul Hauner
dcb8fff9f2 Improve RLP encoding of Block 2018-07-09 16:52:55 +10:00
Paul Hauner
54df5c71f5 Improve RLP encoding of Block 2018-07-09 16:51:50 +10:00
Paul Hauner
fd351d7145 Add RLP encoding to CrystallizedState 2018-07-09 16:25:45 +10:00
Paul Hauner
02fd250ddc Add RLP encoding for CrosslinkRecord 2018-07-09 16:18:56 +10:00
Paul Hauner
f4a1f5bd34 Add RLP encoding for AggregateVote 2018-07-09 16:11:56 +10:00
Paul Hauner
b96453d45e Update readme 2018-07-09 15:46:05 +10:00
Paul Hauner
139d985bf3 Add RLP serialization to validator_record 2018-07-09 15:44:47 +10:00
Paul Hauner
746336cf9e Add RLP serialization for active_state 2018-07-09 15:17:34 +10:00
Paul Hauner
0db5353854 Add partial rlp encoding to active_state 2018-07-09 14:01:05 +10:00
Paul Hauner
c9c6ada333 Remove println 2018-07-09 14:00:54 +10:00
Paul Hauner
2ada9dd304 Add CrystallizedState 2018-07-09 12:11:06 +10:00
Paul Hauner
455aa3782a Add RLP encoding to part. xlink rec. 2018-07-09 12:10:33 +10:00
Paul Hauner
909d624730 Add RLP encoding to RecentProposerRecord 2018-07-09 12:02:00 +10:00
Paul Hauner
64a9455f87 Add blake2s hash type 2018-07-09 12:00:58 +10:00
Paul Hauner
702609af71 Update README 2018-07-06 17:59:34 +10:00
Paul Hauner
976812f4a3 Update readme 2018-07-06 17:58:22 +10:00
Paul Hauner
bcc3aacb24 Update readme 2018-07-06 17:55:44 +10:00
Paul Hauner
7db81b167f Initial commit 2018-07-06 17:54:07 +10:00