Documentation ¶
Index ¶
- func AddChallenge(db sql.Executor, nodeID types.NodeID, ch *types.NIPostChallenge) error
- func AddNIPost(db sql.Executor, nodeID types.NodeID, nipost *NIPostState) error
- func AddPoetRegistration(db sql.Executor, nodeID types.NodeID, registration PoETRegistration) error
- func AddPost(db sql.Executor, nodeID types.NodeID, post Post) error
- func Challenge(db sql.Executor, nodeID types.NodeID) (*types.NIPostChallenge, error)
- func ClearPoetRegistrations(db sql.Executor, nodeID types.NodeID) error
- func PoetProofRef(db sql.Executor, nodeID types.NodeID) (types.PoetProofRef, *types.MerkleProof, error)
- func PoetRegistrationCount(db sql.Executor, nodeID types.NodeID) (int, error)
- func RemoveChallenge(db sql.Executor, nodeID types.NodeID) error
- func RemoveNIPost(db sql.Executor, nodeID types.NodeID) error
- func RemovePost(db sql.Executor, nodeID types.NodeID) error
- func UpdateChallenge(db sql.Executor, nodeID types.NodeID, ch *types.NIPostChallenge) error
- func UpdatePoetProofRef(db sql.Executor, nodeID types.NodeID, ref types.PoetProofRef, ...) error
- type NIPostState
- type PoETRegistration
- type Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChallenge ¶
func AddPoetRegistration ¶ added in v1.4.0
func ClearPoetRegistrations ¶ added in v1.4.0
func PoetProofRef ¶ added in v1.4.0
func PoetProofRef(db sql.Executor, nodeID types.NodeID) (types.PoetProofRef, *types.MerkleProof, error)
func PoetRegistrationCount ¶ added in v1.4.0
func UpdateChallenge ¶
func UpdatePoetProofRef ¶ added in v1.4.0
func UpdatePoetProofRef( db sql.Executor, nodeID types.NodeID, ref types.PoetProofRef, membership *types.MerkleProof, ) error
Types ¶
type NIPostState ¶ added in v1.4.0
type NIPostState struct { *types.NIPost NumUnits uint32 VRFNonce types.VRFPostIndex }
type PoETRegistration ¶ added in v1.4.0
type PoETRegistration struct { ChallengeHash types.Hash32 Address string RoundID string RoundEnd time.Time }
func PoetRegistrations ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.