Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkOracle = oracle.WorkOracle FastOracle = oracle.FastOracle UInt64LE = shared.UInt64LE )
Functions ¶
func Verify ¶
func Verify(p *shared.Proof, m *shared.ProofMetadata) error
Verify ensures the validity of a proof in respect to its metadata. It returns nil if the proof is valid or an error describing the failure, otherwise.
func VerifyPow ¶ added in v0.2.2
func VerifyPow(m *shared.PostMetadata) error
VerifyPow ensures the validity of a nonce for a given node. AtxId is the id of the ATX that was selected by the node for its commitment.
Types ¶
Click to show internal directories.
Click to hide internal directories.