builtin

package
v0.0.0-...-e295948 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 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
}

DefaultEndorsement is an endorsement plugin that behaves as the default endorsement system chaincode

func (*DefaultEndorsement) Endorse

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

Endorse signs the given payload(ProposalResponsePayload bytes), and optionally mutates it. Returns: The Endorsement: A signature over the payload, and an identity that is used to verify the signature The payload that was given as input (could be modified within this function) Or error on failure

func (*DefaultEndorsement) Init

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

Init injects dependencies into the instance of the Plugin

type DefaultEndorsementFactory

type DefaultEndorsementFactory struct {
}

DefaultEndorsementFactory returns an endorsement plugin factory which returns plugins that behave as the default endorsement system chaincode

func (*DefaultEndorsementFactory) New

func (*DefaultEndorsementFactory) New() Plugin

New returns an endorsement plugin that behaves as the default endorsement system chaincode

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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