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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SigningIdentity

type SigningIdentity interface {
	//serialize返回用于验证的此标识的字节表示形式
	//由此签名身份签名的邮件
	Serialize() ([]byte, error)

	//sign对给定的有效负载进行签名并返回签名
	Sign([]byte) ([]byte, error)
}

SigningIdentity对消息进行签名并将其公共标识序列化为字节

type SigningIdentityFetcher

type SigningIdentityFetcher interface {
	endorsement.Dependency
	//SigningIdentityForRequest返回给定建议的签名标识
	SigningIdentityForRequest(*peer.SignedProposal) (SigningIdentity, error)
}

SigningIdentityFetcher根据建议获取签名标识

Jump to

Keyboard shortcuts

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