lighthouse/crypto/bls/src
Michael Sproul 5828ff1204 Implement slasher (#1567)
This is an implementation of a slasher that lives inside the BN and can be enabled via `lighthouse bn --slasher`.

Features included in this PR:

- [x] Detection of attester slashing conditions (double votes, surrounds existing, surrounded by existing)
- [x] Integration into Lighthouse's attestation verification flow
- [x] Detection of proposer slashing conditions
- [x] Extraction of attestations from blocks as they are verified
- [x] Compression of chunks
- [x] Configurable history length
- [x] Pruning of old attestations and blocks
- [x] More tests

Future work:

* Focus on a slice of history separate from the most recent N epochs (e.g. epochs `current - K` to `current - M`)
* Run out-of-process
* Ingest attestations from the chain without a resync

Design notes are here https://hackmd.io/@sproul/HJSEklmPL
2020-11-23 03:43:22 +00:00
..
impls Update to spec v1.0.0-rc.0 and BLSv4 (#1765) 2020-10-28 22:19:38 +00:00
generic_aggregate_public_key.rs Update to spec v1.0.0-rc.0 and BLSv4 (#1765) 2020-10-28 22:19:38 +00:00
generic_aggregate_signature.rs Update to spec v1.0.0-rc.0 and BLSv4 (#1765) 2020-10-28 22:19:38 +00:00
generic_keypair.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
generic_public_key_bytes.rs Update to spec v1.0.0-rc.0 and BLSv4 (#1765) 2020-10-28 22:19:38 +00:00
generic_public_key.rs Update to spec v1.0.0-rc.0 and BLSv4 (#1765) 2020-10-28 22:19:38 +00:00
generic_secret_key.rs Update to spec v1.0.0-rc.0 and BLSv4 (#1765) 2020-10-28 22:19:38 +00:00
generic_signature_bytes.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
generic_signature_set.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
generic_signature.rs Implement slasher (#1567) 2020-11-23 03:43:22 +00:00
get_withdrawal_credentials.rs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
lib.rs Update to spec v1.0.0-rc.0 and BLSv4 (#1765) 2020-10-28 22:19:38 +00:00
macros.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
zeroize_hash.rs Implement key cache to reduce keystore loading times for validator_client (#1695) 2020-10-05 10:50:43 +00:00