Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DoubleSignWebHooks ¶ added in v1.3.1
type DoubleSignWebHooks struct {
WebHooks struct {
OnNoticeDoubleSign string `yaml:"notice-double-sign"`
OnThisNodeDoubleSigned string `yaml:"this-node-double-signed"`
} `yaml:"web-hooks"`
}
DoubleSignWebHooks ..
func NewDoubleSignWebHooksFromPath ¶ added in v1.3.1
func NewDoubleSignWebHooksFromPath(yamlPath string) (*DoubleSignWebHooks, error)
NewDoubleSignWebHooksFromPath ..
type Record ¶
type Record struct {
Offender shard.BlsPublicKey
Signed struct {
Header *block.Header
Signature *bls.Sign
} `json:"signed"`
DoubleSigned struct {
Header *block.Header
Signature *bls.Sign
} `json:"double-signed"`
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
Click to show internal directories.
Click to hide internal directories.