provider

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgorithmProviderInf

type AlgorithmProviderInf interface {
	Invoke(methodName string, paramMap map[string]interface{}) (interface{}, error)
	VerifySig(body []byte) (bool, error)
}

func GetAlgorithmProvider

func GetAlgorithmProvider(did string) (AlgorithmProviderInf, error)

type DataProviderInf

type DataProviderInf interface {
	InvokeMethod(methodName string, paramMap map[string]interface{}) ([]byte, error)
	InvokeMethodWithParamStr(methodName string, paramStr string) ([]byte, error)
	VerifyDataSig(body []byte) (bool, error)
}

func GetDataProvider

func GetDataProvider(did string) (DataProviderInf, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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