Documentation ¶
Index ¶
- Variables
- type ApplicationPolicydeprecated
- func (*ApplicationPolicy) Descriptor() ([]byte, []int)
- func (m *ApplicationPolicy) GetChannelConfigPolicyReference() string
- func (m *ApplicationPolicy) GetSignaturePolicy() *SignaturePolicyEnvelope
- func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type
- func (*ApplicationPolicy) ProtoMessage()
- func (m *ApplicationPolicy) Reset()
- func (m *ApplicationPolicy) String() string
- func (m *ApplicationPolicy) XXX_DiscardUnknown()
- func (m *ApplicationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplicationPolicy) XXX_Merge(src proto.Message)
- func (*ApplicationPolicy) XXX_OneofWrappers() []interface{}
- func (m *ApplicationPolicy) XXX_Size() int
- func (m *ApplicationPolicy) XXX_Unmarshal(b []byte) error
- type ApplicationPolicy_ChannelConfigPolicyReference
- type ApplicationPolicy_SignaturePolicy
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetData() *BlockData
- func (x *Block) GetHeader() *BlockHeader
- func (x *Block) GetMetadata() *BlockMetadata
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockData
- type BlockDataHashingStructure
- func (*BlockDataHashingStructure) Descriptor() ([]byte, []int)
- func (m *BlockDataHashingStructure) GetWidth() uint32
- func (*BlockDataHashingStructure) ProtoMessage()
- func (m *BlockDataHashingStructure) Reset()
- func (m *BlockDataHashingStructure) String() string
- func (m *BlockDataHashingStructure) XXX_DiscardUnknown()
- func (m *BlockDataHashingStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockDataHashingStructure) XXX_Merge(src proto.Message)
- func (m *BlockDataHashingStructure) XXX_Size() int
- func (m *BlockDataHashingStructure) XXX_Unmarshal(b []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHeader) GetDataHash() []byte
- func (x *BlockHeader) GetNumber() uint64
- func (x *BlockHeader) GetPreviousHash() []byte
- func (*BlockHeader) ProtoMessage()
- func (x *BlockHeader) ProtoReflect() protoreflect.Message
- func (x *BlockHeader) Reset()
- func (x *BlockHeader) String() string
- type BlockMetadata
- type BlockMetadataIndex
- func (BlockMetadataIndex) Descriptor() protoreflect.EnumDescriptor
- func (x BlockMetadataIndex) Enum() *BlockMetadataIndex
- func (BlockMetadataIndex) EnumDescriptor() ([]byte, []int)deprecated
- func (x BlockMetadataIndex) Number() protoreflect.EnumNumber
- func (x BlockMetadataIndex) String() string
- func (BlockMetadataIndex) Type() protoreflect.EnumType
- type BlockchainInfo
- func (*BlockchainInfo) Descriptor() ([]byte, []int)
- func (m *BlockchainInfo) GetBootstrappingSnapshotInfo() *BootstrappingSnapshotInfo
- func (m *BlockchainInfo) GetCurrentBlockHash() []byte
- func (m *BlockchainInfo) GetHeight() uint64
- func (m *BlockchainInfo) GetPreviousBlockHash() []byte
- func (*BlockchainInfo) ProtoMessage()
- func (m *BlockchainInfo) Reset()
- func (m *BlockchainInfo) String() string
- func (m *BlockchainInfo) XXX_DiscardUnknown()
- func (m *BlockchainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockchainInfo) XXX_Merge(src proto.Message)
- func (m *BlockchainInfo) XXX_Size() int
- func (m *BlockchainInfo) XXX_Unmarshal(b []byte) error
- type BootstrappingSnapshotInfo
- func (*BootstrappingSnapshotInfo) Descriptor() ([]byte, []int)
- func (m *BootstrappingSnapshotInfo) GetLastBlockInSnapshot() uint64
- func (*BootstrappingSnapshotInfo) ProtoMessage()
- func (m *BootstrappingSnapshotInfo) Reset()
- func (m *BootstrappingSnapshotInfo) String() string
- func (m *BootstrappingSnapshotInfo) XXX_DiscardUnknown()
- func (m *BootstrappingSnapshotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BootstrappingSnapshotInfo) XXX_Merge(src proto.Message)
- func (m *BootstrappingSnapshotInfo) XXX_Size() int
- func (m *BootstrappingSnapshotInfo) XXX_Unmarshal(b []byte) error
- type Capabilities
- func (*Capabilities) Descriptor() ([]byte, []int)
- func (m *Capabilities) GetCapabilities() map[string]*Capability
- func (*Capabilities) ProtoMessage()
- func (m *Capabilities) Reset()
- func (m *Capabilities) String() string
- func (m *Capabilities) XXX_DiscardUnknown()
- func (m *Capabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Capabilities) XXX_Merge(src proto.Message)
- func (m *Capabilities) XXX_Size() int
- func (m *Capabilities) XXX_Unmarshal(b []byte) error
- type Capability
- func (*Capability) Descriptor() ([]byte, []int)
- func (*Capability) ProtoMessage()
- func (m *Capability) Reset()
- func (m *Capability) String() string
- func (m *Capability) XXX_DiscardUnknown()
- func (m *Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Capability) XXX_Merge(src proto.Message)
- func (m *Capability) XXX_Size() int
- func (m *Capability) XXX_Unmarshal(b []byte) error
- type ChannelHeader
- func (*ChannelHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelHeader) GetChannelId() string
- func (x *ChannelHeader) GetEpoch() uint64
- func (x *ChannelHeader) GetExtension() []byte
- func (x *ChannelHeader) GetTimestamp() *timestamppb.Timestamp
- func (x *ChannelHeader) GetTlsCertHash() []byte
- func (x *ChannelHeader) GetTxId() string
- func (x *ChannelHeader) GetType() int32
- func (x *ChannelHeader) GetVersion() int32
- func (*ChannelHeader) ProtoMessage()
- func (x *ChannelHeader) ProtoReflect() protoreflect.Message
- func (x *ChannelHeader) Reset()
- func (x *ChannelHeader) String() string
- type CollectionConfigdeprecated
- func (*CollectionConfig) Descriptor() ([]byte, []int)
- func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload
- func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig
- func (*CollectionConfig) ProtoMessage()
- func (m *CollectionConfig) Reset()
- func (m *CollectionConfig) String() string
- func (m *CollectionConfig) XXX_DiscardUnknown()
- func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollectionConfig) XXX_Merge(src proto.Message)
- func (*CollectionConfig) XXX_OneofWrappers() []interface{}
- func (m *CollectionConfig) XXX_Size() int
- func (m *CollectionConfig) XXX_Unmarshal(b []byte) error
- type CollectionConfigPackagedeprecated
- func (*CollectionConfigPackage) Descriptor() ([]byte, []int)
- func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig
- func (*CollectionConfigPackage) ProtoMessage()
- func (m *CollectionConfigPackage) Reset()
- func (m *CollectionConfigPackage) String() string
- func (m *CollectionConfigPackage) XXX_DiscardUnknown()
- func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollectionConfigPackage) XXX_Merge(src proto.Message)
- func (m *CollectionConfigPackage) XXX_Size() int
- func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error
- type CollectionConfig_StaticCollectionConfig
- type CollectionPolicyConfigdeprecated
- func (*CollectionPolicyConfig) Descriptor() ([]byte, []int)
- func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload
- func (m *CollectionPolicyConfig) GetSignaturePolicy() *SignaturePolicyEnvelope
- func (*CollectionPolicyConfig) ProtoMessage()
- func (m *CollectionPolicyConfig) Reset()
- func (m *CollectionPolicyConfig) String() string
- func (m *CollectionPolicyConfig) XXX_DiscardUnknown()
- func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollectionPolicyConfig) XXX_Merge(src proto.Message)
- func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{}
- func (m *CollectionPolicyConfig) XXX_Size() int
- func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error
- type CollectionPolicyConfig_SignaturePolicy
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetChannelGroup() *ConfigGroup
- func (m *Config) GetSequence() uint64
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type ConfigEnvelope
- func (*ConfigEnvelope) Descriptor() ([]byte, []int)
- func (m *ConfigEnvelope) GetConfig() *Config
- func (m *ConfigEnvelope) GetLastUpdate() *Envelope
- func (*ConfigEnvelope) ProtoMessage()
- func (m *ConfigEnvelope) Reset()
- func (m *ConfigEnvelope) String() string
- func (m *ConfigEnvelope) XXX_DiscardUnknown()
- func (m *ConfigEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigEnvelope) XXX_Merge(src proto.Message)
- func (m *ConfigEnvelope) XXX_Size() int
- func (m *ConfigEnvelope) XXX_Unmarshal(b []byte) error
- type ConfigGroup
- func (*ConfigGroup) Descriptor() ([]byte, []int)
- func (m *ConfigGroup) GetGroups() map[string]*ConfigGroup
- func (m *ConfigGroup) GetModPolicy() string
- func (m *ConfigGroup) GetPolicies() map[string]*ConfigPolicy
- func (m *ConfigGroup) GetValues() map[string]*ConfigValue
- func (m *ConfigGroup) GetVersion() uint64
- func (*ConfigGroup) ProtoMessage()
- func (m *ConfigGroup) Reset()
- func (m *ConfigGroup) String() string
- func (m *ConfigGroup) XXX_DiscardUnknown()
- func (m *ConfigGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigGroup) XXX_Merge(src proto.Message)
- func (m *ConfigGroup) XXX_Size() int
- func (m *ConfigGroup) XXX_Unmarshal(b []byte) error
- type ConfigPolicy
- func (*ConfigPolicy) Descriptor() ([]byte, []int)
- func (m *ConfigPolicy) GetModPolicy() string
- func (m *ConfigPolicy) GetPolicy() *Policy
- func (m *ConfigPolicy) GetVersion() uint64
- func (*ConfigPolicy) ProtoMessage()
- func (m *ConfigPolicy) Reset()
- func (m *ConfigPolicy) String() string
- func (m *ConfigPolicy) XXX_DiscardUnknown()
- func (m *ConfigPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigPolicy) XXX_Merge(src proto.Message)
- func (m *ConfigPolicy) XXX_Size() int
- func (m *ConfigPolicy) XXX_Unmarshal(b []byte) error
- type ConfigSignature
- func (*ConfigSignature) Descriptor() ([]byte, []int)
- func (m *ConfigSignature) GetSignature() []byte
- func (m *ConfigSignature) GetSignatureHeader() []byte
- func (*ConfigSignature) ProtoMessage()
- func (m *ConfigSignature) Reset()
- func (m *ConfigSignature) String() string
- func (m *ConfigSignature) XXX_DiscardUnknown()
- func (m *ConfigSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigSignature) XXX_Merge(src proto.Message)
- func (m *ConfigSignature) XXX_Size() int
- func (m *ConfigSignature) XXX_Unmarshal(b []byte) error
- type ConfigUpdate
- func (*ConfigUpdate) Descriptor() ([]byte, []int)
- func (m *ConfigUpdate) GetChannelId() string
- func (m *ConfigUpdate) GetIsolatedData() map[string][]byte
- func (m *ConfigUpdate) GetReadSet() *ConfigGroup
- func (m *ConfigUpdate) GetWriteSet() *ConfigGroup
- func (*ConfigUpdate) ProtoMessage()
- func (m *ConfigUpdate) Reset()
- func (m *ConfigUpdate) String() string
- func (m *ConfigUpdate) XXX_DiscardUnknown()
- func (m *ConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigUpdate) XXX_Merge(src proto.Message)
- func (m *ConfigUpdate) XXX_Size() int
- func (m *ConfigUpdate) XXX_Unmarshal(b []byte) error
- type ConfigUpdateEnvelope
- func (*ConfigUpdateEnvelope) Descriptor() ([]byte, []int)
- func (m *ConfigUpdateEnvelope) GetConfigUpdate() []byte
- func (m *ConfigUpdateEnvelope) GetSignatures() []*ConfigSignature
- func (*ConfigUpdateEnvelope) ProtoMessage()
- func (m *ConfigUpdateEnvelope) Reset()
- func (m *ConfigUpdateEnvelope) String() string
- func (m *ConfigUpdateEnvelope) XXX_DiscardUnknown()
- func (m *ConfigUpdateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigUpdateEnvelope) XXX_Merge(src proto.Message)
- func (m *ConfigUpdateEnvelope) XXX_Size() int
- func (m *ConfigUpdateEnvelope) XXX_Unmarshal(b []byte) error
- type ConfigValue
- func (*ConfigValue) Descriptor() ([]byte, []int)
- func (m *ConfigValue) GetModPolicy() string
- func (m *ConfigValue) GetValue() []byte
- func (m *ConfigValue) GetVersion() uint64
- func (*ConfigValue) ProtoMessage()
- func (m *ConfigValue) Reset()
- func (m *ConfigValue) String() string
- func (m *ConfigValue) XXX_DiscardUnknown()
- func (m *ConfigValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigValue) XXX_Merge(src proto.Message)
- func (m *ConfigValue) XXX_Size() int
- func (m *ConfigValue) XXX_Unmarshal(b []byte) error
- type Consenter
- func (*Consenter) Descriptor() ([]byte, []int)
- func (m *Consenter) GetClientTlsCert() []byte
- func (m *Consenter) GetHost() string
- func (m *Consenter) GetId() uint32
- func (m *Consenter) GetIdentity() []byte
- func (m *Consenter) GetMspId() string
- func (m *Consenter) GetPort() uint32
- func (m *Consenter) GetServerTlsCert() []byte
- func (*Consenter) ProtoMessage()
- func (m *Consenter) Reset()
- func (m *Consenter) String() string
- func (m *Consenter) XXX_DiscardUnknown()
- func (m *Consenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Consenter) XXX_Merge(src proto.Message)
- func (m *Consenter) XXX_Size() int
- func (m *Consenter) XXX_Unmarshal(b []byte) error
- type Consortium
- func (*Consortium) Descriptor() ([]byte, []int)
- func (m *Consortium) GetName() string
- func (*Consortium) ProtoMessage()
- func (m *Consortium) Reset()
- func (m *Consortium) String() string
- func (m *Consortium) XXX_DiscardUnknown()
- func (m *Consortium) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Consortium) XXX_Merge(src proto.Message)
- func (m *Consortium) XXX_Size() int
- func (m *Consortium) XXX_Unmarshal(b []byte) error
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)deprecated
- func (x *Envelope) GetPayload() []byte
- func (x *Envelope) GetRedactMessage() []byte
- func (x *Envelope) GetRedactable() bool
- func (x *Envelope) GetSignature() []byte
- func (*Envelope) ProtoMessage()
- func (x *Envelope) ProtoReflect() protoreflect.Message
- func (x *Envelope) Reset()
- func (x *Envelope) String() string
- type HashingAlgorithm
- func (*HashingAlgorithm) Descriptor() ([]byte, []int)
- func (m *HashingAlgorithm) GetName() string
- func (*HashingAlgorithm) ProtoMessage()
- func (m *HashingAlgorithm) Reset()
- func (m *HashingAlgorithm) String() string
- func (m *HashingAlgorithm) XXX_DiscardUnknown()
- func (m *HashingAlgorithm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashingAlgorithm) XXX_Merge(src proto.Message)
- func (m *HashingAlgorithm) XXX_Size() int
- func (m *HashingAlgorithm) XXX_Unmarshal(b []byte) error
- type Header
- type HeaderType
- type IdentifierHeader
- func (*IdentifierHeader) Descriptor() ([]byte, []int)deprecated
- func (x *IdentifierHeader) GetIdentifier() uint32
- func (x *IdentifierHeader) GetNonce() []byte
- func (*IdentifierHeader) ProtoMessage()
- func (x *IdentifierHeader) ProtoReflect() protoreflect.Message
- func (x *IdentifierHeader) Reset()
- func (x *IdentifierHeader) String() string
- type ImplicitMetaPolicy
- func (*ImplicitMetaPolicy) Descriptor() ([]byte, []int)
- func (m *ImplicitMetaPolicy) GetRule() ImplicitMetaPolicy_Rule
- func (m *ImplicitMetaPolicy) GetSubPolicy() string
- func (*ImplicitMetaPolicy) ProtoMessage()
- func (m *ImplicitMetaPolicy) Reset()
- func (m *ImplicitMetaPolicy) String() string
- func (m *ImplicitMetaPolicy) XXX_DiscardUnknown()
- func (m *ImplicitMetaPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ImplicitMetaPolicy) XXX_Merge(src proto.Message)
- func (m *ImplicitMetaPolicy) XXX_Size() int
- func (m *ImplicitMetaPolicy) XXX_Unmarshal(b []byte) error
- type ImplicitMetaPolicy_Rule
- type LastConfig
- type Metadata
- type MetadataSignature
- func (*MetadataSignature) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataSignature) GetIdentifierHeader() []byte
- func (x *MetadataSignature) GetSignature() []byte
- func (x *MetadataSignature) GetSignatureHeader() []byte
- func (*MetadataSignature) ProtoMessage()
- func (x *MetadataSignature) ProtoReflect() protoreflect.Message
- func (x *MetadataSignature) Reset()
- func (x *MetadataSignature) String() string
- type OrdererAddresses
- func (*OrdererAddresses) Descriptor() ([]byte, []int)
- func (m *OrdererAddresses) GetAddresses() []string
- func (*OrdererAddresses) ProtoMessage()
- func (m *OrdererAddresses) Reset()
- func (m *OrdererAddresses) String() string
- func (m *OrdererAddresses) XXX_DiscardUnknown()
- func (m *OrdererAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrdererAddresses) XXX_Merge(src proto.Message)
- func (m *OrdererAddresses) XXX_Size() int
- func (m *OrdererAddresses) XXX_Unmarshal(b []byte) error
- type OrdererBlockMetadata
- func (*OrdererBlockMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *OrdererBlockMetadata) GetConsenterMetadata() []byte
- func (x *OrdererBlockMetadata) GetLastConfig() *LastConfig
- func (*OrdererBlockMetadata) ProtoMessage()
- func (x *OrdererBlockMetadata) ProtoReflect() protoreflect.Message
- func (x *OrdererBlockMetadata) Reset()
- func (x *OrdererBlockMetadata) String() string
- type Orderers
- func (*Orderers) Descriptor() ([]byte, []int)
- func (m *Orderers) GetConsenterMapping() []*Consenter
- func (*Orderers) ProtoMessage()
- func (m *Orderers) Reset()
- func (m *Orderers) String() string
- func (m *Orderers) XXX_DiscardUnknown()
- func (m *Orderers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Orderers) XXX_Merge(src proto.Message)
- func (m *Orderers) XXX_Size() int
- func (m *Orderers) XXX_Unmarshal(b []byte) error
- type Payload
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetType() int32
- func (m *Policy) GetValue() []byte
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) String() string
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type Policy_PolicyType
- type RedactMsg
- func (*RedactMsg) Descriptor() ([]byte, []int)deprecated
- func (x *RedactMsg) GetFameCipher() []byte
- func (x *RedactMsg) GetMsp() []byte
- func (x *RedactMsg) GetPk() []byte
- func (*RedactMsg) ProtoMessage()
- func (x *RedactMsg) ProtoReflect() protoreflect.Message
- func (x *RedactMsg) Reset()
- func (x *RedactMsg) String() string
- type SignatureHeader
- func (*SignatureHeader) Descriptor() ([]byte, []int)deprecated
- func (x *SignatureHeader) GetCreator() []byte
- func (x *SignatureHeader) GetNonce() []byte
- func (*SignatureHeader) ProtoMessage()
- func (x *SignatureHeader) ProtoReflect() protoreflect.Message
- func (x *SignatureHeader) Reset()
- func (x *SignatureHeader) String() string
- type SignaturePolicy
- func (*SignaturePolicy) Descriptor() ([]byte, []int)
- func (m *SignaturePolicy) GetNOutOf() *SignaturePolicy_NOutOf
- func (m *SignaturePolicy) GetSignedBy() int32
- func (m *SignaturePolicy) GetType() isSignaturePolicy_Type
- func (*SignaturePolicy) ProtoMessage()
- func (m *SignaturePolicy) Reset()
- func (m *SignaturePolicy) String() string
- func (m *SignaturePolicy) XXX_DiscardUnknown()
- func (m *SignaturePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignaturePolicy) XXX_Merge(src proto.Message)
- func (*SignaturePolicy) XXX_OneofWrappers() []interface{}
- func (m *SignaturePolicy) XXX_Size() int
- func (m *SignaturePolicy) XXX_Unmarshal(b []byte) error
- type SignaturePolicyEnvelope
- func (*SignaturePolicyEnvelope) Descriptor() ([]byte, []int)
- func (m *SignaturePolicyEnvelope) GetIdentities() []*msp.MSPPrincipal
- func (m *SignaturePolicyEnvelope) GetRule() *SignaturePolicy
- func (m *SignaturePolicyEnvelope) GetVersion() int32
- func (*SignaturePolicyEnvelope) ProtoMessage()
- func (m *SignaturePolicyEnvelope) Reset()
- func (m *SignaturePolicyEnvelope) String() string
- func (m *SignaturePolicyEnvelope) XXX_DiscardUnknown()
- func (m *SignaturePolicyEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignaturePolicyEnvelope) XXX_Merge(src proto.Message)
- func (m *SignaturePolicyEnvelope) XXX_Size() int
- func (m *SignaturePolicyEnvelope) XXX_Unmarshal(b []byte) error
- type SignaturePolicy_NOutOf
- func (*SignaturePolicy_NOutOf) Descriptor() ([]byte, []int)
- func (m *SignaturePolicy_NOutOf) GetN() int32
- func (m *SignaturePolicy_NOutOf) GetRules() []*SignaturePolicy
- func (*SignaturePolicy_NOutOf) ProtoMessage()
- func (m *SignaturePolicy_NOutOf) Reset()
- func (m *SignaturePolicy_NOutOf) String() string
- func (m *SignaturePolicy_NOutOf) XXX_DiscardUnknown()
- func (m *SignaturePolicy_NOutOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignaturePolicy_NOutOf) XXX_Merge(src proto.Message)
- func (m *SignaturePolicy_NOutOf) XXX_Size() int
- func (m *SignaturePolicy_NOutOf) XXX_Unmarshal(b []byte) error
- type SignaturePolicy_NOutOf_
- type SignaturePolicy_SignedBy
- type StaticCollectionConfigdeprecated
- func (*StaticCollectionConfig) Descriptor() ([]byte, []int)
- func (m *StaticCollectionConfig) GetBlockToLive() uint64
- func (m *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy
- func (m *StaticCollectionConfig) GetMaximumPeerCount() int32
- func (m *StaticCollectionConfig) GetMemberOnlyRead() bool
- func (m *StaticCollectionConfig) GetMemberOnlyWrite() bool
- func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig
- func (m *StaticCollectionConfig) GetName() string
- func (m *StaticCollectionConfig) GetRequiredPeerCount() int32
- func (*StaticCollectionConfig) ProtoMessage()
- func (m *StaticCollectionConfig) Reset()
- func (m *StaticCollectionConfig) String() string
- func (m *StaticCollectionConfig) XXX_DiscardUnknown()
- func (m *StaticCollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StaticCollectionConfig) XXX_Merge(src proto.Message)
- func (m *StaticCollectionConfig) XXX_Size() int
- func (m *StaticCollectionConfig) XXX_Unmarshal(b []byte) error
- type Status
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "UNKNOWN", 200: "SUCCESS", 400: "BAD_REQUEST", 403: "FORBIDDEN", 404: "NOT_FOUND", 413: "REQUEST_ENTITY_TOO_LARGE", 500: "INTERNAL_SERVER_ERROR", 501: "NOT_IMPLEMENTED", 503: "SERVICE_UNAVAILABLE", } Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 200, "BAD_REQUEST": 400, "FORBIDDEN": 403, "NOT_FOUND": 404, "REQUEST_ENTITY_TOO_LARGE": 413, "INTERNAL_SERVER_ERROR": 500, "NOT_IMPLEMENTED": 501, "SERVICE_UNAVAILABLE": 503, } )
Enum value maps for Status.
var ( HeaderType_name = map[int32]string{ 0: "MESSAGE", 1: "CONFIG", 2: "CONFIG_UPDATE", 3: "ENDORSER_TRANSACTION", 4: "ORDERER_TRANSACTION", 5: "DELIVER_SEEK_INFO", 6: "CHAINCODE_PACKAGE", } HeaderType_value = map[string]int32{ "MESSAGE": 0, "CONFIG": 1, "CONFIG_UPDATE": 2, "ENDORSER_TRANSACTION": 3, "ORDERER_TRANSACTION": 4, "DELIVER_SEEK_INFO": 5, "CHAINCODE_PACKAGE": 6, } )
Enum value maps for HeaderType.
var ( BlockMetadataIndex_name = map[int32]string{ 0: "SIGNATURES", 1: "LAST_CONFIG", 2: "TRANSACTIONS_FILTER", 3: "ORDERER", 4: "COMMIT_HASH", } BlockMetadataIndex_value = map[string]int32{ "SIGNATURES": 0, "LAST_CONFIG": 1, "TRANSACTIONS_FILTER": 2, "ORDERER": 3, "COMMIT_HASH": 4, } )
Enum value maps for BlockMetadataIndex.
var File_common_common_proto protoreflect.FileDescriptor
var ImplicitMetaPolicy_Rule_name = map[int32]string{
0: "ANY",
1: "ALL",
2: "MAJORITY",
}
var ImplicitMetaPolicy_Rule_value = map[string]int32{
"ANY": 0,
"ALL": 1,
"MAJORITY": 2,
}
var Policy_PolicyType_name = map[int32]string{
0: "UNKNOWN",
1: "SIGNATURE",
2: "MSP",
3: "IMPLICIT_META",
}
var Policy_PolicyType_value = map[string]int32{
"UNKNOWN": 0,
"SIGNATURE": 1,
"MSP": 2,
"IMPLICIT_META": 3,
}
Functions ¶
This section is empty.
Types ¶
type ApplicationPolicy
deprecated
type ApplicationPolicy struct { // Types that are valid to be assigned to Type: // // *ApplicationPolicy_SignaturePolicy // *ApplicationPolicy_ChannelConfigPolicyReference Type isApplicationPolicy_Type `protobuf_oneof:"Type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ApplicationPolicy captures the diffenrent policy types that are set and evaluted at the application level.
Deprecated: Do not use.
func (*ApplicationPolicy) Descriptor ¶
func (*ApplicationPolicy) Descriptor() ([]byte, []int)
func (*ApplicationPolicy) GetChannelConfigPolicyReference ¶
func (m *ApplicationPolicy) GetChannelConfigPolicyReference() string
func (*ApplicationPolicy) GetSignaturePolicy ¶
func (m *ApplicationPolicy) GetSignaturePolicy() *SignaturePolicyEnvelope
func (*ApplicationPolicy) GetType ¶
func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type
func (*ApplicationPolicy) ProtoMessage ¶
func (*ApplicationPolicy) ProtoMessage()
func (*ApplicationPolicy) Reset ¶
func (m *ApplicationPolicy) Reset()
func (*ApplicationPolicy) String ¶
func (m *ApplicationPolicy) String() string
func (*ApplicationPolicy) XXX_DiscardUnknown ¶
func (m *ApplicationPolicy) XXX_DiscardUnknown()
func (*ApplicationPolicy) XXX_Marshal ¶
func (m *ApplicationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplicationPolicy) XXX_Merge ¶
func (m *ApplicationPolicy) XXX_Merge(src proto.Message)
func (*ApplicationPolicy) XXX_OneofWrappers ¶
func (*ApplicationPolicy) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ApplicationPolicy) XXX_Size ¶
func (m *ApplicationPolicy) XXX_Size() int
func (*ApplicationPolicy) XXX_Unmarshal ¶
func (m *ApplicationPolicy) XXX_Unmarshal(b []byte) error
type ApplicationPolicy_ChannelConfigPolicyReference ¶
type ApplicationPolicy_ChannelConfigPolicyReference struct {
ChannelConfigPolicyReference string `protobuf:"bytes,2,opt,name=channel_config_policy_reference,json=channelConfigPolicyReference,proto3,oneof"`
}
type ApplicationPolicy_SignaturePolicy ¶
type ApplicationPolicy_SignaturePolicy struct {
SignaturePolicy *SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}
type Block ¶
type Block struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Data *BlockData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Metadata *BlockMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` }
This is finalized block structure to be shared among the orderer and peer Note that the BlockHeader chains to the previous BlockHeader, and the BlockData hash is embedded in the BlockHeader. This makes it natural and obvious that the Data is included in the hash, but the Metadata is not.
func (*Block) Descriptor
deprecated
func (*Block) GetHeader ¶
func (x *Block) GetHeader() *BlockHeader
func (*Block) GetMetadata ¶
func (x *Block) GetMetadata() *BlockMetadata
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶ added in v1.0.6
func (x *Block) ProtoReflect() protoreflect.Message
type BlockData ¶
type BlockData struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` }
func (*BlockData) Descriptor
deprecated
func (*BlockData) ProtoMessage ¶
func (*BlockData) ProtoMessage()
func (*BlockData) ProtoReflect ¶ added in v1.0.6
func (x *BlockData) ProtoReflect() protoreflect.Message
type BlockDataHashingStructure ¶
type BlockDataHashingStructure struct { // width specifies the width of the Merkle tree to use when computing the BlockDataHash // in order to replicate flat hashing, set this width to MAX_UINT32 Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes
func (*BlockDataHashingStructure) Descriptor ¶
func (*BlockDataHashingStructure) Descriptor() ([]byte, []int)
func (*BlockDataHashingStructure) GetWidth ¶
func (m *BlockDataHashingStructure) GetWidth() uint32
func (*BlockDataHashingStructure) ProtoMessage ¶
func (*BlockDataHashingStructure) ProtoMessage()
func (*BlockDataHashingStructure) Reset ¶
func (m *BlockDataHashingStructure) Reset()
func (*BlockDataHashingStructure) String ¶
func (m *BlockDataHashingStructure) String() string
func (*BlockDataHashingStructure) XXX_DiscardUnknown ¶
func (m *BlockDataHashingStructure) XXX_DiscardUnknown()
func (*BlockDataHashingStructure) XXX_Marshal ¶
func (m *BlockDataHashingStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockDataHashingStructure) XXX_Merge ¶
func (m *BlockDataHashingStructure) XXX_Merge(src proto.Message)
func (*BlockDataHashingStructure) XXX_Size ¶
func (m *BlockDataHashingStructure) XXX_Size() int
func (*BlockDataHashingStructure) XXX_Unmarshal ¶
func (m *BlockDataHashingStructure) XXX_Unmarshal(b []byte) error
type BlockHeader ¶
type BlockHeader struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The position in the blockchain PreviousHash []byte `protobuf:"bytes,2,opt,name=previous_hash,json=previousHash,proto3" json:"previous_hash,omitempty"` // The hash of the previous block header DataHash []byte `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // The hash of the BlockData, by MerkleTree }
BlockHeader is the element of the block which forms the block chain The block header is hashed using the configured chain hashing algorithm over the ASN.1 encoding of the BlockHeader
func (*BlockHeader) Descriptor
deprecated
func (*BlockHeader) Descriptor() ([]byte, []int)
Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.
func (*BlockHeader) GetDataHash ¶
func (x *BlockHeader) GetDataHash() []byte
func (*BlockHeader) GetNumber ¶
func (x *BlockHeader) GetNumber() uint64
func (*BlockHeader) GetPreviousHash ¶
func (x *BlockHeader) GetPreviousHash() []byte
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) ProtoReflect ¶ added in v1.0.6
func (x *BlockHeader) ProtoReflect() protoreflect.Message
func (*BlockHeader) Reset ¶
func (x *BlockHeader) Reset()
func (*BlockHeader) String ¶
func (x *BlockHeader) String() string
type BlockMetadata ¶
type BlockMetadata struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Metadata [][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` }
func (*BlockMetadata) Descriptor
deprecated
func (*BlockMetadata) Descriptor() ([]byte, []int)
Deprecated: Use BlockMetadata.ProtoReflect.Descriptor instead.
func (*BlockMetadata) GetMetadata ¶
func (x *BlockMetadata) GetMetadata() [][]byte
func (*BlockMetadata) ProtoMessage ¶
func (*BlockMetadata) ProtoMessage()
func (*BlockMetadata) ProtoReflect ¶ added in v1.0.6
func (x *BlockMetadata) ProtoReflect() protoreflect.Message
func (*BlockMetadata) Reset ¶
func (x *BlockMetadata) Reset()
func (*BlockMetadata) String ¶
func (x *BlockMetadata) String() string
type BlockMetadataIndex ¶
type BlockMetadataIndex int32
This enum enlists indexes of the block metadata array
const ( BlockMetadataIndex_SIGNATURES BlockMetadataIndex = 0 // Block metadata array position for block signatures // Deprecated: Marked as deprecated in common/common.proto. BlockMetadataIndex_LAST_CONFIG BlockMetadataIndex = 1 // Block metadata array position to store last configuration block sequence number BlockMetadataIndex_TRANSACTIONS_FILTER BlockMetadataIndex = 2 // Block metadata array position to store serialized bit array filter of invalid transactions // Deprecated: Marked as deprecated in common/common.proto. BlockMetadataIndex_ORDERER BlockMetadataIndex = 3 // Block metadata array position to store operational metadata for orderers BlockMetadataIndex_COMMIT_HASH BlockMetadataIndex = 4 )
func (BlockMetadataIndex) Descriptor ¶ added in v1.0.6
func (BlockMetadataIndex) Descriptor() protoreflect.EnumDescriptor
func (BlockMetadataIndex) Enum ¶ added in v1.0.6
func (x BlockMetadataIndex) Enum() *BlockMetadataIndex
func (BlockMetadataIndex) EnumDescriptor
deprecated
func (BlockMetadataIndex) EnumDescriptor() ([]byte, []int)
Deprecated: Use BlockMetadataIndex.Descriptor instead.
func (BlockMetadataIndex) Number ¶ added in v1.0.6
func (x BlockMetadataIndex) Number() protoreflect.EnumNumber
func (BlockMetadataIndex) String ¶
func (x BlockMetadataIndex) String() string
func (BlockMetadataIndex) Type ¶ added in v1.0.6
func (BlockMetadataIndex) Type() protoreflect.EnumType
type BlockchainInfo ¶
type BlockchainInfo struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` CurrentBlockHash []byte `protobuf:"bytes,2,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"` PreviousBlockHash []byte `protobuf:"bytes,3,opt,name=previousBlockHash,proto3" json:"previousBlockHash,omitempty"` // Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. // It is nil if the channel is not bootstrapped from a snapshot. BootstrappingSnapshotInfo *BootstrappingSnapshotInfo `protobuf:"bytes,4,opt,name=bootstrappingSnapshotInfo,proto3" json:"bootstrappingSnapshotInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains information about the blockchain ledger such as height, current block hash, and previous block hash.
func (*BlockchainInfo) Descriptor ¶
func (*BlockchainInfo) Descriptor() ([]byte, []int)
func (*BlockchainInfo) GetBootstrappingSnapshotInfo ¶
func (m *BlockchainInfo) GetBootstrappingSnapshotInfo() *BootstrappingSnapshotInfo
func (*BlockchainInfo) GetCurrentBlockHash ¶
func (m *BlockchainInfo) GetCurrentBlockHash() []byte
func (*BlockchainInfo) GetHeight ¶
func (m *BlockchainInfo) GetHeight() uint64
func (*BlockchainInfo) GetPreviousBlockHash ¶
func (m *BlockchainInfo) GetPreviousBlockHash() []byte
func (*BlockchainInfo) ProtoMessage ¶
func (*BlockchainInfo) ProtoMessage()
func (*BlockchainInfo) Reset ¶
func (m *BlockchainInfo) Reset()
func (*BlockchainInfo) String ¶
func (m *BlockchainInfo) String() string
func (*BlockchainInfo) XXX_DiscardUnknown ¶
func (m *BlockchainInfo) XXX_DiscardUnknown()
func (*BlockchainInfo) XXX_Marshal ¶
func (m *BlockchainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockchainInfo) XXX_Merge ¶
func (m *BlockchainInfo) XXX_Merge(src proto.Message)
func (*BlockchainInfo) XXX_Size ¶
func (m *BlockchainInfo) XXX_Size() int
func (*BlockchainInfo) XXX_Unmarshal ¶
func (m *BlockchainInfo) XXX_Unmarshal(b []byte) error
type BootstrappingSnapshotInfo ¶
type BootstrappingSnapshotInfo struct { LastBlockInSnapshot uint64 `protobuf:"varint,1,opt,name=lastBlockInSnapshot,proto3" json:"lastBlockInSnapshot,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains information for the bootstrapping snapshot.
func (*BootstrappingSnapshotInfo) Descriptor ¶
func (*BootstrappingSnapshotInfo) Descriptor() ([]byte, []int)
func (*BootstrappingSnapshotInfo) GetLastBlockInSnapshot ¶
func (m *BootstrappingSnapshotInfo) GetLastBlockInSnapshot() uint64
func (*BootstrappingSnapshotInfo) ProtoMessage ¶
func (*BootstrappingSnapshotInfo) ProtoMessage()
func (*BootstrappingSnapshotInfo) Reset ¶
func (m *BootstrappingSnapshotInfo) Reset()
func (*BootstrappingSnapshotInfo) String ¶
func (m *BootstrappingSnapshotInfo) String() string
func (*BootstrappingSnapshotInfo) XXX_DiscardUnknown ¶
func (m *BootstrappingSnapshotInfo) XXX_DiscardUnknown()
func (*BootstrappingSnapshotInfo) XXX_Marshal ¶
func (m *BootstrappingSnapshotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BootstrappingSnapshotInfo) XXX_Merge ¶
func (m *BootstrappingSnapshotInfo) XXX_Merge(src proto.Message)
func (*BootstrappingSnapshotInfo) XXX_Size ¶
func (m *BootstrappingSnapshotInfo) XXX_Size() int
func (*BootstrappingSnapshotInfo) XXX_Unmarshal ¶
func (m *BootstrappingSnapshotInfo) XXX_Unmarshal(b []byte) error
type Capabilities ¶
type Capabilities struct { Capabilities map[string]*Capability `` /* 165-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Capabilities message defines the capabilities a particular binary must implement for that binary to be able to safely participate in the channel. The capabilities message is defined at the /Channel level, the /Channel/Application level, and the /Channel/Orderer level.
The /Channel level capabilties define capabilities which both the orderer and peer binaries must satisfy. These capabilties might be things like a new MSP type, or a new policy type.
The /Channel/Orderer level capabilties define capabilities which must be supported by the orderer, but which have no bearing on the behavior of the peer. For instance if the orderer changes the logic for how it constructs new channels, only all orderers must agree on the new logic. The peers do not need to be aware of this change as they only interact with the channel after it has been constructed.
Finally, the /Channel/Application level capabilities define capabilities which the peer binary must satisfy, but which have no bearing on the orderer. For instance, if the peer adds a new UTXO transaction type, or changes the chaincode lifecycle requirements, all peers must agree on the new logic. However, orderers never inspect transactions this deeply, and therefore have no need to be aware of the change.
The capabilities strings defined in these messages typically correspond to release binary versions (e.g. "V1.1"), and are used primarilly as a mechanism for a fully upgraded network to switch from one set of logic to a new one.
Although for V1.1, the orderers must be upgraded to V1.1 prior to the rest of the network, going forward, because of the split between the /Channel, /Channel/Orderer and /Channel/Application capabilities. It should be possible for the orderer and application networks to upgrade themselves independently (with the exception of any new capabilities defined at the /Channel level).
func (*Capabilities) Descriptor ¶
func (*Capabilities) Descriptor() ([]byte, []int)
func (*Capabilities) GetCapabilities ¶
func (m *Capabilities) GetCapabilities() map[string]*Capability
func (*Capabilities) ProtoMessage ¶
func (*Capabilities) ProtoMessage()
func (*Capabilities) Reset ¶
func (m *Capabilities) Reset()
func (*Capabilities) String ¶
func (m *Capabilities) String() string
func (*Capabilities) XXX_DiscardUnknown ¶
func (m *Capabilities) XXX_DiscardUnknown()
func (*Capabilities) XXX_Marshal ¶
func (m *Capabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Capabilities) XXX_Merge ¶
func (m *Capabilities) XXX_Merge(src proto.Message)
func (*Capabilities) XXX_Size ¶
func (m *Capabilities) XXX_Size() int
func (*Capabilities) XXX_Unmarshal ¶
func (m *Capabilities) XXX_Unmarshal(b []byte) error
type Capability ¶
type Capability struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Capability is an empty message for the time being. It is defined as a protobuf message rather than a constant, so that we may extend capabilities with other fields if the need arises in the future. For the time being, a capability being in the capabilities map requires that that capability be supported.
func (*Capability) Descriptor ¶
func (*Capability) Descriptor() ([]byte, []int)
func (*Capability) ProtoMessage ¶
func (*Capability) ProtoMessage()
func (*Capability) Reset ¶
func (m *Capability) Reset()
func (*Capability) String ¶
func (m *Capability) String() string
func (*Capability) XXX_DiscardUnknown ¶
func (m *Capability) XXX_DiscardUnknown()
func (*Capability) XXX_Marshal ¶
func (m *Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Capability) XXX_Merge ¶
func (m *Capability) XXX_Merge(src proto.Message)
func (*Capability) XXX_Size ¶
func (m *Capability) XXX_Size() int
func (*Capability) XXX_Unmarshal ¶
func (m *Capability) XXX_Unmarshal(b []byte) error
type ChannelHeader ¶
type ChannelHeader struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` // Header types 0-10000 are reserved and defined by HeaderType // Version indicates message protocol version Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Timestamp is the local time when the message was created // by the sender Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Identifier of the channel this message is bound for ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // An unique identifier that is used end-to-end. // - set by higher layers such as end user or SDK // - passed to the endorser (which will check for uniqueness) // - as the header is passed along unchanged, it will be // be retrieved by the committer (uniqueness check here as well) // - to be stored in the ledger TxId string `protobuf:"bytes,5,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // The epoch in which this header was generated, where epoch is defined based on block height // Epoch in which the response has been generated. This field identifies a // logical window of time. A proposal response is accepted by a peer only if // two conditions hold: // 1. the epoch specified in the message is the current epoch // 2. this message has been only seen once during this epoch (i.e. it hasn't // been replayed) Epoch uint64 `protobuf:"varint,6,opt,name=epoch,proto3" json:"epoch,omitempty"` // Extension that may be attached based on the header type Extension []byte `protobuf:"bytes,7,opt,name=extension,proto3" json:"extension,omitempty"` // If mutual TLS is employed, this represents // the hash of the client's TLS certificate TlsCertHash []byte `protobuf:"bytes,8,opt,name=tls_cert_hash,json=tlsCertHash,proto3" json:"tls_cert_hash,omitempty"` }
Header is a generic replay prevention and identity message to include in a signed payload
func (*ChannelHeader) Descriptor
deprecated
func (*ChannelHeader) Descriptor() ([]byte, []int)
Deprecated: Use ChannelHeader.ProtoReflect.Descriptor instead.
func (*ChannelHeader) GetChannelId ¶
func (x *ChannelHeader) GetChannelId() string
func (*ChannelHeader) GetEpoch ¶
func (x *ChannelHeader) GetEpoch() uint64
func (*ChannelHeader) GetExtension ¶
func (x *ChannelHeader) GetExtension() []byte
func (*ChannelHeader) GetTimestamp ¶
func (x *ChannelHeader) GetTimestamp() *timestamppb.Timestamp
func (*ChannelHeader) GetTlsCertHash ¶
func (x *ChannelHeader) GetTlsCertHash() []byte
func (*ChannelHeader) GetTxId ¶
func (x *ChannelHeader) GetTxId() string
func (*ChannelHeader) GetType ¶
func (x *ChannelHeader) GetType() int32
func (*ChannelHeader) GetVersion ¶
func (x *ChannelHeader) GetVersion() int32
func (*ChannelHeader) ProtoMessage ¶
func (*ChannelHeader) ProtoMessage()
func (*ChannelHeader) ProtoReflect ¶ added in v1.0.6
func (x *ChannelHeader) ProtoReflect() protoreflect.Message
func (*ChannelHeader) Reset ¶
func (x *ChannelHeader) Reset()
func (*ChannelHeader) String ¶
func (x *ChannelHeader) String() string
type CollectionConfig
deprecated
type CollectionConfig struct { // Types that are valid to be assigned to Payload: // // *CollectionConfig_StaticCollectionConfig Payload isCollectionConfig_Payload `protobuf_oneof:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CollectionConfig defines the configuration of a collection object; it currently contains a single, static type. Dynamic collections are deferred.
Deprecated: Do not use.
func (*CollectionConfig) Descriptor ¶
func (*CollectionConfig) Descriptor() ([]byte, []int)
func (*CollectionConfig) GetPayload ¶
func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload
func (*CollectionConfig) GetStaticCollectionConfig ¶
func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig
func (*CollectionConfig) ProtoMessage ¶
func (*CollectionConfig) ProtoMessage()
func (*CollectionConfig) Reset ¶
func (m *CollectionConfig) Reset()
func (*CollectionConfig) String ¶
func (m *CollectionConfig) String() string
func (*CollectionConfig) XXX_DiscardUnknown ¶
func (m *CollectionConfig) XXX_DiscardUnknown()
func (*CollectionConfig) XXX_Marshal ¶
func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectionConfig) XXX_Merge ¶
func (m *CollectionConfig) XXX_Merge(src proto.Message)
func (*CollectionConfig) XXX_OneofWrappers ¶
func (*CollectionConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CollectionConfig) XXX_Size ¶
func (m *CollectionConfig) XXX_Size() int
func (*CollectionConfig) XXX_Unmarshal ¶
func (m *CollectionConfig) XXX_Unmarshal(b []byte) error
type CollectionConfigPackage
deprecated
type CollectionConfigPackage struct { Config []*CollectionConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CollectionConfigPackage represents an array of CollectionConfig messages; the extra struct is required because repeated oneof is forbidden by the protobuf syntax
Deprecated: Do not use.
func (*CollectionConfigPackage) Descriptor ¶
func (*CollectionConfigPackage) Descriptor() ([]byte, []int)
func (*CollectionConfigPackage) GetConfig ¶
func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig
func (*CollectionConfigPackage) ProtoMessage ¶
func (*CollectionConfigPackage) ProtoMessage()
func (*CollectionConfigPackage) Reset ¶
func (m *CollectionConfigPackage) Reset()
func (*CollectionConfigPackage) String ¶
func (m *CollectionConfigPackage) String() string
func (*CollectionConfigPackage) XXX_DiscardUnknown ¶
func (m *CollectionConfigPackage) XXX_DiscardUnknown()
func (*CollectionConfigPackage) XXX_Marshal ¶
func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectionConfigPackage) XXX_Merge ¶
func (m *CollectionConfigPackage) XXX_Merge(src proto.Message)
func (*CollectionConfigPackage) XXX_Size ¶
func (m *CollectionConfigPackage) XXX_Size() int
func (*CollectionConfigPackage) XXX_Unmarshal ¶
func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error
type CollectionConfig_StaticCollectionConfig ¶
type CollectionConfig_StaticCollectionConfig struct {
StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"`
}
type CollectionPolicyConfig
deprecated
type CollectionPolicyConfig struct { // Types that are valid to be assigned to Payload: // // *CollectionPolicyConfig_SignaturePolicy Payload isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Collection policy configuration. Initially, the configuration can only contain a SignaturePolicy. In the future, the SignaturePolicy may be a more general Policy. Instead of containing the actual policy, the configuration may in the future contain a string reference to a policy.
Deprecated: Do not use.
func (*CollectionPolicyConfig) Descriptor ¶
func (*CollectionPolicyConfig) Descriptor() ([]byte, []int)
func (*CollectionPolicyConfig) GetPayload ¶
func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload
func (*CollectionPolicyConfig) GetSignaturePolicy ¶
func (m *CollectionPolicyConfig) GetSignaturePolicy() *SignaturePolicyEnvelope
func (*CollectionPolicyConfig) ProtoMessage ¶
func (*CollectionPolicyConfig) ProtoMessage()
func (*CollectionPolicyConfig) Reset ¶
func (m *CollectionPolicyConfig) Reset()
func (*CollectionPolicyConfig) String ¶
func (m *CollectionPolicyConfig) String() string
func (*CollectionPolicyConfig) XXX_DiscardUnknown ¶
func (m *CollectionPolicyConfig) XXX_DiscardUnknown()
func (*CollectionPolicyConfig) XXX_Marshal ¶
func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectionPolicyConfig) XXX_Merge ¶
func (m *CollectionPolicyConfig) XXX_Merge(src proto.Message)
func (*CollectionPolicyConfig) XXX_OneofWrappers ¶
func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CollectionPolicyConfig) XXX_Size ¶
func (m *CollectionPolicyConfig) XXX_Size() int
func (*CollectionPolicyConfig) XXX_Unmarshal ¶
func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error
type CollectionPolicyConfig_SignaturePolicy ¶
type CollectionPolicyConfig_SignaturePolicy struct {
SignaturePolicy *SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}
type Config ¶
type Config struct { Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` ChannelGroup *ConfigGroup `protobuf:"bytes,2,opt,name=channel_group,json=channelGroup,proto3" json:"channel_group,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Config represents the config for a particular channel
func (*Config) Descriptor ¶
func (*Config) GetChannelGroup ¶
func (m *Config) GetChannelGroup() *ConfigGroup
func (*Config) GetSequence ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type ConfigEnvelope ¶
type ConfigEnvelope struct { Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` LastUpdate *Envelope `protobuf:"bytes,2,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency on previous configuration transactions.
It is generated with the following scheme:
- Retrieve the existing configuration
- Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified
- Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely)
- Add any additional desired dependencies to ConfigUpdate.read_set (sparsely)
- Modify the config properties, incrementing each version by 1, set them in the ConfigUpdate.write_set Note: any element not modified but specified should already be in the read_set, so may be specified sparsely
- Create ConfigUpdate message and marshal it into ConfigUpdateEnvelope.update and encode the required signatures a) Each signature is of type ConfigSignature b) The ConfigSignature signature is over the concatenation of signature_header and the ConfigUpdate bytes (which includes a ChainHeader)
- Submit new Config for ordering in Envelope signed by submitter a) The Envelope Payload has data set to the marshaled ConfigEnvelope b) The Envelope Payload has a header of type Header.Type.CONFIG_UPDATE
The configuration manager will verify:
- All items in the read_set exist at the read versions
- All items in the write_set at a different version than, or not in, the read_set have been appropriately signed according to their mod_policy
- The new configuration satisfies the ConfigSchema
func (*ConfigEnvelope) Descriptor ¶
func (*ConfigEnvelope) Descriptor() ([]byte, []int)
func (*ConfigEnvelope) GetConfig ¶
func (m *ConfigEnvelope) GetConfig() *Config
func (*ConfigEnvelope) GetLastUpdate ¶
func (m *ConfigEnvelope) GetLastUpdate() *Envelope
func (*ConfigEnvelope) ProtoMessage ¶
func (*ConfigEnvelope) ProtoMessage()
func (*ConfigEnvelope) Reset ¶
func (m *ConfigEnvelope) Reset()
func (*ConfigEnvelope) String ¶
func (m *ConfigEnvelope) String() string
func (*ConfigEnvelope) XXX_DiscardUnknown ¶
func (m *ConfigEnvelope) XXX_DiscardUnknown()
func (*ConfigEnvelope) XXX_Marshal ¶
func (m *ConfigEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigEnvelope) XXX_Merge ¶
func (m *ConfigEnvelope) XXX_Merge(src proto.Message)
func (*ConfigEnvelope) XXX_Size ¶
func (m *ConfigEnvelope) XXX_Size() int
func (*ConfigEnvelope) XXX_Unmarshal ¶
func (m *ConfigEnvelope) XXX_Unmarshal(b []byte) error
type ConfigGroup ¶
type ConfigGroup struct { Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Groups map[string]*ConfigGroup `` /* 153-byte string literal not displayed */ Values map[string]*ConfigValue `` /* 153-byte string literal not displayed */ Policies map[string]*ConfigPolicy `` /* 157-byte string literal not displayed */ ModPolicy string `protobuf:"bytes,5,opt,name=mod_policy,json=modPolicy,proto3" json:"mod_policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConfigGroup is the hierarchical data structure for holding config
func (*ConfigGroup) Descriptor ¶
func (*ConfigGroup) Descriptor() ([]byte, []int)
func (*ConfigGroup) GetGroups ¶
func (m *ConfigGroup) GetGroups() map[string]*ConfigGroup
func (*ConfigGroup) GetModPolicy ¶
func (m *ConfigGroup) GetModPolicy() string
func (*ConfigGroup) GetPolicies ¶
func (m *ConfigGroup) GetPolicies() map[string]*ConfigPolicy
func (*ConfigGroup) GetValues ¶
func (m *ConfigGroup) GetValues() map[string]*ConfigValue
func (*ConfigGroup) GetVersion ¶
func (m *ConfigGroup) GetVersion() uint64
func (*ConfigGroup) ProtoMessage ¶
func (*ConfigGroup) ProtoMessage()
func (*ConfigGroup) Reset ¶
func (m *ConfigGroup) Reset()
func (*ConfigGroup) String ¶
func (m *ConfigGroup) String() string
func (*ConfigGroup) XXX_DiscardUnknown ¶
func (m *ConfigGroup) XXX_DiscardUnknown()
func (*ConfigGroup) XXX_Marshal ¶
func (m *ConfigGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigGroup) XXX_Merge ¶
func (m *ConfigGroup) XXX_Merge(src proto.Message)
func (*ConfigGroup) XXX_Size ¶
func (m *ConfigGroup) XXX_Size() int
func (*ConfigGroup) XXX_Unmarshal ¶
func (m *ConfigGroup) XXX_Unmarshal(b []byte) error
type ConfigPolicy ¶
type ConfigPolicy struct { Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"` ModPolicy string `protobuf:"bytes,3,opt,name=mod_policy,json=modPolicy,proto3" json:"mod_policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConfigPolicy) Descriptor ¶
func (*ConfigPolicy) Descriptor() ([]byte, []int)
func (*ConfigPolicy) GetModPolicy ¶
func (m *ConfigPolicy) GetModPolicy() string
func (*ConfigPolicy) GetPolicy ¶
func (m *ConfigPolicy) GetPolicy() *Policy
func (*ConfigPolicy) GetVersion ¶
func (m *ConfigPolicy) GetVersion() uint64
func (*ConfigPolicy) ProtoMessage ¶
func (*ConfigPolicy) ProtoMessage()
func (*ConfigPolicy) Reset ¶
func (m *ConfigPolicy) Reset()
func (*ConfigPolicy) String ¶
func (m *ConfigPolicy) String() string
func (*ConfigPolicy) XXX_DiscardUnknown ¶
func (m *ConfigPolicy) XXX_DiscardUnknown()
func (*ConfigPolicy) XXX_Marshal ¶
func (m *ConfigPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigPolicy) XXX_Merge ¶
func (m *ConfigPolicy) XXX_Merge(src proto.Message)
func (*ConfigPolicy) XXX_Size ¶
func (m *ConfigPolicy) XXX_Size() int
func (*ConfigPolicy) XXX_Unmarshal ¶
func (m *ConfigPolicy) XXX_Unmarshal(b []byte) error
type ConfigSignature ¶
type ConfigSignature struct { SignatureHeader []byte `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConfigSignature) Descriptor ¶
func (*ConfigSignature) Descriptor() ([]byte, []int)
func (*ConfigSignature) GetSignature ¶
func (m *ConfigSignature) GetSignature() []byte
func (*ConfigSignature) GetSignatureHeader ¶
func (m *ConfigSignature) GetSignatureHeader() []byte
func (*ConfigSignature) ProtoMessage ¶
func (*ConfigSignature) ProtoMessage()
func (*ConfigSignature) Reset ¶
func (m *ConfigSignature) Reset()
func (*ConfigSignature) String ¶
func (m *ConfigSignature) String() string
func (*ConfigSignature) XXX_DiscardUnknown ¶
func (m *ConfigSignature) XXX_DiscardUnknown()
func (*ConfigSignature) XXX_Marshal ¶
func (m *ConfigSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigSignature) XXX_Merge ¶
func (m *ConfigSignature) XXX_Merge(src proto.Message)
func (*ConfigSignature) XXX_Size ¶
func (m *ConfigSignature) XXX_Size() int
func (*ConfigSignature) XXX_Unmarshal ¶
func (m *ConfigSignature) XXX_Unmarshal(b []byte) error
type ConfigUpdate ¶
type ConfigUpdate struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ReadSet *ConfigGroup `protobuf:"bytes,2,opt,name=read_set,json=readSet,proto3" json:"read_set,omitempty"` WriteSet *ConfigGroup `protobuf:"bytes,3,opt,name=write_set,json=writeSet,proto3" json:"write_set,omitempty"` IsolatedData map[string][]byte `` /* 185-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConfigUpdate is used to submit a subset of config and to have the orderer apply to Config it is always submitted inside a ConfigUpdateEnvelope which allows the addition of signatures resulting in a new total configuration. The update is applied as follows:
- The versions from all of the elements in the read_set is verified against the versions in the existing config. If there is a mismatch in the read versions, then the config update fails and is rejected.
- Any elements in the write_set with the same version as the read_set are ignored.
- The corresponding mod_policy for every remaining element in the write_set is collected.
- Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected
- The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legal
func (*ConfigUpdate) Descriptor ¶
func (*ConfigUpdate) Descriptor() ([]byte, []int)
func (*ConfigUpdate) GetChannelId ¶
func (m *ConfigUpdate) GetChannelId() string
func (*ConfigUpdate) GetIsolatedData ¶
func (m *ConfigUpdate) GetIsolatedData() map[string][]byte
func (*ConfigUpdate) GetReadSet ¶
func (m *ConfigUpdate) GetReadSet() *ConfigGroup
func (*ConfigUpdate) GetWriteSet ¶
func (m *ConfigUpdate) GetWriteSet() *ConfigGroup
func (*ConfigUpdate) ProtoMessage ¶
func (*ConfigUpdate) ProtoMessage()
func (*ConfigUpdate) Reset ¶
func (m *ConfigUpdate) Reset()
func (*ConfigUpdate) String ¶
func (m *ConfigUpdate) String() string
func (*ConfigUpdate) XXX_DiscardUnknown ¶
func (m *ConfigUpdate) XXX_DiscardUnknown()
func (*ConfigUpdate) XXX_Marshal ¶
func (m *ConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigUpdate) XXX_Merge ¶
func (m *ConfigUpdate) XXX_Merge(src proto.Message)
func (*ConfigUpdate) XXX_Size ¶
func (m *ConfigUpdate) XXX_Size() int
func (*ConfigUpdate) XXX_Unmarshal ¶
func (m *ConfigUpdate) XXX_Unmarshal(b []byte) error
type ConfigUpdateEnvelope ¶
type ConfigUpdateEnvelope struct { ConfigUpdate []byte `protobuf:"bytes,1,opt,name=config_update,json=configUpdate,proto3" json:"config_update,omitempty"` Signatures []*ConfigSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConfigUpdateEnvelope) Descriptor ¶
func (*ConfigUpdateEnvelope) Descriptor() ([]byte, []int)
func (*ConfigUpdateEnvelope) GetConfigUpdate ¶
func (m *ConfigUpdateEnvelope) GetConfigUpdate() []byte
func (*ConfigUpdateEnvelope) GetSignatures ¶
func (m *ConfigUpdateEnvelope) GetSignatures() []*ConfigSignature
func (*ConfigUpdateEnvelope) ProtoMessage ¶
func (*ConfigUpdateEnvelope) ProtoMessage()
func (*ConfigUpdateEnvelope) Reset ¶
func (m *ConfigUpdateEnvelope) Reset()
func (*ConfigUpdateEnvelope) String ¶
func (m *ConfigUpdateEnvelope) String() string
func (*ConfigUpdateEnvelope) XXX_DiscardUnknown ¶
func (m *ConfigUpdateEnvelope) XXX_DiscardUnknown()
func (*ConfigUpdateEnvelope) XXX_Marshal ¶
func (m *ConfigUpdateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigUpdateEnvelope) XXX_Merge ¶
func (m *ConfigUpdateEnvelope) XXX_Merge(src proto.Message)
func (*ConfigUpdateEnvelope) XXX_Size ¶
func (m *ConfigUpdateEnvelope) XXX_Size() int
func (*ConfigUpdateEnvelope) XXX_Unmarshal ¶
func (m *ConfigUpdateEnvelope) XXX_Unmarshal(b []byte) error
type ConfigValue ¶
type ConfigValue struct { Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` ModPolicy string `protobuf:"bytes,3,opt,name=mod_policy,json=modPolicy,proto3" json:"mod_policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConfigValue represents an individual piece of config data
func (*ConfigValue) Descriptor ¶
func (*ConfigValue) Descriptor() ([]byte, []int)
func (*ConfigValue) GetModPolicy ¶
func (m *ConfigValue) GetModPolicy() string
func (*ConfigValue) GetValue ¶
func (m *ConfigValue) GetValue() []byte
func (*ConfigValue) GetVersion ¶
func (m *ConfigValue) GetVersion() uint64
func (*ConfigValue) ProtoMessage ¶
func (*ConfigValue) ProtoMessage()
func (*ConfigValue) Reset ¶
func (m *ConfigValue) Reset()
func (*ConfigValue) String ¶
func (m *ConfigValue) String() string
func (*ConfigValue) XXX_DiscardUnknown ¶
func (m *ConfigValue) XXX_DiscardUnknown()
func (*ConfigValue) XXX_Marshal ¶
func (m *ConfigValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigValue) XXX_Merge ¶
func (m *ConfigValue) XXX_Merge(src proto.Message)
func (*ConfigValue) XXX_Size ¶
func (m *ConfigValue) XXX_Size() int
func (*ConfigValue) XXX_Unmarshal ¶
func (m *ConfigValue) XXX_Unmarshal(b []byte) error
type Consenter ¶
type Consenter struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` MspId string `protobuf:"bytes,4,opt,name=msp_id,json=mspId,proto3" json:"msp_id,omitempty"` Identity []byte `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` ClientTlsCert []byte `protobuf:"bytes,6,opt,name=client_tls_cert,json=clientTlsCert,proto3" json:"client_tls_cert,omitempty"` ServerTlsCert []byte `protobuf:"bytes,7,opt,name=server_tls_cert,json=serverTlsCert,proto3" json:"server_tls_cert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Consenter represents a consenting node (i.e. replica).
func (*Consenter) Descriptor ¶
func (*Consenter) GetClientTlsCert ¶
func (*Consenter) GetIdentity ¶
func (*Consenter) GetServerTlsCert ¶
func (*Consenter) ProtoMessage ¶
func (*Consenter) ProtoMessage()
func (*Consenter) XXX_DiscardUnknown ¶
func (m *Consenter) XXX_DiscardUnknown()
func (*Consenter) XXX_Marshal ¶
func (*Consenter) XXX_Unmarshal ¶
type Consortium ¶
type Consortium struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Consortium represents the consortium context in which the channel was created
func (*Consortium) Descriptor ¶
func (*Consortium) Descriptor() ([]byte, []int)
func (*Consortium) GetName ¶
func (m *Consortium) GetName() string
func (*Consortium) ProtoMessage ¶
func (*Consortium) ProtoMessage()
func (*Consortium) Reset ¶
func (m *Consortium) Reset()
func (*Consortium) String ¶
func (m *Consortium) String() string
func (*Consortium) XXX_DiscardUnknown ¶
func (m *Consortium) XXX_DiscardUnknown()
func (*Consortium) XXX_Marshal ¶
func (m *Consortium) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Consortium) XXX_Merge ¶
func (m *Consortium) XXX_Merge(src proto.Message)
func (*Consortium) XXX_Size ¶
func (m *Consortium) XXX_Size() int
func (*Consortium) XXX_Unmarshal ¶
func (m *Consortium) XXX_Unmarshal(b []byte) error
type Envelope ¶
type Envelope struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields // A marshaled Payload Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // A signature by the creator specified in the Payload header Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Redactable bool `protobuf:"varint,3,opt,name=redactable,proto3" json:"redactable,omitempty"` RedactMessage []byte `protobuf:"bytes,4,opt,name=redactMessage,proto3" json:"redactMessage,omitempty"` }
Envelope wraps a Payload with a signature so that the message may be authenticated
func (*Envelope) Descriptor
deprecated
func (*Envelope) GetPayload ¶
func (*Envelope) GetRedactMessage ¶ added in v1.0.4
func (*Envelope) GetRedactable ¶ added in v1.0.4
func (*Envelope) GetSignature ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶ added in v1.0.6
func (x *Envelope) ProtoReflect() protoreflect.Message
type HashingAlgorithm ¶
type HashingAlgorithm struct { // SHA256 is currently the only supported and tested algorithm. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
HashingAlgorithm is encoded into the configuration transaction as a configuration item of type Chain with a Key of "HashingAlgorithm" and a Value of HashingAlgorithm as marshaled protobuf bytes
func (*HashingAlgorithm) Descriptor ¶
func (*HashingAlgorithm) Descriptor() ([]byte, []int)
func (*HashingAlgorithm) GetName ¶
func (m *HashingAlgorithm) GetName() string
func (*HashingAlgorithm) ProtoMessage ¶
func (*HashingAlgorithm) ProtoMessage()
func (*HashingAlgorithm) Reset ¶
func (m *HashingAlgorithm) Reset()
func (*HashingAlgorithm) String ¶
func (m *HashingAlgorithm) String() string
func (*HashingAlgorithm) XXX_DiscardUnknown ¶
func (m *HashingAlgorithm) XXX_DiscardUnknown()
func (*HashingAlgorithm) XXX_Marshal ¶
func (m *HashingAlgorithm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashingAlgorithm) XXX_Merge ¶
func (m *HashingAlgorithm) XXX_Merge(src proto.Message)
func (*HashingAlgorithm) XXX_Size ¶
func (m *HashingAlgorithm) XXX_Size() int
func (*HashingAlgorithm) XXX_Unmarshal ¶
func (m *HashingAlgorithm) XXX_Unmarshal(b []byte) error
type Header ¶
type Header struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields ChannelHeader []byte `protobuf:"bytes,1,opt,name=channel_header,json=channelHeader,proto3" json:"channel_header,omitempty"` SignatureHeader []byte `protobuf:"bytes,2,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` }
func (*Header) Descriptor
deprecated
func (*Header) GetChannelHeader ¶
func (*Header) GetSignatureHeader ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶ added in v1.0.6
func (x *Header) ProtoReflect() protoreflect.Message
type HeaderType ¶
type HeaderType int32
const ( HeaderType_MESSAGE HeaderType = 0 // Used for messages which are signed but opaque HeaderType_CONFIG HeaderType = 1 // Used for messages which express the channel config HeaderType_CONFIG_UPDATE HeaderType = 2 // Used for transactions which update the channel config HeaderType_ENDORSER_TRANSACTION HeaderType = 3 // Used by the SDK to submit endorser based transactions // Deprecated: Marked as deprecated in common/common.proto. HeaderType_ORDERER_TRANSACTION HeaderType = 4 // Was used internally by the orderer for management, no longer used since system channel was removed HeaderType_DELIVER_SEEK_INFO HeaderType = 5 // Used as the type for Envelope messages submitted to instruct the Deliver API to seek HeaderType_CHAINCODE_PACKAGE HeaderType = 6 // Used for packaging chaincode artifacts for install )
func (HeaderType) Descriptor ¶ added in v1.0.6
func (HeaderType) Descriptor() protoreflect.EnumDescriptor
func (HeaderType) Enum ¶ added in v1.0.6
func (x HeaderType) Enum() *HeaderType
func (HeaderType) EnumDescriptor
deprecated
func (HeaderType) EnumDescriptor() ([]byte, []int)
Deprecated: Use HeaderType.Descriptor instead.
func (HeaderType) Number ¶ added in v1.0.6
func (x HeaderType) Number() protoreflect.EnumNumber
func (HeaderType) String ¶
func (x HeaderType) String() string
func (HeaderType) Type ¶ added in v1.0.6
func (HeaderType) Type() protoreflect.EnumType
type IdentifierHeader ¶
type IdentifierHeader struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Identifier uint32 `protobuf:"varint,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // A unique identifier that represents the creator of the message Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // Arbitrary number that may only be used once. Can be used to detect replay attacks. }
IdentifierHeader is used as an alternative to a SignatureHeader when the creator can be referenced by id
func (*IdentifierHeader) Descriptor
deprecated
func (*IdentifierHeader) Descriptor() ([]byte, []int)
Deprecated: Use IdentifierHeader.ProtoReflect.Descriptor instead.
func (*IdentifierHeader) GetIdentifier ¶
func (x *IdentifierHeader) GetIdentifier() uint32
func (*IdentifierHeader) GetNonce ¶
func (x *IdentifierHeader) GetNonce() []byte
func (*IdentifierHeader) ProtoMessage ¶
func (*IdentifierHeader) ProtoMessage()
func (*IdentifierHeader) ProtoReflect ¶ added in v1.0.6
func (x *IdentifierHeader) ProtoReflect() protoreflect.Message
func (*IdentifierHeader) Reset ¶
func (x *IdentifierHeader) Reset()
func (*IdentifierHeader) String ¶
func (x *IdentifierHeader) String() string
type ImplicitMetaPolicy ¶
type ImplicitMetaPolicy struct { SubPolicy string `protobuf:"bytes,1,opt,name=sub_policy,json=subPolicy,proto3" json:"sub_policy,omitempty"` Rule ImplicitMetaPolicy_Rule `protobuf:"varint,2,opt,name=rule,proto3,enum=common.ImplicitMetaPolicy_Rule" json:"rule,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ImplicitMetaPolicy is a policy type which depends on the hierarchical nature of the configuration It is implicit because the rule is generate implicitly based on the number of sub policies It is meta because it depends only on the result of other policies When evaluated, this policy iterates over all immediate child sub-groups, retrieves the policy of name sub_policy, evaluates the collection and applies the rule. For example, with 4 sub-groups, and a policy name of "foo", ImplicitMetaPolicy retrieves each sub-group, retrieves policy "foo" for each subgroup, evaluates it, and, in the case of ANY 1 satisfied is sufficient, ALL would require 4 signatures, and MAJORITY would require 3 signatures.
func (*ImplicitMetaPolicy) Descriptor ¶
func (*ImplicitMetaPolicy) Descriptor() ([]byte, []int)
func (*ImplicitMetaPolicy) GetRule ¶
func (m *ImplicitMetaPolicy) GetRule() ImplicitMetaPolicy_Rule
func (*ImplicitMetaPolicy) GetSubPolicy ¶
func (m *ImplicitMetaPolicy) GetSubPolicy() string
func (*ImplicitMetaPolicy) ProtoMessage ¶
func (*ImplicitMetaPolicy) ProtoMessage()
func (*ImplicitMetaPolicy) Reset ¶
func (m *ImplicitMetaPolicy) Reset()
func (*ImplicitMetaPolicy) String ¶
func (m *ImplicitMetaPolicy) String() string
func (*ImplicitMetaPolicy) XXX_DiscardUnknown ¶
func (m *ImplicitMetaPolicy) XXX_DiscardUnknown()
func (*ImplicitMetaPolicy) XXX_Marshal ¶
func (m *ImplicitMetaPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImplicitMetaPolicy) XXX_Merge ¶
func (m *ImplicitMetaPolicy) XXX_Merge(src proto.Message)
func (*ImplicitMetaPolicy) XXX_Size ¶
func (m *ImplicitMetaPolicy) XXX_Size() int
func (*ImplicitMetaPolicy) XXX_Unmarshal ¶
func (m *ImplicitMetaPolicy) XXX_Unmarshal(b []byte) error
type ImplicitMetaPolicy_Rule ¶
type ImplicitMetaPolicy_Rule int32
const ( ImplicitMetaPolicy_ANY ImplicitMetaPolicy_Rule = 0 ImplicitMetaPolicy_ALL ImplicitMetaPolicy_Rule = 1 ImplicitMetaPolicy_MAJORITY ImplicitMetaPolicy_Rule = 2 )
func (ImplicitMetaPolicy_Rule) EnumDescriptor ¶
func (ImplicitMetaPolicy_Rule) EnumDescriptor() ([]byte, []int)
func (ImplicitMetaPolicy_Rule) String ¶
func (x ImplicitMetaPolicy_Rule) String() string
type LastConfig ¶
type LastConfig struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` }
LastConfig is the encoded value for the Metadata message which is encoded in the LAST_CONFIGURATION block metadata index
func (*LastConfig) Descriptor
deprecated
func (*LastConfig) Descriptor() ([]byte, []int)
Deprecated: Use LastConfig.ProtoReflect.Descriptor instead.
func (*LastConfig) GetIndex ¶
func (x *LastConfig) GetIndex() uint64
func (*LastConfig) ProtoMessage ¶
func (*LastConfig) ProtoMessage()
func (*LastConfig) ProtoReflect ¶ added in v1.0.6
func (x *LastConfig) ProtoReflect() protoreflect.Message
func (*LastConfig) Reset ¶
func (x *LastConfig) Reset()
func (*LastConfig) String ¶
func (x *LastConfig) String() string
type Metadata ¶
type Metadata struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Signatures []*MetadataSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` }
Metadata is a common structure to be used to encode block metadata
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetSignatures ¶
func (x *Metadata) GetSignatures() []*MetadataSignature
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v1.0.6
func (x *Metadata) ProtoReflect() protoreflect.Message
type MetadataSignature ¶
type MetadataSignature struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields SignatureHeader []byte `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"` // An encoded SignatureHeader Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // The signature over the concatenation of the Metadata value bytes, signatureHeader, and block header IdentifierHeader []byte `protobuf:"bytes,3,opt,name=identifier_header,json=identifierHeader,proto3" json:"identifier_header,omitempty"` // An encoded IdentifierHeader. If the signature header is empty, this is used to identify the creator by id }
func (*MetadataSignature) Descriptor
deprecated
func (*MetadataSignature) Descriptor() ([]byte, []int)
Deprecated: Use MetadataSignature.ProtoReflect.Descriptor instead.
func (*MetadataSignature) GetIdentifierHeader ¶
func (x *MetadataSignature) GetIdentifierHeader() []byte
func (*MetadataSignature) GetSignature ¶
func (x *MetadataSignature) GetSignature() []byte
func (*MetadataSignature) GetSignatureHeader ¶
func (x *MetadataSignature) GetSignatureHeader() []byte
func (*MetadataSignature) ProtoMessage ¶
func (*MetadataSignature) ProtoMessage()
func (*MetadataSignature) ProtoReflect ¶ added in v1.0.6
func (x *MetadataSignature) ProtoReflect() protoreflect.Message
func (*MetadataSignature) Reset ¶
func (x *MetadataSignature) Reset()
func (*MetadataSignature) String ¶
func (x *MetadataSignature) String() string
type OrdererAddresses ¶
type OrdererAddresses struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes
func (*OrdererAddresses) Descriptor ¶
func (*OrdererAddresses) Descriptor() ([]byte, []int)
func (*OrdererAddresses) GetAddresses ¶
func (m *OrdererAddresses) GetAddresses() []string
func (*OrdererAddresses) ProtoMessage ¶
func (*OrdererAddresses) ProtoMessage()
func (*OrdererAddresses) Reset ¶
func (m *OrdererAddresses) Reset()
func (*OrdererAddresses) String ¶
func (m *OrdererAddresses) String() string
func (*OrdererAddresses) XXX_DiscardUnknown ¶
func (m *OrdererAddresses) XXX_DiscardUnknown()
func (*OrdererAddresses) XXX_Marshal ¶
func (m *OrdererAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrdererAddresses) XXX_Merge ¶
func (m *OrdererAddresses) XXX_Merge(src proto.Message)
func (*OrdererAddresses) XXX_Size ¶
func (m *OrdererAddresses) XXX_Size() int
func (*OrdererAddresses) XXX_Unmarshal ¶
func (m *OrdererAddresses) XXX_Unmarshal(b []byte) error
type OrdererBlockMetadata ¶
type OrdererBlockMetadata struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields LastConfig *LastConfig `protobuf:"bytes,1,opt,name=last_config,json=lastConfig,proto3" json:"last_config,omitempty"` ConsenterMetadata []byte `protobuf:"bytes,2,opt,name=consenter_metadata,json=consenterMetadata,proto3" json:"consenter_metadata,omitempty"` }
OrdererBlockMetadata defines metadata that is set by the ordering service.
func (*OrdererBlockMetadata) Descriptor
deprecated
func (*OrdererBlockMetadata) Descriptor() ([]byte, []int)
Deprecated: Use OrdererBlockMetadata.ProtoReflect.Descriptor instead.
func (*OrdererBlockMetadata) GetConsenterMetadata ¶
func (x *OrdererBlockMetadata) GetConsenterMetadata() []byte
func (*OrdererBlockMetadata) GetLastConfig ¶
func (x *OrdererBlockMetadata) GetLastConfig() *LastConfig
func (*OrdererBlockMetadata) ProtoMessage ¶
func (*OrdererBlockMetadata) ProtoMessage()
func (*OrdererBlockMetadata) ProtoReflect ¶ added in v1.0.6
func (x *OrdererBlockMetadata) ProtoReflect() protoreflect.Message
func (*OrdererBlockMetadata) Reset ¶
func (x *OrdererBlockMetadata) Reset()
func (*OrdererBlockMetadata) String ¶
func (x *OrdererBlockMetadata) String() string
type Orderers ¶
type Orderers struct { ConsenterMapping []*Consenter `protobuf:"bytes,1,rep,name=consenter_mapping,json=consenterMapping,proto3" json:"consenter_mapping,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Orderers is encoded into the configuration transaction as a configuration item of type Chain with a Key of "Orderers" and a Value of Orderers as marshaled protobuf bytes
func (*Orderers) Descriptor ¶
func (*Orderers) GetConsenterMapping ¶
func (*Orderers) ProtoMessage ¶
func (*Orderers) ProtoMessage()
func (*Orderers) XXX_DiscardUnknown ¶
func (m *Orderers) XXX_DiscardUnknown()
func (*Orderers) XXX_Marshal ¶
func (*Orderers) XXX_Unmarshal ¶
type Payload ¶
type Payload struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields // Header is included to provide identity and prevent replay Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Data, the encoding of which is defined by the type in the header Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
Payload is the message contents (and header to allow for signing)
func (*Payload) Descriptor
deprecated
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶ added in v1.0.6
func (x *Payload) ProtoReflect() protoreflect.Message
type Policy ¶
type Policy struct { Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Policy expresses a policy which the orderer can evaluate, because there has been some desire expressed to support multiple policy engines, this is typed as a oneof for now
func (*Policy) Descriptor ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
type Policy_PolicyType ¶
type Policy_PolicyType int32
const ( Policy_UNKNOWN Policy_PolicyType = 0 Policy_SIGNATURE Policy_PolicyType = 1 Policy_MSP Policy_PolicyType = 2 Policy_IMPLICIT_META Policy_PolicyType = 3 )
func (Policy_PolicyType) EnumDescriptor ¶
func (Policy_PolicyType) EnumDescriptor() ([]byte, []int)
func (Policy_PolicyType) String ¶
func (x Policy_PolicyType) String() string
type RedactMsg ¶
type RedactMsg struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields Pk []byte `protobuf:"bytes,1,opt,name=pk,proto3" json:"pk,omitempty"` Msp []byte `protobuf:"bytes,2,opt,name=msp,proto3" json:"msp,omitempty"` FameCipher []byte `protobuf:"bytes,3,opt,name=fameCipher,proto3" json:"fameCipher,omitempty"` }
func (*RedactMsg) Descriptor
deprecated
added in
v1.0.4
func (*RedactMsg) GetFameCipher ¶ added in v1.0.4
func (*RedactMsg) ProtoMessage ¶ added in v1.0.4
func (*RedactMsg) ProtoMessage()
func (*RedactMsg) ProtoReflect ¶ added in v1.0.6
func (x *RedactMsg) ProtoReflect() protoreflect.Message
type SignatureHeader ¶
type SignatureHeader struct { XXX_state protoimpl.MessageState XXX_sizeCache protoimpl.SizeCache XXX_unknownFields protoimpl.UnknownFields // Creator of the message, a marshaled msp.SerializedIdentity Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Arbitrary number that may only be used once. Can be used to detect replay attacks. Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` }
func (*SignatureHeader) Descriptor
deprecated
func (*SignatureHeader) Descriptor() ([]byte, []int)
Deprecated: Use SignatureHeader.ProtoReflect.Descriptor instead.
func (*SignatureHeader) GetCreator ¶
func (x *SignatureHeader) GetCreator() []byte
func (*SignatureHeader) GetNonce ¶
func (x *SignatureHeader) GetNonce() []byte
func (*SignatureHeader) ProtoMessage ¶
func (*SignatureHeader) ProtoMessage()
func (*SignatureHeader) ProtoReflect ¶ added in v1.0.6
func (x *SignatureHeader) ProtoReflect() protoreflect.Message
func (*SignatureHeader) Reset ¶
func (x *SignatureHeader) Reset()
func (*SignatureHeader) String ¶
func (x *SignatureHeader) String() string
type SignaturePolicy ¶
type SignaturePolicy struct { // Types that are valid to be assigned to Type: // // *SignaturePolicy_SignedBy // *SignaturePolicy_NOutOf_ Type isSignaturePolicy_Type `protobuf_oneof:"Type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SignaturePolicy is a recursive message structure which defines a featherweight DSL for describing policies which are more complicated than 'exactly this signature'. The NOutOf operator is sufficent to express AND as well as OR, as well as of course N out of the following M policies SignedBy implies that the signature is from a valid certificate which is signed by the trusted authority specified in the bytes. This will be the certificate itself for a self-signed certificate and will be the CA for more traditional certificates
func (*SignaturePolicy) Descriptor ¶
func (*SignaturePolicy) Descriptor() ([]byte, []int)
func (*SignaturePolicy) GetNOutOf ¶
func (m *SignaturePolicy) GetNOutOf() *SignaturePolicy_NOutOf
func (*SignaturePolicy) GetSignedBy ¶
func (m *SignaturePolicy) GetSignedBy() int32
func (*SignaturePolicy) GetType ¶
func (m *SignaturePolicy) GetType() isSignaturePolicy_Type
func (*SignaturePolicy) ProtoMessage ¶
func (*SignaturePolicy) ProtoMessage()
func (*SignaturePolicy) Reset ¶
func (m *SignaturePolicy) Reset()
func (*SignaturePolicy) String ¶
func (m *SignaturePolicy) String() string
func (*SignaturePolicy) XXX_DiscardUnknown ¶
func (m *SignaturePolicy) XXX_DiscardUnknown()
func (*SignaturePolicy) XXX_Marshal ¶
func (m *SignaturePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignaturePolicy) XXX_Merge ¶
func (m *SignaturePolicy) XXX_Merge(src proto.Message)
func (*SignaturePolicy) XXX_OneofWrappers ¶
func (*SignaturePolicy) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*SignaturePolicy) XXX_Size ¶
func (m *SignaturePolicy) XXX_Size() int
func (*SignaturePolicy) XXX_Unmarshal ¶
func (m *SignaturePolicy) XXX_Unmarshal(b []byte) error
type SignaturePolicyEnvelope ¶
type SignaturePolicyEnvelope struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Rule *SignaturePolicy `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` Identities []*msp.MSPPrincipal `protobuf:"bytes,3,rep,name=identities,proto3" json:"identities,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SignaturePolicyEnvelope wraps a SignaturePolicy and includes a version for future enhancements
func (*SignaturePolicyEnvelope) Descriptor ¶
func (*SignaturePolicyEnvelope) Descriptor() ([]byte, []int)
func (*SignaturePolicyEnvelope) GetIdentities ¶
func (m *SignaturePolicyEnvelope) GetIdentities() []*msp.MSPPrincipal
func (*SignaturePolicyEnvelope) GetRule ¶
func (m *SignaturePolicyEnvelope) GetRule() *SignaturePolicy
func (*SignaturePolicyEnvelope) GetVersion ¶
func (m *SignaturePolicyEnvelope) GetVersion() int32
func (*SignaturePolicyEnvelope) ProtoMessage ¶
func (*SignaturePolicyEnvelope) ProtoMessage()
func (*SignaturePolicyEnvelope) Reset ¶
func (m *SignaturePolicyEnvelope) Reset()
func (*SignaturePolicyEnvelope) String ¶
func (m *SignaturePolicyEnvelope) String() string
func (*SignaturePolicyEnvelope) XXX_DiscardUnknown ¶
func (m *SignaturePolicyEnvelope) XXX_DiscardUnknown()
func (*SignaturePolicyEnvelope) XXX_Marshal ¶
func (m *SignaturePolicyEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignaturePolicyEnvelope) XXX_Merge ¶
func (m *SignaturePolicyEnvelope) XXX_Merge(src proto.Message)
func (*SignaturePolicyEnvelope) XXX_Size ¶
func (m *SignaturePolicyEnvelope) XXX_Size() int
func (*SignaturePolicyEnvelope) XXX_Unmarshal ¶
func (m *SignaturePolicyEnvelope) XXX_Unmarshal(b []byte) error
type SignaturePolicy_NOutOf ¶
type SignaturePolicy_NOutOf struct { N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` Rules []*SignaturePolicy `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignaturePolicy_NOutOf) Descriptor ¶
func (*SignaturePolicy_NOutOf) Descriptor() ([]byte, []int)
func (*SignaturePolicy_NOutOf) GetN ¶
func (m *SignaturePolicy_NOutOf) GetN() int32
func (*SignaturePolicy_NOutOf) GetRules ¶
func (m *SignaturePolicy_NOutOf) GetRules() []*SignaturePolicy
func (*SignaturePolicy_NOutOf) ProtoMessage ¶
func (*SignaturePolicy_NOutOf) ProtoMessage()
func (*SignaturePolicy_NOutOf) Reset ¶
func (m *SignaturePolicy_NOutOf) Reset()
func (*SignaturePolicy_NOutOf) String ¶
func (m *SignaturePolicy_NOutOf) String() string
func (*SignaturePolicy_NOutOf) XXX_DiscardUnknown ¶
func (m *SignaturePolicy_NOutOf) XXX_DiscardUnknown()
func (*SignaturePolicy_NOutOf) XXX_Marshal ¶
func (m *SignaturePolicy_NOutOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignaturePolicy_NOutOf) XXX_Merge ¶
func (m *SignaturePolicy_NOutOf) XXX_Merge(src proto.Message)
func (*SignaturePolicy_NOutOf) XXX_Size ¶
func (m *SignaturePolicy_NOutOf) XXX_Size() int
func (*SignaturePolicy_NOutOf) XXX_Unmarshal ¶
func (m *SignaturePolicy_NOutOf) XXX_Unmarshal(b []byte) error
type SignaturePolicy_NOutOf_ ¶
type SignaturePolicy_NOutOf_ struct {
NOutOf *SignaturePolicy_NOutOf `protobuf:"bytes,2,opt,name=n_out_of,json=nOutOf,proto3,oneof"`
}
type SignaturePolicy_SignedBy ¶
type SignaturePolicy_SignedBy struct {
SignedBy int32 `protobuf:"varint,1,opt,name=signed_by,json=signedBy,proto3,oneof"`
}
type StaticCollectionConfig
deprecated
type StaticCollectionConfig struct { // the name of the collection inside the denoted chaincode Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // a reference to a policy residing / managed in the config block // to define which orgs have access to this collection’s private data MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"` // The minimum number of peers private data will be sent to upon // endorsement. The endorsement would fail if dissemination to at least // this number of peers is not achieved. RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"` // The maximum number of peers that private data will be sent to // upon endorsement. This number has to be bigger than required_peer_count. MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"` // The number of blocks after which the collection data expires. // For instance if the value is set to 10, a key last modified by block number 100 // will be purged at block number 111. A zero value is treated same as MaxUint64 BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"` // The member only read access denotes whether only collection member clients // can read the private data (if set to true), or even non members can // read the data (if set to false, for example if you want to implement more granular // access logic in the chaincode) MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"` // The member only write access denotes whether only collection member clients // can write the private data (if set to true), or even non members can // write the data (if set to false, for example if you want to implement more granular // access logic in the chaincode) MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"` // a reference to a policy residing / managed in the config block // to define the endorsement policy for this collection EndorsementPolicy *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
StaticCollectionConfig constitutes the configuration parameters of a static collection object. Static collections are collections that are known at chaincode instantiation time, and that cannot be changed. Dynamic collections are deferred.
Deprecated: Do not use.
func (*StaticCollectionConfig) Descriptor ¶
func (*StaticCollectionConfig) Descriptor() ([]byte, []int)
func (*StaticCollectionConfig) GetBlockToLive ¶
func (m *StaticCollectionConfig) GetBlockToLive() uint64
func (*StaticCollectionConfig) GetEndorsementPolicy ¶
func (m *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy
func (*StaticCollectionConfig) GetMaximumPeerCount ¶
func (m *StaticCollectionConfig) GetMaximumPeerCount() int32
func (*StaticCollectionConfig) GetMemberOnlyRead ¶
func (m *StaticCollectionConfig) GetMemberOnlyRead() bool
func (*StaticCollectionConfig) GetMemberOnlyWrite ¶
func (m *StaticCollectionConfig) GetMemberOnlyWrite() bool
func (*StaticCollectionConfig) GetMemberOrgsPolicy ¶
func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig
func (*StaticCollectionConfig) GetName ¶
func (m *StaticCollectionConfig) GetName() string
func (*StaticCollectionConfig) GetRequiredPeerCount ¶
func (m *StaticCollectionConfig) GetRequiredPeerCount() int32
func (*StaticCollectionConfig) ProtoMessage ¶
func (*StaticCollectionConfig) ProtoMessage()
func (*StaticCollectionConfig) Reset ¶
func (m *StaticCollectionConfig) Reset()
func (*StaticCollectionConfig) String ¶
func (m *StaticCollectionConfig) String() string
func (*StaticCollectionConfig) XXX_DiscardUnknown ¶
func (m *StaticCollectionConfig) XXX_DiscardUnknown()
func (*StaticCollectionConfig) XXX_Marshal ¶
func (m *StaticCollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StaticCollectionConfig) XXX_Merge ¶
func (m *StaticCollectionConfig) XXX_Merge(src proto.Message)
func (*StaticCollectionConfig) XXX_Size ¶
func (m *StaticCollectionConfig) XXX_Size() int
func (*StaticCollectionConfig) XXX_Unmarshal ¶
func (m *StaticCollectionConfig) XXX_Unmarshal(b []byte) error
type Status ¶
type Status int32
These status codes are intended to resemble selected HTTP status codes
const ( Status_UNKNOWN Status = 0 Status_SUCCESS Status = 200 Status_BAD_REQUEST Status = 400 Status_FORBIDDEN Status = 403 Status_NOT_FOUND Status = 404 Status_REQUEST_ENTITY_TOO_LARGE Status = 413 Status_INTERNAL_SERVER_ERROR Status = 500 Status_NOT_IMPLEMENTED Status = 501 Status_SERVICE_UNAVAILABLE Status = 503 )
func (Status) Descriptor ¶ added in v1.0.6
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶ added in v1.0.6
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶ added in v1.0.6
func (Status) Type() protoreflect.EnumType