fabric: github.com/hyperledger/fabric/core/handlers/endorsement/builtin Index | Files | Directories

package builtin

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

Index

Package Files

default_endorsement.go

type DefaultEndorsement Uses

type DefaultEndorsement struct {
    SigningIdentityFetcher
}

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

func (*DefaultEndorsement) Endorse Uses

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 Uses

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

Init injects dependencies into the instance of the Plugin

type DefaultEndorsementFactory Uses

type DefaultEndorsementFactory struct {
}

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

func (*DefaultEndorsementFactory) New Uses

func (*DefaultEndorsementFactory) New() Plugin

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

Directories

PathSynopsis
mocksCode generated by mockery v1.0.0

Package builtin imports 4 packages (graph) and is imported by 1 packages. Updated 2018-07-09. Refresh now. Tools for package owners.