mockverifier

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockverifierABI = MockverifierMetaData.ABI

MockverifierABI is the input ABI used to generate the binding from. Deprecated: Use MockverifierMetaData.ABI instead.

View Source
var MockverifierBin = MockverifierMetaData.Bin

MockverifierBin is the compiled bytecode used for deploying new contracts. Deprecated: Use MockverifierMetaData.Bin instead.

View Source
var MockverifierMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes32[24]\",\"name\":\"proof\",\"type\":\"bytes32[24]\"},{\"internalType\":\"uint256[1]\",\"name\":\"pubSignals\",\"type\":\"uint256[1]\"}],\"name\":\"verifyProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50610158806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80639121da8a14610030575b600080fd5b61004661003e366004610089565b600192915050565b604051901515815260200160405180910390f35b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008061032080848603121561009e57600080fd5b6103008401858111156100b057600080fd5b8493508561031f8601126100c357600080fd5b604051602080820182811067ffffffffffffffff821117156100e7576100e761005a565b6040529286019281888511156100fc57600080fd5b5b8484101561011457833581529281019281016100fd565b50949790965094505050505056fea264697066735822122066b50cbb730099c9f1f258fa949f9d4e1a1ef7636af905817cebb300b2be0d2664736f6c63430008140033",
}

MockverifierMetaData contains all meta data concerning the Mockverifier contract.

Functions

This section is empty.

Types

type Mockverifier

type Mockverifier struct {
	MockverifierCaller     // Read-only binding to the contract
	MockverifierTransactor // Write-only binding to the contract
	MockverifierFilterer   // Log filterer for contract events
}

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

func DeployMockverifier

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

DeployMockverifier deploys a new Ethereum contract, binding an instance of Mockverifier to it.

func NewMockverifier

func NewMockverifier(address common.Address, backend bind.ContractBackend) (*Mockverifier, error)

NewMockverifier creates a new instance of Mockverifier, bound to a specific deployed contract.

type MockverifierCaller

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

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

func NewMockverifierCaller

func NewMockverifierCaller(address common.Address, caller bind.ContractCaller) (*MockverifierCaller, error)

NewMockverifierCaller creates a new read-only instance of Mockverifier, bound to a specific deployed contract.

func (*MockverifierCaller) VerifyProof

func (_Mockverifier *MockverifierCaller) VerifyProof(opts *bind.CallOpts, proof [24][32]byte, pubSignals [1]*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the contract method 0x9121da8a.

Solidity: function verifyProof(bytes32[24] proof, uint256[1] pubSignals) pure returns(bool)

type MockverifierCallerRaw

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

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

func (*MockverifierCallerRaw) Call

func (_Mockverifier *MockverifierCallerRaw) 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 MockverifierCallerSession

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

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

func (*MockverifierCallerSession) VerifyProof

func (_Mockverifier *MockverifierCallerSession) VerifyProof(proof [24][32]byte, pubSignals [1]*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the contract method 0x9121da8a.

Solidity: function verifyProof(bytes32[24] proof, uint256[1] pubSignals) pure returns(bool)

type MockverifierFilterer

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

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

func NewMockverifierFilterer

func NewMockverifierFilterer(address common.Address, filterer bind.ContractFilterer) (*MockverifierFilterer, error)

NewMockverifierFilterer creates a new log filterer instance of Mockverifier, bound to a specific deployed contract.

type MockverifierRaw

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

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

func (*MockverifierRaw) Call

func (_Mockverifier *MockverifierRaw) 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 (*MockverifierRaw) Transact

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

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

func (*MockverifierRaw) Transfer

func (_Mockverifier *MockverifierRaw) 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 MockverifierSession

type MockverifierSession struct {
	Contract     *Mockverifier     // 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
}

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

func (*MockverifierSession) VerifyProof

func (_Mockverifier *MockverifierSession) VerifyProof(proof [24][32]byte, pubSignals [1]*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the contract method 0x9121da8a.

Solidity: function verifyProof(bytes32[24] proof, uint256[1] pubSignals) pure returns(bool)

type MockverifierTransactor

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

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

func NewMockverifierTransactor

func NewMockverifierTransactor(address common.Address, transactor bind.ContractTransactor) (*MockverifierTransactor, error)

NewMockverifierTransactor creates a new write-only instance of Mockverifier, bound to a specific deployed contract.

type MockverifierTransactorRaw

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

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

func (*MockverifierTransactorRaw) Transact

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

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

func (*MockverifierTransactorRaw) Transfer

func (_Mockverifier *MockverifierTransactorRaw) 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 MockverifierTransactorSession

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

MockverifierTransactorSession 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