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