package
0.2.8
Repository: https://github.com/hyperledger-twgc/tape.git
Documentation: pkg.go.dev

# Functions

ChannelHeader returns the *cb.ChannelHeader for a given *cb.Envelope.
ChannelID returns the Channel ID for a given *cb.Envelope.
ComputeTxID computes TxID as the Hash computed over the concatenation of nonce and creator.
CreateChaincodeProposal creates a proposal from given input.
CreateChaincodeProposalWithTransient creates a proposal from given input It returns the proposal and the transaction id associated to the proposal.
CreateChaincodeProposalWithTxIDNonceAndTransient creates a proposal from given input.
CreateNonce generates a nonce using the common/crypto package.
CreateProposalFromCIS returns a proposal given a serialized identity and a ChaincodeInvocationSpec.
CreateProposalResponse creates a proposal response.
CreateSignedEnvelope creates a signed envelope of the desired type, with marshaled dataMsg and signs it.
CreateSignedEnvelopeWithTLSBinding creates a signed envelope of the desired type, with marshaled dataMsg and signs it.
CreateSignedTx assembles an Envelope message from proposal, endorsements, and a signer.
ExtractEnvelope retrieves the requested envelope from a given block and unmarshals it.
GetBytesChaincodeActionPayload get the bytes of ChaincodeActionPayload from the message.
GetBytesChaincodeProposalPayload gets the chaincode proposal payload.
GetBytesPayload get the bytes of Payload from the message.
GetBytesProposalPayloadForTx takes a ChaincodeProposalPayload and returns its serialized version according to the visibility field.
GetBytesProposalResponsePayload gets proposal response payload.
GetBytesTransaction get the bytes of Transaction from the message.
GetEnvelopeFromBlock gets an envelope from a block's Data field.
GetProposalHash1 gets the proposal hash bytes after sanitizing the chaincode proposal payload according to the rules of visibility.
GetSignedProposal returns a signed proposal given a Proposal message and a signing identity.
MakeChannelHeader creates a ChannelHeader.
MakePayloadHeader creates a Payload Header.
Marshal serializes a protobuf message.
MarshalOrPanic serializes a protobuf message and panics if this operation fails.
NewSignatureHeader returns a SignatureHeader with a valid nonce.
UnmarshalChaincodeAction unmarshals bytes to a ChaincodeAction.
UnmarshalChaincodeActionPayload unmarshals bytes to a ChaincodeActionPayload.
UnmarshalChaincodeProposalPayload unmarshals bytes to a ChaincodeProposalPayload.
UnmarshalChannelHeader unmarshals bytes to a ChannelHeader.
UnmarshalEnvelope unmarshals bytes to a Envelope.
UnmarshalHeader unmarshals bytes to a Header.
UnmarshalPayload unmarshals bytes to a Payload.
UnmarshalProposalResponsePayload unmarshals bytes to a ProposalResponsePayload.
UnmarshalSignatureHeader unmarshals bytes to a SignatureHeader.
UnmarshalTransaction unmarshals bytes to a Transaction.

# Interfaces

Signer is the interface needed to sign a transaction.