1 Star 0 Fork 0

BUPT-ZKJC/fabric-sdk-go

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
sender.go 959 Bytes
Copy Edit Raw Blame History
MJL authored 2021-08-06 18:40 . first commit
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fab
import (
pb "github.com/hyperledger/fabric-protos-go/peer"
)
// TransactionRequest holds endorsed Transaction Proposals.
type TransactionRequest struct {
Proposal *TransactionProposal
ProposalResponses []*TransactionProposalResponse
}
// Sender provides the ability for a transaction to be created and sent.
//
// TODO: CreateTransaction should be refactored as it is actually a factory method.
type Sender interface {
CreateTransaction(request TransactionRequest) (*Transaction, error)
SendTransaction(tx *Transaction) (*TransactionResponse, error)
}
// The Transaction object created from an endorsed proposal.
type Transaction struct {
Proposal *TransactionProposal
Transaction *pb.Transaction
}
// TransactionResponse contains information returned by the orderer.
type TransactionResponse struct {
Orderer string
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bupt-zkjc/fabric-sdk-go.git
git@gitee.com:bupt-zkjc/fabric-sdk-go.git
bupt-zkjc
fabric-sdk-go
fabric-sdk-go
84f269695ead

Search