//
pkg.gl
Category
github.com/D-PlatformOperatingSystem/dpos
common
vrf
secp256k1
package
0.0.0-20210712090754-55a2f5289189
Repository:
https://github.com/d-platformoperatingsystem/dpos.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
13
Dependents
0
Files
271 SLOC
#
Functions
GenerateKey
GenerateKey generates a fresh keypair for this VRF.
H1
H1 hashes m to a curve point.
H2
H2 hashes to an integer [1,N-1].
Unmarshal
Unmarshal a compressed point in the form specified in section 4.3.6 of ANSI X9.62.
#
Variables
ErrInvalidVRF
ErrInvalidVRF err.
#
Structs
PrivateKey
PrivateKey holds a private VRF key.
PublicKey
PublicKey holds a public VRF key.