slash

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DidAnyoneDoubleSign

func DidAnyoneDoubleSign(d quorum.Decider) bool

DidAnyoneDoubleSign ..

Types

type Record

type Record struct {
	BlockHash   common.Hash
	BlockNumber *big.Int
	Signature   [96]byte // (aggregated) signature
	Bitmap      []byte   // corresponding bitmap mask for agg signature
	ShardID     uint32
	Epoch       *big.Int
	Beneficiary common.Address // the reporter who will get rewarded
}

Record is an proof of a slashing made by a witness of a double-signing event

type Slasher

type Slasher interface {
	ShouldSlash(shard.BlsPublicKey) bool
}

Slasher ..

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL