Documentation ¶
Index ¶
- type Provider
- type Service
- func (s *Service) Close()
- func (s *Service) CommitEndorsements(req *api.CommitRequest) (*channel.Response, bool, error)
- func (s *Service) Endorse(req *api.Request) (*channel.Response, error)
- func (s *Service) EndorseAndCommit(req *api.Request) (*channel.Response, bool, error)
- func (s *Service) GetPeer(endpoint string) (fab.Peer, error)
- func (s *Service) SigningIdentity() ([]byte, error)
- func (s *Service) ValidateProposalResponses(signedProposal *pb.SignedProposal, proposalResponses []*pb.ProposalResponse) (pb.TxValidationCode, error)
- func (s *Service) VerifyProposalSignature(signedProposal *pb.SignedProposal) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a transaction service provider
func NewProvider ¶
func NewProvider(configProvider configServiceProvider, peerConfig api.PeerConfig, validatorRegistry configValidatorRegistry, gossipProvider gossipProvider, validatorProvider proposalResponseValidatorProvider) *Provider
NewProvider returns a new transaction service provider
type Service ¶
Service implements a Transaction service that gathers multiple endorsements (according to chaincode policy) and (optionally) sends the transaction to the Orderer.
func (*Service) CommitEndorsements ¶ added in v0.1.4
CommitEndorsements commits the provided endorsements.
func (*Service) EndorseAndCommit ¶
EndorseAndCommit collects endorsements (according to chaincode policy) and sends the endorsements to the Orderer
func (*Service) SigningIdentity ¶ added in v0.1.4
SigningIdentity returns the serialized identity of the proposal signer
func (*Service) ValidateProposalResponses ¶ added in v0.1.4
func (s *Service) ValidateProposalResponses(signedProposal *pb.SignedProposal, proposalResponses []*pb.ProposalResponse) (pb.TxValidationCode, error)
ValidateProposalResponses validates the given proposal responses
func (*Service) VerifyProposalSignature ¶ added in v0.1.4
func (s *Service) VerifyProposalSignature(signedProposal *pb.SignedProposal) error
VerifyProposalSignature verifies that the signed proposal is valid