integrationsupport

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Height of massifs used in logverification tests
	TestMassifHeight = uint8(14)
)

Variables

This section is empty.

Functions

func GenerateMassifSeal

func GenerateMassifSeal(t *testing.T, testContext mmrtesting.TestContext, lastEvent *assets.EventResponse, signingKey ecdsa.PrivateKey)

GenerateMassifSeal is a test helper that generates a massif seal for testing purposes, using the test context.

Types

type LeafHasher

type LeafHasher struct {
	simplehash.HasherV3
}

func NewLeafHasher

func NewLeafHasher() LeafHasher

type LeafType

type LeafType uint8

LeafType provides domain separation for the different kinds of tree leaves we require.

const (
	// LeafTypePlain is used for committing to plain values.
	LeafTypePlain LeafType = iota
	// LeafTypePeriodSentinel is entered into the MMR once per period. By
	// forcing a heartbeat entry, we guarantee a liveness indicator - their will
	// be a definable lower bound on how often the MMR root changes
	LeafTypePeriodSentinel
	// LeafTypeEpochTombstone is always the last leave in an epoch MMR. This is
	// used to provide crash fault tolerance on the epoch as whole
	LeafTypeEpochTombStone
)

Jump to

Keyboard shortcuts

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