bindings

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERC20ABI = func() *abi.ABI {
	abi, err := ERC20.ERC20MetaData.GetAbi()
	if err != nil {
		panic(err)
	}
	return abi
}()
View Source
var MultiProverABI = func() *abi.ABI {
	abi, err := MultiProverServiceManager.MultiProverServiceManagerMetaData.GetAbi()
	if err != nil {
		panic(err)
	}
	return abi
}()
View Source
var TEELivenessVerifierABI = func() *abi.ABI {
	abi, err := TEELivenessVerifier.TEELivenessVerifierMetaData.GetAbi()
	if err != nil {
		panic(err)
	}
	return abi
}()

Functions

func ConvertToBN254G1Point

func ConvertToBN254G1Point(input *bls.G1Point) MultiProverServiceManager.BN254G1Point

func ConvertToBN254G2Point

func ConvertToBN254G2Point(input *bls.G2Point) MultiProverServiceManager.BN254G2Point

func DecodeError

func DecodeError(abi *abi.ABI, err error) error

func DigestStateHeader

func DigestStateHeader(s *StateHeader) (types.TaskResponseDigest, error)

func GetOperatorAddrByOperatorID added in v0.2.0

func GetOperatorAddrByOperatorID(caller bind.ContractCaller, getter BlsApkRegistryGetter, operatorId [32]byte) (common.Address, error)

func GetOperatorAddrFromBlsKey

func GetOperatorAddrFromBlsKey(blskey *bls.KeyPair, caller bind.ContractCaller, getter BlsApkRegistryGetter) (common.Address, error)

func Keccak256 added in v0.2.0

func Keccak256(data []byte) common.Hash

func MultiProverError

func MultiProverError(err error) error

func ReportDataBytes added in v0.2.3

func ReportDataBytes(reportData *TEELivenessVerifier.TEELivenessVerifierReportDataV2) ([]byte, error)

func ReportDataHash added in v0.2.0

Types

type Binding

type Binding struct {
}

type BlsApkRegistryGetter

type BlsApkRegistryGetter interface {
	BlsApkRegistry(opts *bind.CallOpts) (common.Address, error)
}

type JsonError

type JsonError interface {
	Error() string
	ErrorCode() int
	ErrorData() interface{}
}

Jump to

Keyboard shortcuts

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