prysm-pulse/slasher
shayzluf 0df12261a1
slasher retrieve and cache validator public key (#5220)
* cache and retrieval of validator public keys

* fix comments

* fix comment

* fix variables

* gaz

* ivan feedback fixes

* goimports

* fix test

* comments on in line slice update

Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2020-04-02 06:08:23 +03:00
..
beaconclient slasher retrieve and cache validator public key (#5220) 2020-04-02 06:08:23 +03:00
cache slasher retrieve and cache validator public key (#5220) 2020-04-02 06:08:23 +03:00
db HashProto: Use fastssz when available (#5218) 2020-03-28 18:32:11 +00:00
detection HashProto: Use fastssz when available (#5218) 2020-03-28 18:32:11 +00:00
flags Fix E2E test sharding (#5248) 2020-03-30 12:10:00 -04:00
node slasher retrieve and cache validator public key (#5220) 2020-04-02 06:08:23 +03:00
rpc HashProto: Use fastssz when available (#5218) 2020-03-28 18:32:11 +00:00
BUILD.bazel Allow setting flags via yaml config file. (#4878) 2020-03-19 14:46:44 -07:00
main.go New byteutils for state gen (#5163) 2020-03-22 23:19:38 +00:00
README.md Update README for Slasher (#5106) 2020-03-15 18:46:21 +00:00
usage_test.go Allow setting flags via yaml config file. (#4878) 2020-03-19 14:46:44 -07:00
usage.go Allow setting flags via yaml config file. (#4878) 2020-03-19 14:46:44 -07:00

Hash Slinging Slasher Server Implementation

This is the main project folder for a slasher server implementation for Ethereum Serenity in Golang by Prysmatic Labs. A slasher listens for all broadcasted messages using a running beacon node in order to detect slashable attestations and block proposals. It uses the min-max-surround method by Protolambda.

The slasher requires a connection to a synced beacon node in order to listen for attestations and block proposals. To run the slasher, type:

bazel run //slasher -- \
    --datadir PATH/FOR/DB \
    --span-map-cache \
    --beacon-rpc-provider localhost:4000

The beacon node entered in beacon-rpc-provider will then receive slashings from the slasher client and send them to any requesting proposer to be put into a block.