DefaultEndorsement is an endorsement plugin that behaves as the default endorsement system chaincode
type DefaultEndorsement struct { SigningIdentityFetcher }
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 (e *DefaultEndorsement) Init(dependencies ...Dependency) error
Init injects dependencies into the instance of the Plugin
DefaultEndorsementFactory returns an endorsement plugin factory which returns plugins that behave as the default endorsement system chaincode
type DefaultEndorsementFactory struct { }
func (*DefaultEndorsementFactory) New() Plugin
New returns an endorsement plugin that behaves as the default endorsement system chaincode