# Functions

No description provided by the author
ComputeTxID computes TxID as the Hash computed over the concatenation of nonce and creator.
CreateNonce generates a nonce using the common/crypto package.
CreateNonceOrPanic generates a nonce using the common/crypto package and panics if this operation fails.
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.
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.
GetBytesTransaction get the bytes of Transaction from the message.
No description provided by the author
MakeChannelHeader creates a ChannelHeader.
MakePayloadHeader creates a Payload Header.
MakeSignatureHeader creates a SignatureHeader.
MarshalOrPanic serializes a protobuf message and panics if this operation fails.
NewBlock constructs a block with no data and no metadata.
NewSignatureHeader returns a SignatureHeader with a valid nonce.
SetTxID generates a transaction id based on the provided signature header and sets the TxId field in the channel header.
UnmarshalChaincodeProposalPayload unmarshals bytes to a ChaincodeProposalPayload.
UnmarshalChannelHeader unmarshals bytes to a ChannelHeader.
UnmarshalConfigUpdateEnvelope attempts to unmarshal bytes to a *cb.ConfigUpdate.
UnmarshalEnvelope unmarshals bytes to a Envelope.
UnmarshalHeader unmarshals bytes to a Header.
UnmarshalPayload unmarshals bytes to a Payload.
UnmarshalSignatureHeader unmarshals bytes to a SignatureHeader.