slashutil

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSurround

func IsSurround(a, b *ethpb.IndexedAttestation) bool

IsSurround checks if an attestation, a, is surrounding another one, b, based on the Ethereum slashing conditions specified by @protolambda https://github.com/protolambda/eth2-surround#definition.

s: source
t: target

a surrounds b if: s_a < s_b and t_b < t_a

func SigningRootsDiffer added in v1.2.0

func SigningRootsDiffer(existingSigningRoot, incomingSigningRoot [32]byte) bool

SigningRootsDiffer verifies that an incoming vs. existing attestation has a different signing root. If the existing signing root is empty, then we consider an attestation as different always.

Types

This section is empty.

Jump to

Keyboard shortcuts

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