Versions in this module Expand all Collapse all v1 v1.2.0 Apr 28, 2022 Changes in this version + const DELIMITER + func ConcatenateBytes(data ...[]byte) []byte + func CreateChaincodeProposalWithTxIDNonceAndTransient(txid string, typ common.HeaderType, chainID string, ...) (*peer.Proposal, string, error) + func CreateUtcTimestamp() *timestamp.Timestamp + func ExtractEnvelope(block *cb.Block, index int) (*cb.Envelope, error) + func ExtractEnvelopeOrPanic(block *cb.Block, index int) *cb.Envelope + func ExtractPayload(envelope *cb.Envelope) (*cb.Payload, error) + func ExtractPayloadOrPanic(envelope *cb.Envelope) *cb.Payload + func GenerateBytesUUID() []byte + func GenerateIntUUID() *big.Int + func GenerateUUID() string + func GetBytesChaincodeActionPayload(cap *peer.ChaincodeActionPayload) ([]byte, error) + func GetBytesChaincodeEvent(event *peer.ChaincodeEvent) ([]byte, error) + func GetBytesChaincodeProposalPayload(cpp *peer.ChaincodeProposalPayload) ([]byte, error) + func GetBytesEnvelope(env *common.Envelope) ([]byte, error) + func GetBytesPayload(payl *common.Payload) ([]byte, error) + func GetBytesProposal(prop *peer.Proposal) ([]byte, error) + func GetBytesProposalPayloadForTx(payload *peer.ChaincodeProposalPayload, visibility []byte) ([]byte, error) + func GetBytesProposalResponsePayload(hash []byte, response *peer.Response, result []byte, event []byte, ...) ([]byte, error) + func GetBytesTransaction(tx *peer.Transaction) ([]byte, error) + func GetChaincodeAction(caBytes []byte) (*peer.ChaincodeAction, error) + func GetChaincodeActionPayload(capBytes []byte) (*peer.ChaincodeActionPayload, error) + func GetChaincodeEvents(eBytes []byte) (*peer.ChaincodeEvent, error) + func GetChaincodeHeaderExtension(hdr *common.Header) (*peer.ChaincodeHeaderExtension, error) + func GetChaincodeProposalPayload(bytes []byte) (*peer.ChaincodeProposalPayload, error) + func GetEnvelopeFromBlock(data []byte) (*common.Envelope, error) + func GetHeader(bytes []byte) (*common.Header, error) + func GetPayload(e *common.Envelope) (*common.Payload, error) + func GetPayloads(txActions *peer.TransactionAction) (*peer.ChaincodeActionPayload, *peer.ChaincodeAction, error) + func GetProposalResponsePayload(prpBytes []byte) (*peer.ProposalResponsePayload, error) + func GetSignatureHeader(bytes []byte) (*common.SignatureHeader, error) + func GetTransaction(txBytes []byte) (*peer.Transaction, error) + func MakeChannelHeader(headerType cb.HeaderType, version int32, chainID string, epoch uint64) *cb.ChannelHeader + func MakePayloadHeader(ch *cb.ChannelHeader, sh *cb.SignatureHeader) *cb.Header + func Marshal(pb proto.Message) ([]byte, error) + func MarshalOrPanic(pb proto.Message) []byte + func UnmarshalChannelHeader(bytes []byte) (*cb.ChannelHeader, error)