endorsement

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument interface {
	Dependency
	//arg返回参数的字节数
	Arg() []byte
}

参数定义了用于背书的参数

type Dependency

type Dependency interface {
}

依赖项标记传递给init()方法的依赖项

type Plugin

type Plugin interface {
	//认可对给定的有效负载(proposalResponsePayLoad字节)进行签名,并可选地对其进行变异。
	//返回:
	//背书:有效载荷上的签名,以及用于验证签名的标识。
	//作为输入给出的有效负载(可以在此函数中修改)
	//或失败时出错
	Endorse(payload []byte, sp *peer.SignedProposal) (*peer.Endorsement, []byte, error)

	//init将依赖项插入插件的实例中
	Init(dependencies ...Dependency) error
}

插件认可建议响应

type PluginFactory

type PluginFactory interface {
	New() Plugin
}

PluginFactory创建插件的新实例

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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