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 ¶
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.
Click to show internal directories.
Click to hide internal directories.