package
0.0.0-20230712192225-9c382e0409f5
Repository: https://github.com/klayoracle/go-ecvrf.git
Documentation: pkg.go.dev
# README
Testing
Step 1
Install and start ganache cli.
npm install ganache --global
ganache
Step 2
Copy one of the private key and replace in the verify_test.go
on line 26 without the 0x
prefix of the private key.
Step 3
Run from this directory root on terminal.
go test
Proof will be generated in golang and verified with solidity.
solc --abi contract/VerifyVRF.sol -o ./build --bin --overwrite
abigen --bin=build/VerifyVRF.bin --abi=build/VerifyVRF.abi --pkg solidity_vrf --type VerifyVRF -out verify.go
# Functions
DeployVerifyVRF deploys a new Ethereum contract, binding an instance of VerifyVRF to it.
NewVerifyVRF creates a new instance of VerifyVRF, bound to a specific deployed contract.
NewVerifyVRFCaller creates a new read-only instance of VerifyVRF, bound to a specific deployed contract.
NewVerifyVRFFilterer creates a new log filterer instance of VerifyVRF, bound to a specific deployed contract.
NewVerifyVRFTransactor creates a new write-only instance of VerifyVRF, bound to a specific deployed contract.
# Variables
VerifyVRFABI is the input ABI used to generate the binding from.
VerifyVRFBin is the compiled bytecode used for deploying new contracts.
VerifyVRFMetaData contains all meta data concerning the VerifyVRF contract.
# Structs
VerifyVRF is an auto generated Go binding around an Ethereum contract.
VerifyVRFCaller is an auto generated read-only Go binding around an Ethereum contract.
VerifyVRFCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
VerifyVRFCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
VerifyVRFFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
VerifyVRFRaw is an auto generated low-level Go binding around an Ethereum contract.
VerifyVRFSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
VerifyVRFTransactor is an auto generated write-only Go binding around an Ethereum contract.
VerifyVRFTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
VerifyVRFTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.