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