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返回一个作为默认认可系统链码的认可插件
Click to show internal directories.
Click to hide internal directories.