Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UndefVerifiableSeed = VerifiableSeed{}
Functions ¶
func VerifyProof ¶
Types ¶
type Proof ¶
type Proof [48]byte
func EvaluateSortition ¶
func GenerateRandomProof ¶
func GenerateRandomProof() Proof
func ProofFromBytes ¶
func ProofFromString ¶
type VerifiableSeed ¶
type VerifiableSeed [48]byte
func GenerateRandomSeed ¶
func GenerateRandomSeed() VerifiableSeed
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.