slashings

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 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

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