kvstore

package
v0.2.23-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommitmentATXForNode

func AddCommitmentATXForNode(db sql.Executor, atx types.ATXID, nodeId types.NodeID) error

AddCommitmentATXForNode adds the id for the commitment atx to the key-value store.

func AddNIPostBuilderState

func AddNIPostBuilderState(db sql.Executor, state *types.NIPostBuilderState) error

AddNIPostBuilderState adds the data for nipost builder state to the key-value store.

func AddNIPostChallenge

func AddNIPostChallenge(db sql.Executor, ch *types.NIPostChallenge) error

AddNIPostChallenge adds the data for nipost to the key-value store.

func ClearNIPostBuilderState

func ClearNIPostBuilderState(db sql.Executor) error

ClearNIPostBuilderState clears the data for nipost builder state from the key-value store.

func ClearNIPostChallenge

func ClearNIPostChallenge(db sql.Executor) error

ClearNIPostChallenge clears the data for nipost from the key-value store.

func GetCommitmentATXForNode

func GetCommitmentATXForNode(db sql.Executor, nodeId types.NodeID) (types.ATXID, error)

GetCommitmentATXForNode returns the id for the commitment atx from the key-value store.

func GetNIPostBuilderState

func GetNIPostBuilderState(db sql.Executor) (*types.NIPostBuilderState, error)

GetNIPostBuilderState returns the data for nipost builder state from the key-value store.

func GetNIPostChallenge

func GetNIPostChallenge(db sql.Executor) (*types.NIPostChallenge, error)

GetNIPostChallenge returns the data for nipost from the key-value store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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