...

Package builtin

import "github.com/hyperledger/fabric/core/handlers/endorsement/builtin"
Overview
Index
Subdirectories

Overview ▾

type DefaultEndorsement

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

type DefaultEndorsement struct {
    SigningIdentityFetcher
}

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

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

type DefaultEndorsementFactory struct {
}

func (*DefaultEndorsementFactory) New

func (*DefaultEndorsementFactory) New() Plugin

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

Subdirectories

Name Synopsis
..
mocks Code generated by mockery v1.0.0