certificates

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(db sql.Executor, lid types.LayerID, cert *types.Certificate) error

func CertifiedBlock added in v1.1.0

func CertifiedBlock(db sql.Executor, lid types.LayerID) (types.BlockID, error)

func DeleteCertBefore added in v1.1.10

func DeleteCertBefore(db sql.Executor, lid types.LayerID) error

func FirstInEpoch

func FirstInEpoch(db sql.Executor, epoch types.EpochID) (types.BlockID, error)

func GetHareOutput

func GetHareOutput(db sql.Executor, lid types.LayerID) (types.BlockID, error)

GetHareOutput returns the block that's valid as hare output for the specified layer. If there are more than one valid blocks, return types.EmptyBlockID.

func SetHareOutput

func SetHareOutput(db sql.Executor, lid types.LayerID, bid types.BlockID) error

func SetHareOutputInvalid

func SetHareOutputInvalid(db sql.Executor, lid types.LayerID, bid types.BlockID) error

func SetInvalid

func SetInvalid(db sql.Executor, lid types.LayerID, bid types.BlockID) error

func SetValid

func SetValid(db sql.Executor, lid types.LayerID, bid types.BlockID) error

Types

type CertValidity

type CertValidity struct {
	Block types.BlockID
	Cert  *types.Certificate
	Valid bool
}

func Get

func Get(db sql.Executor, lid types.LayerID) ([]CertValidity, error)

Jump to

Keyboard shortcuts

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