Versions in this module Expand all Collapse all v0 v0.1.0 Jun 4, 2021 Changes in this version + const Fabric + const ModuleName + var ErrIntOverflowFabric = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthFabric = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupFabric = fmt.Errorf("proto: unexpected end of group") + var MSPHeaderType_name = map[int32]string + var MSPHeaderType_value = map[string]int32 + var MakeSequenceCommitmentEntryKey = commitment.MakeSequenceCommitmentEntryKey + var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) + func CompareMSPID(a, b string) int + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func VerifyChaincodeHeader(clientState ClientState, h ChaincodeHeader) error + func VerifyChaincodeInfo(clientState ClientState, info ChaincodeInfo) error + func VerifyEndorsedCommitment(ccID peer.ChaincodeID, policyBytes []byte, proof CommitmentProof, key string, ...) (bool, error) + func VerifyEndorsedMessage(policyBytes []byte, proof MessageProof, value []byte, configs []MSPPBConfig) error + func VerifyMSPHeader(clientState ClientState, mh MSPHeader) error + func VerifyMSPHeaders(clientState ClientState, mhs MSPHeaders) error + type ChaincodeHeader struct + Proof CommitmentProof + Sequence commitment.Sequence + func NewChaincodeHeader(seq uint64, timestamp int64, proof CommitmentProof) ChaincodeHeader + func (*ChaincodeHeader) Descriptor() ([]byte, []int) + func (*ChaincodeHeader) ProtoMessage() + func (h ChaincodeHeader) ValidateBasic() error + func (m *ChaincodeHeader) Marshal() (dAtA []byte, err error) + func (m *ChaincodeHeader) MarshalTo(dAtA []byte) (int, error) + func (m *ChaincodeHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ChaincodeHeader) Reset() + func (m *ChaincodeHeader) Size() (n int) + func (m *ChaincodeHeader) String() string + func (m *ChaincodeHeader) Unmarshal(dAtA []byte) error + func (m *ChaincodeHeader) XXX_DiscardUnknown() + func (m *ChaincodeHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChaincodeHeader) XXX_Merge(src proto.Message) + func (m *ChaincodeHeader) XXX_Size() int + func (m *ChaincodeHeader) XXX_Unmarshal(b []byte) error + type ChaincodeID struct + Name string + Path string + Version string + func (*ChaincodeID) Descriptor() ([]byte, []int) + func (*ChaincodeID) ProtoMessage() + func (m *ChaincodeID) Marshal() (dAtA []byte, err error) + func (m *ChaincodeID) MarshalTo(dAtA []byte) (int, error) + func (m *ChaincodeID) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ChaincodeID) Reset() + func (m *ChaincodeID) Size() (n int) + func (m *ChaincodeID) String() string + func (m *ChaincodeID) Unmarshal(dAtA []byte) error + func (m *ChaincodeID) XXX_DiscardUnknown() + func (m *ChaincodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChaincodeID) XXX_Merge(src proto.Message) + func (m *ChaincodeID) XXX_Size() int + func (m *ChaincodeID) XXX_Unmarshal(b []byte) error + type ChaincodeInfo struct + ChaincodeId ChaincodeID + ChannelId string + EndorsementPolicy []byte + IbcPolicy []byte + Proof *MessageProof + func NewChaincodeInfo(chanID string, ccID ChaincodeID, endorsementPolicy, ibcPolicy []byte, ...) ChaincodeInfo + func (*ChaincodeInfo) Descriptor() ([]byte, []int) + func (*ChaincodeInfo) ProtoMessage() + func (ci ChaincodeInfo) GetChainID() string + func (ci ChaincodeInfo) GetFabricChaincodeID() peer.ChaincodeID + func (ci ChaincodeInfo) GetSignBytes() []byte + func (ci ChaincodeInfo) ValidateBasic() error + func (m *ChaincodeInfo) Marshal() (dAtA []byte, err error) + func (m *ChaincodeInfo) MarshalTo(dAtA []byte) (int, error) + func (m *ChaincodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ChaincodeInfo) Reset() + func (m *ChaincodeInfo) Size() (n int) + func (m *ChaincodeInfo) String() string + func (m *ChaincodeInfo) Unmarshal(dAtA []byte) error + func (m *ChaincodeInfo) XXX_DiscardUnknown() + func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChaincodeInfo) XXX_Merge(src proto.Message) + func (m *ChaincodeInfo) XXX_Size() int + func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error + type ClientState struct + Id string + LastChaincodeHeader ChaincodeHeader + LastChaincodeInfo ChaincodeInfo + LastMspInfos MSPInfos + func NewClientState(id string, chaincodeHeader ChaincodeHeader, chaincodeInfo ChaincodeInfo, ...) *ClientState + func (*ClientState) Descriptor() ([]byte, []int) + func (*ClientState) ProtoMessage() + func (cs ClientState) CheckHeaderAndUpdateState(ctx sdk.Context, cdc codec.BinaryMarshaler, clientStore sdk.KVStore, ...) (exported.ClientState, exported.ConsensusState, error) + func (cs ClientState) CheckMisbehaviourAndUpdateState(ctx sdk.Context, cdc codec.BinaryMarshaler, clientStore sdk.KVStore, ...) (exported.ClientState, error) + func (cs ClientState) CheckProposedHeaderAndUpdateState(ctx sdk.Context, cdc codec.BinaryMarshaler, clientStore sdk.KVStore, ...) (exported.ClientState, exported.ConsensusState, error) + func (cs ClientState) ClientType() string + func (cs ClientState) GetChainID() string + func (cs ClientState) GetFrozenHeight() exported.Height + func (cs ClientState) GetID() string + func (cs ClientState) GetLatestHeight() exported.Height + func (cs ClientState) GetLatestTimestamp() int64 + func (cs ClientState) GetProofSpecs() []*ics23.ProofSpec + func (cs ClientState) IsFrozen() bool + func (cs ClientState) Validate() error + func (cs ClientState) VerifyChannelState(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyClientConsensusState(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyClientState(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyConnectionState(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyNextSequenceRecv(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyPacketAcknowledgement(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyPacketCommitment(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyPacketReceiptAbsence(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height, ...) error + func (cs ClientState) VerifyUpgrade(_ sdk.Context, _ codec.BinaryMarshaler, _ sdk.KVStore, _ exported.ClientState, ...) error + func (cs ClientState) ZeroCustomFields() exported.ClientState + func (m *ClientState) Marshal() (dAtA []byte, err error) + func (m *ClientState) MarshalTo(dAtA []byte) (int, error) + func (m *ClientState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ClientState) Reset() + func (m *ClientState) Size() (n int) + func (m *ClientState) String() string + func (m *ClientState) Unmarshal(dAtA []byte) error + func (m *ClientState) XXX_DiscardUnknown() + func (m *ClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ClientState) XXX_Merge(src proto.Message) + func (m *ClientState) XXX_Size() int + func (m *ClientState) XXX_Unmarshal(b []byte) error + type CommitmentProof struct + Identities [][]byte + NsIndex uint32 + Proposal []byte + Signatures [][]byte + WriteSetIndex uint32 + func (*CommitmentProof) Descriptor() ([]byte, []int) + func (*CommitmentProof) ProtoMessage() + func (CommitmentProof) VerifyMembership([]*ics23.ProofSpec, exported.Root, exported.Path, []byte) error + func (CommitmentProof) VerifyNonMembership([]*ics23.ProofSpec, exported.Root, exported.Path) error + func (m *CommitmentProof) Marshal() (dAtA []byte, err error) + func (m *CommitmentProof) MarshalTo(dAtA []byte) (int, error) + func (m *CommitmentProof) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CommitmentProof) Reset() + func (m *CommitmentProof) Size() (n int) + func (m *CommitmentProof) String() string + func (m *CommitmentProof) Unmarshal(dAtA []byte) error + func (m *CommitmentProof) XXX_DiscardUnknown() + func (m *CommitmentProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommitmentProof) XXX_Merge(src proto.Message) + func (m *CommitmentProof) XXX_Size() int + func (m *CommitmentProof) XXX_Unmarshal(b []byte) error + func (proof CommitmentProof) Empty() bool + func (proof CommitmentProof) ToSignedData() []*protoutil.SignedData + func (proof CommitmentProof) ValidateBasic() error + func (this *CommitmentProof) Equal(that interface{}) bool + type Config struct + MSPIDs []string + MSPsDir string + func DefaultConfig() (Config, error) + type ConsensusState struct + Timestamp int64 + func GetConsensusState(store sdk.KVStore, cdc codec.BinaryMarshaler, height exported.Height) (*ConsensusState, error) + func NewConsensusState(timestamp int64) *ConsensusState + func (*ConsensusState) Descriptor() ([]byte, []int) + func (*ConsensusState) ProtoMessage() + func (cs ConsensusState) ClientType() string + func (cs ConsensusState) GetRoot() exported.Root + func (cs ConsensusState) GetTimestamp() uint64 + func (cs ConsensusState) ValidateBasic() error + func (m *ConsensusState) Marshal() (dAtA []byte, err error) + func (m *ConsensusState) MarshalTo(dAtA []byte) (int, error) + func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ConsensusState) Reset() + func (m *ConsensusState) Size() (n int) + func (m *ConsensusState) String() string + func (m *ConsensusState) Unmarshal(dAtA []byte) error + func (m *ConsensusState) XXX_DiscardUnknown() + func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ConsensusState) XXX_Merge(src proto.Message) + func (m *ConsensusState) XXX_Size() int + func (m *ConsensusState) XXX_Unmarshal(b []byte) error + type Header struct + ChaincodeHeader *ChaincodeHeader + ChaincodeInfo *ChaincodeInfo + MSPHeaders *MSPHeaders + func NewHeader(cheader *ChaincodeHeader, cinfo *ChaincodeInfo, mheaders *MSPHeaders) *Header + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + func (h Header) ClientType() string + func (h Header) GetHeight() exported.Height + func (h Header) ValidateBasic() error + func (m *Header) Marshal() (dAtA []byte, err error) + func (m *Header) MarshalTo(dAtA []byte) (int, error) + func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Header) Reset() + func (m *Header) Size() (n int) + func (m *Header) String() string + func (m *Header) Unmarshal(dAtA []byte) error + func (m *Header) XXX_DiscardUnknown() + func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Header) XXX_Merge(src proto.Message) + func (m *Header) XXX_Size() int + func (m *Header) XXX_Unmarshal(b []byte) error + type MSPHeader struct + Config []byte + MSPID string + Policy []byte + Proof *MessageProof + Type MSPHeaderType + func NewMSPHeader(mhType MSPHeaderType, mspID string, config []byte, policy []byte, ...) MSPHeader + func (*MSPHeader) Descriptor() ([]byte, []int) + func (*MSPHeader) ProtoMessage() + func (m *MSPHeader) Marshal() (dAtA []byte, err error) + func (m *MSPHeader) MarshalTo(dAtA []byte) (int, error) + func (m *MSPHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MSPHeader) Reset() + func (m *MSPHeader) Size() (n int) + func (m *MSPHeader) String() string + func (m *MSPHeader) Unmarshal(dAtA []byte) error + func (m *MSPHeader) XXX_DiscardUnknown() + func (m *MSPHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MSPHeader) XXX_Merge(src proto.Message) + func (m *MSPHeader) XXX_Size() int + func (m *MSPHeader) XXX_Unmarshal(b []byte) error + func (mh MSPHeader) GetSignBytes() []byte + func (mh MSPHeader) ValidateBasic() error + type MSPHeaderType int32 + const MSPHeaderTypeCreate + const MSPHeaderTypeFreeze + const MSPHeaderTypeUpdateConfig + const MSPHeaderTypeUpdatePolicy + func (MSPHeaderType) EnumDescriptor() ([]byte, []int) + func (x MSPHeaderType) String() string + type MSPHeaders struct + Headers []MSPHeader + func NewMSPHeaders(headers []MSPHeader) MSPHeaders + func (*MSPHeaders) Descriptor() ([]byte, []int) + func (*MSPHeaders) ProtoMessage() + func (m *MSPHeaders) Marshal() (dAtA []byte, err error) + func (m *MSPHeaders) MarshalTo(dAtA []byte) (int, error) + func (m *MSPHeaders) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MSPHeaders) Reset() + func (m *MSPHeaders) Size() (n int) + func (m *MSPHeaders) String() string + func (m *MSPHeaders) Unmarshal(dAtA []byte) error + func (m *MSPHeaders) XXX_DiscardUnknown() + func (m *MSPHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MSPHeaders) XXX_Merge(src proto.Message) + func (m *MSPHeaders) XXX_Size() int + func (m *MSPHeaders) XXX_Unmarshal(b []byte) error + func (mhs MSPHeaders) ValidateBasic() error + type MSPInfo struct + Config []byte + Freezed bool + MSPID string + Policy []byte + func NewMSPInfo(mspID string, config, policy []byte) MSPInfo + func (*MSPInfo) Descriptor() ([]byte, []int) + func (*MSPInfo) ProtoMessage() + func (m *MSPInfo) Marshal() (dAtA []byte, err error) + func (m *MSPInfo) MarshalTo(dAtA []byte) (int, error) + func (m *MSPInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MSPInfo) Reset() + func (m *MSPInfo) Size() (n int) + func (m *MSPInfo) String() string + func (m *MSPInfo) Unmarshal(dAtA []byte) error + func (m *MSPInfo) XXX_DiscardUnknown() + func (m *MSPInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MSPInfo) XXX_Merge(src proto.Message) + func (m *MSPInfo) XXX_Size() int + func (m *MSPInfo) XXX_Unmarshal(b []byte) error + type MSPInfos struct + Infos []MSPInfo + func (*MSPInfos) Descriptor() ([]byte, []int) + func (*MSPInfos) ProtoMessage() + func (m *MSPInfos) Marshal() (dAtA []byte, err error) + func (m *MSPInfos) MarshalTo(dAtA []byte) (int, error) + func (m *MSPInfos) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MSPInfos) Reset() + func (m *MSPInfos) Size() (n int) + func (m *MSPInfos) String() string + func (m *MSPInfos) Unmarshal(dAtA []byte) error + func (m *MSPInfos) XXX_DiscardUnknown() + func (m *MSPInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MSPInfos) XXX_Merge(src proto.Message) + func (m *MSPInfos) XXX_Size() int + func (m *MSPInfos) XXX_Unmarshal(b []byte) error + func (mi MSPInfos) FindMSPInfo(mspID string) (*MSPInfo, error) + func (mi MSPInfos) GetMSPPBConfigs() ([]MSPPBConfig, error) + func (mi MSPInfos) HasMSPID(mspID string) bool + func (mi MSPInfos) IndexOf(mspID string) int + type MSPPBConfig = msppb.MSPConfig + type MessageProof struct + Identities [][]byte + Signatures [][]byte + func (*MessageProof) Descriptor() ([]byte, []int) + func (*MessageProof) ProtoMessage() + func (m *MessageProof) Marshal() (dAtA []byte, err error) + func (m *MessageProof) MarshalTo(dAtA []byte) (int, error) + func (m *MessageProof) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MessageProof) Reset() + func (m *MessageProof) Size() (n int) + func (m *MessageProof) String() string + func (m *MessageProof) Unmarshal(dAtA []byte) error + func (m *MessageProof) XXX_DiscardUnknown() + func (m *MessageProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MessageProof) XXX_Merge(src proto.Message) + func (m *MessageProof) XXX_Size() int + func (m *MessageProof) XXX_Unmarshal(b []byte) error + func (this *MessageProof) Equal(that interface{}) bool + type Prefix struct + Value []byte + func NewPrefix(value []byte) Prefix + func (*Prefix) Descriptor() ([]byte, []int) + func (*Prefix) ProtoMessage() + func (fp Prefix) Bytes() []byte + func (fp Prefix) Empty() bool + func (m *Prefix) Marshal() (dAtA []byte, err error) + func (m *Prefix) MarshalTo(dAtA []byte) (int, error) + func (m *Prefix) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Prefix) Reset() + func (m *Prefix) Size() (n int) + func (m *Prefix) String() string + func (m *Prefix) Unmarshal(dAtA []byte) error + func (m *Prefix) XXX_DiscardUnknown() + func (m *Prefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Prefix) XXX_Merge(src proto.Message) + func (m *Prefix) XXX_Size() int + func (m *Prefix) XXX_Unmarshal(b []byte) error