Commit Graph

3037 Commits

Author SHA1 Message Date
Paul Hauner
f0b432d81c
Add ValidatorStore 2018-09-21 18:52:03 +10:00
Paul Hauner
8cbd4f47a0
Move BlockStore test across to MemoryDB 2018-09-21 15:02:28 +10:00
Paul Hauner
e6a693b89c
Add exists() function for MemoryDB 2018-09-21 15:02:00 +10:00
Paul Hauner
76f7922929
Merge branch 'master' into validate_block 2018-09-21 14:39:02 +10:00
Paul Hauner
4b527227c9
Merge pull request #21 from sigp/memory-db
Memory db
2018-09-21 14:38:25 +10:00
Paul Hauner
f80d5ff0bd
Remove create_col from ClientDB trait 2018-09-21 14:12:53 +10:00
Paul Hauner
5b177a80b9
Add comments, fix warning in MemoryDB 2018-09-21 14:08:07 +10:00
Paul Hauner
66dc073c9b
Add basic memorydb implementation 2018-09-21 14:01:48 +10:00
NatoliChris
b0cce139e0
Rewrite first paragraph, fix remaining example block syntax 2018-09-21 13:14:34 +10:00
NatoliChris
2add249f8f
Address comments from #13 in ssz README 2018-09-21 13:05:26 +10:00
Paul Hauner
51c842c236
Begin basics of block validation 2018-09-21 11:14:28 +10:00
Paul Hauner
d4e6f12ded
Add basic PoW chain db store 2018-09-21 11:13:07 +10:00
Paul Hauner
1065554216
Add BlockStore basics 2018-09-20 17:36:49 +10:00
Paul Hauner
f6330ce967
Add ClientDB exists() method 2018-09-20 17:36:23 +10:00
Paul Hauner
f64b8e30a1
Update SszBlock doc comments 2018-09-20 15:24:51 +10:00
NatoliChris
25e89063b7 Merge branch 'master' into ssz-readme 2018-09-20 15:24:28 +10:00
Paul Hauner
43394c074c
Remove some dangling deps causing warnings 2018-09-20 15:17:34 +10:00
Paul Hauner
0866d47cc1
Merge pull request #19 from terenc3t/patch-2
Fixed one more ssz.py broken link
2018-09-20 14:48:47 +10:00
Paul Hauner
809edba150
Merge branch 'master' into block_processing 2018-09-20 14:32:36 +10:00
Paul Hauner
cc2e210364
Move from tomaka/libp2p-rs to sigp/libp2p-rs
tomaka removed the zksummit branch that we were (lazily) relying upon.
2018-09-20 14:09:03 +10:00
Paul Hauner
a4e61541aa
Add SszBlock test to check the canonical hash 2018-09-20 13:56:44 +10:00
Paul Hauner
2beeef8153
Add doc comments to SszBlock 2018-09-20 13:52:45 +10:00
Paul Hauner
55ce4998d8
Fix SszBlock bug relating to excess ssz
If you gave SszBlock too many bytes it would hash them too.
2018-09-20 13:51:58 +10:00
Paul Hauner
7020a08b7d
Finish SszBlock, add tests 2018-09-20 13:13:07 +10:00
terence tsao
7217c6d62f
fixed one more broken link 2018-09-19 10:09:10 -07:00
NatoliChris
8e2c1a9f18
Update ToC on README 2018-09-20 00:34:05 +10:00
NatoliChris
7b4f72439e
Update README with deserialize 2018-09-20 00:22:29 +10:00
Paul Hauner
a1b826906a
Fix SszBlock tests 2018-09-19 17:54:14 +10:00
Paul Hauner
24312f445e
Merge branch 'ssz-ints' into block_processing 2018-09-19 17:50:20 +10:00
Paul Hauner
e88686e4f4
Remove Result from list encoding, panic instead 2018-09-19 17:48:52 +10:00
Paul Hauner
148fdf2ae9
Merge branch 'ssz-ints' into block_processing 2018-09-19 17:44:46 +10:00
Paul Hauner
53692caeb3
Roughly implement ssz list encoding 2018-09-19 17:44:12 +10:00
Paul Hauner
1dd1714444
Half update some ssz indexes for ssz_block 2018-09-19 17:15:54 +10:00
Paul Hauner
ca951d0361
Move ssz block min length into block.rs, add tests 2018-09-19 16:57:21 +10:00
Paul Hauner
d0d336c341
Update AttestationRecord fields 2018-09-19 16:55:18 +10:00
Paul Hauner
928bafb3da
Ensure an empty bitfield serializes to 1 byte 2018-09-19 16:46:33 +10:00
Age
048f8b6f01
slight corrections to attestation validation 2018-09-19 16:29:29 +10:00
Age
7e1819f693
add helpers - implement get_block_hash 2018-09-19 16:27:19 +10:00
Age
27581c0ff4
Implement generalised error ParameterError 2018-09-19 16:25:39 +10:00
Paul Hauner
61fddb2660
Implement basics for ssz_block 2018-09-19 16:15:05 +10:00
Paul Hauner
3dea40abe0
Add temporary (incomplete) aggsig serialization
It just sets them to 64 zeros. This needs to be fixed.
2018-09-19 16:14:31 +10:00
Paul Hauner
4d9b53478f
Add SszBlock comment 2018-09-19 15:24:06 +10:00
Paul Hauner
fe2127ea31 Update SszBlock to use new SSZ API 2018-09-19 14:52:36 +10:00
Paul Hauner
a8a49a4e2f Merge branch 'ssz-ints' into block_processing 2018-09-19 14:49:40 +10:00
Paul Hauner
1f74200129 Change visibility so you can export decode_length 2018-09-19 14:48:42 +10:00
Paul Hauner
718b9ed7de Move to blake2b, start adding validate_block fn 2018-09-19 14:46:58 +10:00
Paul Hauner
6c8c4d9b1e Move state/block.rs into own mod, add SszBlock 2018-09-19 14:45:55 +10:00
Paul Hauner
693d635f8c Add canonical hash function 2018-09-19 14:45:03 +10:00
Paul Hauner
7adc2ddd63 Merge remote-tracking branch 'origin/ssz-ints' into block_processing 2018-09-19 14:43:03 +10:00
Paul Hauner
fa6c750c24
Merge pull request #17 from terenc3t/patch-1
Fixed SSZ link for Markdown
2018-09-19 14:20:22 +10:00