fabric: github.com/hyperledger/fabric/protos/common Index | Files

package common

import "github.com/hyperledger/fabric/protos/common"

Index

Package Files

block.go collection.pb.go common.go common.pb.go configtx.go configtx.pb.go configuration.go configuration.pb.go ledger.pb.go policies.go policies.pb.go signed_data.go

Variables

var BlockMetadataIndex_name = map[int32]string{
    0:  "SIGNATURES",
    1:  "LAST_CONFIG",
    2:  "TRANSACTIONS_FILTER",
    3:  "ORDERER",
    4:  "COMMIT_HASH",
}
var BlockMetadataIndex_value = map[string]int32{
    "SIGNATURES":          0,
    "LAST_CONFIG":         1,
    "TRANSACTIONS_FILTER": 2,
    "ORDERER":             3,
    "COMMIT_HASH":         4,
}
var ChannelGroupMap = map[string]DynamicConfigGroupFactory{
    "Consortiums": DynamicConsortiumsGroupFactory{},
}

ChannelGroupMap is a slightly hacky way to break the dependency cycle which would be created if the protos/common package imported the protos/orderer or protos/peer packages. These packages instead register a DynamicConfigGroupFactory with the ChannelGroupMap when they are loaded, creating a runtime linkage between the two

var ConfigUpdateIsolatedDataTypes = map[string]func(string) proto.Message{}

ConfigUpdateIsolatedDataTypes allows other proto packages to register types for the the isolated_data field. This is necessary to break import cycles.

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",
    8:  "PEER_ADMIN_OPERATION",
    9:  "TOKEN_TRANSACTION",
}
var 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,
    "PEER_ADMIN_OPERATION": 8,
    "TOKEN_TRANSACTION":    9,
}
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 PayloadDataMap = map[int32]proto.Message{
    int32(HeaderType_CONFIG):              &ConfigEnvelope{},
    int32(HeaderType_ORDERER_TRANSACTION): &Envelope{},
    int32(HeaderType_CONFIG_UPDATE):       &ConfigUpdateEnvelope{},
    int32(HeaderType_MESSAGE):             &ConfigValue{},
}
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,
}
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",
}
var 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,
}

type Block Uses

type Block struct {
    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"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

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 NewBlock Uses

func NewBlock(seqNum uint64, previousHash []byte) *Block

NewBlock construct a block with no data and no metadata.

func (*Block) Descriptor Uses

func (*Block) Descriptor() ([]byte, []int)

func (*Block) GetData Uses

func (m *Block) GetData() *BlockData

func (*Block) GetHeader Uses

func (m *Block) GetHeader() *BlockHeader

func (*Block) GetMetadata Uses

func (m *Block) GetMetadata() *BlockMetadata

func (*Block) ProtoMessage Uses

func (*Block) ProtoMessage()

func (*Block) Reset Uses

func (m *Block) Reset()

func (*Block) String Uses

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown Uses

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal Uses

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge Uses

func (dst *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size Uses

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal Uses

func (m *Block) XXX_Unmarshal(b []byte) error

type BlockData Uses

type BlockData struct {
    Data                 [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*BlockData) Bytes Uses

func (b *BlockData) Bytes() []byte

Bytes returns a deterministically serialized version of the BlockData eventually, this should be replaced with a true Merkle tree construction, but for the moment, we assume a Merkle tree of infinite width (uint32_max) which degrades to a flat hash

func (*BlockData) Descriptor Uses

func (*BlockData) Descriptor() ([]byte, []int)

func (*BlockData) GetData Uses

func (m *BlockData) GetData() [][]byte

func (*BlockData) Hash Uses

func (b *BlockData) Hash() []byte

Hash returns the hash of the marshaled representation of the block data.

func (*BlockData) ProtoMessage Uses

func (*BlockData) ProtoMessage()

func (*BlockData) Reset Uses

func (m *BlockData) Reset()

func (*BlockData) StaticallyOpaqueSliceFieldProto Uses

func (bd *BlockData) StaticallyOpaqueSliceFieldProto(fieldName string, index int) (proto.Message, error)

func (*BlockData) StaticallyOpaqueSliceFields Uses

func (bd *BlockData) StaticallyOpaqueSliceFields() []string

func (*BlockData) String Uses

func (m *BlockData) String() string

func (*BlockData) XXX_DiscardUnknown Uses

func (m *BlockData) XXX_DiscardUnknown()

func (*BlockData) XXX_Marshal Uses

func (m *BlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockData) XXX_Merge Uses

func (dst *BlockData) XXX_Merge(src proto.Message)

func (*BlockData) XXX_Size Uses

func (m *BlockData) XXX_Size() int

func (*BlockData) XXX_Unmarshal Uses

func (m *BlockData) XXX_Unmarshal(b []byte) error

type BlockDataHashingStructure Uses

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 Uses

func (*BlockDataHashingStructure) Descriptor() ([]byte, []int)

func (*BlockDataHashingStructure) GetWidth Uses

func (m *BlockDataHashingStructure) GetWidth() uint32

func (*BlockDataHashingStructure) ProtoMessage Uses

func (*BlockDataHashingStructure) ProtoMessage()

func (*BlockDataHashingStructure) Reset Uses

func (m *BlockDataHashingStructure) Reset()

func (*BlockDataHashingStructure) String Uses

func (m *BlockDataHashingStructure) String() string

func (*BlockDataHashingStructure) XXX_DiscardUnknown Uses

func (m *BlockDataHashingStructure) XXX_DiscardUnknown()

func (*BlockDataHashingStructure) XXX_Marshal Uses

func (m *BlockDataHashingStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockDataHashingStructure) XXX_Merge Uses

func (dst *BlockDataHashingStructure) XXX_Merge(src proto.Message)

func (*BlockDataHashingStructure) XXX_Size Uses

func (m *BlockDataHashingStructure) XXX_Size() int

func (*BlockDataHashingStructure) XXX_Unmarshal Uses

func (m *BlockDataHashingStructure) XXX_Unmarshal(b []byte) error

type BlockHeader Uses

type BlockHeader struct {
    Number               uint64   `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    PreviousHash         []byte   `protobuf:"bytes,2,opt,name=previous_hash,json=previousHash,proto3" json:"previous_hash,omitempty"`
    DataHash             []byte   `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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) Bytes Uses

func (b *BlockHeader) Bytes() []byte

Bytes returns the ASN.1 marshaled representation of the block header.

func (*BlockHeader) Descriptor Uses

func (*BlockHeader) Descriptor() ([]byte, []int)

func (*BlockHeader) GetDataHash Uses

func (m *BlockHeader) GetDataHash() []byte

func (*BlockHeader) GetNumber Uses

func (m *BlockHeader) GetNumber() uint64

func (*BlockHeader) GetPreviousHash Uses

func (m *BlockHeader) GetPreviousHash() []byte

func (*BlockHeader) Hash Uses

func (b *BlockHeader) Hash() []byte

Hash returns the hash of the block header. XXX This method will be removed shortly to allow for confgurable hashing algorithms

func (*BlockHeader) ProtoMessage Uses

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) Reset Uses

func (m *BlockHeader) Reset()

func (*BlockHeader) String Uses

func (m *BlockHeader) String() string

func (*BlockHeader) XXX_DiscardUnknown Uses

func (m *BlockHeader) XXX_DiscardUnknown()

func (*BlockHeader) XXX_Marshal Uses

func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHeader) XXX_Merge Uses

func (dst *BlockHeader) XXX_Merge(src proto.Message)

func (*BlockHeader) XXX_Size Uses

func (m *BlockHeader) XXX_Size() int

func (*BlockHeader) XXX_Unmarshal Uses

func (m *BlockHeader) XXX_Unmarshal(b []byte) error

type BlockMetadata Uses

type BlockMetadata struct {
    Metadata             [][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*BlockMetadata) Descriptor Uses

func (*BlockMetadata) Descriptor() ([]byte, []int)

func (*BlockMetadata) GetMetadata Uses

func (m *BlockMetadata) GetMetadata() [][]byte

func (*BlockMetadata) ProtoMessage Uses

func (*BlockMetadata) ProtoMessage()

func (*BlockMetadata) Reset Uses

func (m *BlockMetadata) Reset()

func (*BlockMetadata) String Uses

func (m *BlockMetadata) String() string

func (*BlockMetadata) XXX_DiscardUnknown Uses

func (m *BlockMetadata) XXX_DiscardUnknown()

func (*BlockMetadata) XXX_Marshal Uses

func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockMetadata) XXX_Merge Uses

func (dst *BlockMetadata) XXX_Merge(src proto.Message)

func (*BlockMetadata) XXX_Size Uses

func (m *BlockMetadata) XXX_Size() int

func (*BlockMetadata) XXX_Unmarshal Uses

func (m *BlockMetadata) XXX_Unmarshal(b []byte) error

type BlockMetadataIndex Uses

type BlockMetadataIndex int32

This enum enlists indexes of the block metadata array

const (
    BlockMetadataIndex_SIGNATURES          BlockMetadataIndex = 0
    BlockMetadataIndex_LAST_CONFIG         BlockMetadataIndex = 1
    BlockMetadataIndex_TRANSACTIONS_FILTER BlockMetadataIndex = 2
    BlockMetadataIndex_ORDERER             BlockMetadataIndex = 3
    BlockMetadataIndex_COMMIT_HASH         BlockMetadataIndex = 4
)

func (BlockMetadataIndex) EnumDescriptor Uses

func (BlockMetadataIndex) EnumDescriptor() ([]byte, []int)

func (BlockMetadataIndex) String Uses

func (x BlockMetadataIndex) String() string

type BlockchainInfo Uses

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"`
    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 Uses

func (*BlockchainInfo) Descriptor() ([]byte, []int)

func (*BlockchainInfo) GetCurrentBlockHash Uses

func (m *BlockchainInfo) GetCurrentBlockHash() []byte

func (*BlockchainInfo) GetHeight Uses

func (m *BlockchainInfo) GetHeight() uint64

func (*BlockchainInfo) GetPreviousBlockHash Uses

func (m *BlockchainInfo) GetPreviousBlockHash() []byte

func (*BlockchainInfo) ProtoMessage Uses

func (*BlockchainInfo) ProtoMessage()

func (*BlockchainInfo) Reset Uses

func (m *BlockchainInfo) Reset()

func (*BlockchainInfo) String Uses

func (m *BlockchainInfo) String() string

func (*BlockchainInfo) XXX_DiscardUnknown Uses

func (m *BlockchainInfo) XXX_DiscardUnknown()

func (*BlockchainInfo) XXX_Marshal Uses

func (m *BlockchainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockchainInfo) XXX_Merge Uses

func (dst *BlockchainInfo) XXX_Merge(src proto.Message)

func (*BlockchainInfo) XXX_Size Uses

func (m *BlockchainInfo) XXX_Size() int

func (*BlockchainInfo) XXX_Unmarshal Uses

func (m *BlockchainInfo) XXX_Unmarshal(b []byte) error

type Capabilities Uses

type Capabilities struct {
    Capabilities         map[string]*Capability `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    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 Uses

func (*Capabilities) Descriptor() ([]byte, []int)

func (*Capabilities) GetCapabilities Uses

func (m *Capabilities) GetCapabilities() map[string]*Capability

func (*Capabilities) ProtoMessage Uses

func (*Capabilities) ProtoMessage()

func (*Capabilities) Reset Uses

func (m *Capabilities) Reset()

func (*Capabilities) String Uses

func (m *Capabilities) String() string

func (*Capabilities) XXX_DiscardUnknown Uses

func (m *Capabilities) XXX_DiscardUnknown()

func (*Capabilities) XXX_Marshal Uses

func (m *Capabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Capabilities) XXX_Merge Uses

func (dst *Capabilities) XXX_Merge(src proto.Message)

func (*Capabilities) XXX_Size Uses

func (m *Capabilities) XXX_Size() int

func (*Capabilities) XXX_Unmarshal Uses

func (m *Capabilities) XXX_Unmarshal(b []byte) error

type Capability Uses

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 Uses

func (*Capability) Descriptor() ([]byte, []int)

func (*Capability) ProtoMessage Uses

func (*Capability) ProtoMessage()

func (*Capability) Reset Uses

func (m *Capability) Reset()

func (*Capability) String Uses

func (m *Capability) String() string

func (*Capability) XXX_DiscardUnknown Uses

func (m *Capability) XXX_DiscardUnknown()

func (*Capability) XXX_Marshal Uses

func (m *Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Capability) XXX_Merge Uses

func (dst *Capability) XXX_Merge(src proto.Message)

func (*Capability) XXX_Size Uses

func (m *Capability) XXX_Size() int

func (*Capability) XXX_Unmarshal Uses

func (m *Capability) XXX_Unmarshal(b []byte) error

type ChannelHeader Uses

type ChannelHeader struct {
    Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
    // 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 *timestamp.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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Header is a generic replay prevention and identity message to include in a signed payload

func (*ChannelHeader) Descriptor Uses

func (*ChannelHeader) Descriptor() ([]byte, []int)

func (*ChannelHeader) GetChannelId Uses

func (m *ChannelHeader) GetChannelId() string

func (*ChannelHeader) GetEpoch Uses

func (m *ChannelHeader) GetEpoch() uint64

func (*ChannelHeader) GetExtension Uses

func (m *ChannelHeader) GetExtension() []byte

func (*ChannelHeader) GetTimestamp Uses

func (m *ChannelHeader) GetTimestamp() *timestamp.Timestamp

func (*ChannelHeader) GetTlsCertHash Uses

func (m *ChannelHeader) GetTlsCertHash() []byte

func (*ChannelHeader) GetTxId Uses

func (m *ChannelHeader) GetTxId() string

func (*ChannelHeader) GetType Uses

func (m *ChannelHeader) GetType() int32

func (*ChannelHeader) GetVersion Uses

func (m *ChannelHeader) GetVersion() int32

func (*ChannelHeader) ProtoMessage Uses

func (*ChannelHeader) ProtoMessage()

func (*ChannelHeader) Reset Uses

func (m *ChannelHeader) Reset()

func (*ChannelHeader) String Uses

func (m *ChannelHeader) String() string

func (*ChannelHeader) XXX_DiscardUnknown Uses

func (m *ChannelHeader) XXX_DiscardUnknown()

func (*ChannelHeader) XXX_Marshal Uses

func (m *ChannelHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChannelHeader) XXX_Merge Uses

func (dst *ChannelHeader) XXX_Merge(src proto.Message)

func (*ChannelHeader) XXX_Size Uses

func (m *ChannelHeader) XXX_Size() int

func (*ChannelHeader) XXX_Unmarshal Uses

func (m *ChannelHeader) XXX_Unmarshal(b []byte) error

type CollectionConfig Uses

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.

func (*CollectionConfig) Descriptor Uses

func (*CollectionConfig) Descriptor() ([]byte, []int)

func (*CollectionConfig) GetPayload Uses

func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload

func (*CollectionConfig) GetStaticCollectionConfig Uses

func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig

func (*CollectionConfig) ProtoMessage Uses

func (*CollectionConfig) ProtoMessage()

func (*CollectionConfig) Reset Uses

func (m *CollectionConfig) Reset()

func (*CollectionConfig) String Uses

func (m *CollectionConfig) String() string

func (*CollectionConfig) XXX_DiscardUnknown Uses

func (m *CollectionConfig) XXX_DiscardUnknown()

func (*CollectionConfig) XXX_Marshal Uses

func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionConfig) XXX_Merge Uses

func (dst *CollectionConfig) XXX_Merge(src proto.Message)

func (*CollectionConfig) XXX_OneofFuncs Uses

func (*CollectionConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*CollectionConfig) XXX_Size Uses

func (m *CollectionConfig) XXX_Size() int

func (*CollectionConfig) XXX_Unmarshal Uses

func (m *CollectionConfig) XXX_Unmarshal(b []byte) error

type CollectionConfigPackage Uses

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

func (*CollectionConfigPackage) Descriptor Uses

func (*CollectionConfigPackage) Descriptor() ([]byte, []int)

func (*CollectionConfigPackage) GetConfig Uses

func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig

func (*CollectionConfigPackage) ProtoMessage Uses

func (*CollectionConfigPackage) ProtoMessage()

func (*CollectionConfigPackage) Reset Uses

func (m *CollectionConfigPackage) Reset()

func (*CollectionConfigPackage) String Uses

func (m *CollectionConfigPackage) String() string

func (*CollectionConfigPackage) XXX_DiscardUnknown Uses

func (m *CollectionConfigPackage) XXX_DiscardUnknown()

func (*CollectionConfigPackage) XXX_Marshal Uses

func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionConfigPackage) XXX_Merge Uses

func (dst *CollectionConfigPackage) XXX_Merge(src proto.Message)

func (*CollectionConfigPackage) XXX_Size Uses

func (m *CollectionConfigPackage) XXX_Size() int

func (*CollectionConfigPackage) XXX_Unmarshal Uses

func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error

type CollectionConfig_StaticCollectionConfig Uses

type CollectionConfig_StaticCollectionConfig struct {
    StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"`
}

type CollectionCriteria Uses

type CollectionCriteria struct {
    Channel              string   `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
    TxId                 string   `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
    Collection           string   `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"`
    Namespace            string   `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

CollectionCriteria defines an element of a private data that corresponds to a certain transaction and collection

func (*CollectionCriteria) Descriptor Uses

func (*CollectionCriteria) Descriptor() ([]byte, []int)

func (*CollectionCriteria) GetChannel Uses

func (m *CollectionCriteria) GetChannel() string

func (*CollectionCriteria) GetCollection Uses

func (m *CollectionCriteria) GetCollection() string

func (*CollectionCriteria) GetNamespace Uses

func (m *CollectionCriteria) GetNamespace() string

func (*CollectionCriteria) GetTxId Uses

func (m *CollectionCriteria) GetTxId() string

func (*CollectionCriteria) ProtoMessage Uses

func (*CollectionCriteria) ProtoMessage()

func (*CollectionCriteria) Reset Uses

func (m *CollectionCriteria) Reset()

func (*CollectionCriteria) String Uses

func (m *CollectionCriteria) String() string

func (*CollectionCriteria) XXX_DiscardUnknown Uses

func (m *CollectionCriteria) XXX_DiscardUnknown()

func (*CollectionCriteria) XXX_Marshal Uses

func (m *CollectionCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionCriteria) XXX_Merge Uses

func (dst *CollectionCriteria) XXX_Merge(src proto.Message)

func (*CollectionCriteria) XXX_Size Uses

func (m *CollectionCriteria) XXX_Size() int

func (*CollectionCriteria) XXX_Unmarshal Uses

func (m *CollectionCriteria) XXX_Unmarshal(b []byte) error

type CollectionPolicyConfig Uses

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.

func (*CollectionPolicyConfig) Descriptor Uses

func (*CollectionPolicyConfig) Descriptor() ([]byte, []int)

func (*CollectionPolicyConfig) GetPayload Uses

func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload

func (*CollectionPolicyConfig) GetSignaturePolicy Uses

func (m *CollectionPolicyConfig) GetSignaturePolicy() *SignaturePolicyEnvelope

func (*CollectionPolicyConfig) ProtoMessage Uses

func (*CollectionPolicyConfig) ProtoMessage()

func (*CollectionPolicyConfig) Reset Uses

func (m *CollectionPolicyConfig) Reset()

func (*CollectionPolicyConfig) String Uses

func (m *CollectionPolicyConfig) String() string

func (*CollectionPolicyConfig) XXX_DiscardUnknown Uses

func (m *CollectionPolicyConfig) XXX_DiscardUnknown()

func (*CollectionPolicyConfig) XXX_Marshal Uses

func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollectionPolicyConfig) XXX_Merge Uses

func (dst *CollectionPolicyConfig) XXX_Merge(src proto.Message)

func (*CollectionPolicyConfig) XXX_OneofFuncs Uses

func (*CollectionPolicyConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*CollectionPolicyConfig) XXX_Size Uses

func (m *CollectionPolicyConfig) XXX_Size() int

func (*CollectionPolicyConfig) XXX_Unmarshal Uses

func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error

type CollectionPolicyConfig_SignaturePolicy Uses

type CollectionPolicyConfig_SignaturePolicy struct {
    SignaturePolicy *SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}

type Config Uses

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 Uses

func (*Config) Descriptor() ([]byte, []int)

func (*Config) DynamicFieldProto Uses

func (c *Config) DynamicFieldProto(name string, base proto.Message) (proto.Message, error)

func (*Config) DynamicFields Uses

func (c *Config) DynamicFields() []string

func (*Config) GetChannelGroup Uses

func (m *Config) GetChannelGroup() *ConfigGroup

func (*Config) GetSequence Uses

func (m *Config) GetSequence() uint64

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge Uses

func (dst *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

func (m *Config) XXX_Unmarshal(b []byte) error

type ConfigEnvelope Uses

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:

1. Retrieve the existing configuration
2. Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified
3. Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely)
4. Add any additional desired dependencies to ConfigUpdate.read_set (sparsely)
5. 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
6. 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)
5. 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:

1. All items in the read_set exist at the read versions
2. 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
3. The new configuration satisfies the ConfigSchema

func (*ConfigEnvelope) Descriptor Uses

func (*ConfigEnvelope) Descriptor() ([]byte, []int)

func (*ConfigEnvelope) GetConfig Uses

func (m *ConfigEnvelope) GetConfig() *Config

func (*ConfigEnvelope) GetLastUpdate Uses

func (m *ConfigEnvelope) GetLastUpdate() *Envelope

func (*ConfigEnvelope) ProtoMessage Uses

func (*ConfigEnvelope) ProtoMessage()

func (*ConfigEnvelope) Reset Uses

func (m *ConfigEnvelope) Reset()

func (*ConfigEnvelope) String Uses

func (m *ConfigEnvelope) String() string

func (*ConfigEnvelope) XXX_DiscardUnknown Uses

func (m *ConfigEnvelope) XXX_DiscardUnknown()

func (*ConfigEnvelope) XXX_Marshal Uses

func (m *ConfigEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigEnvelope) XXX_Merge Uses

func (dst *ConfigEnvelope) XXX_Merge(src proto.Message)

func (*ConfigEnvelope) XXX_Size Uses

func (m *ConfigEnvelope) XXX_Size() int

func (*ConfigEnvelope) XXX_Unmarshal Uses

func (m *ConfigEnvelope) XXX_Unmarshal(b []byte) error

type ConfigGroup Uses

type ConfigGroup struct {
    Version              uint64                   `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
    Groups               map[string]*ConfigGroup  `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Values               map[string]*ConfigValue  `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Policies             map[string]*ConfigPolicy `protobuf:"bytes,4,rep,name=policies,proto3" json:"policies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    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 NewConfigGroup Uses

func NewConfigGroup() *ConfigGroup

func (*ConfigGroup) Descriptor Uses

func (*ConfigGroup) Descriptor() ([]byte, []int)

func (*ConfigGroup) DynamicMapFields Uses

func (cg *ConfigGroup) DynamicMapFields() []string

func (*ConfigGroup) GetGroups Uses

func (m *ConfigGroup) GetGroups() map[string]*ConfigGroup

func (*ConfigGroup) GetModPolicy Uses

func (m *ConfigGroup) GetModPolicy() string

func (*ConfigGroup) GetPolicies Uses

func (m *ConfigGroup) GetPolicies() map[string]*ConfigPolicy

func (*ConfigGroup) GetValues Uses

func (m *ConfigGroup) GetValues() map[string]*ConfigValue

func (*ConfigGroup) GetVersion Uses

func (m *ConfigGroup) GetVersion() uint64

func (*ConfigGroup) ProtoMessage Uses

func (*ConfigGroup) ProtoMessage()

func (*ConfigGroup) Reset Uses

func (m *ConfigGroup) Reset()

func (*ConfigGroup) String Uses

func (m *ConfigGroup) String() string

func (*ConfigGroup) Underlying Uses

func (cg *ConfigGroup) Underlying() proto.Message

func (*ConfigGroup) XXX_DiscardUnknown Uses

func (m *ConfigGroup) XXX_DiscardUnknown()

func (*ConfigGroup) XXX_Marshal Uses

func (m *ConfigGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigGroup) XXX_Merge Uses

func (dst *ConfigGroup) XXX_Merge(src proto.Message)

func (*ConfigGroup) XXX_Size Uses

func (m *ConfigGroup) XXX_Size() int

func (*ConfigGroup) XXX_Unmarshal Uses

func (m *ConfigGroup) XXX_Unmarshal(b []byte) error

type ConfigGroupSchema Uses

type ConfigGroupSchema struct {
    Groups               map[string]*ConfigGroupSchema  `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Values               map[string]*ConfigValueSchema  `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Policies             map[string]*ConfigPolicySchema `protobuf:"bytes,3,rep,name=policies,proto3" json:"policies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
    XXX_unrecognized     []byte                         `json:"-"`
    XXX_sizecache        int32                          `json:"-"`
}

func (*ConfigGroupSchema) Descriptor Uses

func (*ConfigGroupSchema) Descriptor() ([]byte, []int)

func (*ConfigGroupSchema) GetGroups Uses

func (m *ConfigGroupSchema) GetGroups() map[string]*ConfigGroupSchema

func (*ConfigGroupSchema) GetPolicies Uses

func (m *ConfigGroupSchema) GetPolicies() map[string]*ConfigPolicySchema

func (*ConfigGroupSchema) GetValues Uses

func (m *ConfigGroupSchema) GetValues() map[string]*ConfigValueSchema

func (*ConfigGroupSchema) ProtoMessage Uses

func (*ConfigGroupSchema) ProtoMessage()

func (*ConfigGroupSchema) Reset Uses

func (m *ConfigGroupSchema) Reset()

func (*ConfigGroupSchema) String Uses

func (m *ConfigGroupSchema) String() string

func (*ConfigGroupSchema) XXX_DiscardUnknown Uses

func (m *ConfigGroupSchema) XXX_DiscardUnknown()

func (*ConfigGroupSchema) XXX_Marshal Uses

func (m *ConfigGroupSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigGroupSchema) XXX_Merge Uses

func (dst *ConfigGroupSchema) XXX_Merge(src proto.Message)

func (*ConfigGroupSchema) XXX_Size Uses

func (m *ConfigGroupSchema) XXX_Size() int

func (*ConfigGroupSchema) XXX_Unmarshal Uses

func (m *ConfigGroupSchema) XXX_Unmarshal(b []byte) error

type ConfigPolicy Uses

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 Uses

func (*ConfigPolicy) Descriptor() ([]byte, []int)

func (*ConfigPolicy) GetModPolicy Uses

func (m *ConfigPolicy) GetModPolicy() string

func (*ConfigPolicy) GetPolicy Uses

func (m *ConfigPolicy) GetPolicy() *Policy

func (*ConfigPolicy) GetVersion Uses

func (m *ConfigPolicy) GetVersion() uint64

func (*ConfigPolicy) ProtoMessage Uses

func (*ConfigPolicy) ProtoMessage()

func (*ConfigPolicy) Reset Uses

func (m *ConfigPolicy) Reset()

func (*ConfigPolicy) String Uses

func (m *ConfigPolicy) String() string

func (*ConfigPolicy) XXX_DiscardUnknown Uses

func (m *ConfigPolicy) XXX_DiscardUnknown()

func (*ConfigPolicy) XXX_Marshal Uses

func (m *ConfigPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigPolicy) XXX_Merge Uses

func (dst *ConfigPolicy) XXX_Merge(src proto.Message)

func (*ConfigPolicy) XXX_Size Uses

func (m *ConfigPolicy) XXX_Size() int

func (*ConfigPolicy) XXX_Unmarshal Uses

func (m *ConfigPolicy) XXX_Unmarshal(b []byte) error

type ConfigPolicySchema Uses

type ConfigPolicySchema struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ConfigPolicySchema) Descriptor Uses

func (*ConfigPolicySchema) Descriptor() ([]byte, []int)

func (*ConfigPolicySchema) ProtoMessage Uses

func (*ConfigPolicySchema) ProtoMessage()

func (*ConfigPolicySchema) Reset Uses

func (m *ConfigPolicySchema) Reset()

func (*ConfigPolicySchema) String Uses

func (m *ConfigPolicySchema) String() string

func (*ConfigPolicySchema) XXX_DiscardUnknown Uses

func (m *ConfigPolicySchema) XXX_DiscardUnknown()

func (*ConfigPolicySchema) XXX_Marshal Uses

func (m *ConfigPolicySchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigPolicySchema) XXX_Merge Uses

func (dst *ConfigPolicySchema) XXX_Merge(src proto.Message)

func (*ConfigPolicySchema) XXX_Size Uses

func (m *ConfigPolicySchema) XXX_Size() int

func (*ConfigPolicySchema) XXX_Unmarshal Uses

func (m *ConfigPolicySchema) XXX_Unmarshal(b []byte) error

type ConfigSignature Uses

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 Uses

func (*ConfigSignature) Descriptor() ([]byte, []int)

func (*ConfigSignature) GetSignature Uses

func (m *ConfigSignature) GetSignature() []byte

func (*ConfigSignature) GetSignatureHeader Uses

func (m *ConfigSignature) GetSignatureHeader() []byte

func (*ConfigSignature) ProtoMessage Uses

func (*ConfigSignature) ProtoMessage()

func (*ConfigSignature) Reset Uses

func (m *ConfigSignature) Reset()

func (*ConfigSignature) StaticallyOpaqueFieldProto Uses

func (cs *ConfigSignature) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*ConfigSignature) StaticallyOpaqueFields Uses

func (cs *ConfigSignature) StaticallyOpaqueFields() []string

func (*ConfigSignature) String Uses

func (m *ConfigSignature) String() string

func (*ConfigSignature) XXX_DiscardUnknown Uses

func (m *ConfigSignature) XXX_DiscardUnknown()

func (*ConfigSignature) XXX_Marshal Uses

func (m *ConfigSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigSignature) XXX_Merge Uses

func (dst *ConfigSignature) XXX_Merge(src proto.Message)

func (*ConfigSignature) XXX_Size Uses

func (m *ConfigSignature) XXX_Size() int

func (*ConfigSignature) XXX_Unmarshal Uses

func (m *ConfigSignature) XXX_Unmarshal(b []byte) error

type ConfigUpdate Uses

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 `protobuf:"bytes,5,rep,name=isolated_data,json=isolatedData,proto3" json:"isolated_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    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: 1. 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.

2. Any elements in the write_set with the same version as the read_set are ignored. 3. The corresponding mod_policy for every remaining element in the write_set is collected. 4. Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected 5. The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legal

func (*ConfigUpdate) Descriptor Uses

func (*ConfigUpdate) Descriptor() ([]byte, []int)

func (*ConfigUpdate) DynamicFieldProto Uses

func (c *ConfigUpdate) DynamicFieldProto(name string, base proto.Message) (proto.Message, error)

func (*ConfigUpdate) DynamicFields Uses

func (c *ConfigUpdate) DynamicFields() []string

func (*ConfigUpdate) GetChannelId Uses

func (m *ConfigUpdate) GetChannelId() string

func (*ConfigUpdate) GetIsolatedData Uses

func (m *ConfigUpdate) GetIsolatedData() map[string][]byte

func (*ConfigUpdate) GetReadSet Uses

func (m *ConfigUpdate) GetReadSet() *ConfigGroup

func (*ConfigUpdate) GetWriteSet Uses

func (m *ConfigUpdate) GetWriteSet() *ConfigGroup

func (*ConfigUpdate) ProtoMessage Uses

func (*ConfigUpdate) ProtoMessage()

func (*ConfigUpdate) Reset Uses

func (m *ConfigUpdate) Reset()

func (*ConfigUpdate) StaticallyOpaqueMapFieldProto Uses

func (c *ConfigUpdate) StaticallyOpaqueMapFieldProto(name string, key string) (proto.Message, error)

func (*ConfigUpdate) StaticallyOpaqueMapFields Uses

func (c *ConfigUpdate) StaticallyOpaqueMapFields() []string

func (*ConfigUpdate) String Uses

func (m *ConfigUpdate) String() string

func (*ConfigUpdate) XXX_DiscardUnknown Uses

func (m *ConfigUpdate) XXX_DiscardUnknown()

func (*ConfigUpdate) XXX_Marshal Uses

func (m *ConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigUpdate) XXX_Merge Uses

func (dst *ConfigUpdate) XXX_Merge(src proto.Message)

func (*ConfigUpdate) XXX_Size Uses

func (m *ConfigUpdate) XXX_Size() int

func (*ConfigUpdate) XXX_Unmarshal Uses

func (m *ConfigUpdate) XXX_Unmarshal(b []byte) error

type ConfigUpdateEnvelope Uses

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) AsSignedData Uses

func (ce *ConfigUpdateEnvelope) AsSignedData() ([]*SignedData, error)

AsSignedData returns the set of signatures for the ConfigUpdateEnvelope as SignedData or an error indicating why this was not possible

func (*ConfigUpdateEnvelope) Descriptor Uses

func (*ConfigUpdateEnvelope) Descriptor() ([]byte, []int)

func (*ConfigUpdateEnvelope) GetConfigUpdate Uses

func (m *ConfigUpdateEnvelope) GetConfigUpdate() []byte

func (*ConfigUpdateEnvelope) GetSignatures Uses

func (m *ConfigUpdateEnvelope) GetSignatures() []*ConfigSignature

func (*ConfigUpdateEnvelope) ProtoMessage Uses

func (*ConfigUpdateEnvelope) ProtoMessage()

func (*ConfigUpdateEnvelope) Reset Uses

func (m *ConfigUpdateEnvelope) Reset()

func (*ConfigUpdateEnvelope) StaticallyOpaqueFieldProto Uses

func (cue *ConfigUpdateEnvelope) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*ConfigUpdateEnvelope) StaticallyOpaqueFields Uses

func (cue *ConfigUpdateEnvelope) StaticallyOpaqueFields() []string

func (*ConfigUpdateEnvelope) String Uses

func (m *ConfigUpdateEnvelope) String() string

func (*ConfigUpdateEnvelope) XXX_DiscardUnknown Uses

func (m *ConfigUpdateEnvelope) XXX_DiscardUnknown()

func (*ConfigUpdateEnvelope) XXX_Marshal Uses

func (m *ConfigUpdateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigUpdateEnvelope) XXX_Merge Uses

func (dst *ConfigUpdateEnvelope) XXX_Merge(src proto.Message)

func (*ConfigUpdateEnvelope) XXX_Size Uses

func (m *ConfigUpdateEnvelope) XXX_Size() int

func (*ConfigUpdateEnvelope) XXX_Unmarshal Uses

func (m *ConfigUpdateEnvelope) XXX_Unmarshal(b []byte) error

type ConfigValue Uses

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 Uses

func (*ConfigValue) Descriptor() ([]byte, []int)

func (*ConfigValue) GetModPolicy Uses

func (m *ConfigValue) GetModPolicy() string

func (*ConfigValue) GetValue Uses

func (m *ConfigValue) GetValue() []byte

func (*ConfigValue) GetVersion Uses

func (m *ConfigValue) GetVersion() uint64

func (*ConfigValue) ProtoMessage Uses

func (*ConfigValue) ProtoMessage()

func (*ConfigValue) Reset Uses

func (m *ConfigValue) Reset()

func (*ConfigValue) String Uses

func (m *ConfigValue) String() string

func (*ConfigValue) Underlying Uses

func (cv *ConfigValue) Underlying() proto.Message

func (*ConfigValue) VariablyOpaqueFields Uses

func (cv *ConfigValue) VariablyOpaqueFields() []string

func (*ConfigValue) XXX_DiscardUnknown Uses

func (m *ConfigValue) XXX_DiscardUnknown()

func (*ConfigValue) XXX_Marshal Uses

func (m *ConfigValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigValue) XXX_Merge Uses

func (dst *ConfigValue) XXX_Merge(src proto.Message)

func (*ConfigValue) XXX_Size Uses

func (m *ConfigValue) XXX_Size() int

func (*ConfigValue) XXX_Unmarshal Uses

func (m *ConfigValue) XXX_Unmarshal(b []byte) error

type ConfigValueSchema Uses

type ConfigValueSchema struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ConfigValueSchema) Descriptor Uses

func (*ConfigValueSchema) Descriptor() ([]byte, []int)

func (*ConfigValueSchema) ProtoMessage Uses

func (*ConfigValueSchema) ProtoMessage()

func (*ConfigValueSchema) Reset Uses

func (m *ConfigValueSchema) Reset()

func (*ConfigValueSchema) String Uses

func (m *ConfigValueSchema) String() string

func (*ConfigValueSchema) XXX_DiscardUnknown Uses

func (m *ConfigValueSchema) XXX_DiscardUnknown()

func (*ConfigValueSchema) XXX_Marshal Uses

func (m *ConfigValueSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigValueSchema) XXX_Merge Uses

func (dst *ConfigValueSchema) XXX_Merge(src proto.Message)

func (*ConfigValueSchema) XXX_Size Uses

func (m *ConfigValueSchema) XXX_Size() int

func (*ConfigValueSchema) XXX_Unmarshal Uses

func (m *ConfigValueSchema) XXX_Unmarshal(b []byte) error

type Consortium Uses

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 Uses

func (*Consortium) Descriptor() ([]byte, []int)

func (*Consortium) GetName Uses

func (m *Consortium) GetName() string

func (*Consortium) ProtoMessage Uses

func (*Consortium) ProtoMessage()

func (*Consortium) Reset Uses

func (m *Consortium) Reset()

func (*Consortium) String Uses

func (m *Consortium) String() string

func (*Consortium) XXX_DiscardUnknown Uses

func (m *Consortium) XXX_DiscardUnknown()

func (*Consortium) XXX_Marshal Uses

func (m *Consortium) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Consortium) XXX_Merge Uses

func (dst *Consortium) XXX_Merge(src proto.Message)

func (*Consortium) XXX_Size Uses

func (m *Consortium) XXX_Size() int

func (*Consortium) XXX_Unmarshal Uses

func (m *Consortium) XXX_Unmarshal(b []byte) error

type DynamicChannelConfigValue Uses

type DynamicChannelConfigValue struct {
    *ConfigValue
    // contains filtered or unexported fields
}

func (*DynamicChannelConfigValue) Underlying Uses

func (dccv *DynamicChannelConfigValue) Underlying() proto.Message

func (*DynamicChannelConfigValue) VariablyOpaqueFieldProto Uses

func (dccv *DynamicChannelConfigValue) VariablyOpaqueFieldProto(name string) (proto.Message, error)

type DynamicChannelGroup Uses

type DynamicChannelGroup struct {
    *ConfigGroup
}

func (*DynamicChannelGroup) DynamicMapFieldProto Uses

func (dcg *DynamicChannelGroup) DynamicMapFieldProto(name string, key string, base proto.Message) (proto.Message, error)

type DynamicConfigGroupFactory Uses

type DynamicConfigGroupFactory interface {
    DynamicConfigGroup(cg *ConfigGroup) proto.Message
}

type DynamicConsortiumConfigValue Uses

type DynamicConsortiumConfigValue struct {
    *ConfigValue
    // contains filtered or unexported fields
}

func (*DynamicConsortiumConfigValue) VariablyOpaqueFieldProto Uses

func (dccv *DynamicConsortiumConfigValue) VariablyOpaqueFieldProto(name string) (proto.Message, error)

type DynamicConsortiumGroup Uses

type DynamicConsortiumGroup struct {
    *ConfigGroup
}

func (*DynamicConsortiumGroup) DynamicMapFieldProto Uses

func (dcg *DynamicConsortiumGroup) DynamicMapFieldProto(name string, key string, base proto.Message) (proto.Message, error)

func (*DynamicConsortiumGroup) Underlying Uses

func (dcg *DynamicConsortiumGroup) Underlying() proto.Message

type DynamicConsortiumOrgConfigValue Uses

type DynamicConsortiumOrgConfigValue struct {
    *ConfigValue
    // contains filtered or unexported fields
}

func (*DynamicConsortiumOrgConfigValue) VariablyOpaqueFieldProto Uses

func (dcocv *DynamicConsortiumOrgConfigValue) VariablyOpaqueFieldProto(name string) (proto.Message, error)

type DynamicConsortiumOrgGroup Uses

type DynamicConsortiumOrgGroup struct {
    *ConfigGroup
}

func (*DynamicConsortiumOrgGroup) DynamicMapFieldProto Uses

func (dcg *DynamicConsortiumOrgGroup) DynamicMapFieldProto(name string, key string, base proto.Message) (proto.Message, error)

type DynamicConsortiumsGroup Uses

type DynamicConsortiumsGroup struct {
    *ConfigGroup
}

func (*DynamicConsortiumsGroup) DynamicMapFieldProto Uses

func (dcg *DynamicConsortiumsGroup) DynamicMapFieldProto(name string, key string, base proto.Message) (proto.Message, error)

func (*DynamicConsortiumsGroup) Underlying Uses

func (dcg *DynamicConsortiumsGroup) Underlying() proto.Message

type DynamicConsortiumsGroupFactory Uses

type DynamicConsortiumsGroupFactory struct{}

func (DynamicConsortiumsGroupFactory) DynamicConfigGroup Uses

func (dogf DynamicConsortiumsGroupFactory) DynamicConfigGroup(cg *ConfigGroup) proto.Message

type Envelope Uses

type Envelope struct {
    // 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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Envelope wraps a Payload with a signature so that the message may be authenticated

func (*Envelope) AsSignedData Uses

func (env *Envelope) AsSignedData() ([]*SignedData, error)

AsSignedData returns the signatures for the Envelope as SignedData slice of length 1 or an error indicating why this was not possible

func (*Envelope) Descriptor Uses

func (*Envelope) Descriptor() ([]byte, []int)

func (*Envelope) GetPayload Uses

func (m *Envelope) GetPayload() []byte

func (*Envelope) GetSignature Uses

func (m *Envelope) GetSignature() []byte

func (*Envelope) ProtoMessage Uses

func (*Envelope) ProtoMessage()

func (*Envelope) Reset Uses

func (m *Envelope) Reset()

func (*Envelope) StaticallyOpaqueFieldProto Uses

func (e *Envelope) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*Envelope) StaticallyOpaqueFields Uses

func (e *Envelope) StaticallyOpaqueFields() []string

func (*Envelope) String Uses

func (m *Envelope) String() string

func (*Envelope) XXX_DiscardUnknown Uses

func (m *Envelope) XXX_DiscardUnknown()

func (*Envelope) XXX_Marshal Uses

func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Envelope) XXX_Merge Uses

func (dst *Envelope) XXX_Merge(src proto.Message)

func (*Envelope) XXX_Size Uses

func (m *Envelope) XXX_Size() int

func (*Envelope) XXX_Unmarshal Uses

func (m *Envelope) XXX_Unmarshal(b []byte) error

type HashingAlgorithm Uses

type HashingAlgorithm struct {
    // Currently supported algorithms are: SHAKE256
    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 Uses

func (*HashingAlgorithm) Descriptor() ([]byte, []int)

func (*HashingAlgorithm) GetName Uses

func (m *HashingAlgorithm) GetName() string

func (*HashingAlgorithm) ProtoMessage Uses

func (*HashingAlgorithm) ProtoMessage()

func (*HashingAlgorithm) Reset Uses

func (m *HashingAlgorithm) Reset()

func (*HashingAlgorithm) String Uses

func (m *HashingAlgorithm) String() string

func (*HashingAlgorithm) XXX_DiscardUnknown Uses

func (m *HashingAlgorithm) XXX_DiscardUnknown()

func (*HashingAlgorithm) XXX_Marshal Uses

func (m *HashingAlgorithm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashingAlgorithm) XXX_Merge Uses

func (dst *HashingAlgorithm) XXX_Merge(src proto.Message)

func (*HashingAlgorithm) XXX_Size Uses

func (m *HashingAlgorithm) XXX_Size() int

func (*HashingAlgorithm) XXX_Unmarshal Uses

func (m *HashingAlgorithm) XXX_Unmarshal(b []byte) error
type Header struct {
    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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Header) Descriptor Uses

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetChannelHeader Uses

func (m *Header) GetChannelHeader() []byte

func (*Header) GetSignatureHeader Uses

func (m *Header) GetSignatureHeader() []byte

func (*Header) ProtoMessage Uses

func (*Header) ProtoMessage()

func (*Header) Reset Uses

func (m *Header) Reset()

func (*Header) StaticallyOpaqueFieldProto Uses

func (h *Header) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*Header) StaticallyOpaqueFields Uses

func (h *Header) StaticallyOpaqueFields() []string

func (*Header) String Uses

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown Uses

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal Uses

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge Uses

func (dst *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size Uses

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal Uses

func (m *Header) XXX_Unmarshal(b []byte) error

type HeaderType Uses

type HeaderType int32
const (
    HeaderType_MESSAGE              HeaderType = 0
    HeaderType_CONFIG               HeaderType = 1
    HeaderType_CONFIG_UPDATE        HeaderType = 2
    HeaderType_ENDORSER_TRANSACTION HeaderType = 3
    HeaderType_ORDERER_TRANSACTION  HeaderType = 4
    HeaderType_DELIVER_SEEK_INFO    HeaderType = 5
    HeaderType_CHAINCODE_PACKAGE    HeaderType = 6
    HeaderType_PEER_ADMIN_OPERATION HeaderType = 8
    HeaderType_TOKEN_TRANSACTION    HeaderType = 9
)

func (HeaderType) EnumDescriptor Uses

func (HeaderType) EnumDescriptor() ([]byte, []int)

func (HeaderType) String Uses

func (x HeaderType) String() string

type ImplicitMetaPolicy Uses

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 Uses

func (*ImplicitMetaPolicy) Descriptor() ([]byte, []int)

func (*ImplicitMetaPolicy) GetRule Uses

func (m *ImplicitMetaPolicy) GetRule() ImplicitMetaPolicy_Rule

func (*ImplicitMetaPolicy) GetSubPolicy Uses

func (m *ImplicitMetaPolicy) GetSubPolicy() string

func (*ImplicitMetaPolicy) ProtoMessage Uses

func (*ImplicitMetaPolicy) ProtoMessage()

func (*ImplicitMetaPolicy) Reset Uses

func (m *ImplicitMetaPolicy) Reset()

func (*ImplicitMetaPolicy) String Uses

func (m *ImplicitMetaPolicy) String() string

func (*ImplicitMetaPolicy) XXX_DiscardUnknown Uses

func (m *ImplicitMetaPolicy) XXX_DiscardUnknown()

func (*ImplicitMetaPolicy) XXX_Marshal Uses

func (m *ImplicitMetaPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImplicitMetaPolicy) XXX_Merge Uses

func (dst *ImplicitMetaPolicy) XXX_Merge(src proto.Message)

func (*ImplicitMetaPolicy) XXX_Size Uses

func (m *ImplicitMetaPolicy) XXX_Size() int

func (*ImplicitMetaPolicy) XXX_Unmarshal Uses

func (m *ImplicitMetaPolicy) XXX_Unmarshal(b []byte) error

type ImplicitMetaPolicy_Rule Uses

type ImplicitMetaPolicy_Rule int32
const (
    ImplicitMetaPolicy_ANY      ImplicitMetaPolicy_Rule = 0
    ImplicitMetaPolicy_ALL      ImplicitMetaPolicy_Rule = 1
    ImplicitMetaPolicy_MAJORITY ImplicitMetaPolicy_Rule = 2
)

func (ImplicitMetaPolicy_Rule) EnumDescriptor Uses

func (ImplicitMetaPolicy_Rule) EnumDescriptor() ([]byte, []int)

func (ImplicitMetaPolicy_Rule) String Uses

func (x ImplicitMetaPolicy_Rule) String() string

type LastConfig Uses

type LastConfig struct {
    Index                uint64   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

LastConfig is the encoded value for the Metadata message which is encoded in the LAST_CONFIGURATION block metadata index

func (*LastConfig) Descriptor Uses

func (*LastConfig) Descriptor() ([]byte, []int)

func (*LastConfig) GetIndex Uses

func (m *LastConfig) GetIndex() uint64

func (*LastConfig) ProtoMessage Uses

func (*LastConfig) ProtoMessage()

func (*LastConfig) Reset Uses

func (m *LastConfig) Reset()

func (*LastConfig) String Uses

func (m *LastConfig) String() string

func (*LastConfig) XXX_DiscardUnknown Uses

func (m *LastConfig) XXX_DiscardUnknown()

func (*LastConfig) XXX_Marshal Uses

func (m *LastConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LastConfig) XXX_Merge Uses

func (dst *LastConfig) XXX_Merge(src proto.Message)

func (*LastConfig) XXX_Size Uses

func (m *LastConfig) XXX_Size() int

func (*LastConfig) XXX_Unmarshal Uses

func (m *LastConfig) XXX_Unmarshal(b []byte) error

type Metadata Uses

type Metadata struct {
    Value                []byte               `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    Signatures           []*MetadataSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

Metadata is a common structure to be used to encode block metadata

func (*Metadata) Descriptor Uses

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) GetSignatures Uses

func (m *Metadata) GetSignatures() []*MetadataSignature

func (*Metadata) GetValue Uses

func (m *Metadata) GetValue() []byte

func (*Metadata) ProtoMessage Uses

func (*Metadata) ProtoMessage()

func (*Metadata) Reset Uses

func (m *Metadata) Reset()

func (*Metadata) String Uses

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown Uses

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal Uses

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge Uses

func (dst *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size Uses

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal Uses

func (m *Metadata) XXX_Unmarshal(b []byte) error

type MetadataSignature Uses

type MetadataSignature 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 (*MetadataSignature) Descriptor Uses

func (*MetadataSignature) Descriptor() ([]byte, []int)

func (*MetadataSignature) GetSignature Uses

func (m *MetadataSignature) GetSignature() []byte

func (*MetadataSignature) GetSignatureHeader Uses

func (m *MetadataSignature) GetSignatureHeader() []byte

func (*MetadataSignature) ProtoMessage Uses

func (*MetadataSignature) ProtoMessage()

func (*MetadataSignature) Reset Uses

func (m *MetadataSignature) Reset()

func (*MetadataSignature) String Uses

func (m *MetadataSignature) String() string

func (*MetadataSignature) XXX_DiscardUnknown Uses

func (m *MetadataSignature) XXX_DiscardUnknown()

func (*MetadataSignature) XXX_Marshal Uses

func (m *MetadataSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetadataSignature) XXX_Merge Uses

func (dst *MetadataSignature) XXX_Merge(src proto.Message)

func (*MetadataSignature) XXX_Size Uses

func (m *MetadataSignature) XXX_Size() int

func (*MetadataSignature) XXX_Unmarshal Uses

func (m *MetadataSignature) XXX_Unmarshal(b []byte) error

type OrdererAddresses Uses

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 Uses

func (*OrdererAddresses) Descriptor() ([]byte, []int)

func (*OrdererAddresses) GetAddresses Uses

func (m *OrdererAddresses) GetAddresses() []string

func (*OrdererAddresses) ProtoMessage Uses

func (*OrdererAddresses) ProtoMessage()

func (*OrdererAddresses) Reset Uses

func (m *OrdererAddresses) Reset()

func (*OrdererAddresses) String Uses

func (m *OrdererAddresses) String() string

func (*OrdererAddresses) XXX_DiscardUnknown Uses

func (m *OrdererAddresses) XXX_DiscardUnknown()

func (*OrdererAddresses) XXX_Marshal Uses

func (m *OrdererAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrdererAddresses) XXX_Merge Uses

func (dst *OrdererAddresses) XXX_Merge(src proto.Message)

func (*OrdererAddresses) XXX_Size Uses

func (m *OrdererAddresses) XXX_Size() int

func (*OrdererAddresses) XXX_Unmarshal Uses

func (m *OrdererAddresses) XXX_Unmarshal(b []byte) error

type OrdererBlockMetadata Uses

type OrdererBlockMetadata struct {
    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"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

OrdererBlockMetadata defines metadata that is set by the ordering service.

func (*OrdererBlockMetadata) Descriptor Uses

func (*OrdererBlockMetadata) Descriptor() ([]byte, []int)

func (*OrdererBlockMetadata) GetConsenterMetadata Uses

func (m *OrdererBlockMetadata) GetConsenterMetadata() []byte

func (*OrdererBlockMetadata) GetLastConfig Uses

func (m *OrdererBlockMetadata) GetLastConfig() *LastConfig

func (*OrdererBlockMetadata) ProtoMessage Uses

func (*OrdererBlockMetadata) ProtoMessage()

func (*OrdererBlockMetadata) Reset Uses

func (m *OrdererBlockMetadata) Reset()

func (*OrdererBlockMetadata) String Uses

func (m *OrdererBlockMetadata) String() string

func (*OrdererBlockMetadata) XXX_DiscardUnknown Uses

func (m *OrdererBlockMetadata) XXX_DiscardUnknown()

func (*OrdererBlockMetadata) XXX_Marshal Uses

func (m *OrdererBlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrdererBlockMetadata) XXX_Merge Uses

func (dst *OrdererBlockMetadata) XXX_Merge(src proto.Message)

func (*OrdererBlockMetadata) XXX_Size Uses

func (m *OrdererBlockMetadata) XXX_Size() int

func (*OrdererBlockMetadata) XXX_Unmarshal Uses

func (m *OrdererBlockMetadata) XXX_Unmarshal(b []byte) error

type Payload Uses

type Payload struct {
    // 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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Payload is the message contents (and header to allow for signing)

func (*Payload) Descriptor Uses

func (*Payload) Descriptor() ([]byte, []int)

func (*Payload) GetData Uses

func (m *Payload) GetData() []byte

func (*Payload) GetHeader Uses

func (m *Payload) GetHeader() *Header

func (*Payload) ProtoMessage Uses

func (*Payload) ProtoMessage()

func (*Payload) Reset Uses

func (m *Payload) Reset()

func (*Payload) String Uses

func (m *Payload) String() string

func (*Payload) VariablyOpaqueFieldProto Uses

func (p *Payload) VariablyOpaqueFieldProto(name string) (proto.Message, error)

func (*Payload) VariablyOpaqueFields Uses

func (p *Payload) VariablyOpaqueFields() []string

func (*Payload) XXX_DiscardUnknown Uses

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal Uses

func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payload) XXX_Merge Uses

func (dst *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size Uses

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal Uses

func (m *Payload) XXX_Unmarshal(b []byte) error

type Policy Uses

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 Uses

func (*Policy) Descriptor() ([]byte, []int)

func (*Policy) GetType Uses

func (m *Policy) GetType() int32

func (*Policy) GetValue Uses

func (m *Policy) GetValue() []byte

func (*Policy) ProtoMessage Uses

func (*Policy) ProtoMessage()

func (*Policy) Reset Uses

func (m *Policy) Reset()

func (*Policy) String Uses

func (m *Policy) String() string

func (*Policy) VariablyOpaqueFieldProto Uses

func (p *Policy) VariablyOpaqueFieldProto(name string) (proto.Message, error)

func (*Policy) VariablyOpaqueFields Uses

func (p *Policy) VariablyOpaqueFields() []string

func (*Policy) XXX_DiscardUnknown Uses

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal Uses

func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Policy) XXX_Merge Uses

func (dst *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_Size Uses

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal Uses

func (m *Policy) XXX_Unmarshal(b []byte) error

type Policy_PolicyType Uses

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 Uses

func (Policy_PolicyType) EnumDescriptor() ([]byte, []int)

func (Policy_PolicyType) String Uses

func (x Policy_PolicyType) String() string

type Signable Uses

type Signable interface {
    // AsSignedData returns the set of signatures for a structure as SignedData or an error indicating why this was not possible
    AsSignedData() ([]*SignedData, error)
}

Signable types are those which can map their contents to a set of SignedData

type SignatureHeader Uses

type SignatureHeader struct {
    // 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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SignatureHeader) Descriptor Uses

func (*SignatureHeader) Descriptor() ([]byte, []int)

func (*SignatureHeader) GetCreator Uses

func (m *SignatureHeader) GetCreator() []byte

func (*SignatureHeader) GetNonce Uses

func (m *SignatureHeader) GetNonce() []byte

func (*SignatureHeader) ProtoMessage Uses

func (*SignatureHeader) ProtoMessage()

func (*SignatureHeader) Reset Uses

func (m *SignatureHeader) Reset()

func (*SignatureHeader) StaticallyOpaqueFieldProto Uses

func (sh *SignatureHeader) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*SignatureHeader) StaticallyOpaqueFields Uses

func (sh *SignatureHeader) StaticallyOpaqueFields() []string

func (*SignatureHeader) String Uses

func (m *SignatureHeader) String() string

func (*SignatureHeader) XXX_DiscardUnknown Uses

func (m *SignatureHeader) XXX_DiscardUnknown()

func (*SignatureHeader) XXX_Marshal Uses

func (m *SignatureHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignatureHeader) XXX_Merge Uses

func (dst *SignatureHeader) XXX_Merge(src proto.Message)

func (*SignatureHeader) XXX_Size Uses

func (m *SignatureHeader) XXX_Size() int

func (*SignatureHeader) XXX_Unmarshal Uses

func (m *SignatureHeader) XXX_Unmarshal(b []byte) error

type SignaturePolicy Uses

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 Uses

func (*SignaturePolicy) Descriptor() ([]byte, []int)

func (*SignaturePolicy) GetNOutOf Uses

func (m *SignaturePolicy) GetNOutOf() *SignaturePolicy_NOutOf

func (*SignaturePolicy) GetSignedBy Uses

func (m *SignaturePolicy) GetSignedBy() int32

func (*SignaturePolicy) GetType Uses

func (m *SignaturePolicy) GetType() isSignaturePolicy_Type

func (*SignaturePolicy) ProtoMessage Uses

func (*SignaturePolicy) ProtoMessage()

func (*SignaturePolicy) Reset Uses

func (m *SignaturePolicy) Reset()

func (*SignaturePolicy) String Uses

func (m *SignaturePolicy) String() string

func (*SignaturePolicy) XXX_DiscardUnknown Uses

func (m *SignaturePolicy) XXX_DiscardUnknown()

func (*SignaturePolicy) XXX_Marshal Uses

func (m *SignaturePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignaturePolicy) XXX_Merge Uses

func (dst *SignaturePolicy) XXX_Merge(src proto.Message)

func (*SignaturePolicy) XXX_OneofFuncs Uses

func (*SignaturePolicy) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*SignaturePolicy) XXX_Size Uses

func (m *SignaturePolicy) XXX_Size() int

func (*SignaturePolicy) XXX_Unmarshal Uses

func (m *SignaturePolicy) XXX_Unmarshal(b []byte) error

type SignaturePolicyEnvelope Uses

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 Uses

func (*SignaturePolicyEnvelope) Descriptor() ([]byte, []int)

func (*SignaturePolicyEnvelope) GetIdentities Uses

func (m *SignaturePolicyEnvelope) GetIdentities() []*msp.MSPPrincipal

func (*SignaturePolicyEnvelope) GetRule Uses

func (m *SignaturePolicyEnvelope) GetRule() *SignaturePolicy

func (*SignaturePolicyEnvelope) GetVersion Uses

func (m *SignaturePolicyEnvelope) GetVersion() int32

func (*SignaturePolicyEnvelope) ProtoMessage Uses

func (*SignaturePolicyEnvelope) ProtoMessage()

func (*SignaturePolicyEnvelope) Reset Uses

func (m *SignaturePolicyEnvelope) Reset()

func (*SignaturePolicyEnvelope) String Uses

func (m *SignaturePolicyEnvelope) String() string

func (*SignaturePolicyEnvelope) XXX_DiscardUnknown Uses

func (m *SignaturePolicyEnvelope) XXX_DiscardUnknown()

func (*SignaturePolicyEnvelope) XXX_Marshal Uses

func (m *SignaturePolicyEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignaturePolicyEnvelope) XXX_Merge Uses

func (dst *SignaturePolicyEnvelope) XXX_Merge(src proto.Message)

func (*SignaturePolicyEnvelope) XXX_Size Uses

func (m *SignaturePolicyEnvelope) XXX_Size() int

func (*SignaturePolicyEnvelope) XXX_Unmarshal Uses

func (m *SignaturePolicyEnvelope) XXX_Unmarshal(b []byte) error

type SignaturePolicy_NOutOf Uses

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 Uses

func (*SignaturePolicy_NOutOf) Descriptor() ([]byte, []int)

func (*SignaturePolicy_NOutOf) GetN Uses

func (m *SignaturePolicy_NOutOf) GetN() int32

func (*SignaturePolicy_NOutOf) GetRules Uses

func (m *SignaturePolicy_NOutOf) GetRules() []*SignaturePolicy

func (*SignaturePolicy_NOutOf) ProtoMessage Uses

func (*SignaturePolicy_NOutOf) ProtoMessage()

func (*SignaturePolicy_NOutOf) Reset Uses

func (m *SignaturePolicy_NOutOf) Reset()

func (*SignaturePolicy_NOutOf) String Uses

func (m *SignaturePolicy_NOutOf) String() string

func (*SignaturePolicy_NOutOf) XXX_DiscardUnknown Uses

func (m *SignaturePolicy_NOutOf) XXX_DiscardUnknown()

func (*SignaturePolicy_NOutOf) XXX_Marshal Uses

func (m *SignaturePolicy_NOutOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignaturePolicy_NOutOf) XXX_Merge Uses

func (dst *SignaturePolicy_NOutOf) XXX_Merge(src proto.Message)

func (*SignaturePolicy_NOutOf) XXX_Size Uses

func (m *SignaturePolicy_NOutOf) XXX_Size() int

func (*SignaturePolicy_NOutOf) XXX_Unmarshal Uses

func (m *SignaturePolicy_NOutOf) XXX_Unmarshal(b []byte) error

type SignaturePolicy_NOutOf_ Uses

type SignaturePolicy_NOutOf_ struct {
    NOutOf *SignaturePolicy_NOutOf `protobuf:"bytes,2,opt,name=n_out_of,json=nOutOf,proto3,oneof"`
}

type SignaturePolicy_SignedBy Uses

type SignaturePolicy_SignedBy struct {
    SignedBy int32 `protobuf:"varint,1,opt,name=signed_by,json=signedBy,proto3,oneof"`
}

type SignedData Uses

type SignedData struct {
    Data      []byte
    Identity  []byte
    Signature []byte
}

SignedData is used to represent the general triplet required to verify a signature This is intended to be generic across crypto schemes, while most crypto schemes will include the signing identity and a nonce within the Data, this is left to the crypto implementation

type StaticCollectionConfig Uses

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"`
    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.

func (*StaticCollectionConfig) Descriptor Uses

func (*StaticCollectionConfig) Descriptor() ([]byte, []int)

func (*StaticCollectionConfig) GetBlockToLive Uses

func (m *StaticCollectionConfig) GetBlockToLive() uint64

func (*StaticCollectionConfig) GetMaximumPeerCount Uses

func (m *StaticCollectionConfig) GetMaximumPeerCount() int32

func (*StaticCollectionConfig) GetMemberOnlyRead Uses

func (m *StaticCollectionConfig) GetMemberOnlyRead() bool

func (*StaticCollectionConfig) GetMemberOrgsPolicy Uses

func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig

func (*StaticCollectionConfig) GetName Uses

func (m *StaticCollectionConfig) GetName() string

func (*StaticCollectionConfig) GetRequiredPeerCount Uses

func (m *StaticCollectionConfig) GetRequiredPeerCount() int32

func (*StaticCollectionConfig) ProtoMessage Uses

func (*StaticCollectionConfig) ProtoMessage()

func (*StaticCollectionConfig) Reset Uses

func (m *StaticCollectionConfig) Reset()

func (*StaticCollectionConfig) String Uses

func (m *StaticCollectionConfig) String() string

func (*StaticCollectionConfig) XXX_DiscardUnknown Uses

func (m *StaticCollectionConfig) XXX_DiscardUnknown()

func (*StaticCollectionConfig) XXX_Marshal Uses

func (m *StaticCollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StaticCollectionConfig) XXX_Merge Uses

func (dst *StaticCollectionConfig) XXX_Merge(src proto.Message)

func (*StaticCollectionConfig) XXX_Size Uses

func (m *StaticCollectionConfig) XXX_Size() int

func (*StaticCollectionConfig) XXX_Unmarshal Uses

func (m *StaticCollectionConfig) XXX_Unmarshal(b []byte) error

type Status Uses

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) EnumDescriptor Uses

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String Uses

func (x Status) String() string

Package common imports 7 packages (graph) and is imported by 398 packages. Updated 2019-06-28. Refresh now. Tools for package owners.