Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UndefVerifiableSeed = VerifiableSeed{}
Functions ¶
func Verify ¶ added in v0.13.0
func Verify(seed VerifiableSeed, publicKey crypto.PublicKey, proof Proof, max uint64) (index uint64, result bool)
Verify ensures the proof is valid.
func VerifyProof ¶
Types ¶
type Proof ¶
type Proof [48]byte
func EvaluateSortition ¶
func ProofFromBytes ¶
func ProofFromString ¶
type VerifiableSeed ¶
type VerifiableSeed [48]byte
func VerifiableSeedFromBytes ¶
func VerifiableSeedFromBytes(data []byte) (VerifiableSeed, error)
func VerifiableSeedFromString ¶
func VerifiableSeedFromString(text string) (VerifiableSeed, error)
func (*VerifiableSeed) GenerateNext ¶ added in v0.10.0
func (s *VerifiableSeed) GenerateNext(signer crypto.Signer) VerifiableSeed
func (*VerifiableSeed) Verify ¶
func (s *VerifiableSeed) Verify(public crypto.PublicKey, prevSeed VerifiableSeed) bool
Click to show internal directories.
Click to hide internal directories.