Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPreSeedData ¶
func MakeVRFProofMarshalResponse ¶
func MakeVRFProofMarshalResponse(privateKeyHex string, preSeed vrfProof.PreSeedData) (string, error)
Types ¶
type VRFProof ¶
type VRFProof struct { Pk [2]*big.Int `json:"PublicKey"` Gamma [2]*big.Int `json:"Gamma"` C *big.Int `json:"C"` S *big.Int `json:"S"` Seed *big.Int `json:"Seed"` UWitness common.Address `json:"UWitness"` CGammaWitness [2]*big.Int `json:"CGammaWitness"` SHashWitness [2]*big.Int `json:"SHashWitness"` ZInv *big.Int `json:"ZInv"` }
type VRFRequestCommitment ¶
type VRFResponse ¶
type VRFResponse struct { Proof VRFProof `json:"VRFProof"` Commitment VRFRequestCommitment `json:"VRFRequestCommitment"` }
func GenerateVRFProofResponse ¶
func GenerateVRFProofResponse(privateKeyHex string, preSeed vrfProof.PreSeedData) (*VRFResponse, error)
func (*VRFResponse) GenerateProofResponseFromProof ¶
func (v *VRFResponse) GenerateProofResponseFromProof(p vrfProof.Proof, s vrfProof.PreSeedData) error
Click to show internal directories.
Click to hide internal directories.