Documentation ¶
Index ¶
- func ComputeTxID(id *driver.TxID) string
- func GetRandomNonce() ([]byte, error)
- func NewEndorseTransactionService(sp view2.ServiceProvider, network string, channel string) *ets
- func NewEnvelopeService(sp view2.ServiceProvider, network string, channel string) *envs
- func NewMetadataService(sp view2.ServiceProvider, network string, channel string) *mds
- type Envelope
- func (e *Envelope) Bytes() ([]byte, error)
- func (e *Envelope) Creator() []byte
- func (e *Envelope) Envelope() *common.Envelope
- func (e *Envelope) FromBytes(raw []byte) error
- func (e *Envelope) Nonce() []byte
- func (e *Envelope) Results() []byte
- func (e *Envelope) String() string
- func (e *Envelope) TxID() string
- type Manager
- func (m *Manager) ComputeTxID(id *driver.TxID) string
- func (m *Manager) NewEnvelope() driver.Envelope
- func (m *Manager) NewProposalResponseFromBytes(raw []byte) (driver.ProposalResponse, error)
- func (m *Manager) NewTransaction(creator view2.Identity, nonce []byte, txid string, channel string) (driver.Transaction, error)
- func (m *Manager) NewTransactionFromBytes(channel string, raw []byte) (driver.Transaction, error)
- type Proposal
- type ProposalResponse
- func (p *ProposalResponse) Bytes() ([]byte, error)
- func (p *ProposalResponse) Endorser() []byte
- func (p *ProposalResponse) EndorserSignature() []byte
- func (p *ProposalResponse) PR() *peer.ProposalResponse
- func (p *ProposalResponse) Payload() []byte
- func (p *ProposalResponse) ResponseMessage() string
- func (p *ProposalResponse) ResponseStatus() int32
- func (p *ProposalResponse) Results() []byte
- type SerializableSigner
- type SignedProposal
- type Signer
- type Transaction
- func (t *Transaction) AppendParameter(p []byte)
- func (t *Transaction) AppendProposalResponse(response driver.ProposalResponse) error
- func (t *Transaction) Bytes() ([]byte, error)
- func (t *Transaction) BytesNoTransient() ([]byte, error)
- func (t *Transaction) Chaincode() string
- func (t *Transaction) ChaincodeVersion() string
- func (t *Transaction) Channel() string
- func (t *Transaction) Close()
- func (t *Transaction) Creator() view.Identity
- func (t *Transaction) Done() error
- func (t *Transaction) Endorse() error
- func (t *Transaction) EndorseProposal() error
- func (t *Transaction) EndorseProposalResponse() error
- func (t *Transaction) EndorseProposalResponseWithIdentity(identity view.Identity) error
- func (t *Transaction) EndorseProposalWithIdentity(identity view.Identity) error
- func (t *Transaction) EndorseWithIdentity(identity view.Identity) error
- func (t *Transaction) EndorseWithSigner(identity view.Identity, s driver.Signer) error
- func (t *Transaction) Envelope() (driver.Envelope, error)
- func (t *Transaction) From(tx driver.Transaction) (err error)
- func (t *Transaction) Function() string
- func (t *Transaction) FunctionAndParameters() (string, []string)
- func (t *Transaction) GetRWSet() (driver.RWSet, error)
- func (t *Transaction) ID() string
- func (t *Transaction) Network() string
- func (t *Transaction) Nonce() []byte
- func (t *Transaction) Parameters() [][]byte
- func (t *Transaction) Proposal() driver.Proposal
- func (t *Transaction) ProposalHasBeenEndorsedBy(party view.Identity) error
- func (t *Transaction) ProposalResponse() ([]byte, error)
- func (t *Transaction) ProposalResponses() []driver.ProposalResponse
- func (t *Transaction) RWS() driver.RWSet
- func (t *Transaction) Raw() ([]byte, error)
- func (t *Transaction) ResetTransient()
- func (t *Transaction) Results() ([]byte, error)
- func (t *Transaction) SetFromBytes(raw []byte) error
- func (t *Transaction) SetFromEnvelopeBytes(raw []byte) error
- func (t *Transaction) SetParameterAt(i int, p []byte) error
- func (t *Transaction) SetProposal(chaincode string, version string, function string, params ...string)
- func (t *Transaction) SetRWSet() error
- func (t *Transaction) SignedProposal() driver.SignedProposal
- func (t *Transaction) StoreTransient() error
- func (t *Transaction) Transient() driver.TransientMap
- type UnpackedEnvelope
- type UnpackedProposal
- type UnpackedProposalResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeTxID ¶
func GetRandomNonce ¶
func NewEndorseTransactionService ¶
func NewEndorseTransactionService(sp view2.ServiceProvider, network string, channel string) *ets
func NewEnvelopeService ¶
func NewEnvelopeService(sp view2.ServiceProvider, network string, channel string) *envs
func NewMetadataService ¶
func NewMetadataService(sp view2.ServiceProvider, network string, channel string) *mds
Types ¶
type Envelope ¶
type Envelope struct {
// contains filtered or unexported fields
}
func NewEnvelope ¶
func NewEnvelope() *Envelope
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(sp view.ServiceProvider, fns driver.FabricNetworkService) *Manager
func (*Manager) NewEnvelope ¶
func (*Manager) NewProposalResponseFromBytes ¶
func (m *Manager) NewProposalResponseFromBytes(raw []byte) (driver.ProposalResponse, error)
func (*Manager) NewTransaction ¶
func (*Manager) NewTransactionFromBytes ¶
type ProposalResponse ¶
type ProposalResponse struct {
// contains filtered or unexported fields
}
func NewProposalResponseFromBytes ¶
func NewProposalResponseFromBytes(raw []byte) (*ProposalResponse, error)
func NewProposalResponseFromResponse ¶
func NewProposalResponseFromResponse(proposalResponse *peer.ProposalResponse) (*ProposalResponse, error)
func (*ProposalResponse) Bytes ¶ added in v0.2.0
func (p *ProposalResponse) Bytes() ([]byte, error)
func (*ProposalResponse) Endorser ¶
func (p *ProposalResponse) Endorser() []byte
func (*ProposalResponse) EndorserSignature ¶
func (p *ProposalResponse) EndorserSignature() []byte
func (*ProposalResponse) PR ¶
func (p *ProposalResponse) PR() *peer.ProposalResponse
func (*ProposalResponse) Payload ¶
func (p *ProposalResponse) Payload() []byte
func (*ProposalResponse) ResponseMessage ¶
func (p *ProposalResponse) ResponseMessage() string
func (*ProposalResponse) ResponseStatus ¶
func (p *ProposalResponse) ResponseStatus() int32
func (*ProposalResponse) Results ¶
func (p *ProposalResponse) Results() []byte
type SerializableSigner ¶
type SignedProposal ¶
type SignedProposal struct {
// contains filtered or unexported fields
}
func (*SignedProposal) ChaincodeName ¶
func (p *SignedProposal) ChaincodeName() string
func (*SignedProposal) ChaincodeVersion ¶
func (p *SignedProposal) ChaincodeVersion() string
func (*SignedProposal) ProposalBytes ¶
func (p *SignedProposal) ProposalBytes() []byte
func (*SignedProposal) ProposalHash ¶
func (p *SignedProposal) ProposalHash() []byte
func (*SignedProposal) Signature ¶
func (p *SignedProposal) Signature() []byte
type Transaction ¶
type Transaction struct { TCreator view.Identity TNonce []byte TTxID string TNetwork string TChannel string TChaincode string TChaincodeVersion string TFunction string TParameters [][]byte RWSet []byte TTransient driver.TransientMap TProposal *pb.Proposal TSignedProposal *pb.SignedProposal TProposalResponses []*pb.ProposalResponse // contains filtered or unexported fields }
func (*Transaction) AppendParameter ¶
func (t *Transaction) AppendParameter(p []byte)
func (*Transaction) AppendProposalResponse ¶
func (t *Transaction) AppendProposalResponse(response driver.ProposalResponse) error
func (*Transaction) Bytes ¶
func (t *Transaction) Bytes() ([]byte, error)
func (*Transaction) BytesNoTransient ¶
func (t *Transaction) BytesNoTransient() ([]byte, error)
func (*Transaction) Chaincode ¶
func (t *Transaction) Chaincode() string
func (*Transaction) ChaincodeVersion ¶
func (t *Transaction) ChaincodeVersion() string
func (*Transaction) Channel ¶
func (t *Transaction) Channel() string
func (*Transaction) Close ¶
func (t *Transaction) Close()
func (*Transaction) Creator ¶
func (t *Transaction) Creator() view.Identity
func (*Transaction) Done ¶
func (t *Transaction) Done() error
func (*Transaction) Endorse ¶
func (t *Transaction) Endorse() error
func (*Transaction) EndorseProposal ¶
func (t *Transaction) EndorseProposal() error
func (*Transaction) EndorseProposalResponse ¶
func (t *Transaction) EndorseProposalResponse() error
func (*Transaction) EndorseProposalResponseWithIdentity ¶
func (t *Transaction) EndorseProposalResponseWithIdentity(identity view.Identity) error
func (*Transaction) EndorseProposalWithIdentity ¶
func (t *Transaction) EndorseProposalWithIdentity(identity view.Identity) error
func (*Transaction) EndorseWithIdentity ¶
func (t *Transaction) EndorseWithIdentity(identity view.Identity) error
func (*Transaction) EndorseWithSigner ¶
func (*Transaction) Envelope ¶ added in v0.2.0
func (t *Transaction) Envelope() (driver.Envelope, error)
func (*Transaction) From ¶
func (t *Transaction) From(tx driver.Transaction) (err error)
func (*Transaction) Function ¶
func (t *Transaction) Function() string
func (*Transaction) FunctionAndParameters ¶
func (t *Transaction) FunctionAndParameters() (string, []string)
func (*Transaction) ID ¶
func (t *Transaction) ID() string
func (*Transaction) Network ¶
func (t *Transaction) Network() string
func (*Transaction) Nonce ¶
func (t *Transaction) Nonce() []byte
func (*Transaction) Parameters ¶
func (t *Transaction) Parameters() [][]byte
func (*Transaction) Proposal ¶
func (t *Transaction) Proposal() driver.Proposal
func (*Transaction) ProposalHasBeenEndorsedBy ¶
func (t *Transaction) ProposalHasBeenEndorsedBy(party view.Identity) error
func (*Transaction) ProposalResponse ¶
func (t *Transaction) ProposalResponse() ([]byte, error)
func (*Transaction) ProposalResponses ¶
func (t *Transaction) ProposalResponses() []driver.ProposalResponse
func (*Transaction) RWS ¶
func (t *Transaction) RWS() driver.RWSet
func (*Transaction) Raw ¶
func (t *Transaction) Raw() ([]byte, error)
func (*Transaction) ResetTransient ¶
func (t *Transaction) ResetTransient()
func (*Transaction) Results ¶
func (t *Transaction) Results() ([]byte, error)
func (*Transaction) SetFromBytes ¶
func (t *Transaction) SetFromBytes(raw []byte) error
func (*Transaction) SetFromEnvelopeBytes ¶
func (t *Transaction) SetFromEnvelopeBytes(raw []byte) error
func (*Transaction) SetParameterAt ¶
func (t *Transaction) SetParameterAt(i int, p []byte) error
func (*Transaction) SetProposal ¶
func (t *Transaction) SetProposal(chaincode string, version string, function string, params ...string)
func (*Transaction) SetRWSet ¶
func (t *Transaction) SetRWSet() error
func (*Transaction) SignedProposal ¶
func (t *Transaction) SignedProposal() driver.SignedProposal
func (*Transaction) StoreTransient ¶
func (t *Transaction) StoreTransient() error
func (*Transaction) Transient ¶
func (t *Transaction) Transient() driver.TransientMap
type UnpackedEnvelope ¶
type UnpackedEnvelope struct { TxID string Ch string ChaincodeName string ChaincodeVersion string Input *peer.ChaincodeInput Nonce []byte Creator []byte Results []byte Function string Args []string ChannelHeader *common.ChannelHeader SignatureHeader *common.SignatureHeader ProposalResponses []*peer.ProposalResponse Envelope []byte }
func UnpackEnvelope ¶
func UnpackEnvelope(env *common.Envelope) (*UnpackedEnvelope, error)
func UnpackEnvelopeFromBytes ¶
func UnpackEnvelopeFromBytes(raw []byte) (*UnpackedEnvelope, error)
func (*UnpackedEnvelope) Channel ¶
func (u *UnpackedEnvelope) Channel() string
func (*UnpackedEnvelope) FunctionAndParameters ¶
func (u *UnpackedEnvelope) FunctionAndParameters() (string, []string)
func (*UnpackedEnvelope) ID ¶
func (u *UnpackedEnvelope) ID() string
type UnpackedProposal ¶
type UnpackedProposal struct { ChaincodeName string ChaincodeVersion string ChannelHeader *cb.ChannelHeader Input *pb.ChaincodeInput Proposal *pb.Proposal SignatureHeader *cb.SignatureHeader SignedProposal *pb.SignedProposal ProposalHash []byte }
UnpackedProposal contains the interesting artifacts from inside the proposal.
func UnpackProposal ¶
func UnpackProposal(prop *pb.Proposal) (*UnpackedProposal, error)
func UnpackSignedProposal ¶
func UnpackSignedProposal(signedProp *pb.SignedProposal) (*UnpackedProposal, error)
UnpackSignedProposal creates an an *UnpackedProposal which is guaranteed to have no zero-ed fields or it returns an error.
func (*UnpackedProposal) ChannelID ¶
func (up *UnpackedProposal) ChannelID() string
func (*UnpackedProposal) Nonce ¶
func (up *UnpackedProposal) Nonce() []byte
func (*UnpackedProposal) TxID ¶
func (up *UnpackedProposal) TxID() string
func (*UnpackedProposal) Validate ¶
func (up *UnpackedProposal) Validate(idDeserializer msp.IdentityDeserializer) error
type UnpackedProposalResponse ¶
type UnpackedProposalResponse struct { ProposalResponse *pb.ProposalResponse ChaincodeAction *pb.ChaincodeAction TxRwSet *rwsetutil.TxRwSet }
UnpackedProposalResponse contains the interesting artifacts from inside the proposal.
func UnpackProposalResponse ¶
func UnpackProposalResponse(proposalResponse *pb.ProposalResponse) (*UnpackedProposalResponse, error)
UnpackProposalResponse creates an an *UnpackedProposalResponse which is guaranteed to have no zero-ed fields or it returns an error.
func (*UnpackedProposalResponse) Results ¶
func (p *UnpackedProposalResponse) Results() []byte
Click to show internal directories.
Click to hide internal directories.