Documentation ¶
Index ¶
- Constants
- Variables
- func ECP2OS(Bx, By *big.Int) []byte
- func ECVRF_decode_proof(pi []byte) (x *big.Int, y *big.Int, c *big.Int, s *big.Int, err error)
- func ECVRF_hash_points(ps ...[]byte) *big.Int
- func ECVRF_hash_to_curve(m []byte, pk []byte) (x, y *big.Int)
- func G() (x, y *big.Int)
- func I2OSP(b *big.Int, n int) []byte
- func OS2ECP(os []byte) (Bx, By *big.Int)
- func OS2IP(os []byte) *big.Int
- func ProofToHash(pi []byte) []byte
- func Prove(key *ecdsa.PrivateKey, data []byte) ([]byte, error)
- func Verify(key *ecdsa.PublicKey, pi []byte, data []byte) (bool, error)
Constants ¶
View Source
const ( N2 = 32 // ceil(log2(q) / 8) N = N2 / 2 )
Variables ¶
View Source
var ( ErrMalformedInput = errors.New("ECVRF: malformed input") ErrDecodeError = errors.New("ECVRF: decode error") ErrInternalError = errors.New("ECVRF: internal error") )
View Source
var (
NotSupportKey = errors.New("Unsupported key type")
)
Functions ¶
func ECVRF_decode_proof ¶
func ECVRF_hash_points ¶
func ProofToHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.