builtin

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultEndorsement

type DefaultEndorsement struct {
	SigningIdentityFetcher
}

默认认可是一个认可插件,作为默认认可系统链码。

func (*DefaultEndorsement) Endorse

func (e *DefaultEndorsement) Endorse(prpBytes []byte, sp *peer.SignedProposal) (*peer.Endorsement, []byte, error)

认可对给定的有效负载(proposalResponsePayLoad字节)进行签名,并可选地对其进行变异。 返回: 背书:有效载荷上的签名,以及用于验证签名的标识。 作为输入给出的有效负载(可以在此函数中修改) 或失败时出错

func (*DefaultEndorsement) Init

func (e *DefaultEndorsement) Init(dependencies ...Dependency) error

init将依赖项插入插件的实例中

type DefaultEndorsementFactory

type DefaultEndorsementFactory struct {
}

默认认可工厂返回认可插件工厂,认可插件工厂返回插件 作为默认的背书系统链码

func (*DefaultEndorsementFactory) New

func (*DefaultEndorsementFactory) New() Plugin

new返回一个作为默认认可系统链码的认可插件

Directories

Path Synopsis
Mokery v1.0.0生成的代码
Mokery v1.0.0生成的代码

Jump to

Keyboard shortcuts

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