Documentation ¶
Index ¶
- Variables
- func CalcCertificateSHA256(b *pem.Block) []byte
- func NewCommonEnvelope(payload []byte, signer msp.SigningIdentity) (*common.Envelope, error)
- func NewCommonHeader(headerType common.HeaderType, txID string, nonce []byte, ...) (*common.Header, error)
- func NewMarshaledChannelHeader(headerType common.HeaderType, txId string, ts *timestamp.Timestamp, ...) ([]byte, error)
- func NewMarshaledPeerProposal(header []byte, chaincode string, args [][]byte, transientMap map[string][]byte) ([]byte, error)
- func NewMarshalledChaincodeProposalPayload(chaincode string, args [][]byte, transientMap map[string][]byte) ([]byte, error)
- func NewMarshalledCommonHeader(headerType common.HeaderType, txID string, nonce []byte, ...) ([]byte, error)
- func NewMarshalledCommonPayload(header *common.Header, data []byte) ([]byte, error)
- func NewMarshalledPeerChaincodeInvocationSpec(chaincode string, args [][]byte) ([]byte, error)
- func NewMarshalledSeekInfo(start, stop *orderer.SeekPosition) ([]byte, error)
- func NewMarshalledSignatureHeader(serializedCreator []byte, nonce []byte) ([]byte, error)
- func NewPeerSignedProposal(proposal []byte, identity msp.SigningIdentity) (*peer.SignedProposal, error)
- func NewSeekInfo(start, stop *orderer.SeekPosition) *orderer.SeekInfo
- func NewSeekSpecified(number uint64) *orderer.SeekPosition
- func ParseAnchorPeers(mspConfigGroup *common.ConfigGroup) ([]*peer.AnchorPeer, error)
- func ParseAnchorPeersFromBytes(b []byte) ([]*peer.AnchorPeer, error)
- func ParseApplicationConfig(cfg common.Config) (map[string]*ApplicationConfig, error)
- func ParseBatchSizeFromBytes(b []byte) (*orderer.BatchSize, error)
- func ParseBlockDataHashingStructure(cfg common.Config) (*common.BlockDataHashingStructure, error)
- func ParseCapabilities(cfg common.Config) (*common.Capabilities, error)
- func ParseChaincodeAction(txAction *peer.TransactionAction) (*peer.ChaincodeAction, error)
- func ParseConsortium(cfg common.Config) (string, error)
- func ParseConsortiumFromBytes(b []byte) (string, error)
- func ParseHashingAlgorithm(cfg common.Config) (string, error)
- func ParseHashingAlgorithmFromBytes(b []byte) (string, error)
- func ParseOrderer(cfg common.Config) (map[string]*OrdererConfig, error)
- func ParseOrdererBatchSize(cfg common.Config) (*orderer.BatchSize, error)
- func ParseOrdererBatchTimeout(cfg common.Config) (string, error)
- func ParseOrdererBatchTimeoutFromBytes(b []byte) (string, error)
- func ParseOrdererConsensusType(cfg common.Config) (*orderer.ConsensusType, error)
- func ParseOrdererConsensusTypeFromBytes(b []byte) (*orderer.ConsensusType, error)
- func ParseOrdererEndpoints(b []byte) ([]string, error)
- func ParseOrdererIdentity(cb *common.Block) (*msp.SerializedIdentity, error)
- func ParseParseBlockDataHashingStructureFromBytes(b []byte) (*common.BlockDataHashingStructure, error)
- func ParseParseCapabilitiesFromBytes(b []byte) (*common.Capabilities, error)
- func ParsePolicy(policiesCfg map[string]*common.ConfigPolicy) (map[string]*Policy, error)
- func ParseTransactionActionChaincode(txAction *peer.TransactionAction) (*peer.ChaincodeInvocationSpec, error)
- func ParseTransactionActionEndorsers(txAction *peer.TransactionAction) ([]*msp.SerializedIdentity, error)
- func ParseTransactionActionEvents(chaincodeAction *peer.ChaincodeAction) (*peer.ChaincodeEvent, error)
- func ParseTransactionActionReadWriteSet(chaincodeAction *peer.ChaincodeAction) ([]*kvrwset.KVRWSet, error)
- type ApplicationConfig
- func (*ApplicationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationConfig) GetAnchorPeers() []*peer.AnchorPeer
- func (x *ApplicationConfig) GetMsp() *MSP
- func (x *ApplicationConfig) GetName() string
- func (*ApplicationConfig) ProtoMessage()
- func (x *ApplicationConfig) ProtoReflect() protoreflect.Message
- func (x *ApplicationConfig) Reset()
- func (x *ApplicationConfig) String() string
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetEnvelopes() []*Envelope
- func (x *Block) GetHeader() *common.BlockHeader
- func (x *Block) GetOrdererSignatures() []*OrdererSignature
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- func (x *Block) ValidEnvelopes() []*Envelope
- type CertType
- type Certificate
- func (*Certificate) Descriptor() ([]byte, []int)deprecated
- func (x *Certificate) GetData() []byte
- func (x *Certificate) GetFingerprint() []byte
- func (x *Certificate) GetMspId() string
- func (x *Certificate) GetMspName() string
- func (x *Certificate) GetType() CertType
- func (*Certificate) ProtoMessage()
- func (x *Certificate) ProtoReflect() protoreflect.Message
- func (x *Certificate) Reset()
- func (x *Certificate) String() string
- type ChannelConfig
- func (*ChannelConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelConfig) FabricVersion() FabricVersion
- func (x *ChannelConfig) GetAllCertificates() ([]*Certificate, error)
- func (x *ChannelConfig) GetApplications() map[string]*ApplicationConfig
- func (x *ChannelConfig) GetBlockDataHashingStructure() *common.BlockDataHashingStructure
- func (x *ChannelConfig) GetCapabilities() *common.Capabilities
- func (x *ChannelConfig) GetConsortium() string
- func (x *ChannelConfig) GetHashingAlgorithm() string
- func (x *ChannelConfig) GetOrdererBatchSize() *orderer.BatchSize
- func (x *ChannelConfig) GetOrdererBatchTimeout() string
- func (x *ChannelConfig) GetOrdererConsensusType() *orderer.ConsensusType
- func (x *ChannelConfig) GetOrderers() map[string]*OrdererConfig
- func (x *ChannelConfig) GetPolicy() map[string]*Policy
- func (*ChannelConfig) ProtoMessage()
- func (x *ChannelConfig) ProtoReflect() protoreflect.Message
- func (x *ChannelConfig) Reset()
- func (x *ChannelConfig) String() string
- func (x *ChannelConfig) ToJSON() ([]byte, error)
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)deprecated
- func (x *Envelope) GetChannelConfig() *ChannelConfig
- func (x *Envelope) GetChannelHeader() *common.ChannelHeader
- func (x *Envelope) GetSignature() []byte
- func (x *Envelope) GetTransaction() *Transaction
- func (x *Envelope) GetValidationCode() peer.TxValidationCode
- func (*Envelope) ProtoMessage()
- func (x *Envelope) ProtoReflect() protoreflect.Message
- func (x *Envelope) Reset()
- func (x *Envelope) String() string
- type FabricVersion
- type MSP
- func (*MSP) Descriptor() ([]byte, []int)deprecated
- func (x *MSP) GetAllCertificates() ([]*Certificate, error)
- func (x *MSP) GetConfig() *msp.FabricMSPConfig
- func (x *MSP) GetName() string
- func (x *MSP) GetPolicy() map[string]*Policy
- func (*MSP) ProtoMessage()
- func (x *MSP) ProtoReflect() protoreflect.Message
- func (x *MSP) Reset()
- func (x *MSP) String() string
- type OrdererConfig
- func (*OrdererConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OrdererConfig) GetEndpoints() []string
- func (x *OrdererConfig) GetMsp() *MSP
- func (x *OrdererConfig) GetName() string
- func (*OrdererConfig) ProtoMessage()
- func (x *OrdererConfig) ProtoReflect() protoreflect.Message
- func (x *OrdererConfig) Reset()
- func (x *OrdererConfig) String() string
- type OrdererSignature
- func (*OrdererSignature) Descriptor() ([]byte, []int)deprecated
- func (x *OrdererSignature) GetIdentity() *msp.SerializedIdentity
- func (x *OrdererSignature) GetSignature() []byte
- func (*OrdererSignature) ProtoMessage()
- func (x *OrdererSignature) ProtoReflect() protoreflect.Message
- func (x *OrdererSignature) Reset()
- func (x *OrdererSignature) String() string
- type ParseBlockOpt
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetImplicit() *common.ImplicitMetaPolicy
- func (m *Policy) GetPolicy() isPolicy_Policy
- func (x *Policy) GetSignaturePolicy() *common.SignaturePolicyEnvelope
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- type PolicyKey
- type Policy_Implicit
- type Policy_SignaturePolicy
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) Events() []*peer.ChaincodeEvent
- func (x *Transaction) GetActions() []*TransactionAction
- func (x *Transaction) GetCreatorIdentity() *msp.SerializedIdentity
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionAction
- func (*TransactionAction) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionAction) GetChaincodeInvocationSpec() *peer.ChaincodeInvocationSpec
- func (x *TransactionAction) GetCreatorIdentity() *msp.SerializedIdentity
- func (x *TransactionAction) GetEndorsers() []*msp.SerializedIdentity
- func (x *TransactionAction) GetEvent() *peer.ChaincodeEvent
- func (x *TransactionAction) GetPayload() []byte
- func (x *TransactionAction) GetReadWriteSets() []*kvrwset.KVRWSet
- func (*TransactionAction) ProtoMessage()
- func (x *TransactionAction) ProtoReflect() protoreflect.Message
- func (x *TransactionAction) Reset()
- func (x *TransactionAction) String() string
Constants ¶
This section is empty.
Variables ¶
var ( PolicyKey_name = map[int32]string{ 0: "Undefined", 1: "Readers", 2: "Writers", 3: "LifecycleEndorsement", 4: "Endorsement", } PolicyKey_value = map[string]int32{ "Undefined": 0, "Readers": 1, "Writers": 2, "LifecycleEndorsement": 3, "Endorsement": 4, } )
Enum value maps for PolicyKey.
var ( CertType_name = map[int32]string{ 0: "undefined", 1: "ca", 2: "intermediate", 3: "admin", } CertType_value = map[string]int32{ "undefined": 0, "ca": 1, "intermediate": 2, "admin": 3, } )
Enum value maps for CertType.
var (
ErrUnknownFabricVersion = errors.New(`unknown fabric version`)
)
var File_block_proto protoreflect.FileDescriptor
var File_chan_config_proto protoreflect.FileDescriptor
Functions ¶
func CalcCertificateSHA256 ¶
func NewCommonEnvelope ¶
func NewCommonHeader ¶
func NewMarshaledChannelHeader ¶
func NewMarshaledChannelHeader( headerType common.HeaderType, txId string, ts *timestamp.Timestamp, channelId string, epoch uint64, extension *peer.ChaincodeHeaderExtension, tlsCertHash []byte) ([]byte, error)
NewMarshaledChannelHeader returns new channel header bytes for presented transaction and channel
func NewMarshalledCommonPayload ¶
NewMarshalledCommonPayload returns marshalled payload from headers and data
func NewMarshalledSeekInfo ¶
func NewMarshalledSeekInfo(start, stop *orderer.SeekPosition) ([]byte, error)
func NewMarshalledSignatureHeader ¶
NewMarshalledSignatureHeader returns marshalled signature header for presented identity
func NewPeerSignedProposal ¶
func NewPeerSignedProposal(proposal []byte, identity msp.SigningIdentity) (*peer.SignedProposal, error)
func NewSeekInfo ¶
func NewSeekInfo(start, stop *orderer.SeekPosition) *orderer.SeekInfo
func NewSeekSpecified ¶
func NewSeekSpecified(number uint64) *orderer.SeekPosition
NewSeekSpecified returns orderer.SeekPosition_Specified position
func ParseAnchorPeers ¶
func ParseAnchorPeers(mspConfigGroup *common.ConfigGroup) ([]*peer.AnchorPeer, error)
func ParseAnchorPeersFromBytes ¶
func ParseAnchorPeersFromBytes(b []byte) ([]*peer.AnchorPeer, error)
func ParseApplicationConfig ¶
func ParseApplicationConfig(cfg common.Config) (map[string]*ApplicationConfig, error)
func ParseBlockDataHashingStructure ¶
func ParseBlockDataHashingStructure(cfg common.Config) (*common.BlockDataHashingStructure, error)
func ParseCapabilities ¶
func ParseCapabilities(cfg common.Config) (*common.Capabilities, error)
func ParseChaincodeAction ¶
func ParseChaincodeAction(txAction *peer.TransactionAction) (*peer.ChaincodeAction, error)
func ParseOrderer ¶
func ParseOrderer(cfg common.Config) (map[string]*OrdererConfig, error)
func ParseOrdererBatchSize ¶
func ParseOrdererConsensusType ¶ added in v0.8.6
func ParseOrdererConsensusType(cfg common.Config) (*orderer.ConsensusType, error)
func ParseOrdererConsensusTypeFromBytes ¶ added in v0.8.6
func ParseOrdererConsensusTypeFromBytes(b []byte) (*orderer.ConsensusType, error)
func ParseOrdererEndpoints ¶
func ParseOrdererIdentity ¶
func ParseOrdererIdentity(cb *common.Block) (*msp.SerializedIdentity, error)
func ParseParseBlockDataHashingStructureFromBytes ¶
func ParseParseBlockDataHashingStructureFromBytes(b []byte) (*common.BlockDataHashingStructure, error)
func ParseParseCapabilitiesFromBytes ¶
func ParseParseCapabilitiesFromBytes(b []byte) (*common.Capabilities, error)
func ParsePolicy ¶
func ParseTransactionActionChaincode ¶
func ParseTransactionActionChaincode(txAction *peer.TransactionAction) (*peer.ChaincodeInvocationSpec, error)
func ParseTransactionActionEndorsers ¶
func ParseTransactionActionEndorsers(txAction *peer.TransactionAction) ([]*msp.SerializedIdentity, error)
func ParseTransactionActionEvents ¶
func ParseTransactionActionEvents(chaincodeAction *peer.ChaincodeAction) (*peer.ChaincodeEvent, error)
func ParseTransactionActionReadWriteSet ¶
func ParseTransactionActionReadWriteSet(chaincodeAction *peer.ChaincodeAction) ([]*kvrwset.KVRWSet, error)
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Msp *MSP `protobuf:"bytes,2,opt,name=msp,proto3" json:"msp,omitempty"` AnchorPeers []*peer.AnchorPeer `protobuf:"bytes,3,rep,name=anchor_peers,json=anchorPeers,proto3" json:"anchor_peers,omitempty"` // contains filtered or unexported fields }
func (*ApplicationConfig) Descriptor
deprecated
func (*ApplicationConfig) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationConfig.ProtoReflect.Descriptor instead.
func (*ApplicationConfig) GetAnchorPeers ¶
func (x *ApplicationConfig) GetAnchorPeers() []*peer.AnchorPeer
func (*ApplicationConfig) GetMsp ¶
func (x *ApplicationConfig) GetMsp() *MSP
func (*ApplicationConfig) GetName ¶
func (x *ApplicationConfig) GetName() string
func (*ApplicationConfig) ProtoMessage ¶
func (*ApplicationConfig) ProtoMessage()
func (*ApplicationConfig) ProtoReflect ¶
func (x *ApplicationConfig) ProtoReflect() protoreflect.Message
func (*ApplicationConfig) Reset ¶
func (x *ApplicationConfig) Reset()
func (*ApplicationConfig) String ¶
func (x *ApplicationConfig) String() string
type Block ¶
type Block struct { Header *common.BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Envelopes []*Envelope `protobuf:"bytes,2,rep,name=envelopes,proto3" json:"envelopes,omitempty"` OrdererSignatures []*OrdererSignature `protobuf:"bytes,3,rep,name=orderer_signatures,json=ordererSignatures,proto3" json:"orderer_signatures,omitempty"` // contains filtered or unexported fields }
func ParseBlock ¶
func ParseBlock(block *common.Block, opts ...ParseBlockOpt) (*Block, error)
func (*Block) Descriptor
deprecated
added in
v0.8.6
func (*Block) GetEnvelopes ¶ added in v0.8.6
func (*Block) GetHeader ¶ added in v0.8.6
func (x *Block) GetHeader() *common.BlockHeader
func (*Block) GetOrdererSignatures ¶ added in v0.8.6
func (x *Block) GetOrdererSignatures() []*OrdererSignature
func (*Block) ProtoMessage ¶ added in v0.8.6
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶ added in v0.8.6
func (x *Block) ProtoReflect() protoreflect.Message
func (*Block) ValidEnvelopes ¶
type CertType ¶
type CertType int32
func (CertType) Descriptor ¶
func (CertType) Descriptor() protoreflect.EnumDescriptor
func (CertType) EnumDescriptor
deprecated
func (CertType) Number ¶
func (x CertType) Number() protoreflect.EnumNumber
func (CertType) Type ¶
func (CertType) Type() protoreflect.EnumType
type Certificate ¶
type Certificate struct { // sha256 hash Fingerprint []byte `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Type CertType `protobuf:"varint,3,opt,name=type,proto3,enum=hlfsdk.proto.CertType" json:"type,omitempty"` MspId string `protobuf:"bytes,4,opt,name=msp_id,json=mspId,proto3" json:"msp_id,omitempty"` MspName string `protobuf:"bytes,5,opt,name=msp_name,json=mspName,proto3" json:"msp_name,omitempty"` // contains filtered or unexported fields }
func NewCertificate ¶
func NewCertificate(cert []byte, t CertType, mspID, mspName string) (*Certificate, error)
func (*Certificate) Descriptor
deprecated
func (*Certificate) Descriptor() ([]byte, []int)
Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
func (*Certificate) GetData ¶
func (x *Certificate) GetData() []byte
func (*Certificate) GetFingerprint ¶
func (x *Certificate) GetFingerprint() []byte
func (*Certificate) GetMspId ¶
func (x *Certificate) GetMspId() string
func (*Certificate) GetMspName ¶
func (x *Certificate) GetMspName() string
func (*Certificate) GetType ¶
func (x *Certificate) GetType() CertType
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) ProtoReflect ¶
func (x *Certificate) ProtoReflect() protoreflect.Message
func (*Certificate) Reset ¶
func (x *Certificate) Reset()
func (*Certificate) String ¶
func (x *Certificate) String() string
type ChannelConfig ¶
type ChannelConfig struct { Applications map[string]*ApplicationConfig `` /* 165-byte string literal not displayed */ Orderers map[string]*OrdererConfig `` /* 157-byte string literal not displayed */ OrdererBatchSize *orderer.BatchSize `protobuf:"bytes,3,opt,name=orderer_batch_size,json=ordererBatchSize,proto3" json:"orderer_batch_size,omitempty"` OrdererBatchTimeout string `protobuf:"bytes,4,opt,name=orderer_batch_timeout,json=ordererBatchTimeout,proto3" json:"orderer_batch_timeout,omitempty"` OrdererConsensusType *orderer.ConsensusType `protobuf:"bytes,5,opt,name=orderer_consensus_type,json=ordererConsensusType,proto3" json:"orderer_consensus_type,omitempty"` Consortium string `protobuf:"bytes,6,opt,name=consortium,proto3" json:"consortium,omitempty"` HashingAlgorithm string `protobuf:"bytes,7,opt,name=hashing_algorithm,json=hashingAlgorithm,proto3" json:"hashing_algorithm,omitempty"` BlockDataHashingStructure *common.BlockDataHashingStructure `` /* 140-byte string literal not displayed */ Capabilities *common.Capabilities `protobuf:"bytes,9,opt,name=capabilities,proto3" json:"capabilities,omitempty"` Policy map[string]*Policy `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func ParseChannelConfig ¶
func ParseChannelConfig(cc common.Config) (*ChannelConfig, error)
func UnmarshalChannelConfig ¶
func UnmarshalChannelConfig(b []byte) (*ChannelConfig, error)
func (*ChannelConfig) Descriptor
deprecated
func (*ChannelConfig) Descriptor() ([]byte, []int)
Deprecated: Use ChannelConfig.ProtoReflect.Descriptor instead.
func (*ChannelConfig) FabricVersion ¶
func (x *ChannelConfig) FabricVersion() FabricVersion
func (*ChannelConfig) GetAllCertificates ¶
func (x *ChannelConfig) GetAllCertificates() ([]*Certificate, error)
GetAllCertificates - returns all(root, intermediate, admins) certificates from all MSPs'
func (*ChannelConfig) GetApplications ¶
func (x *ChannelConfig) GetApplications() map[string]*ApplicationConfig
func (*ChannelConfig) GetBlockDataHashingStructure ¶
func (x *ChannelConfig) GetBlockDataHashingStructure() *common.BlockDataHashingStructure
func (*ChannelConfig) GetCapabilities ¶
func (x *ChannelConfig) GetCapabilities() *common.Capabilities
func (*ChannelConfig) GetConsortium ¶
func (x *ChannelConfig) GetConsortium() string
func (*ChannelConfig) GetHashingAlgorithm ¶
func (x *ChannelConfig) GetHashingAlgorithm() string
func (*ChannelConfig) GetOrdererBatchSize ¶
func (x *ChannelConfig) GetOrdererBatchSize() *orderer.BatchSize
func (*ChannelConfig) GetOrdererBatchTimeout ¶
func (x *ChannelConfig) GetOrdererBatchTimeout() string
func (*ChannelConfig) GetOrdererConsensusType ¶
func (x *ChannelConfig) GetOrdererConsensusType() *orderer.ConsensusType
func (*ChannelConfig) GetOrderers ¶
func (x *ChannelConfig) GetOrderers() map[string]*OrdererConfig
func (*ChannelConfig) GetPolicy ¶
func (x *ChannelConfig) GetPolicy() map[string]*Policy
func (*ChannelConfig) ProtoMessage ¶
func (*ChannelConfig) ProtoMessage()
func (*ChannelConfig) ProtoReflect ¶
func (x *ChannelConfig) ProtoReflect() protoreflect.Message
func (*ChannelConfig) Reset ¶
func (x *ChannelConfig) Reset()
func (*ChannelConfig) String ¶
func (x *ChannelConfig) String() string
func (*ChannelConfig) ToJSON ¶
func (x *ChannelConfig) ToJSON() ([]byte, error)
type Envelope ¶
type Envelope struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` ChannelHeader *common.ChannelHeader `protobuf:"bytes,2,opt,name=channel_header,json=channelHeader,proto3" json:"channel_header,omitempty"` ValidationCode peer.TxValidationCode `` /* 133-byte string literal not displayed */ Transaction *Transaction `protobuf:"bytes,4,opt,name=transaction,proto3" json:"transaction,omitempty"` ChannelConfig *ChannelConfig `protobuf:"bytes,5,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"` // contains filtered or unexported fields }
func ParseEnvelope ¶
func ParseEnvelope(envelopeData []byte, validationCode peer.TxValidationCode) (*Envelope, error)
func ParseEnvelopes ¶
func ParseEnvelopes(blockData [][]byte, txFilter txflags.ValidationFlags) ([]*Envelope, error)
func (*Envelope) Descriptor
deprecated
added in
v0.8.6
func (*Envelope) GetChannelConfig ¶ added in v0.8.6
func (x *Envelope) GetChannelConfig() *ChannelConfig
func (*Envelope) GetChannelHeader ¶ added in v0.8.6
func (x *Envelope) GetChannelHeader() *common.ChannelHeader
func (*Envelope) GetSignature ¶ added in v0.8.6
func (*Envelope) GetTransaction ¶ added in v0.8.6
func (x *Envelope) GetTransaction() *Transaction
func (*Envelope) GetValidationCode ¶ added in v0.8.6
func (x *Envelope) GetValidationCode() peer.TxValidationCode
func (*Envelope) ProtoMessage ¶ added in v0.8.6
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶ added in v0.8.6
func (x *Envelope) ProtoReflect() protoreflect.Message
type FabricVersion ¶
type FabricVersion string
const ( FabricVersionUndefined FabricVersion = "undefined" FabricV1 FabricVersion = "1" FabricV2 FabricVersion = "2" )
func FabricVersionIsV2 ¶
func FabricVersionIsV2(isV2 bool) FabricVersion
type MSP ¶
type MSP struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Config *msp.FabricMSPConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` Policy map[string]*Policy `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MSP) Descriptor
deprecated
func (*MSP) GetAllCertificates ¶
func (x *MSP) GetAllCertificates() ([]*Certificate, error)
GetAllCertificates - returns all certificates from MSP
func (*MSP) GetConfig ¶
func (x *MSP) GetConfig() *msp.FabricMSPConfig
func (*MSP) ProtoMessage ¶
func (*MSP) ProtoMessage()
func (*MSP) ProtoReflect ¶
func (x *MSP) ProtoReflect() protoreflect.Message
type OrdererConfig ¶
type OrdererConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Msp *MSP `protobuf:"bytes,2,opt,name=msp,proto3" json:"msp,omitempty"` Endpoints []string `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // contains filtered or unexported fields }
func (*OrdererConfig) Descriptor
deprecated
func (*OrdererConfig) Descriptor() ([]byte, []int)
Deprecated: Use OrdererConfig.ProtoReflect.Descriptor instead.
func (*OrdererConfig) GetEndpoints ¶
func (x *OrdererConfig) GetEndpoints() []string
func (*OrdererConfig) GetMsp ¶
func (x *OrdererConfig) GetMsp() *MSP
func (*OrdererConfig) GetName ¶
func (x *OrdererConfig) GetName() string
func (*OrdererConfig) ProtoMessage ¶
func (*OrdererConfig) ProtoMessage()
func (*OrdererConfig) ProtoReflect ¶
func (x *OrdererConfig) ProtoReflect() protoreflect.Message
func (*OrdererConfig) Reset ¶
func (x *OrdererConfig) Reset()
func (*OrdererConfig) String ¶
func (x *OrdererConfig) String() string
type OrdererSignature ¶ added in v0.8.6
type OrdererSignature struct { Identity *msp.SerializedIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func ParseBTFOrderersIdentities ¶ added in v0.7.7
func (*OrdererSignature) Descriptor
deprecated
added in
v0.8.6
func (*OrdererSignature) Descriptor() ([]byte, []int)
Deprecated: Use OrdererSignature.ProtoReflect.Descriptor instead.
func (*OrdererSignature) GetIdentity ¶ added in v0.8.6
func (x *OrdererSignature) GetIdentity() *msp.SerializedIdentity
func (*OrdererSignature) GetSignature ¶ added in v0.8.6
func (x *OrdererSignature) GetSignature() []byte
func (*OrdererSignature) ProtoMessage ¶ added in v0.8.6
func (*OrdererSignature) ProtoMessage()
func (*OrdererSignature) ProtoReflect ¶ added in v0.8.6
func (x *OrdererSignature) ProtoReflect() protoreflect.Message
func (*OrdererSignature) Reset ¶ added in v0.8.6
func (x *OrdererSignature) Reset()
func (*OrdererSignature) String ¶ added in v0.8.6
func (x *OrdererSignature) String() string
type ParseBlockOpt ¶ added in v0.8.8
type ParseBlockOpt func(*parseBlockOpts)
func WithConfigBlock ¶ added in v0.8.8
func WithConfigBlock(configBlock *common.Block) ParseBlockOpt
type Policy ¶
type Policy struct { // Types that are assignable to Policy: // // *Policy_Implicit // *Policy_SignaturePolicy Policy isPolicy_Policy `protobuf_oneof:"policy"` // contains filtered or unexported fields }
func (*Policy) Descriptor
deprecated
func (*Policy) GetImplicit ¶
func (x *Policy) GetImplicit() *common.ImplicitMetaPolicy
func (*Policy) GetSignaturePolicy ¶
func (x *Policy) GetSignaturePolicy() *common.SignaturePolicyEnvelope
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
type PolicyKey ¶
type PolicyKey int32
func (PolicyKey) Descriptor ¶
func (PolicyKey) Descriptor() protoreflect.EnumDescriptor
func (PolicyKey) EnumDescriptor
deprecated
func (PolicyKey) Number ¶
func (x PolicyKey) Number() protoreflect.EnumNumber
func (PolicyKey) Type ¶
func (PolicyKey) Type() protoreflect.EnumType
type Policy_Implicit ¶
type Policy_Implicit struct {
Implicit *common.ImplicitMetaPolicy `protobuf:"bytes,1,opt,name=implicit,proto3,oneof"`
}
type Policy_SignaturePolicy ¶
type Policy_SignaturePolicy struct {
SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,2,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}
type Transaction ¶
type Transaction struct { Actions []*TransactionAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` CreatorIdentity *msp.SerializedIdentity `protobuf:"bytes,2,opt,name=creator_identity,json=creatorIdentity,proto3" json:"creator_identity,omitempty"` // contains filtered or unexported fields }
func ParseTransaction ¶
func ParseTransaction(payload *common.Payload, transactionType common.HeaderType) (*Transaction, error)
func (*Transaction) Descriptor
deprecated
added in
v0.8.6
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) Events ¶
func (x *Transaction) Events() []*peer.ChaincodeEvent
func (*Transaction) GetActions ¶ added in v0.8.6
func (x *Transaction) GetActions() []*TransactionAction
func (*Transaction) GetCreatorIdentity ¶ added in v0.8.6
func (x *Transaction) GetCreatorIdentity() *msp.SerializedIdentity
func (*Transaction) ProtoMessage ¶ added in v0.8.6
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶ added in v0.8.6
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶ added in v0.8.6
func (x *Transaction) Reset()
func (*Transaction) String ¶ added in v0.8.6
func (x *Transaction) String() string
type TransactionAction ¶
type TransactionAction struct { Event *peer.ChaincodeEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` Endorsers []*msp.SerializedIdentity `protobuf:"bytes,2,rep,name=endorsers,proto3" json:"endorsers,omitempty"` ReadWriteSets []*kvrwset.KVRWSet `protobuf:"bytes,3,rep,name=read_write_sets,json=readWriteSets,proto3" json:"read_write_sets,omitempty"` ChaincodeInvocationSpec *peer.ChaincodeInvocationSpec `` /* 132-byte string literal not displayed */ CreatorIdentity *msp.SerializedIdentity `protobuf:"bytes,5,opt,name=creator_identity,json=creatorIdentity,proto3" json:"creator_identity,omitempty"` Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func ParseTxAction ¶
func ParseTxAction(txAction *peer.TransactionAction) (*TransactionAction, error)
func ParseTxActions ¶
func ParseTxActions(txActions []*peer.TransactionAction) ([]*TransactionAction, error)
func (*TransactionAction) Descriptor
deprecated
added in
v0.8.6
func (*TransactionAction) Descriptor() ([]byte, []int)
Deprecated: Use TransactionAction.ProtoReflect.Descriptor instead.
func (*TransactionAction) GetChaincodeInvocationSpec ¶ added in v0.8.6
func (x *TransactionAction) GetChaincodeInvocationSpec() *peer.ChaincodeInvocationSpec
func (*TransactionAction) GetCreatorIdentity ¶ added in v0.8.6
func (x *TransactionAction) GetCreatorIdentity() *msp.SerializedIdentity
func (*TransactionAction) GetEndorsers ¶ added in v0.8.6
func (x *TransactionAction) GetEndorsers() []*msp.SerializedIdentity
func (*TransactionAction) GetEvent ¶ added in v0.8.6
func (x *TransactionAction) GetEvent() *peer.ChaincodeEvent
func (*TransactionAction) GetPayload ¶ added in v0.9.0
func (x *TransactionAction) GetPayload() []byte
func (*TransactionAction) GetReadWriteSets ¶ added in v0.8.6
func (x *TransactionAction) GetReadWriteSets() []*kvrwset.KVRWSet
func (*TransactionAction) ProtoMessage ¶ added in v0.8.6
func (*TransactionAction) ProtoMessage()
func (*TransactionAction) ProtoReflect ¶ added in v0.8.6
func (x *TransactionAction) ProtoReflect() protoreflect.Message
func (*TransactionAction) Reset ¶ added in v0.8.6
func (x *TransactionAction) Reset()
func (*TransactionAction) String ¶ added in v0.8.6
func (x *TransactionAction) String() string