Documentation ¶
Overview ¶
Package pubkeymgr is package for pubkeymgr
Index ¶
- type PubkeyManageContract
- type PubkeyManageRuntime
- func (r *PubkeyManageRuntime) AddPubkey(context protocol.TxSimContext, params map[string][]byte) ([]byte, []*commonPb.ContractEvent, error)
- func (r *PubkeyManageRuntime) DeletePubkey(context protocol.TxSimContext, params map[string][]byte) ([]byte, []*commonPb.ContractEvent, error)
- func (r *PubkeyManageRuntime) QueryPubkey(context protocol.TxSimContext, params map[string][]byte) ([]byte, error)
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
Click to show internal directories.
Click to hide internal directories.