algorithm

package
v0.0.0-...-10d2010 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GAS_LIMIT  = 10000000
	STEP_LIMIT = 10000000
)

Variables

This section is empty.

Functions

func TransformAPType

func TransformAPType(aptype int) string

Types

type HttpAlgorithmProvider

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

func NewHttpAlgorithmProvider

func NewHttpAlgorithmProvider(ap *store.AlgorithmProvider) (*HttpAlgorithmProvider, error)

func (*HttpAlgorithmProvider) Invoke

func (ap *HttpAlgorithmProvider) Invoke(methodName string, paramMap map[string]interface{}) (interface{}, error)

func (*HttpAlgorithmProvider) VerifySig

func (this *HttpAlgorithmProvider) VerifySig(body []byte) (bool, error)

type WasmAlgorithmProvider

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

func NewWasmAlgorithmProvider

func NewWasmAlgorithmProvider(ap *store.AlgorithmProvider) (*WasmAlgorithmProvider, error)

func (*WasmAlgorithmProvider) Invoke

func (this *WasmAlgorithmProvider) Invoke(methodName string, paramMap map[string]interface{}) (interface{}, error)

func (*WasmAlgorithmProvider) VerifySig

func (this *WasmAlgorithmProvider) VerifySig(body []byte) (bool, error)

Jump to

Keyboard shortcuts

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