The slasher's purpose is to find malicious validators in the Ethereum 2.0 network and report slashable offenses to the beacon-node.
The slasher is its own entity but requires a beacon-node to receive attestations. To find malicious activity by validators, the slashers iterates through all received attestations until a slashable offense is found. Found slashings are broadcasted to the network and the next block proposer adds the proof to the block. The block proposer get the reward for slashing - not the whistleblower(=Slasher).
Drag and drop the prysm.sh file into the Terminal window and add:
The slasher now iterates through all attestations and sends proof to the detection service.
Debug mode enabled with
For selfish slashing, add
--disable-broadcast-slashings to the beaconnode.