github.com/zhiqiangxu/util@v0.0.0-20230112053021-0a7aee056cd5/crypto/vrf/vrf.go (about)

     1  package vrf
     2  
     3  // Signer for vrf
     4  type Signer interface {
     5  	Hash(alpha []byte) (beta [32]byte, proof []byte, err error)
     6  	Public() Verifier
     7  }
     8  
     9  // Verifier for vrf
    10  type Verifier interface {
    11  	Verify(alpha, proof []byte, beta [32]byte) (valid bool, err error)
    12  }