Versions in this module Expand all Collapse all v0 v0.0.1 Jul 15, 2021 Changes in this version + var TxValidationCode_name = map[int32]string + func BlockHeaderBytes(b *common.BlockHeader) []byte + func CheckIntegrity(previousblock, currentblock *Block) bool + type Action struct + Payload *peer.ChaincodeActionPayload + SignatureHeader *common.SignatureHeader + func (a *Action) ChaincodeAction() (*peer.ChaincodeAction, error) + func (a *Action) ChaincodeActionPayload() *peer.ChaincodeActionPayload + func (a *Action) ChaincodeEvent() (*peer.ChaincodeEvent, error) + func (a *Action) ChaincodeInput() ([]string, error) + func (a *Action) ChaincodeProposalPayload() (*peer.ChaincodeProposalPayload, error) + func (a *Action) CreatorCertBytes() ([]byte, error) + func (a *Action) CreatorCertHashHex() (string, error) + func (a *Action) CreatorMSPID() (string, error) + func (a *Action) Decorations() (map[string][]byte, error) + func (a *Action) Endorsements() []*peer.Endorsement + func (a *Action) IsInit() (bool, error) + func (a *Action) ProposalHash() ([]byte, error) + func (a *Action) ProposalResponsePayload() (*peer.ProposalResponsePayload, error) + func (a *Action) RWSets() ([]RwSet, error) + func (a *Action) TransientMap() (map[string][]byte, error) + type BFTSerializedIdentity struct + ConsenterId uint64 + Identity msp.SerializedIdentity + func GetBFTOrderersIdentities(cli *ledger.Client, blk *common.Block) ([]BFTSerializedIdentity, error) + type Block struct + Data [][]byte + Metadata [][]byte + func FromBFTFabricBlock(cli *ledger.Client, block *common.Block) (*Block, error) + func FromBFTFabricBlockWithoutOrdererIdenities(block *common.Block) (*Block, error) + func FromFabricBlock(block *common.Block) (*Block, error) + func (b *Block) DataHash() []byte + func (b *Block) HeaderHash() []byte + func (b *Block) IsConfig() bool + func (b *Block) LastConfig() (uint64, error) + func (b *Block) Number() uint64 + func (b *Block) OrderersSignatures() []BlockSignature + func (b *Block) PreviousHash() []byte + func (b *Block) Txs() ([]Tx, error) + func (b *Block) TxsFromOrdererBlock() ([]Tx, error) + type BlockSignature struct + Cert []byte + MSPID string + Nonce []byte + Signature []byte + type RwSet struct + CollectionHashedReadWriteSet []*rwset.CollectionHashedReadWriteSet + KVRWSet kvrwset.KVRWSet + NameSpace string + type Tx struct + Data []byte + func GetTx(block *common.Block, txNumber int) *Tx + func (tx *Tx) Actions() ([]Action, error) + func (tx *Tx) CfgEnvLastUpdateCreatorSignatureBytes() ([]byte, error) + func (tx *Tx) CfgEnvLastUpdateCreatorSignatureHex() (string, error) + func (tx *Tx) ChaincodeId() (*peer.ChaincodeID, error) + func (tx *Tx) ChannelHeader() (*common.ChannelHeader, error) + func (tx *Tx) ConfigEnvelope() (*common.ConfigEnvelope, error) + func (tx *Tx) ConfigEnvelopeLastUpdatePayload() (*common.Payload, error) + func (tx *Tx) ConfigGroup() (*common.ConfigGroup, error) + func (tx *Tx) ConfigSequence() (uint64, error) + func (tx *Tx) ConfigUpdate() (*common.ConfigUpdate, error) + func (tx *Tx) Creator() (string, []byte, error) + func (tx *Tx) CreatorSignatureBytes() ([]byte, error) + func (tx *Tx) CreatorSignatureHexString() (string, error) + func (tx *Tx) Envelope() (*common.Envelope, error) + func (tx *Tx) Epoch() (uint64, error) + func (tx *Tx) IsValid() bool + func (tx *Tx) Payload() (*common.Payload, error) + func (tx *Tx) PeerTransaction() (*peer.Transaction, error) + func (tx *Tx) SignatureHeader() (*common.SignatureHeader, error) + func (tx *Tx) Timestamp() (time.Time, error) + func (tx *Tx) TlsCertHash() ([]byte, error) + func (tx *Tx) TxId() (string, error) + func (tx *Tx) ValidationCode() int32 + func (tx *Tx) ValidationStatus() string + type TxValidationCode int32 + const TxValidationCode_BAD_CHANNEL_HEADER + const TxValidationCode_BAD_COMMON_HEADER + const TxValidationCode_BAD_CREATOR_SIGNATURE + const TxValidationCode_BAD_HEADER_EXTENSION + const TxValidationCode_BAD_PAYLOAD + const TxValidationCode_BAD_PROPOSAL_TXID + const TxValidationCode_BAD_RESPONSE_PAYLOAD + const TxValidationCode_BAD_RWSET + const TxValidationCode_CHAINCODE_VERSION_CONFLICT + const TxValidationCode_DUPLICATE_TXID + const TxValidationCode_ENDORSEMENT_POLICY_FAILURE + const TxValidationCode_EXPIRED_CHAINCODE + const TxValidationCode_ILLEGAL_WRITESET + const TxValidationCode_INVALID_CHAINCODE + const TxValidationCode_INVALID_CONFIG_TRANSACTION + const TxValidationCode_INVALID_ENDORSER_TRANSACTION + const TxValidationCode_INVALID_OTHER_REASON + const TxValidationCode_INVALID_WRITESET + const TxValidationCode_MARSHAL_TX_ERROR + const TxValidationCode_MVCC_READ_CONFLICT + const TxValidationCode_NIL_ENVELOPE + const TxValidationCode_NIL_TXACTION + const TxValidationCode_NOT_VALIDATED + const TxValidationCode_PHANTOM_READ_CONFLICT + const TxValidationCode_TARGET_CHAIN_NOT_FOUND + const TxValidationCode_UNKNOWN_TX_TYPE + const TxValidationCode_UNSUPPORTED_TX_PAYLOAD + const TxValidationCode_VALID + type TxValidationFlags []uint8