solidity

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SolidityABI = "" /* 2184-byte string literal not displayed */

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

Variables

View Source
var SolidityBin = "" /* 13078-byte string literal not displayed */

SolidityBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Solidity

type Solidity struct {
	SolidityCaller     // Read-only binding to the contract
	SolidityTransactor // Write-only binding to the contract
	SolidityFilterer   // Log filterer for contract events
}

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

func DeploySolidity

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

DeploySolidity deploys a new Ethereum contract, binding an instance of Solidity to it.

func NewSolidity

func NewSolidity(address common.Address, backend bind.ContractBackend) (*Solidity, error)

NewSolidity creates a new instance of Solidity, bound to a specific deployed contract.

type SolidityCaller

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

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

func NewSolidityCaller

func NewSolidityCaller(address common.Address, caller bind.ContractCaller) (*SolidityCaller, error)

NewSolidityCaller creates a new read-only instance of Solidity, bound to a specific deployed contract.

func (*SolidityCaller) AggregateSignatures

func (_Solidity *SolidityCaller) AggregateSignatures(opts *bind.CallOpts, sigs [][2]*big.Int, indices []*big.Int, threshold *big.Int, invArray []*big.Int) ([2]*big.Int, error)

AggregateSignatures is a free data retrieval call binding the contract method 0xf022e061.

Solidity: function AggregateSignatures(uint256[2][] sigs, uint256[] indices, uint256 threshold, uint256[] invArray) view returns(uint256[2])

func (*SolidityCaller) HashToG1

func (_Solidity *SolidityCaller) HashToG1(opts *bind.CallOpts, message []byte) ([2]*big.Int, error)

HashToG1 is a free data retrieval call binding the contract method 0x95add79c.

Solidity: function HashToG1(bytes message) view returns(uint256[2] h)

func (*SolidityCaller) LagrangeInterpolationG1

func (_Solidity *SolidityCaller) LagrangeInterpolationG1(opts *bind.CallOpts, pointsG1 [][2]*big.Int, indices []*big.Int, threshold *big.Int, invArray []*big.Int) ([2]*big.Int, error)

LagrangeInterpolationG1 is a free data retrieval call binding the contract method 0x16534acd.

Solidity: function LagrangeInterpolationG1(uint256[2][] pointsG1, uint256[] indices, uint256 threshold, uint256[] invArray) view returns(uint256[2])

func (*SolidityCaller) SafeSigningPoint

func (_Solidity *SolidityCaller) SafeSigningPoint(opts *bind.CallOpts, input [2]*big.Int) (bool, error)

SafeSigningPoint is a free data retrieval call binding the contract method 0x96d95a6f.

Solidity: function safeSigningPoint(uint256[2] input) pure returns(bool)

func (*SolidityCaller) Sign

func (_Solidity *SolidityCaller) Sign(opts *bind.CallOpts, message []byte, privK *big.Int) ([2]*big.Int, error)

Sign is a free data retrieval call binding the contract method 0x6bdf477c.

Solidity: function Sign(bytes message, uint256 privK) view returns(uint256[2] sig)

func (*SolidityCaller) Verify

func (_Solidity *SolidityCaller) Verify(opts *bind.CallOpts, message []byte, sig [2]*big.Int, pubK [4]*big.Int) (bool, error)

Verify is a free data retrieval call binding the contract method 0x06367587.

Solidity: function Verify(bytes message, uint256[2] sig, uint256[4] pubK) view returns(bool v)

type SolidityCallerRaw

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

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

func (*SolidityCallerRaw) Call

func (_Solidity *SolidityCallerRaw) 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 SolidityCallerSession

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

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

func (*SolidityCallerSession) AggregateSignatures

func (_Solidity *SolidityCallerSession) AggregateSignatures(sigs [][2]*big.Int, indices []*big.Int, threshold *big.Int, invArray []*big.Int) ([2]*big.Int, error)

AggregateSignatures is a free data retrieval call binding the contract method 0xf022e061.

Solidity: function AggregateSignatures(uint256[2][] sigs, uint256[] indices, uint256 threshold, uint256[] invArray) view returns(uint256[2])

func (*SolidityCallerSession) HashToG1

func (_Solidity *SolidityCallerSession) HashToG1(message []byte) ([2]*big.Int, error)

HashToG1 is a free data retrieval call binding the contract method 0x95add79c.

Solidity: function HashToG1(bytes message) view returns(uint256[2] h)

func (*SolidityCallerSession) LagrangeInterpolationG1

func (_Solidity *SolidityCallerSession) LagrangeInterpolationG1(pointsG1 [][2]*big.Int, indices []*big.Int, threshold *big.Int, invArray []*big.Int) ([2]*big.Int, error)

LagrangeInterpolationG1 is a free data retrieval call binding the contract method 0x16534acd.

Solidity: function LagrangeInterpolationG1(uint256[2][] pointsG1, uint256[] indices, uint256 threshold, uint256[] invArray) view returns(uint256[2])

func (*SolidityCallerSession) SafeSigningPoint

func (_Solidity *SolidityCallerSession) SafeSigningPoint(input [2]*big.Int) (bool, error)

SafeSigningPoint is a free data retrieval call binding the contract method 0x96d95a6f.

Solidity: function safeSigningPoint(uint256[2] input) pure returns(bool)

func (*SolidityCallerSession) Sign

func (_Solidity *SolidityCallerSession) Sign(message []byte, privK *big.Int) ([2]*big.Int, error)

Sign is a free data retrieval call binding the contract method 0x6bdf477c.

Solidity: function Sign(bytes message, uint256 privK) view returns(uint256[2] sig)

func (*SolidityCallerSession) Verify

func (_Solidity *SolidityCallerSession) Verify(message []byte, sig [2]*big.Int, pubK [4]*big.Int) (bool, error)

Verify is a free data retrieval call binding the contract method 0x06367587.

Solidity: function Verify(bytes message, uint256[2] sig, uint256[4] pubK) view returns(bool v)

type SolidityFilterer

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

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

func NewSolidityFilterer

func NewSolidityFilterer(address common.Address, filterer bind.ContractFilterer) (*SolidityFilterer, error)

NewSolidityFilterer creates a new log filterer instance of Solidity, bound to a specific deployed contract.

type SolidityRaw

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

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

func (*SolidityRaw) Call

func (_Solidity *SolidityRaw) 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 (*SolidityRaw) Transact

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

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

func (*SolidityRaw) Transfer

func (_Solidity *SolidityRaw) 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 SoliditySession

type SoliditySession struct {
	Contract     *Solidity         // 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
}

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

func (*SoliditySession) AggregateSignatures

func (_Solidity *SoliditySession) AggregateSignatures(sigs [][2]*big.Int, indices []*big.Int, threshold *big.Int, invArray []*big.Int) ([2]*big.Int, error)

AggregateSignatures is a free data retrieval call binding the contract method 0xf022e061.

Solidity: function AggregateSignatures(uint256[2][] sigs, uint256[] indices, uint256 threshold, uint256[] invArray) view returns(uint256[2])

func (*SoliditySession) HashToG1

func (_Solidity *SoliditySession) HashToG1(message []byte) ([2]*big.Int, error)

HashToG1 is a free data retrieval call binding the contract method 0x95add79c.

Solidity: function HashToG1(bytes message) view returns(uint256[2] h)

func (*SoliditySession) LagrangeInterpolationG1

func (_Solidity *SoliditySession) LagrangeInterpolationG1(pointsG1 [][2]*big.Int, indices []*big.Int, threshold *big.Int, invArray []*big.Int) ([2]*big.Int, error)

LagrangeInterpolationG1 is a free data retrieval call binding the contract method 0x16534acd.

Solidity: function LagrangeInterpolationG1(uint256[2][] pointsG1, uint256[] indices, uint256 threshold, uint256[] invArray) view returns(uint256[2])

func (*SoliditySession) SafeSigningPoint

func (_Solidity *SoliditySession) SafeSigningPoint(input [2]*big.Int) (bool, error)

SafeSigningPoint is a free data retrieval call binding the contract method 0x96d95a6f.

Solidity: function safeSigningPoint(uint256[2] input) pure returns(bool)

func (*SoliditySession) Sign

func (_Solidity *SoliditySession) Sign(message []byte, privK *big.Int) ([2]*big.Int, error)

Sign is a free data retrieval call binding the contract method 0x6bdf477c.

Solidity: function Sign(bytes message, uint256 privK) view returns(uint256[2] sig)

func (*SoliditySession) Verify

func (_Solidity *SoliditySession) Verify(message []byte, sig [2]*big.Int, pubK [4]*big.Int) (bool, error)

Verify is a free data retrieval call binding the contract method 0x06367587.

Solidity: function Verify(bytes message, uint256[2] sig, uint256[4] pubK) view returns(bool v)

type SolidityTransactor

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

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

func NewSolidityTransactor

func NewSolidityTransactor(address common.Address, transactor bind.ContractTransactor) (*SolidityTransactor, error)

NewSolidityTransactor creates a new write-only instance of Solidity, bound to a specific deployed contract.

type SolidityTransactorRaw

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

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

func (*SolidityTransactorRaw) Transact

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

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

func (*SolidityTransactorRaw) Transfer

func (_Solidity *SolidityTransactorRaw) 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 SolidityTransactorSession

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

SolidityTransactorSession 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