solidity_verifier_wrapper

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VRFTestHelperABI = "" /* 5465-byte string literal not displayed */

VRFTestHelperABI is the input ABI used to generate the binding from.

Variables

View Source
var VRFTestHelperBin = "" /* 13830-byte string literal not displayed */

VRFTestHelperBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type VRFTestHelper

type VRFTestHelper struct {
	VRFTestHelperCaller     // Read-only binding to the contract
	VRFTestHelperTransactor // Write-only binding to the contract
	VRFTestHelperFilterer   // Log filterer for contract events
}

VRFTestHelper is an auto generated Go binding around an Ethereum contract.

func DeployVRFTestHelper

func DeployVRFTestHelper(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *VRFTestHelper, error)

DeployVRFTestHelper deploys a new Ethereum contract, binding an instance of VRFTestHelper to it.

func NewVRFTestHelper

func NewVRFTestHelper(address common.Address, backend bind.ContractBackend) (*VRFTestHelper, error)

NewVRFTestHelper creates a new instance of VRFTestHelper, bound to a specific deployed contract.

type VRFTestHelperCaller

type VRFTestHelperCaller struct {
	// contains filtered or unexported fields
}

VRFTestHelperCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewVRFTestHelperCaller

func NewVRFTestHelperCaller(address common.Address, caller bind.ContractCaller) (*VRFTestHelperCaller, error)

NewVRFTestHelperCaller creates a new read-only instance of VRFTestHelper, bound to a specific deployed contract.

func (*VRFTestHelperCaller) AffineECAdd

func (_VRFTestHelper *VRFTestHelperCaller) AffineECAdd(opts *bind.CallOpts, p1 [2]*big.Int, p2 [2]*big.Int, invZ *big.Int) ([2]*big.Int, error)

AffineECAdd is a free data retrieval call binding the contract method 0x244f896d.

Solidity: function affineECAdd_(uint256[2] p1, uint256[2] p2, uint256 invZ) constant returns(uint256[2])

func (*VRFTestHelperCaller) BigModExp

func (_VRFTestHelper *VRFTestHelperCaller) BigModExp(opts *bind.CallOpts, base *big.Int, exponent *big.Int) (*big.Int, error)

BigModExp is a free data retrieval call binding the contract method 0x5de60042.

Solidity: function bigModExp_(uint256 base, uint256 exponent) constant returns(uint256)

func (*VRFTestHelperCaller) EcmulVerify

func (_VRFTestHelper *VRFTestHelperCaller) EcmulVerify(opts *bind.CallOpts, x [2]*big.Int, scalar *big.Int, q [2]*big.Int) (bool, error)

EcmulVerify is a free data retrieval call binding the contract method 0xaa7b2fbb.

Solidity: function ecmulVerify_(uint256[2] x, uint256 scalar, uint256[2] q) constant returns(bool)

func (*VRFTestHelperCaller) FieldHash

func (_VRFTestHelper *VRFTestHelperCaller) FieldHash(opts *bind.CallOpts, b []byte) (*big.Int, error)

FieldHash is a free data retrieval call binding the contract method 0xb481e260.

Solidity: function fieldHash_(bytes b) constant returns(uint256)

func (*VRFTestHelperCaller) HashToCurve

func (_VRFTestHelper *VRFTestHelperCaller) HashToCurve(opts *bind.CallOpts, pk [2]*big.Int, x *big.Int) ([2]*big.Int, error)

HashToCurve is a free data retrieval call binding the contract method 0x35452450.

Solidity: function hashToCurve_(uint256[2] pk, uint256 x) constant returns(uint256[2])

func (*VRFTestHelperCaller) LinearCombination

func (_VRFTestHelper *VRFTestHelperCaller) LinearCombination(opts *bind.CallOpts, c *big.Int, p1 [2]*big.Int, cp1Witness [2]*big.Int, s *big.Int, p2 [2]*big.Int, sp2Witness [2]*big.Int, zInv *big.Int) ([2]*big.Int, error)

LinearCombination is a free data retrieval call binding the contract method 0xfe54f2a2.

Solidity: function linearCombination_(uint256 c, uint256[2] p1, uint256[2] cp1Witness, uint256 s, uint256[2] p2, uint256[2] sp2Witness, uint256 zInv) constant returns(uint256[2])

func (*VRFTestHelperCaller) ProjectiveECAdd

func (_VRFTestHelper *VRFTestHelperCaller) ProjectiveECAdd(opts *bind.CallOpts, px *big.Int, py *big.Int, qx *big.Int, qy *big.Int) (*big.Int, *big.Int, *big.Int, error)

ProjectiveECAdd is a free data retrieval call binding the contract method 0x95e6ee92.

Solidity: function projectiveECAdd_(uint256 px, uint256 py, uint256 qx, uint256 qy) constant returns(uint256, uint256, uint256)

func (*VRFTestHelperCaller) RandomValueFromVRFProof

func (_VRFTestHelper *VRFTestHelperCaller) RandomValueFromVRFProof(opts *bind.CallOpts, proof []byte) (*big.Int, error)

RandomValueFromVRFProof is a free data retrieval call binding the contract method 0xcefda0c5.

Solidity: function randomValueFromVRFProof_(bytes proof) constant returns(uint256 output)

func (*VRFTestHelperCaller) ScalarFromCurvePoints

func (_VRFTestHelper *VRFTestHelperCaller) ScalarFromCurvePoints(opts *bind.CallOpts, hash [2]*big.Int, pk [2]*big.Int, gamma [2]*big.Int, uWitness common.Address, v [2]*big.Int) (*big.Int, error)

ScalarFromCurvePoints is a free data retrieval call binding the contract method 0x7f8f50a8.

Solidity: function scalarFromCurvePoints_(uint256[2] hash, uint256[2] pk, uint256[2] gamma, address uWitness, uint256[2] v) constant returns(uint256)

func (*VRFTestHelperCaller) SquareRoot

func (_VRFTestHelper *VRFTestHelperCaller) SquareRoot(opts *bind.CallOpts, x *big.Int) (*big.Int, error)

SquareRoot is a free data retrieval call binding the contract method 0x8af046ea.

Solidity: function squareRoot_(uint256 x) constant returns(uint256)

func (*VRFTestHelperCaller) VerifyLinearCombinationWithGenerator

func (_VRFTestHelper *VRFTestHelperCaller) VerifyLinearCombinationWithGenerator(opts *bind.CallOpts, c *big.Int, p [2]*big.Int, s *big.Int, lcWitness common.Address) (bool, error)

VerifyLinearCombinationWithGenerator is a free data retrieval call binding the contract method 0x91d5f691.

Solidity: function verifyLinearCombinationWithGenerator_(uint256 c, uint256[2] p, uint256 s, address lcWitness) constant returns(bool)

func (*VRFTestHelperCaller) VerifyVRFProof

func (_VRFTestHelper *VRFTestHelperCaller) VerifyVRFProof(opts *bind.CallOpts, pk [2]*big.Int, gamma [2]*big.Int, c *big.Int, s *big.Int, seed *big.Int, uWitness common.Address, cGammaWitness [2]*big.Int, sHashWitness [2]*big.Int, zInv *big.Int) error

VerifyVRFProof is a free data retrieval call binding the contract method 0xef3b10ec.

Solidity: function verifyVRFProof_(uint256[2] pk, uint256[2] gamma, uint256 c, uint256 s, uint256 seed, address uWitness, uint256[2] cGammaWitness, uint256[2] sHashWitness, uint256 zInv) constant returns()

func (*VRFTestHelperCaller) YSquared

func (_VRFTestHelper *VRFTestHelperCaller) YSquared(opts *bind.CallOpts, x *big.Int) (*big.Int, error)

YSquared is a free data retrieval call binding the contract method 0x9d6f0337.

Solidity: function ySquared_(uint256 x) constant returns(uint256)

type VRFTestHelperCallerRaw

type VRFTestHelperCallerRaw struct {
	Contract *VRFTestHelperCaller // Generic read-only contract binding to access the raw methods on
}

VRFTestHelperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*VRFTestHelperCallerRaw) Call

func (_VRFTestHelper *VRFTestHelperCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type VRFTestHelperCallerSession

type VRFTestHelperCallerSession struct {
	Contract *VRFTestHelperCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts        // Call options to use throughout this session
}

VRFTestHelperCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*VRFTestHelperCallerSession) AffineECAdd

func (_VRFTestHelper *VRFTestHelperCallerSession) AffineECAdd(p1 [2]*big.Int, p2 [2]*big.Int, invZ *big.Int) ([2]*big.Int, error)

AffineECAdd is a free data retrieval call binding the contract method 0x244f896d.

Solidity: function affineECAdd_(uint256[2] p1, uint256[2] p2, uint256 invZ) constant returns(uint256[2])

func (*VRFTestHelperCallerSession) BigModExp

func (_VRFTestHelper *VRFTestHelperCallerSession) BigModExp(base *big.Int, exponent *big.Int) (*big.Int, error)

BigModExp is a free data retrieval call binding the contract method 0x5de60042.

Solidity: function bigModExp_(uint256 base, uint256 exponent) constant returns(uint256)

func (*VRFTestHelperCallerSession) EcmulVerify

func (_VRFTestHelper *VRFTestHelperCallerSession) EcmulVerify(x [2]*big.Int, scalar *big.Int, q [2]*big.Int) (bool, error)

EcmulVerify is a free data retrieval call binding the contract method 0xaa7b2fbb.

Solidity: function ecmulVerify_(uint256[2] x, uint256 scalar, uint256[2] q) constant returns(bool)

func (*VRFTestHelperCallerSession) FieldHash

func (_VRFTestHelper *VRFTestHelperCallerSession) FieldHash(b []byte) (*big.Int, error)

FieldHash is a free data retrieval call binding the contract method 0xb481e260.

Solidity: function fieldHash_(bytes b) constant returns(uint256)

func (*VRFTestHelperCallerSession) HashToCurve

func (_VRFTestHelper *VRFTestHelperCallerSession) HashToCurve(pk [2]*big.Int, x *big.Int) ([2]*big.Int, error)

HashToCurve is a free data retrieval call binding the contract method 0x35452450.

Solidity: function hashToCurve_(uint256[2] pk, uint256 x) constant returns(uint256[2])

func (*VRFTestHelperCallerSession) LinearCombination

func (_VRFTestHelper *VRFTestHelperCallerSession) LinearCombination(c *big.Int, p1 [2]*big.Int, cp1Witness [2]*big.Int, s *big.Int, p2 [2]*big.Int, sp2Witness [2]*big.Int, zInv *big.Int) ([2]*big.Int, error)

LinearCombination is a free data retrieval call binding the contract method 0xfe54f2a2.

Solidity: function linearCombination_(uint256 c, uint256[2] p1, uint256[2] cp1Witness, uint256 s, uint256[2] p2, uint256[2] sp2Witness, uint256 zInv) constant returns(uint256[2])

func (*VRFTestHelperCallerSession) ProjectiveECAdd

func (_VRFTestHelper *VRFTestHelperCallerSession) ProjectiveECAdd(px *big.Int, py *big.Int, qx *big.Int, qy *big.Int) (*big.Int, *big.Int, *big.Int, error)

ProjectiveECAdd is a free data retrieval call binding the contract method 0x95e6ee92.

Solidity: function projectiveECAdd_(uint256 px, uint256 py, uint256 qx, uint256 qy) constant returns(uint256, uint256, uint256)

func (*VRFTestHelperCallerSession) RandomValueFromVRFProof

func (_VRFTestHelper *VRFTestHelperCallerSession) RandomValueFromVRFProof(proof []byte) (*big.Int, error)

RandomValueFromVRFProof is a free data retrieval call binding the contract method 0xcefda0c5.

Solidity: function randomValueFromVRFProof_(bytes proof) constant returns(uint256 output)

func (*VRFTestHelperCallerSession) ScalarFromCurvePoints

func (_VRFTestHelper *VRFTestHelperCallerSession) ScalarFromCurvePoints(hash [2]*big.Int, pk [2]*big.Int, gamma [2]*big.Int, uWitness common.Address, v [2]*big.Int) (*big.Int, error)

ScalarFromCurvePoints is a free data retrieval call binding the contract method 0x7f8f50a8.

Solidity: function scalarFromCurvePoints_(uint256[2] hash, uint256[2] pk, uint256[2] gamma, address uWitness, uint256[2] v) constant returns(uint256)

func (*VRFTestHelperCallerSession) SquareRoot

func (_VRFTestHelper *VRFTestHelperCallerSession) SquareRoot(x *big.Int) (*big.Int, error)

SquareRoot is a free data retrieval call binding the contract method 0x8af046ea.

Solidity: function squareRoot_(uint256 x) constant returns(uint256)

func (*VRFTestHelperCallerSession) VerifyLinearCombinationWithGenerator

func (_VRFTestHelper *VRFTestHelperCallerSession) VerifyLinearCombinationWithGenerator(c *big.Int, p [2]*big.Int, s *big.Int, lcWitness common.Address) (bool, error)

VerifyLinearCombinationWithGenerator is a free data retrieval call binding the contract method 0x91d5f691.

Solidity: function verifyLinearCombinationWithGenerator_(uint256 c, uint256[2] p, uint256 s, address lcWitness) constant returns(bool)

func (*VRFTestHelperCallerSession) VerifyVRFProof

func (_VRFTestHelper *VRFTestHelperCallerSession) VerifyVRFProof(pk [2]*big.Int, gamma [2]*big.Int, c *big.Int, s *big.Int, seed *big.Int, uWitness common.Address, cGammaWitness [2]*big.Int, sHashWitness [2]*big.Int, zInv *big.Int) error

VerifyVRFProof is a free data retrieval call binding the contract method 0xef3b10ec.

Solidity: function verifyVRFProof_(uint256[2] pk, uint256[2] gamma, uint256 c, uint256 s, uint256 seed, address uWitness, uint256[2] cGammaWitness, uint256[2] sHashWitness, uint256 zInv) constant returns()

func (*VRFTestHelperCallerSession) YSquared

func (_VRFTestHelper *VRFTestHelperCallerSession) YSquared(x *big.Int) (*big.Int, error)

YSquared is a free data retrieval call binding the contract method 0x9d6f0337.

Solidity: function ySquared_(uint256 x) constant returns(uint256)

type VRFTestHelperFilterer

type VRFTestHelperFilterer struct {
	// contains filtered or unexported fields
}

VRFTestHelperFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewVRFTestHelperFilterer

func NewVRFTestHelperFilterer(address common.Address, filterer bind.ContractFilterer) (*VRFTestHelperFilterer, error)

NewVRFTestHelperFilterer creates a new log filterer instance of VRFTestHelper, bound to a specific deployed contract.

type VRFTestHelperRaw

type VRFTestHelperRaw struct {
	Contract *VRFTestHelper // Generic contract binding to access the raw methods on
}

VRFTestHelperRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*VRFTestHelperRaw) Call

func (_VRFTestHelper *VRFTestHelperRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*VRFTestHelperRaw) Transact

func (_VRFTestHelper *VRFTestHelperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VRFTestHelperRaw) Transfer

func (_VRFTestHelper *VRFTestHelperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VRFTestHelperSession

type VRFTestHelperSession struct {
	Contract     *VRFTestHelper    // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

VRFTestHelperSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*VRFTestHelperSession) AffineECAdd

func (_VRFTestHelper *VRFTestHelperSession) AffineECAdd(p1 [2]*big.Int, p2 [2]*big.Int, invZ *big.Int) ([2]*big.Int, error)

AffineECAdd is a free data retrieval call binding the contract method 0x244f896d.

Solidity: function affineECAdd_(uint256[2] p1, uint256[2] p2, uint256 invZ) constant returns(uint256[2])

func (*VRFTestHelperSession) BigModExp

func (_VRFTestHelper *VRFTestHelperSession) BigModExp(base *big.Int, exponent *big.Int) (*big.Int, error)

BigModExp is a free data retrieval call binding the contract method 0x5de60042.

Solidity: function bigModExp_(uint256 base, uint256 exponent) constant returns(uint256)

func (*VRFTestHelperSession) EcmulVerify

func (_VRFTestHelper *VRFTestHelperSession) EcmulVerify(x [2]*big.Int, scalar *big.Int, q [2]*big.Int) (bool, error)

EcmulVerify is a free data retrieval call binding the contract method 0xaa7b2fbb.

Solidity: function ecmulVerify_(uint256[2] x, uint256 scalar, uint256[2] q) constant returns(bool)

func (*VRFTestHelperSession) FieldHash

func (_VRFTestHelper *VRFTestHelperSession) FieldHash(b []byte) (*big.Int, error)

FieldHash is a free data retrieval call binding the contract method 0xb481e260.

Solidity: function fieldHash_(bytes b) constant returns(uint256)

func (*VRFTestHelperSession) HashToCurve

func (_VRFTestHelper *VRFTestHelperSession) HashToCurve(pk [2]*big.Int, x *big.Int) ([2]*big.Int, error)

HashToCurve is a free data retrieval call binding the contract method 0x35452450.

Solidity: function hashToCurve_(uint256[2] pk, uint256 x) constant returns(uint256[2])

func (*VRFTestHelperSession) LinearCombination

func (_VRFTestHelper *VRFTestHelperSession) LinearCombination(c *big.Int, p1 [2]*big.Int, cp1Witness [2]*big.Int, s *big.Int, p2 [2]*big.Int, sp2Witness [2]*big.Int, zInv *big.Int) ([2]*big.Int, error)

LinearCombination is a free data retrieval call binding the contract method 0xfe54f2a2.

Solidity: function linearCombination_(uint256 c, uint256[2] p1, uint256[2] cp1Witness, uint256 s, uint256[2] p2, uint256[2] sp2Witness, uint256 zInv) constant returns(uint256[2])

func (*VRFTestHelperSession) ProjectiveECAdd

func (_VRFTestHelper *VRFTestHelperSession) ProjectiveECAdd(px *big.Int, py *big.Int, qx *big.Int, qy *big.Int) (*big.Int, *big.Int, *big.Int, error)

ProjectiveECAdd is a free data retrieval call binding the contract method 0x95e6ee92.

Solidity: function projectiveECAdd_(uint256 px, uint256 py, uint256 qx, uint256 qy) constant returns(uint256, uint256, uint256)

func (*VRFTestHelperSession) RandomValueFromVRFProof

func (_VRFTestHelper *VRFTestHelperSession) RandomValueFromVRFProof(proof []byte) (*big.Int, error)

RandomValueFromVRFProof is a free data retrieval call binding the contract method 0xcefda0c5.

Solidity: function randomValueFromVRFProof_(bytes proof) constant returns(uint256 output)

func (*VRFTestHelperSession) ScalarFromCurvePoints

func (_VRFTestHelper *VRFTestHelperSession) ScalarFromCurvePoints(hash [2]*big.Int, pk [2]*big.Int, gamma [2]*big.Int, uWitness common.Address, v [2]*big.Int) (*big.Int, error)

ScalarFromCurvePoints is a free data retrieval call binding the contract method 0x7f8f50a8.

Solidity: function scalarFromCurvePoints_(uint256[2] hash, uint256[2] pk, uint256[2] gamma, address uWitness, uint256[2] v) constant returns(uint256)

func (*VRFTestHelperSession) SquareRoot

func (_VRFTestHelper *VRFTestHelperSession) SquareRoot(x *big.Int) (*big.Int, error)

SquareRoot is a free data retrieval call binding the contract method 0x8af046ea.

Solidity: function squareRoot_(uint256 x) constant returns(uint256)

func (*VRFTestHelperSession) VerifyLinearCombinationWithGenerator

func (_VRFTestHelper *VRFTestHelperSession) VerifyLinearCombinationWithGenerator(c *big.Int, p [2]*big.Int, s *big.Int, lcWitness common.Address) (bool, error)

VerifyLinearCombinationWithGenerator is a free data retrieval call binding the contract method 0x91d5f691.

Solidity: function verifyLinearCombinationWithGenerator_(uint256 c, uint256[2] p, uint256 s, address lcWitness) constant returns(bool)

func (*VRFTestHelperSession) VerifyVRFProof

func (_VRFTestHelper *VRFTestHelperSession) VerifyVRFProof(pk [2]*big.Int, gamma [2]*big.Int, c *big.Int, s *big.Int, seed *big.Int, uWitness common.Address, cGammaWitness [2]*big.Int, sHashWitness [2]*big.Int, zInv *big.Int) error

VerifyVRFProof is a free data retrieval call binding the contract method 0xef3b10ec.

Solidity: function verifyVRFProof_(uint256[2] pk, uint256[2] gamma, uint256 c, uint256 s, uint256 seed, address uWitness, uint256[2] cGammaWitness, uint256[2] sHashWitness, uint256 zInv) constant returns()

func (*VRFTestHelperSession) YSquared

func (_VRFTestHelper *VRFTestHelperSession) YSquared(x *big.Int) (*big.Int, error)

YSquared is a free data retrieval call binding the contract method 0x9d6f0337.

Solidity: function ySquared_(uint256 x) constant returns(uint256)

type VRFTestHelperTransactor

type VRFTestHelperTransactor struct {
	// contains filtered or unexported fields
}

VRFTestHelperTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewVRFTestHelperTransactor

func NewVRFTestHelperTransactor(address common.Address, transactor bind.ContractTransactor) (*VRFTestHelperTransactor, error)

NewVRFTestHelperTransactor creates a new write-only instance of VRFTestHelper, bound to a specific deployed contract.

type VRFTestHelperTransactorRaw

type VRFTestHelperTransactorRaw struct {
	Contract *VRFTestHelperTransactor // Generic write-only contract binding to access the raw methods on
}

VRFTestHelperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*VRFTestHelperTransactorRaw) Transact

func (_VRFTestHelper *VRFTestHelperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VRFTestHelperTransactorRaw) Transfer

func (_VRFTestHelper *VRFTestHelperTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VRFTestHelperTransactorSession

type VRFTestHelperTransactorSession struct {
	Contract     *VRFTestHelperTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

VRFTestHelperTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL