pubkeymgr

package
v2.3.6 Latest Latest
Warning

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

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

Documentation

Overview

Package pubkeymgr is package for pubkeymgr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubkeyManageContract

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

PubkeyManageContract 公钥模式管理合约

func NewPubkeyManageContract

func NewPubkeyManageContract(log protocol.Logger) *PubkeyManageContract

NewPubkeyManageContract 新建公钥管理合约 @param log @return *PubkeyManageContract

func (*PubkeyManageContract) GetMethod

func (c *PubkeyManageContract) GetMethod(methodName string) common.ContractFunc

GetMethod get register method by name

type PubkeyManageRuntime

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

PubkeyManageRuntime 公钥合约的运行时

func NewPubkeyManageRuntime

func NewPubkeyManageRuntime(log protocol.Logger) *PubkeyManageRuntime

NewPubkeyManageRuntime 新建公钥合约运行时对象 @param log @return *PubkeyManageRuntime

func (*PubkeyManageRuntime) AddPubkey

func (r *PubkeyManageRuntime) AddPubkey(context protocol.TxSimContext, params map[string][]byte) (
	[]byte, []*commonPb.ContractEvent, error)

AddPubkey Add public key

func (*PubkeyManageRuntime) DeletePubkey

func (r *PubkeyManageRuntime) DeletePubkey(context protocol.TxSimContext, params map[string][]byte) (
	[]byte, []*commonPb.ContractEvent, error)

DeletePubkey Delete pubkey

func (*PubkeyManageRuntime) QueryPubkey

func (r *PubkeyManageRuntime) QueryPubkey(context protocol.TxSimContext, params map[string][]byte) ([]byte, error)

QueryPubkey Query public key

Jump to

Keyboard shortcuts

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