Commit Graph

38 Commits

Author SHA1 Message Date
Paul Hauner
7cbee46227 Add FakeSignature and FakeAggregateSignature
They replace Signature and FakeAggregateSignature when compling with
debug. Compiling with release uses the real structs.
2019-03-22 10:08:40 +11:00
Paul Hauner
236b97476a Marge fixes to test_harness, add serdehex crate 2019-03-15 13:31:30 +11:00
Paul Hauner
65e3b388a0 Update signature-scheme to v0.6.1 2019-03-14 18:17:32 +11:00
Paul Hauner
123650efbb Merge pull request #290 from mjkeating/tree_hash_spec_update
Updated TreeHash logic as per revised spec
2019-03-13 14:04:42 +13:00
Paul Hauner
9057b436f3 Run rustfmt 2019-03-12 17:19:35 +11:00
Paul Hauner
1b252c3f82 Implement new uncompressed bytes for PublicKey 2019-03-12 17:15:45 +11:00
Kirk Baird
c92f867cd8 Upgrade to signature scheme 0.6.0 2019-03-12 16:01:09 +11:00
Paul Hauner
f34ae86cde Add support for loading keypairs from file 2019-03-12 12:46:44 +11:00
Paul Hauner
e81f1c31c9 Fix proof-of-possession issues.
These were introduced in an earlier commit
2019-03-11 19:47:33 +11:00
Paul Hauner
85e7dd8b5a Merge branch 'timing-report' of github.com:sigp/lighthouse into timing-report 2019-03-11 19:03:22 +11:00
Paul Hauner
7e79a2b3d3 Improve PublicKey Hash impl efficiency
Instead of SSZ-encoding, we just use the AMCL tobytes method.
2019-03-11 19:01:44 +11:00
Kirk Baird
25b08f0096 Run cargo fmt 2019-03-11 15:22:15 +11:00
Kirk Baird
191759dad0 Modify create_proof_of_possession, and verifying proof_of_possession in process_deposits 2019-03-11 15:18:45 +11:00
Kirk Baird
df52669888 Add changes of create_proof_of_possession to pull 2019-03-11 11:55:09 +11:00
mjkeating
d4f3bab68d Updated TreeHash logic as per revised spec 2019-03-08 15:24:07 -08:00
Paul Hauner
5c1458ba46 Add bls serde_vistors file 2019-03-08 13:19:37 +11:00
Paul Hauner
3b6431b4b4 Impl serde ser and deser for bls keypairs 2019-03-08 13:15:41 +11:00
Paul Hauner
15e4aabd8a Add deposit processing, fix clippy lints 2019-03-07 16:15:38 +11:00
Paul Hauner
ede5685bc2 Fix warnings and clippy lints 2019-03-03 11:47:09 +11:00
Paul Hauner
35ae1b6745 Add agg_pub to bls, add agg_sig.verify_multiple
- Adds a new-type wrapper for `AggregatePublicKey`, just like all the
other types.
- Adds the `verify_multiple` method to the `AggregateSignature` newtype,
as was introduced in a recent version of signature-schemes.
2019-03-03 11:10:38 +11:00
Kirk Baird
f72b45147a Merge conflicts from master 2019-02-25 10:36:54 +11:00
Kirk Baird
673c8ea388 Merge current master 2019-02-20 13:59:11 +11:00
Kirk Baird
21d75f1853 Use verify_proof_of_possession 2019-02-18 12:06:47 +11:00
Kirk Baird
9c4a1f1d1f Update to signature-scheme 0.5.2 2019-02-18 10:50:40 +11:00
mjkeating
6fa141181b Updated TreeHash to spec - added padding 2019-02-17 09:30:18 -08:00
Kirk Baird
977f3edfb6 Add domain to all signature funcitons, modify validate_proof_of_possession() 2019-02-15 13:58:14 +11:00
Paul Hauner
35c914baa6 Revert "Merge pull request #200 from sigp/new-structure"
This reverts commit d7a3545be1, reversing
changes made to 1da06c156c.
2019-02-14 12:09:18 +11:00
Paul Hauner
1d5ff4359a Strip out old code
All of these files have been moved to either:

- https://github.com/sigp/lighthouse-beacon
- https://github.com/sigp/lighthouse-validator
- https://github.com/sigp/lighthouse-common

For rationale, see: https://github.com/sigp/lighthouse/issues/197
2019-02-13 14:15:53 +11:00
Paul Hauner
0120082f6b Merge branch 'master' into add-chain-benchmarks 2019-02-05 05:49:45 +11:00
Grant Wuerker
0cbc2936ea added version to signature-schemes dependency
using tag instead of branch

changed signature-schemes tag to 0.3.0
2019-01-27 21:12:00 -06:00
Paul Hauner
fd47f6c433 Move attestation validator to BeaconState fn 2019-01-27 17:54:26 +11:00
Paul Hauner
90ae2298ab Impl serde::Serialize for all types 2019-01-26 08:25:31 +11:00
Paul Hauner
f9acc42aca Rename canonical_hash to `hash 2019-01-25 17:40:22 +11:00
Paul Hauner
6b4c0fe1a3 Merge branch 'master' into lmd-ghost 2019-01-25 17:23:14 +11:00
Paul Hauner
5ef02688d5 Remove pre-2018 extern crate uses 2019-01-25 16:46:16 +11:00
Paul Hauner
ea523c8658 Merge spec crate into types 2019-01-25 13:52:21 +11:00
Kirk Baird
9c9b07c182 Add TreeHash trait to all types and structs 2019-01-25 12:22:56 +11:00
Paul Hauner
e16f9e0aec Rename beacon_chain/ -> eth2/ 2019-01-22 16:16:02 +11:00