Commit Graph

3052 Commits

Author SHA1 Message Date
Paul Hauner
debc642b50
Move attestation validation into iter.for_each 2018-09-26 23:28:47 +10:00
Paul Hauner
a8b08fb300
Add first block validation benches 2018-09-26 14:06:16 +10:00
Paul Hauner
84bb40855f
Split block validation tests into functions 2018-09-26 13:31:58 +10:00
Paul Hauner
9dcec214af
Add block validation code
This was created in another branch along with a whole bunch of other
commits building out databases and other common elements.

This full history of these works is available on master, however it
should not be necessary.
2018-09-26 13:00:25 +10:00
Paul Hauner
c8ff539686
Merge database works, directory restructuring 2018-09-26 11:58:46 +10:00
Paul Hauner
baa7b06b56
Fix clippy lints 2018-09-26 11:54:13 +10:00
Paul Hauner
966d891cb5
Remove validation fns (will be added in a PR) 2018-09-26 11:40:28 +10:00
Paul Hauner
3188d32423
Fix unused dep warning 2018-09-26 11:38:12 +10:00
Paul Hauner
362b7b2513
Remove some stray print statements 2018-09-25 23:40:01 +10:00
Paul Hauner
eedfa8c8ea
Add more unique errors in validate ssz block 2018-09-25 23:35:10 +10:00
Paul Hauner
310662ee17
Fix shard_block_hash in block val. tests 2018-09-25 23:34:44 +10:00
Paul Hauner
177c04dc1a
Fix bitfield setting in block val. test 2018-09-25 23:34:25 +10:00
Paul Hauner
e1e494b9aa
Fix parent_hashes generation in block val. test 2018-09-25 23:33:20 +10:00
Paul Hauner
55e0e7d05d
Add/fix message hashing in block validation tests 2018-09-25 23:32:35 +10:00
Paul Hauner
6529b4c09f
Fix pub key getting in signature verification 2018-09-25 23:31:58 +10:00
Paul Hauner
9207a44bce
Fix parent_hashes bug in message_generation 2018-09-25 23:31:39 +10:00
Paul Hauner
8d2e9f33c7
Progress further with block validation tests 2018-09-25 22:10:47 +10:00
Paul Hauner
748b50c08c
Fix bit shift function in attestation validation 2018-09-25 22:10:12 +10:00
Paul Hauner
da1e0c8a59
Change bitfield serialization to little-endian 2018-09-25 22:09:30 +10:00
Paul Hauner
dc7d2ff150
Move helpers.rs into common/delegation 2018-09-25 12:32:51 +10:00
Paul Hauner
d9046e4c1b
Fix warnings 2018-09-25 12:32:40 +10:00
Paul Hauner
83d95f1d34
Restructure directories. Add dead_code allows 2018-09-25 12:20:13 +10:00
Paul Hauner
4212d8fc7d
Fix bug introduced in previous commit 2018-09-25 09:31:59 +10:00
Paul Hauner
bb81bacb4e
Add comments to attestation fns, fix bug 2018-09-25 09:29:56 +10:00
Paul Hauner
209076e371
Fix ssz_split bug 2018-09-25 07:17:14 +10:00
Paul Hauner
1677b6dcc8
Progress on block validation 2018-09-24 23:35:51 +10:00
Paul Hauner
2141b8c623
Add attestion ssz splitter, change dir structure 2018-09-24 21:53:42 +10:00
Paul Hauner
c55b94053b
Tidy validation signatures 2018-09-24 18:09:01 +10:00
Paul Hauner
26537c1184
Progress further on attestation validation 2018-09-24 18:08:48 +10:00
Paul Hauner
f9f5a9e49c
Implement error type specific to ValidatorStore 2018-09-24 18:08:00 +10:00
Paul Hauner
029a69a4a5
Add method to bitfield to read specific byte 2018-09-24 18:06:47 +10:00
Paul Hauner
27743f3466
Extend tests for signature verification 2018-09-24 14:30:39 +10:00
Paul Hauner
be09fd4f29
Implement attestation signature validation and test 2018-09-24 14:16:48 +10:00
Paul Hauner
69c97745d2
Set MemoryDB to use constant DB columns
This is instead of needing to be passed them each time open() is called.
2018-09-24 14:15:59 +10:00
Paul Hauner
7f01ec7c27
Extend validator_store 2018-09-24 13:16:39 +10:00
Paul Hauner
2acf141ba3
Tidy up main.rs and attestation_validation.rs 2018-09-24 09:49:26 +10:00
Paul Hauner
67b11a394e
Add new bls-aggregates crates 2018-09-23 20:19:30 +10:00
Paul Hauner
0b661c5b11
Implement ssz::Decodable for u8 2018-09-23 17:22:27 +10:00
Paul Hauner
3968aaa0e0
Derive debug for some error enum 2018-09-22 22:07:39 +10:00
Paul Hauner
75031f5e69
Progress on attestation validation 2018-09-22 22:00:11 +10:00
Paul Hauner
30bf97539c
Create unique errors for att. parent hashes 2018-09-22 21:59:44 +10:00
Paul Hauner
890aaf7335
Add num_bytes() to bitfield 2018-09-22 21:58:54 +10:00
Paul Hauner
c6ab27973a
Merge branch 'master' of github.com:sigp/lighthouse 2018-09-22 20:23:19 +10:00
Paul Hauner
3cac88e0b5
Merge pull request #13 from sigp/ssz-readme
README Updates - Addresses #8
2018-09-22 16:39:26 +10:00
Paul Hauner
78de4e43e2
Add SSZ decoding for AttRec, fix length mistake 2018-09-22 15:54:25 +10:00
Paul Hauner
4d3422d332
Remove warnings, restructure validation files 2018-09-22 15:53:31 +10:00
Paul Hauner
67f2850d37
Fix bug on BooleanBitfield decoding 2018-09-22 15:52:10 +10:00
Paul Hauner
1bbf4a86cb
Merge branch 'master' into validate_block 2018-09-22 14:11:27 +10:00
Paul Hauner
681c1247ad
Add SSZ and fixes for BooleanBitfield
Related to #22
2018-09-22 14:07:14 +10:00
Paul Hauner
c203c3b415
Merge pull request #16 from sigp/ssz-ints
[WIP] Update ssz uint serialization/deserialization
2018-09-22 14:06:18 +10:00