solidity_vrf_verifier_wrapper

package
v0.10.13 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

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

Functions

This section is empty.

Types

type VRFTestHelper

type VRFTestHelper struct {
	VRFTestHelperCaller
	VRFTestHelperTransactor
	VRFTestHelperFilterer
	// contains filtered or unexported fields
}

func NewVRFTestHelper

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

func (*VRFTestHelper) Address added in v0.9.10

func (_VRFTestHelper *VRFTestHelper) Address() common.Address

type VRFTestHelperCaller

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

func NewVRFTestHelperCaller

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

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)

func (*VRFTestHelperCaller) BigModExp

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

func (*VRFTestHelperCaller) EcmulVerify

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

func (*VRFTestHelperCaller) FieldHash

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

func (*VRFTestHelperCaller) HashToCurve

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

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)

func (*VRFTestHelperCaller) PROOFLENGTH added in v0.8.12

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

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)

func (*VRFTestHelperCaller) RandomValueFromVRFProof

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

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)

func (*VRFTestHelperCaller) SquareRoot

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

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)

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

func (*VRFTestHelperCaller) YSquared

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

type VRFTestHelperCallerRaw

type VRFTestHelperCallerRaw struct {
	Contract *VRFTestHelperCaller
}

func (*VRFTestHelperCallerRaw) Call

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

type VRFTestHelperCallerSession

type VRFTestHelperCallerSession struct {
	Contract *VRFTestHelperCaller
	CallOpts bind.CallOpts
}

func (*VRFTestHelperCallerSession) AffineECAdd

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

func (*VRFTestHelperCallerSession) BigModExp

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

func (*VRFTestHelperCallerSession) EcmulVerify

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

func (*VRFTestHelperCallerSession) FieldHash

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

func (*VRFTestHelperCallerSession) HashToCurve

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

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)

func (*VRFTestHelperCallerSession) PROOFLENGTH added in v0.8.12

func (_VRFTestHelper *VRFTestHelperCallerSession) PROOFLENGTH() (*big.Int, error)

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)

func (*VRFTestHelperCallerSession) RandomValueFromVRFProof

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

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)

func (*VRFTestHelperCallerSession) SquareRoot

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

func (*VRFTestHelperCallerSession) VerifyLinearCombinationWithGenerator

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

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

func (*VRFTestHelperCallerSession) YSquared

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

type VRFTestHelperFilterer

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

func NewVRFTestHelperFilterer

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

type VRFTestHelperInterface added in v0.9.10

type VRFTestHelperInterface interface {
	PROOFLENGTH(opts *bind.CallOpts) (*big.Int, error)

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

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

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

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

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

	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)

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

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

	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)

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

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

	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

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

	Address() common.Address
}

type VRFTestHelperRaw

type VRFTestHelperRaw struct {
	Contract *VRFTestHelper
}

func (*VRFTestHelperRaw) Call

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

func (*VRFTestHelperRaw) Transact

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

func (*VRFTestHelperRaw) Transfer

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

type VRFTestHelperSession

type VRFTestHelperSession struct {
	Contract     *VRFTestHelper
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*VRFTestHelperSession) AffineECAdd

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

func (*VRFTestHelperSession) BigModExp

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

func (*VRFTestHelperSession) EcmulVerify

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

func (*VRFTestHelperSession) FieldHash

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

func (*VRFTestHelperSession) HashToCurve

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

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)

func (*VRFTestHelperSession) PROOFLENGTH added in v0.8.12

func (_VRFTestHelper *VRFTestHelperSession) PROOFLENGTH() (*big.Int, error)

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)

func (*VRFTestHelperSession) RandomValueFromVRFProof

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

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)

func (*VRFTestHelperSession) SquareRoot

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

func (*VRFTestHelperSession) VerifyLinearCombinationWithGenerator

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

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

func (*VRFTestHelperSession) YSquared

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

type VRFTestHelperTransactor

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

func NewVRFTestHelperTransactor

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

type VRFTestHelperTransactorRaw

type VRFTestHelperTransactorRaw struct {
	Contract *VRFTestHelperTransactor
}

func (*VRFTestHelperTransactorRaw) Transact

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

func (*VRFTestHelperTransactorRaw) Transfer

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

type VRFTestHelperTransactorSession

type VRFTestHelperTransactorSession struct {
	Contract     *VRFTestHelperTransactor
	TransactOpts bind.TransactOpts
}

Jump to

Keyboard shortcuts

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