Versions in this module Expand all Collapse all v1 v1.10.17 Oct 18, 2021 Changes in this version + func FinalSeedV2(s PreSeedDataV2) (finalSeed *big.Int) + func GenerateProofResponseFromProofV2(p vrfkey.Proof, s PreSeedDataV2) (vrf_coordinator_v2.VRFProof, ...) + func GenerateProofResponseV2(keystore keystore.VRF, id string, s PreSeedDataV2) (vrf_coordinator_v2.VRFProof, ...) + type PreSeedDataV2 struct + BlockHash common.Hash + BlockNum uint64 + CallbackGasLimit uint32 + NumWords uint32 + PreSeed Seed + Sender common.Address + SubId uint64 v1.10.16 Oct 18, 2021 Changes in this version + const OnChainResponseLength + const ProofLength + func FinalSeed(s PreSeedData) (finalSeed *big.Int) + func UnmarshalSolidityProof(proof []byte) (rv vrfkey.Proof, err error) + type MarshaledOnChainResponse [OnChainResponseLength]byte + func GenerateProofResponse(keystore *keystore.VRF, key secp256k1.PublicKey, s PreSeedData) (MarshaledOnChainResponse, error) + func GenerateProofResponseFromProof(proof vrfkey.Proof, s PreSeedData) (MarshaledOnChainResponse, error) + type MarshaledProof [ProofLength]byte + func MarshalForSolidityVerifier(p *vrfkey.Proof) (MarshaledProof, error) + func (m MarshaledProof) String() string + type PreSeedData struct + BlockHash common.Hash + BlockNum uint64 + PreSeed Seed + func TestXXXSeedData(t *testing.T, preSeed *big.Int, blockHash common.Hash, blockNum int) PreSeedData + type ProofResponse struct + BlockNum uint64 + P vrfkey.Proof + PreSeed Seed + func UnmarshalProofResponse(m MarshaledOnChainResponse) (*ProofResponse, error) + func (p *ProofResponse) MarshalForVRFCoordinator() (response MarshaledOnChainResponse, err error) + func (p ProofResponse) CryptoProof(s PreSeedData) (vrfkey.Proof, error) + type Seed [32]byte + func BigToSeed(x *big.Int) (Seed, error) + func BytesToSeed(b []byte) (*Seed, error) + func (s *Seed) Big() *big.Int + type SolidityProof struct + CGammaWitness kyber.Point + P *vrfkey.Proof + SHashWitness kyber.Point + UWitness common.Address + ZInv *big.Int + func SolidityPrecalculations(p *vrfkey.Proof) (*SolidityProof, error) + func (p *SolidityProof) MarshalForSolidityVerifier() (proof MarshaledProof) + func (p *SolidityProof) String() string