block

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilBlock       = errors.New("nil block")
	ErrNilConfigBlock = errors.New("nil config block")
)
View Source
var (
	PolicyKey_name = map[int32]string{
		0: "POLICY_KEY_UNDEFINED",
		1: "POLICY_KEY_READERS",
		2: "POLICY_KEY_WRITERS",
		3: "POLICY_KEY_LIFECYCLE_ENDORSEMENT",
		4: "POLICY_KEY_ENDORSEMENT",
	}
	PolicyKey_value = map[string]int32{
		"POLICY_KEY_UNDEFINED":             0,
		"POLICY_KEY_READERS":               1,
		"POLICY_KEY_WRITERS":               2,
		"POLICY_KEY_LIFECYCLE_ENDORSEMENT": 3,
		"POLICY_KEY_ENDORSEMENT":           4,
	}
)

Enum value maps for PolicyKey.

View Source
var (
	CertType_name = map[int32]string{
		0: "CERT_TYPE_UNDEFINED",
		1: "CERT_TYPE_CA",
		2: "CERT_TYPE_INTERMEDIATE",
		3: "CERT_TYPE_ADMIN",
	}
	CertType_value = map[string]int32{
		"CERT_TYPE_UNDEFINED":    0,
		"CERT_TYPE_CA":           1,
		"CERT_TYPE_INTERMEDIATE": 2,
		"CERT_TYPE_ADMIN":        3,
	}
)

Enum value maps for CertType.

View Source
var (
	ErrEmptyKeyAttrs = errors.New(`empty key attrs`)
)
View Source
var (
	ErrUnknownFabricVersion = errors.New(`unknown fabric version`)
)
View Source
var File_block_proto protoreflect.FileDescriptor
View Source
var File_chan_config_proto protoreflect.FileDescriptor

Functions

func CalcCertificateSHA256

func CalcCertificateSHA256(b *pem.Block) []byte

func CreateCompositeKey

func CreateCompositeKey(objectType string, attributes []string) (string, error)

func NewCommonEnvelope

func NewCommonEnvelope(payload []byte, signer msp.SigningIdentity) (*common.Envelope, error)

func NewCommonHeader

func NewCommonHeader(
	headerType common.HeaderType,
	txID string, nonce []byte,
	ts *timestamp.Timestamp,
	serializedCreator []byte,
	channel,
	chaincode string,
	tlsCertHash []byte) (*common.Header, error)

func NewMarshaledChannelHeader

func NewMarshaledChannelHeader(
	headerType common.HeaderType,
	txId string,
	ts *timestamp.Timestamp,
	channelId string,
	epoch uint64,
	extension *peer.ChaincodeHeaderExtension,
	tlsCertHash []byte) ([]byte, error)

NewMarshaledChannelHeader returns new channel header bytes for presented transaction and channel

func NewMarshaledPeerProposal

func NewMarshaledPeerProposal(header []byte, chaincode string, args [][]byte, transientMap map[string][]byte) ([]byte, error)

func NewMarshalledChaincodeProposalPayload

func NewMarshalledChaincodeProposalPayload(chaincode string, args [][]byte, transientMap map[string][]byte) ([]byte, error)

func NewMarshalledCommonHeader

func NewMarshalledCommonHeader(
	headerType common.HeaderType,
	txID string,
	nonce []byte,
	ts *timestamp.Timestamp,
	serializedCreator []byte,
	channel, chaincode string,
	tlsCertHash []byte) ([]byte, error)

func NewMarshalledCommonPayload

func NewMarshalledCommonPayload(header *common.Header, data []byte) ([]byte, error)

NewMarshalledCommonPayload returns marshalled payload from headers and data

func NewMarshalledPeerChaincodeInvocationSpec

func NewMarshalledPeerChaincodeInvocationSpec(chaincode string, args [][]byte) ([]byte, error)

func NewMarshalledSeekInfo

func NewMarshalledSeekInfo(start, stop *orderer.SeekPosition) ([]byte, error)

func NewMarshalledSignatureHeader

func NewMarshalledSignatureHeader(serializedCreator []byte, nonce []byte) ([]byte, error)

NewMarshalledSignatureHeader returns marshalled signature header for presented identity

func NewPeerSignedProposal

func NewPeerSignedProposal(proposal []byte, identity msp.SigningIdentity) (*peer.SignedProposal, error)

func NewSeekInfo

func NewSeekInfo(start, stop *orderer.SeekPosition) *orderer.SeekInfo

func NewSeekSpecified

func NewSeekSpecified(number uint64) *orderer.SeekPosition

NewSeekSpecified returns orderer.SeekPosition_Specified position

func ParseAnchorPeers

func ParseAnchorPeers(mspConfigGroup *common.ConfigGroup) ([]*peer.AnchorPeer, error)

func ParseAnchorPeersFromBytes

func ParseAnchorPeersFromBytes(b []byte) ([]*peer.AnchorPeer, error)

func ParseApplicationConfig

func ParseApplicationConfig(cfg common.Config) (map[string]*ApplicationConfig, error)

func ParseBatchSizeFromBytes

func ParseBatchSizeFromBytes(b []byte) (*orderer.BatchSize, error)

func ParseBlockDataHashingStructure

func ParseBlockDataHashingStructure(cfg common.Config) (*common.BlockDataHashingStructure, error)

func ParseCapabilities

func ParseCapabilities(cfg common.Config) (*common.Capabilities, error)

func ParseConsortium

func ParseConsortium(cfg common.Config) (string, error)

func ParseConsortiumFromBytes

func ParseConsortiumFromBytes(b []byte) (string, error)

func ParseHashingAlgorithm

func ParseHashingAlgorithm(cfg common.Config) (string, error)

func ParseHashingAlgorithmFromBytes

func ParseHashingAlgorithmFromBytes(b []byte) (string, error)

func ParseOrderer

func ParseOrderer(cfg common.Config) (map[string]*OrdererConfig, error)

func ParseOrdererBatchSize

func ParseOrdererBatchSize(cfg common.Config) (*orderer.BatchSize, error)

func ParseOrdererBatchTimeout

func ParseOrdererBatchTimeout(cfg common.Config) (string, error)

func ParseOrdererBatchTimeoutFromBytes

func ParseOrdererBatchTimeoutFromBytes(b []byte) (string, error)

func ParseOrdererConsensusType

func ParseOrdererConsensusType(cfg common.Config) (*orderer.ConsensusType, error)

func ParseOrdererConsensusTypeFromBytes

func ParseOrdererConsensusTypeFromBytes(b []byte) (*orderer.ConsensusType, error)

func ParseOrdererEndpoints

func ParseOrdererEndpoints(b []byte) ([]string, error)

func ParseOrdererIdentity

func ParseOrdererIdentity(cb *common.Block) (*msp.SerializedIdentity, error)

func ParseParseBlockDataHashingStructureFromBytes

func ParseParseBlockDataHashingStructureFromBytes(b []byte) (*common.BlockDataHashingStructure, error)

func ParseParseCapabilitiesFromBytes

func ParseParseCapabilitiesFromBytes(b []byte) (*common.Capabilities, error)

func ParsePolicy

func ParsePolicy(policiesCfg map[string]*common.ConfigPolicy) (map[string]*Policy, error)

func SplitCompositeKey

func SplitCompositeKey(compositeKey string) (string, []string)

Types

type ApplicationConfig

type ApplicationConfig struct {
	Name        string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Msp         *MSP               `protobuf:"bytes,2,opt,name=msp,proto3" json:"msp,omitempty"`
	AnchorPeers []*peer.AnchorPeer `protobuf:"bytes,3,rep,name=anchor_peers,json=anchorPeers,proto3" json:"anchor_peers,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationConfig) Descriptor deprecated

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

Deprecated: Use ApplicationConfig.ProtoReflect.Descriptor instead.

func (*ApplicationConfig) GetAnchorPeers

func (x *ApplicationConfig) GetAnchorPeers() []*peer.AnchorPeer

func (*ApplicationConfig) GetMsp

func (x *ApplicationConfig) GetMsp() *MSP

func (*ApplicationConfig) GetName

func (x *ApplicationConfig) GetName() string

func (*ApplicationConfig) ProtoMessage

func (*ApplicationConfig) ProtoMessage()

func (*ApplicationConfig) ProtoReflect

func (x *ApplicationConfig) ProtoReflect() protoreflect.Message

func (*ApplicationConfig) Reset

func (x *ApplicationConfig) Reset()

func (*ApplicationConfig) String

func (x *ApplicationConfig) String() string

func (*ApplicationConfig) Validate

func (m *ApplicationConfig) Validate() error

Validate checks the field values on ApplicationConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ApplicationConfig) ValidateAll

func (m *ApplicationConfig) ValidateAll() error

ValidateAll checks the field values on ApplicationConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApplicationConfigMultiError, or nil if none found.

type ApplicationConfigMultiError

type ApplicationConfigMultiError []error

ApplicationConfigMultiError is an error wrapping multiple validation errors returned by ApplicationConfig.ValidateAll() if the designated constraints aren't met.

func (ApplicationConfigMultiError) AllErrors

func (m ApplicationConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApplicationConfigMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ApplicationConfigValidationError

type ApplicationConfigValidationError struct {
	// contains filtered or unexported fields
}

ApplicationConfigValidationError is the validation error returned by ApplicationConfig.Validate if the designated constraints aren't met.

func (ApplicationConfigValidationError) Cause

Cause function returns cause value.

func (ApplicationConfigValidationError) Error

Error satisfies the builtin error interface

func (ApplicationConfigValidationError) ErrorName

ErrorName returns error name.

func (ApplicationConfigValidationError) Field

Field function returns field value.

func (ApplicationConfigValidationError) Key

Key function returns key value.

func (ApplicationConfigValidationError) Reason

Reason function returns reason value.

type Block

type Block struct {
	Header   *common.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"`
	// contains filtered or unexported fields
}

func ParseBlock

func ParseBlock(block *common.Block, opts ...ParseBlockOpt) (*Block, error)

func (*Block) BlockDate

func (x *Block) BlockDate() *timestamp.Timestamp

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetData

func (x *Block) GetData() *BlockData

func (*Block) GetHeader

func (x *Block) GetHeader() *common.BlockHeader

func (*Block) GetMetadata

func (x *Block) GetMetadata() *BlockMetadata

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

func (*Block) ValidEnvelopes

func (x *Block) ValidEnvelopes() []*Envelope

func (*Block) Validate

func (m *Block) Validate() error

Validate checks the field values on Block with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Block) ValidateAll

func (m *Block) ValidateAll() error

ValidateAll checks the field values on Block with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlockMultiError, or nil if none found.

func (*Block) Writes

func (x *Block) Writes() []*Write

Writes ONLY VALID writes from block

type BlockData

type BlockData struct {
	Envelopes []*Envelope `protobuf:"bytes,1,rep,name=envelopes,proto3" json:"envelopes,omitempty"`
	// contains filtered or unexported fields
}

func ParseBlockData

func ParseBlockData(blockData [][]byte, txFilter txflags.ValidationFlags) (*BlockData, error)

func (*BlockData) Descriptor deprecated

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

Deprecated: Use BlockData.ProtoReflect.Descriptor instead.

func (*BlockData) GetEnvelopes

func (x *BlockData) GetEnvelopes() []*Envelope

func (*BlockData) ProtoMessage

func (*BlockData) ProtoMessage()

func (*BlockData) ProtoReflect

func (x *BlockData) ProtoReflect() protoreflect.Message

func (*BlockData) Reset

func (x *BlockData) Reset()

func (*BlockData) String

func (x *BlockData) String() string

func (*BlockData) Validate

func (m *BlockData) Validate() error

Validate checks the field values on BlockData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BlockData) ValidateAll

func (m *BlockData) ValidateAll() error

ValidateAll checks the field values on BlockData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlockDataMultiError, or nil if none found.

type BlockDataMultiError

type BlockDataMultiError []error

BlockDataMultiError is an error wrapping multiple validation errors returned by BlockData.ValidateAll() if the designated constraints aren't met.

func (BlockDataMultiError) AllErrors

func (m BlockDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockDataMultiError) Error

func (m BlockDataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BlockDataValidationError

type BlockDataValidationError struct {
	// contains filtered or unexported fields
}

BlockDataValidationError is the validation error returned by BlockData.Validate if the designated constraints aren't met.

func (BlockDataValidationError) Cause

func (e BlockDataValidationError) Cause() error

Cause function returns cause value.

func (BlockDataValidationError) Error

func (e BlockDataValidationError) Error() string

Error satisfies the builtin error interface

func (BlockDataValidationError) ErrorName

func (e BlockDataValidationError) ErrorName() string

ErrorName returns error name.

func (BlockDataValidationError) Field

func (e BlockDataValidationError) Field() string

Field function returns field value.

func (BlockDataValidationError) Key

Key function returns key value.

func (BlockDataValidationError) Reason

func (e BlockDataValidationError) Reason() string

Reason function returns reason value.

type BlockMetadata

type BlockMetadata struct {
	OrdererSignatures []*OrdererSignature `protobuf:"bytes,1,rep,name=ordererSignatures,proto3" json:"ordererSignatures,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockMetadata) Descriptor deprecated

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

Deprecated: Use BlockMetadata.ProtoReflect.Descriptor instead.

func (*BlockMetadata) GetOrdererSignatures

func (x *BlockMetadata) GetOrdererSignatures() []*OrdererSignature

func (*BlockMetadata) ProtoMessage

func (*BlockMetadata) ProtoMessage()

func (*BlockMetadata) ProtoReflect

func (x *BlockMetadata) ProtoReflect() protoreflect.Message

func (*BlockMetadata) Reset

func (x *BlockMetadata) Reset()

func (*BlockMetadata) String

func (x *BlockMetadata) String() string

func (*BlockMetadata) Validate

func (m *BlockMetadata) Validate() error

Validate checks the field values on BlockMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BlockMetadata) ValidateAll

func (m *BlockMetadata) ValidateAll() error

ValidateAll checks the field values on BlockMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlockMetadataMultiError, or nil if none found.

type BlockMetadataMultiError

type BlockMetadataMultiError []error

BlockMetadataMultiError is an error wrapping multiple validation errors returned by BlockMetadata.ValidateAll() if the designated constraints aren't met.

func (BlockMetadataMultiError) AllErrors

func (m BlockMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockMetadataMultiError) Error

func (m BlockMetadataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BlockMetadataValidationError

type BlockMetadataValidationError struct {
	// contains filtered or unexported fields
}

BlockMetadataValidationError is the validation error returned by BlockMetadata.Validate if the designated constraints aren't met.

func (BlockMetadataValidationError) Cause

Cause function returns cause value.

func (BlockMetadataValidationError) Error

Error satisfies the builtin error interface

func (BlockMetadataValidationError) ErrorName

func (e BlockMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (BlockMetadataValidationError) Field

Field function returns field value.

func (BlockMetadataValidationError) Key

Key function returns key value.

func (BlockMetadataValidationError) Reason

Reason function returns reason value.

type BlockMultiError

type BlockMultiError []error

BlockMultiError is an error wrapping multiple validation errors returned by Block.ValidateAll() if the designated constraints aren't met.

func (BlockMultiError) AllErrors

func (m BlockMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockMultiError) Error

func (m BlockMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BlockValidationError

type BlockValidationError struct {
	// contains filtered or unexported fields
}

BlockValidationError is the validation error returned by Block.Validate if the designated constraints aren't met.

func (BlockValidationError) Cause

func (e BlockValidationError) Cause() error

Cause function returns cause value.

func (BlockValidationError) Error

func (e BlockValidationError) Error() string

Error satisfies the builtin error interface

func (BlockValidationError) ErrorName

func (e BlockValidationError) ErrorName() string

ErrorName returns error name.

func (BlockValidationError) Field

func (e BlockValidationError) Field() string

Field function returns field value.

func (BlockValidationError) Key

func (e BlockValidationError) Key() bool

Key function returns key value.

func (BlockValidationError) Reason

func (e BlockValidationError) Reason() string

Reason function returns reason value.

type CertType

type CertType int32
const (
	CertType_CERT_TYPE_UNDEFINED    CertType = 0
	CertType_CERT_TYPE_CA           CertType = 1
	CertType_CERT_TYPE_INTERMEDIATE CertType = 2
	CertType_CERT_TYPE_ADMIN        CertType = 3
)

func (CertType) Descriptor

func (CertType) Descriptor() protoreflect.EnumDescriptor

func (CertType) Enum

func (x CertType) Enum() *CertType

func (CertType) EnumDescriptor deprecated

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

Deprecated: Use CertType.Descriptor instead.

func (CertType) Number

func (x CertType) Number() protoreflect.EnumNumber

func (CertType) String

func (x CertType) String() string

func (CertType) Type

type Certificate

type Certificate struct {

	// sha256 hash
	Fingerprint []byte   `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	Data        []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Type        CertType `protobuf:"varint,3,opt,name=type,proto3,enum=hlfsdkgo.block.CertType" json:"type,omitempty"`
	MspId       string   `protobuf:"bytes,4,opt,name=msp_id,json=mspId,proto3" json:"msp_id,omitempty"`
	MspName     string   `protobuf:"bytes,5,opt,name=msp_name,json=mspName,proto3" json:"msp_name,omitempty"`
	// contains filtered or unexported fields
}

func NewCertificate

func NewCertificate(cert []byte, t CertType, mspID, mspName string) (*Certificate, error)

func (*Certificate) Descriptor deprecated

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

Deprecated: Use Certificate.ProtoReflect.Descriptor instead.

func (*Certificate) GetData

func (x *Certificate) GetData() []byte

func (*Certificate) GetFingerprint

func (x *Certificate) GetFingerprint() []byte

func (*Certificate) GetMspId

func (x *Certificate) GetMspId() string

func (*Certificate) GetMspName

func (x *Certificate) GetMspName() string

func (*Certificate) GetType

func (x *Certificate) GetType() CertType

func (*Certificate) ProtoMessage

func (*Certificate) ProtoMessage()

func (*Certificate) ProtoReflect

func (x *Certificate) ProtoReflect() protoreflect.Message

func (*Certificate) Reset

func (x *Certificate) Reset()

func (*Certificate) String

func (x *Certificate) String() string

func (*Certificate) Validate

func (m *Certificate) Validate() error

Validate checks the field values on Certificate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Certificate) ValidateAll

func (m *Certificate) ValidateAll() error

ValidateAll checks the field values on Certificate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CertificateMultiError, or nil if none found.

type CertificateMultiError

type CertificateMultiError []error

CertificateMultiError is an error wrapping multiple validation errors returned by Certificate.ValidateAll() if the designated constraints aren't met.

func (CertificateMultiError) AllErrors

func (m CertificateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CertificateMultiError) Error

func (m CertificateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CertificateValidationError

type CertificateValidationError struct {
	// contains filtered or unexported fields
}

CertificateValidationError is the validation error returned by Certificate.Validate if the designated constraints aren't met.

func (CertificateValidationError) Cause

Cause function returns cause value.

func (CertificateValidationError) Error

Error satisfies the builtin error interface

func (CertificateValidationError) ErrorName

func (e CertificateValidationError) ErrorName() string

ErrorName returns error name.

func (CertificateValidationError) Field

Field function returns field value.

func (CertificateValidationError) Key

Key function returns key value.

func (CertificateValidationError) Reason

Reason function returns reason value.

type ChaincodeAction

type ChaincodeAction struct {
	Results     *TxReadWriteSet      `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"`
	Events      *peer.ChaincodeEvent `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty"`
	Response    *peer.Response       `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	ChaincodeId *peer.ChaincodeID    `protobuf:"bytes,4,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ChaincodeAction) Descriptor deprecated

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

Deprecated: Use ChaincodeAction.ProtoReflect.Descriptor instead.

func (*ChaincodeAction) GetChaincodeId

func (x *ChaincodeAction) GetChaincodeId() *peer.ChaincodeID

func (*ChaincodeAction) GetEvents

func (x *ChaincodeAction) GetEvents() *peer.ChaincodeEvent

func (*ChaincodeAction) GetResponse

func (x *ChaincodeAction) GetResponse() *peer.Response

func (*ChaincodeAction) GetResults

func (x *ChaincodeAction) GetResults() *TxReadWriteSet

func (*ChaincodeAction) ProtoMessage

func (*ChaincodeAction) ProtoMessage()

func (*ChaincodeAction) ProtoReflect

func (x *ChaincodeAction) ProtoReflect() protoreflect.Message

func (*ChaincodeAction) Reset

func (x *ChaincodeAction) Reset()

func (*ChaincodeAction) String

func (x *ChaincodeAction) String() string

func (*ChaincodeAction) Validate

func (m *ChaincodeAction) Validate() error

Validate checks the field values on ChaincodeAction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChaincodeAction) ValidateAll

func (m *ChaincodeAction) ValidateAll() error

ValidateAll checks the field values on ChaincodeAction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChaincodeActionMultiError, or nil if none found.

type ChaincodeActionMultiError

type ChaincodeActionMultiError []error

ChaincodeActionMultiError is an error wrapping multiple validation errors returned by ChaincodeAction.ValidateAll() if the designated constraints aren't met.

func (ChaincodeActionMultiError) AllErrors

func (m ChaincodeActionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChaincodeActionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ChaincodeActionPayload

type ChaincodeActionPayload struct {
	ChaincodeProposalPayload *ChaincodeProposalPayload `` /* 135-byte string literal not displayed */
	Action                   *ChaincodeEndorsedAction  `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*ChaincodeActionPayload) Descriptor deprecated

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

Deprecated: Use ChaincodeActionPayload.ProtoReflect.Descriptor instead.

func (*ChaincodeActionPayload) GetAction

func (*ChaincodeActionPayload) GetChaincodeProposalPayload

func (x *ChaincodeActionPayload) GetChaincodeProposalPayload() *ChaincodeProposalPayload

func (*ChaincodeActionPayload) ProtoMessage

func (*ChaincodeActionPayload) ProtoMessage()

func (*ChaincodeActionPayload) ProtoReflect

func (x *ChaincodeActionPayload) ProtoReflect() protoreflect.Message

func (*ChaincodeActionPayload) Reset

func (x *ChaincodeActionPayload) Reset()

func (*ChaincodeActionPayload) String

func (x *ChaincodeActionPayload) String() string

func (*ChaincodeActionPayload) Validate

func (m *ChaincodeActionPayload) Validate() error

Validate checks the field values on ChaincodeActionPayload with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChaincodeActionPayload) ValidateAll

func (m *ChaincodeActionPayload) ValidateAll() error

ValidateAll checks the field values on ChaincodeActionPayload with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChaincodeActionPayloadMultiError, or nil if none found.

type ChaincodeActionPayloadMultiError

type ChaincodeActionPayloadMultiError []error

ChaincodeActionPayloadMultiError is an error wrapping multiple validation errors returned by ChaincodeActionPayload.ValidateAll() if the designated constraints aren't met.

func (ChaincodeActionPayloadMultiError) AllErrors

func (m ChaincodeActionPayloadMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChaincodeActionPayloadMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ChaincodeActionPayloadValidationError

type ChaincodeActionPayloadValidationError struct {
	// contains filtered or unexported fields
}

ChaincodeActionPayloadValidationError is the validation error returned by ChaincodeActionPayload.Validate if the designated constraints aren't met.

func (ChaincodeActionPayloadValidationError) Cause

Cause function returns cause value.

func (ChaincodeActionPayloadValidationError) Error

Error satisfies the builtin error interface

func (ChaincodeActionPayloadValidationError) ErrorName

ErrorName returns error name.

func (ChaincodeActionPayloadValidationError) Field

Field function returns field value.

func (ChaincodeActionPayloadValidationError) Key

Key function returns key value.

func (ChaincodeActionPayloadValidationError) Reason

Reason function returns reason value.

type ChaincodeActionValidationError

type ChaincodeActionValidationError struct {
	// contains filtered or unexported fields
}

ChaincodeActionValidationError is the validation error returned by ChaincodeAction.Validate if the designated constraints aren't met.

func (ChaincodeActionValidationError) Cause

Cause function returns cause value.

func (ChaincodeActionValidationError) Error

Error satisfies the builtin error interface

func (ChaincodeActionValidationError) ErrorName

func (e ChaincodeActionValidationError) ErrorName() string

ErrorName returns error name.

func (ChaincodeActionValidationError) Field

Field function returns field value.

func (ChaincodeActionValidationError) Key

Key function returns key value.

func (ChaincodeActionValidationError) Reason

Reason function returns reason value.

type ChaincodeEndorsedAction

type ChaincodeEndorsedAction struct {
	ProposalResponsePayload *ProposalResponsePayload `` /* 132-byte string literal not displayed */
	Endorsement             []*Endorsement           `protobuf:"bytes,2,rep,name=endorsement,proto3" json:"endorsement,omitempty"`
	// contains filtered or unexported fields
}

func ParseChaincodeEndorsedAction

func ParseChaincodeEndorsedAction(actionPayload *peer.ChaincodeActionPayload) (*ChaincodeEndorsedAction, error)

func (*ChaincodeEndorsedAction) Descriptor deprecated

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

Deprecated: Use ChaincodeEndorsedAction.ProtoReflect.Descriptor instead.

func (*ChaincodeEndorsedAction) GetEndorsement

func (x *ChaincodeEndorsedAction) GetEndorsement() []*Endorsement

func (*ChaincodeEndorsedAction) GetProposalResponsePayload

func (x *ChaincodeEndorsedAction) GetProposalResponsePayload() *ProposalResponsePayload

func (*ChaincodeEndorsedAction) ProtoMessage

func (*ChaincodeEndorsedAction) ProtoMessage()

func (*ChaincodeEndorsedAction) ProtoReflect

func (x *ChaincodeEndorsedAction) ProtoReflect() protoreflect.Message

func (*ChaincodeEndorsedAction) Reset

func (x *ChaincodeEndorsedAction) Reset()

func (*ChaincodeEndorsedAction) String

func (x *ChaincodeEndorsedAction) String() string

func (*ChaincodeEndorsedAction) Validate

func (m *ChaincodeEndorsedAction) Validate() error

Validate checks the field values on ChaincodeEndorsedAction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChaincodeEndorsedAction) ValidateAll

func (m *ChaincodeEndorsedAction) ValidateAll() error

ValidateAll checks the field values on ChaincodeEndorsedAction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChaincodeEndorsedActionMultiError, or nil if none found.

type ChaincodeEndorsedActionMultiError

type ChaincodeEndorsedActionMultiError []error

ChaincodeEndorsedActionMultiError is an error wrapping multiple validation errors returned by ChaincodeEndorsedAction.ValidateAll() if the designated constraints aren't met.

func (ChaincodeEndorsedActionMultiError) AllErrors

func (m ChaincodeEndorsedActionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChaincodeEndorsedActionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ChaincodeEndorsedActionValidationError

type ChaincodeEndorsedActionValidationError struct {
	// contains filtered or unexported fields
}

ChaincodeEndorsedActionValidationError is the validation error returned by ChaincodeEndorsedAction.Validate if the designated constraints aren't met.

func (ChaincodeEndorsedActionValidationError) Cause

Cause function returns cause value.

func (ChaincodeEndorsedActionValidationError) Error

Error satisfies the builtin error interface

func (ChaincodeEndorsedActionValidationError) ErrorName

ErrorName returns error name.

func (ChaincodeEndorsedActionValidationError) Field

Field function returns field value.

func (ChaincodeEndorsedActionValidationError) Key

Key function returns key value.

func (ChaincodeEndorsedActionValidationError) Reason

Reason function returns reason value.

type ChaincodeProposalPayload

type ChaincodeProposalPayload struct {
	Input        *peer.ChaincodeInvocationSpec `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	TransientMap map[string][]byte             `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

func ParseChaincodeProposalPayload

func ParseChaincodeProposalPayload(actionPayload *peer.ChaincodeActionPayload) (*ChaincodeProposalPayload, error)

func (*ChaincodeProposalPayload) Descriptor deprecated

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

Deprecated: Use ChaincodeProposalPayload.ProtoReflect.Descriptor instead.

func (*ChaincodeProposalPayload) GetInput

func (*ChaincodeProposalPayload) GetTransientMap

func (x *ChaincodeProposalPayload) GetTransientMap() map[string][]byte

func (*ChaincodeProposalPayload) ProtoMessage

func (*ChaincodeProposalPayload) ProtoMessage()

func (*ChaincodeProposalPayload) ProtoReflect

func (x *ChaincodeProposalPayload) ProtoReflect() protoreflect.Message

func (*ChaincodeProposalPayload) Reset

func (x *ChaincodeProposalPayload) Reset()

func (*ChaincodeProposalPayload) String

func (x *ChaincodeProposalPayload) String() string

func (*ChaincodeProposalPayload) Validate

func (m *ChaincodeProposalPayload) Validate() error

Validate checks the field values on ChaincodeProposalPayload with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChaincodeProposalPayload) ValidateAll

func (m *ChaincodeProposalPayload) ValidateAll() error

ValidateAll checks the field values on ChaincodeProposalPayload with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChaincodeProposalPayloadMultiError, or nil if none found.

type ChaincodeProposalPayloadMultiError

type ChaincodeProposalPayloadMultiError []error

ChaincodeProposalPayloadMultiError is an error wrapping multiple validation errors returned by ChaincodeProposalPayload.ValidateAll() if the designated constraints aren't met.

func (ChaincodeProposalPayloadMultiError) AllErrors

func (m ChaincodeProposalPayloadMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChaincodeProposalPayloadMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ChaincodeProposalPayloadValidationError

type ChaincodeProposalPayloadValidationError struct {
	// contains filtered or unexported fields
}

ChaincodeProposalPayloadValidationError is the validation error returned by ChaincodeProposalPayload.Validate if the designated constraints aren't met.

func (ChaincodeProposalPayloadValidationError) Cause

Cause function returns cause value.

func (ChaincodeProposalPayloadValidationError) Error

Error satisfies the builtin error interface

func (ChaincodeProposalPayloadValidationError) ErrorName

ErrorName returns error name.

func (ChaincodeProposalPayloadValidationError) Field

Field function returns field value.

func (ChaincodeProposalPayloadValidationError) Key

Key function returns key value.

func (ChaincodeProposalPayloadValidationError) Reason

Reason function returns reason value.

type ChannelConfig

type ChannelConfig struct {
	Applications              map[string]*ApplicationConfig     `` /* 165-byte string literal not displayed */
	Orderers                  map[string]*OrdererConfig         `` /* 157-byte string literal not displayed */
	OrdererBatchSize          *orderer.BatchSize                `protobuf:"bytes,3,opt,name=orderer_batch_size,json=ordererBatchSize,proto3" json:"orderer_batch_size,omitempty"`
	OrdererBatchTimeout       string                            `protobuf:"bytes,4,opt,name=orderer_batch_timeout,json=ordererBatchTimeout,proto3" json:"orderer_batch_timeout,omitempty"`
	OrdererConsensusType      *orderer.ConsensusType            `protobuf:"bytes,5,opt,name=orderer_consensus_type,json=ordererConsensusType,proto3" json:"orderer_consensus_type,omitempty"`
	Consortium                string                            `protobuf:"bytes,6,opt,name=consortium,proto3" json:"consortium,omitempty"`
	HashingAlgorithm          string                            `protobuf:"bytes,7,opt,name=hashing_algorithm,json=hashingAlgorithm,proto3" json:"hashing_algorithm,omitempty"`
	BlockDataHashingStructure *common.BlockDataHashingStructure `` /* 140-byte string literal not displayed */
	Capabilities              *common.Capabilities              `protobuf:"bytes,9,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
	Policy                    map[string]*Policy                `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func ParseChannelConfig

func ParseChannelConfig(cc common.Config) (*ChannelConfig, error)

func UnmarshalChannelConfig

func UnmarshalChannelConfig(b []byte) (*ChannelConfig, error)

func (*ChannelConfig) Descriptor deprecated

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

Deprecated: Use ChannelConfig.ProtoReflect.Descriptor instead.

func (*ChannelConfig) FabricVersion

func (x *ChannelConfig) FabricVersion() FabricVersion

func (*ChannelConfig) GetAllCertificates

func (x *ChannelConfig) GetAllCertificates() ([]*Certificate, error)

GetAllCertificates - returns all(root, intermediate, admins) certificates from all MSPs'

func (*ChannelConfig) GetApplications

func (x *ChannelConfig) GetApplications() map[string]*ApplicationConfig

func (*ChannelConfig) GetBlockDataHashingStructure

func (x *ChannelConfig) GetBlockDataHashingStructure() *common.BlockDataHashingStructure

func (*ChannelConfig) GetCapabilities

func (x *ChannelConfig) GetCapabilities() *common.Capabilities

func (*ChannelConfig) GetConsortium

func (x *ChannelConfig) GetConsortium() string

func (*ChannelConfig) GetHashingAlgorithm

func (x *ChannelConfig) GetHashingAlgorithm() string

func (*ChannelConfig) GetOrdererBatchSize

func (x *ChannelConfig) GetOrdererBatchSize() *orderer.BatchSize

func (*ChannelConfig) GetOrdererBatchTimeout

func (x *ChannelConfig) GetOrdererBatchTimeout() string

func (*ChannelConfig) GetOrdererConsensusType

func (x *ChannelConfig) GetOrdererConsensusType() *orderer.ConsensusType

func (*ChannelConfig) GetOrderers

func (x *ChannelConfig) GetOrderers() map[string]*OrdererConfig

func (*ChannelConfig) GetPolicy

func (x *ChannelConfig) GetPolicy() map[string]*Policy

func (*ChannelConfig) ProtoMessage

func (*ChannelConfig) ProtoMessage()

func (*ChannelConfig) ProtoReflect

func (x *ChannelConfig) ProtoReflect() protoreflect.Message

func (*ChannelConfig) Reset

func (x *ChannelConfig) Reset()

func (*ChannelConfig) String

func (x *ChannelConfig) String() string

func (*ChannelConfig) ToJSON

func (x *ChannelConfig) ToJSON() ([]byte, error)

func (*ChannelConfig) Validate

func (m *ChannelConfig) Validate() error

Validate checks the field values on ChannelConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChannelConfig) ValidateAll

func (m *ChannelConfig) ValidateAll() error

ValidateAll checks the field values on ChannelConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChannelConfigMultiError, or nil if none found.

type ChannelConfigMultiError

type ChannelConfigMultiError []error

ChannelConfigMultiError is an error wrapping multiple validation errors returned by ChannelConfig.ValidateAll() if the designated constraints aren't met.

func (ChannelConfigMultiError) AllErrors

func (m ChannelConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChannelConfigMultiError) Error

func (m ChannelConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ChannelConfigValidationError

type ChannelConfigValidationError struct {
	// contains filtered or unexported fields
}

ChannelConfigValidationError is the validation error returned by ChannelConfig.Validate if the designated constraints aren't met.

func (ChannelConfigValidationError) Cause

Cause function returns cause value.

func (ChannelConfigValidationError) Error

Error satisfies the builtin error interface

func (ChannelConfigValidationError) ErrorName

func (e ChannelConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ChannelConfigValidationError) Field

Field function returns field value.

func (ChannelConfigValidationError) Key

Key function returns key value.

func (ChannelConfigValidationError) Reason

Reason function returns reason value.

type CollectionHashedReadWriteSet

type CollectionHashedReadWriteSet struct {
	CollectionName string               `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
	HashedRwset    *kvrwset.HashedRWSet `protobuf:"bytes,2,opt,name=hashed_rwset,json=hashedRwset,proto3" json:"hashed_rwset,omitempty"`
	PvtRwsetHash   []byte               `protobuf:"bytes,3,opt,name=pvt_rwset_hash,json=pvtRwsetHash,proto3" json:"pvt_rwset_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionHashedReadWriteSet) Descriptor deprecated

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

Deprecated: Use CollectionHashedReadWriteSet.ProtoReflect.Descriptor instead.

func (*CollectionHashedReadWriteSet) GetCollectionName

func (x *CollectionHashedReadWriteSet) GetCollectionName() string

func (*CollectionHashedReadWriteSet) GetHashedRwset

func (x *CollectionHashedReadWriteSet) GetHashedRwset() *kvrwset.HashedRWSet

func (*CollectionHashedReadWriteSet) GetPvtRwsetHash

func (x *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte

func (*CollectionHashedReadWriteSet) ProtoMessage

func (*CollectionHashedReadWriteSet) ProtoMessage()

func (*CollectionHashedReadWriteSet) ProtoReflect

func (*CollectionHashedReadWriteSet) Reset

func (x *CollectionHashedReadWriteSet) Reset()

func (*CollectionHashedReadWriteSet) String

func (*CollectionHashedReadWriteSet) Validate

func (m *CollectionHashedReadWriteSet) Validate() error

Validate checks the field values on CollectionHashedReadWriteSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CollectionHashedReadWriteSet) ValidateAll

func (m *CollectionHashedReadWriteSet) ValidateAll() error

ValidateAll checks the field values on CollectionHashedReadWriteSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CollectionHashedReadWriteSetMultiError, or nil if none found.

type CollectionHashedReadWriteSetMultiError

type CollectionHashedReadWriteSetMultiError []error

CollectionHashedReadWriteSetMultiError is an error wrapping multiple validation errors returned by CollectionHashedReadWriteSet.ValidateAll() if the designated constraints aren't met.

func (CollectionHashedReadWriteSetMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CollectionHashedReadWriteSetMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CollectionHashedReadWriteSetValidationError

type CollectionHashedReadWriteSetValidationError struct {
	// contains filtered or unexported fields
}

CollectionHashedReadWriteSetValidationError is the validation error returned by CollectionHashedReadWriteSet.Validate if the designated constraints aren't met.

func (CollectionHashedReadWriteSetValidationError) Cause

Cause function returns cause value.

func (CollectionHashedReadWriteSetValidationError) Error

Error satisfies the builtin error interface

func (CollectionHashedReadWriteSetValidationError) ErrorName

ErrorName returns error name.

func (CollectionHashedReadWriteSetValidationError) Field

Field function returns field value.

func (CollectionHashedReadWriteSetValidationError) Key

Key function returns key value.

func (CollectionHashedReadWriteSetValidationError) Reason

Reason function returns reason value.

type Endorsement

type Endorsement struct {
	Endorser  *msp.SerializedIdentity `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"`
	Signature []byte                  `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*Endorsement) Descriptor deprecated

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

Deprecated: Use Endorsement.ProtoReflect.Descriptor instead.

func (*Endorsement) GetEndorser

func (x *Endorsement) GetEndorser() *msp.SerializedIdentity

func (*Endorsement) GetSignature

func (x *Endorsement) GetSignature() []byte

func (*Endorsement) ProtoMessage

func (*Endorsement) ProtoMessage()

func (*Endorsement) ProtoReflect

func (x *Endorsement) ProtoReflect() protoreflect.Message

func (*Endorsement) Reset

func (x *Endorsement) Reset()

func (*Endorsement) String

func (x *Endorsement) String() string

func (*Endorsement) Validate

func (m *Endorsement) Validate() error

Validate checks the field values on Endorsement with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Endorsement) ValidateAll

func (m *Endorsement) ValidateAll() error

ValidateAll checks the field values on Endorsement with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EndorsementMultiError, or nil if none found.

type EndorsementMultiError

type EndorsementMultiError []error

EndorsementMultiError is an error wrapping multiple validation errors returned by Endorsement.ValidateAll() if the designated constraints aren't met.

func (EndorsementMultiError) AllErrors

func (m EndorsementMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EndorsementMultiError) Error

func (m EndorsementMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EndorsementValidationError

type EndorsementValidationError struct {
	// contains filtered or unexported fields
}

EndorsementValidationError is the validation error returned by Endorsement.Validate if the designated constraints aren't met.

func (EndorsementValidationError) Cause

Cause function returns cause value.

func (EndorsementValidationError) Error

Error satisfies the builtin error interface

func (EndorsementValidationError) ErrorName

func (e EndorsementValidationError) ErrorName() string

ErrorName returns error name.

func (EndorsementValidationError) Field

Field function returns field value.

func (EndorsementValidationError) Key

Key function returns key value.

func (EndorsementValidationError) Reason

Reason function returns reason value.

type Envelope

type Envelope struct {
	Payload        *Payload              `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Signature      []byte                `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	ValidationCode peer.TxValidationCode `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func ParseEnvelope

func ParseEnvelope(envelopeData []byte, validationCode peer.TxValidationCode) (*Envelope, error)

func (*Envelope) ChannelHeader

func (x *Envelope) ChannelHeader() *common.ChannelHeader

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetPayload

func (x *Envelope) GetPayload() *Payload

func (*Envelope) GetSignature

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

func (*Envelope) GetValidationCode

func (x *Envelope) GetValidationCode() peer.TxValidationCode

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

func (x *Envelope) ProtoReflect() protoreflect.Message

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) SignatureHeader

func (x *Envelope) SignatureHeader() *SignatureHeader

func (*Envelope) String

func (x *Envelope) String() string

func (*Envelope) TxActions

func (x *Envelope) TxActions() []*TransactionAction

func (*Envelope) Validate

func (m *Envelope) Validate() error

Validate checks the field values on Envelope with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Envelope) ValidateAll

func (m *Envelope) ValidateAll() error

ValidateAll checks the field values on Envelope with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvelopeMultiError, or nil if none found.

type EnvelopeMultiError

type EnvelopeMultiError []error

EnvelopeMultiError is an error wrapping multiple validation errors returned by Envelope.ValidateAll() if the designated constraints aren't met.

func (EnvelopeMultiError) AllErrors

func (m EnvelopeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EnvelopeMultiError) Error

func (m EnvelopeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EnvelopeValidationError

type EnvelopeValidationError struct {
	// contains filtered or unexported fields
}

EnvelopeValidationError is the validation error returned by Envelope.Validate if the designated constraints aren't met.

func (EnvelopeValidationError) Cause

func (e EnvelopeValidationError) Cause() error

Cause function returns cause value.

func (EnvelopeValidationError) Error

func (e EnvelopeValidationError) Error() string

Error satisfies the builtin error interface

func (EnvelopeValidationError) ErrorName

func (e EnvelopeValidationError) ErrorName() string

ErrorName returns error name.

func (EnvelopeValidationError) Field

func (e EnvelopeValidationError) Field() string

Field function returns field value.

func (EnvelopeValidationError) Key

func (e EnvelopeValidationError) Key() bool

Key function returns key value.

func (EnvelopeValidationError) Reason

func (e EnvelopeValidationError) Reason() string

Reason function returns reason value.

type FabricVersion

type FabricVersion string
const (
	FabricVersionUndefined FabricVersion = "undefined"
	FabricV1               FabricVersion = "1"
	FabricV2               FabricVersion = "2"
)

func FabricVersionIsV2

func FabricVersionIsV2(isV2 bool) FabricVersion
type Header struct {
	ChannelHeader   *common.ChannelHeader `protobuf:"bytes,1,opt,name=channel_header,json=channelHeader,proto3" json:"channel_header,omitempty"`
	SignatureHeader *SignatureHeader      `protobuf:"bytes,2,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetChannelHeader

func (x *Header) GetChannelHeader() *common.ChannelHeader

func (*Header) GetSignatureHeader

func (x *Header) GetSignatureHeader() *SignatureHeader

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

func (*Header) Validate

func (m *Header) Validate() error

Validate checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Header) ValidateAll

func (m *Header) ValidateAll() error

ValidateAll checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeaderMultiError, or nil if none found.

type HeaderMultiError

type HeaderMultiError []error

HeaderMultiError is an error wrapping multiple validation errors returned by Header.ValidateAll() if the designated constraints aren't met.

func (HeaderMultiError) AllErrors

func (m HeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderMultiError) Error

func (m HeaderMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HeaderValidationError

type HeaderValidationError struct {
	// contains filtered or unexported fields
}

HeaderValidationError is the validation error returned by Header.Validate if the designated constraints aren't met.

func (HeaderValidationError) Cause

func (e HeaderValidationError) Cause() error

Cause function returns cause value.

func (HeaderValidationError) Error

func (e HeaderValidationError) Error() string

Error satisfies the builtin error interface

func (HeaderValidationError) ErrorName

func (e HeaderValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderValidationError) Field

func (e HeaderValidationError) Field() string

Field function returns field value.

func (HeaderValidationError) Key

func (e HeaderValidationError) Key() bool

Key function returns key value.

func (HeaderValidationError) Reason

func (e HeaderValidationError) Reason() string

Reason function returns reason value.

type MSP

type MSP struct {
	Name   string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Config *msp.FabricMSPConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Policy map[string]*Policy   `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func ParseMSP

func ParseMSP(mspConfigGroup *common.ConfigGroup, groupName string) (*MSP, error)

func (*MSP) Descriptor deprecated

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

Deprecated: Use MSP.ProtoReflect.Descriptor instead.

func (*MSP) GetAllCertificates

func (x *MSP) GetAllCertificates() ([]*Certificate, error)

GetAllCertificates - returns all certificates from MSP

func (*MSP) GetConfig

func (x *MSP) GetConfig() *msp.FabricMSPConfig

func (*MSP) GetName

func (x *MSP) GetName() string

func (*MSP) GetPolicy

func (x *MSP) GetPolicy() map[string]*Policy

func (*MSP) ProtoMessage

func (*MSP) ProtoMessage()

func (*MSP) ProtoReflect

func (x *MSP) ProtoReflect() protoreflect.Message

func (*MSP) Reset

func (x *MSP) Reset()

func (*MSP) String

func (x *MSP) String() string

func (*MSP) Validate

func (m *MSP) Validate() error

Validate checks the field values on MSP with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MSP) ValidateAll

func (m *MSP) ValidateAll() error

ValidateAll checks the field values on MSP with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MSPMultiError, or nil if none found.

type MSPMultiError

type MSPMultiError []error

MSPMultiError is an error wrapping multiple validation errors returned by MSP.ValidateAll() if the designated constraints aren't met.

func (MSPMultiError) AllErrors

func (m MSPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MSPMultiError) Error

func (m MSPMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MSPValidationError

type MSPValidationError struct {
	// contains filtered or unexported fields
}

MSPValidationError is the validation error returned by MSP.Validate if the designated constraints aren't met.

func (MSPValidationError) Cause

func (e MSPValidationError) Cause() error

Cause function returns cause value.

func (MSPValidationError) Error

func (e MSPValidationError) Error() string

Error satisfies the builtin error interface

func (MSPValidationError) ErrorName

func (e MSPValidationError) ErrorName() string

ErrorName returns error name.

func (MSPValidationError) Field

func (e MSPValidationError) Field() string

Field function returns field value.

func (MSPValidationError) Key

func (e MSPValidationError) Key() bool

Key function returns key value.

func (MSPValidationError) Reason

func (e MSPValidationError) Reason() string

Reason function returns reason value.

type NsReadWriteSet

type NsReadWriteSet struct {
	Namespace             string                          `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Rwset                 *kvrwset.KVRWSet                `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"`
	CollectionHashedRwset []*CollectionHashedReadWriteSet `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NsReadWriteSet) Descriptor deprecated

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

Deprecated: Use NsReadWriteSet.ProtoReflect.Descriptor instead.

func (*NsReadWriteSet) GetCollectionHashedRwset

func (x *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet

func (*NsReadWriteSet) GetNamespace

func (x *NsReadWriteSet) GetNamespace() string

func (*NsReadWriteSet) GetRwset

func (x *NsReadWriteSet) GetRwset() *kvrwset.KVRWSet

func (*NsReadWriteSet) ProtoMessage

func (*NsReadWriteSet) ProtoMessage()

func (*NsReadWriteSet) ProtoReflect

func (x *NsReadWriteSet) ProtoReflect() protoreflect.Message

func (*NsReadWriteSet) Reset

func (x *NsReadWriteSet) Reset()

func (*NsReadWriteSet) String

func (x *NsReadWriteSet) String() string

func (*NsReadWriteSet) Validate

func (m *NsReadWriteSet) Validate() error

Validate checks the field values on NsReadWriteSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*NsReadWriteSet) ValidateAll

func (m *NsReadWriteSet) ValidateAll() error

ValidateAll checks the field values on NsReadWriteSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NsReadWriteSetMultiError, or nil if none found.

type NsReadWriteSetMultiError

type NsReadWriteSetMultiError []error

NsReadWriteSetMultiError is an error wrapping multiple validation errors returned by NsReadWriteSet.ValidateAll() if the designated constraints aren't met.

func (NsReadWriteSetMultiError) AllErrors

func (m NsReadWriteSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NsReadWriteSetMultiError) Error

func (m NsReadWriteSetMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type NsReadWriteSetValidationError

type NsReadWriteSetValidationError struct {
	// contains filtered or unexported fields
}

NsReadWriteSetValidationError is the validation error returned by NsReadWriteSet.Validate if the designated constraints aren't met.

func (NsReadWriteSetValidationError) Cause

Cause function returns cause value.

func (NsReadWriteSetValidationError) Error

Error satisfies the builtin error interface

func (NsReadWriteSetValidationError) ErrorName

func (e NsReadWriteSetValidationError) ErrorName() string

ErrorName returns error name.

func (NsReadWriteSetValidationError) Field

Field function returns field value.

func (NsReadWriteSetValidationError) Key

Key function returns key value.

func (NsReadWriteSetValidationError) Reason

Reason function returns reason value.

type OrdererConfig

type OrdererConfig struct {
	Name      string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Msp       *MSP     `protobuf:"bytes,2,opt,name=msp,proto3" json:"msp,omitempty"`
	Endpoints []string `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*OrdererConfig) Descriptor deprecated

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

Deprecated: Use OrdererConfig.ProtoReflect.Descriptor instead.

func (*OrdererConfig) GetEndpoints

func (x *OrdererConfig) GetEndpoints() []string

func (*OrdererConfig) GetMsp

func (x *OrdererConfig) GetMsp() *MSP

func (*OrdererConfig) GetName

func (x *OrdererConfig) GetName() string

func (*OrdererConfig) ProtoMessage

func (*OrdererConfig) ProtoMessage()

func (*OrdererConfig) ProtoReflect

func (x *OrdererConfig) ProtoReflect() protoreflect.Message

func (*OrdererConfig) Reset

func (x *OrdererConfig) Reset()

func (*OrdererConfig) String

func (x *OrdererConfig) String() string

func (*OrdererConfig) Validate

func (m *OrdererConfig) Validate() error

Validate checks the field values on OrdererConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OrdererConfig) ValidateAll

func (m *OrdererConfig) ValidateAll() error

ValidateAll checks the field values on OrdererConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrdererConfigMultiError, or nil if none found.

type OrdererConfigMultiError

type OrdererConfigMultiError []error

OrdererConfigMultiError is an error wrapping multiple validation errors returned by OrdererConfig.ValidateAll() if the designated constraints aren't met.

func (OrdererConfigMultiError) AllErrors

func (m OrdererConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OrdererConfigMultiError) Error

func (m OrdererConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OrdererConfigValidationError

type OrdererConfigValidationError struct {
	// contains filtered or unexported fields
}

OrdererConfigValidationError is the validation error returned by OrdererConfig.Validate if the designated constraints aren't met.

func (OrdererConfigValidationError) Cause

Cause function returns cause value.

func (OrdererConfigValidationError) Error

Error satisfies the builtin error interface

func (OrdererConfigValidationError) ErrorName

func (e OrdererConfigValidationError) ErrorName() string

ErrorName returns error name.

func (OrdererConfigValidationError) Field

Field function returns field value.

func (OrdererConfigValidationError) Key

Key function returns key value.

func (OrdererConfigValidationError) Reason

Reason function returns reason value.

type OrdererSignature

type OrdererSignature struct {
	Identity  *msp.SerializedIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	Signature []byte                  `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func ParseBTFOrderersIdentities

func ParseBTFOrderersIdentities(block *common.Block, configBlock *common.Block) ([]*OrdererSignature, error)

func (*OrdererSignature) Descriptor deprecated

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

Deprecated: Use OrdererSignature.ProtoReflect.Descriptor instead.

func (*OrdererSignature) GetIdentity

func (x *OrdererSignature) GetIdentity() *msp.SerializedIdentity

func (*OrdererSignature) GetSignature

func (x *OrdererSignature) GetSignature() []byte

func (*OrdererSignature) ProtoMessage

func (*OrdererSignature) ProtoMessage()

func (*OrdererSignature) ProtoReflect

func (x *OrdererSignature) ProtoReflect() protoreflect.Message

func (*OrdererSignature) Reset

func (x *OrdererSignature) Reset()

func (*OrdererSignature) String

func (x *OrdererSignature) String() string

func (*OrdererSignature) Validate

func (m *OrdererSignature) Validate() error

Validate checks the field values on OrdererSignature with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OrdererSignature) ValidateAll

func (m *OrdererSignature) ValidateAll() error

ValidateAll checks the field values on OrdererSignature with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrdererSignatureMultiError, or nil if none found.

type OrdererSignatureMultiError

type OrdererSignatureMultiError []error

OrdererSignatureMultiError is an error wrapping multiple validation errors returned by OrdererSignature.ValidateAll() if the designated constraints aren't met.

func (OrdererSignatureMultiError) AllErrors

func (m OrdererSignatureMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OrdererSignatureMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type OrdererSignatureValidationError

type OrdererSignatureValidationError struct {
	// contains filtered or unexported fields
}

OrdererSignatureValidationError is the validation error returned by OrdererSignature.Validate if the designated constraints aren't met.

func (OrdererSignatureValidationError) Cause

Cause function returns cause value.

func (OrdererSignatureValidationError) Error

Error satisfies the builtin error interface

func (OrdererSignatureValidationError) ErrorName

ErrorName returns error name.

func (OrdererSignatureValidationError) Field

Field function returns field value.

func (OrdererSignatureValidationError) Key

Key function returns key value.

func (OrdererSignatureValidationError) Reason

Reason function returns reason value.

type ParseBlockOpt

type ParseBlockOpt func(*parseBlockOpts)

func WithConfigBlock

func WithConfigBlock(configBlock *common.Block) ParseBlockOpt

type Payload

type Payload struct {
	Header                 *Header      `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Transaction            *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
	RawUnparsedTransaction []byte       `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Payload) Descriptor deprecated

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

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetHeader

func (x *Payload) GetHeader() *Header

func (*Payload) GetRawUnparsedTransaction

func (x *Payload) GetRawUnparsedTransaction() []byte

func (*Payload) GetTransaction

func (x *Payload) GetTransaction() *Transaction

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

func (x *Payload) ProtoReflect() protoreflect.Message

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

func (*Payload) Validate

func (m *Payload) Validate() error

Validate checks the field values on Payload with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Payload) ValidateAll

func (m *Payload) ValidateAll() error

ValidateAll checks the field values on Payload with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PayloadMultiError, or nil if none found.

type PayloadMultiError

type PayloadMultiError []error

PayloadMultiError is an error wrapping multiple validation errors returned by Payload.ValidateAll() if the designated constraints aren't met.

func (PayloadMultiError) AllErrors

func (m PayloadMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PayloadMultiError) Error

func (m PayloadMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PayloadValidationError

type PayloadValidationError struct {
	// contains filtered or unexported fields
}

PayloadValidationError is the validation error returned by Payload.Validate if the designated constraints aren't met.

func (PayloadValidationError) Cause

func (e PayloadValidationError) Cause() error

Cause function returns cause value.

func (PayloadValidationError) Error

func (e PayloadValidationError) Error() string

Error satisfies the builtin error interface

func (PayloadValidationError) ErrorName

func (e PayloadValidationError) ErrorName() string

ErrorName returns error name.

func (PayloadValidationError) Field

func (e PayloadValidationError) Field() string

Field function returns field value.

func (PayloadValidationError) Key

func (e PayloadValidationError) Key() bool

Key function returns key value.

func (PayloadValidationError) Reason

func (e PayloadValidationError) Reason() string

Reason function returns reason value.

type Policy

type Policy struct {

	// Types that are assignable to Policy:
	//
	//	*Policy_Implicit
	//	*Policy_SignaturePolicy
	Policy isPolicy_Policy `protobuf_oneof:"policy"`
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetImplicit

func (x *Policy) GetImplicit() *common.ImplicitMetaPolicy

func (*Policy) GetPolicy

func (m *Policy) GetPolicy() isPolicy_Policy

func (*Policy) GetSignaturePolicy

func (x *Policy) GetSignaturePolicy() *common.SignaturePolicyEnvelope

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

func (x *Policy) ProtoReflect() protoreflect.Message

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

func (*Policy) Validate

func (m *Policy) Validate() error

Validate checks the field values on Policy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Policy) ValidateAll

func (m *Policy) ValidateAll() error

ValidateAll checks the field values on Policy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PolicyMultiError, or nil if none found.

type PolicyKey

type PolicyKey int32
const (
	PolicyKey_POLICY_KEY_UNDEFINED             PolicyKey = 0
	PolicyKey_POLICY_KEY_READERS               PolicyKey = 1
	PolicyKey_POLICY_KEY_WRITERS               PolicyKey = 2
	PolicyKey_POLICY_KEY_LIFECYCLE_ENDORSEMENT PolicyKey = 3
	PolicyKey_POLICY_KEY_ENDORSEMENT           PolicyKey = 4
)

func (PolicyKey) Descriptor

func (PolicyKey) Descriptor() protoreflect.EnumDescriptor

func (PolicyKey) Enum

func (x PolicyKey) Enum() *PolicyKey

func (PolicyKey) EnumDescriptor deprecated

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

Deprecated: Use PolicyKey.Descriptor instead.

func (PolicyKey) Number

func (x PolicyKey) Number() protoreflect.EnumNumber

func (PolicyKey) String

func (x PolicyKey) String() string

func (PolicyKey) Type

type PolicyMultiError

type PolicyMultiError []error

PolicyMultiError is an error wrapping multiple validation errors returned by Policy.ValidateAll() if the designated constraints aren't met.

func (PolicyMultiError) AllErrors

func (m PolicyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PolicyMultiError) Error

func (m PolicyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PolicyValidationError

type PolicyValidationError struct {
	// contains filtered or unexported fields
}

PolicyValidationError is the validation error returned by Policy.Validate if the designated constraints aren't met.

func (PolicyValidationError) Cause

func (e PolicyValidationError) Cause() error

Cause function returns cause value.

func (PolicyValidationError) Error

func (e PolicyValidationError) Error() string

Error satisfies the builtin error interface

func (PolicyValidationError) ErrorName

func (e PolicyValidationError) ErrorName() string

ErrorName returns error name.

func (PolicyValidationError) Field

func (e PolicyValidationError) Field() string

Field function returns field value.

func (PolicyValidationError) Key

func (e PolicyValidationError) Key() bool

Key function returns key value.

func (PolicyValidationError) Reason

func (e PolicyValidationError) Reason() string

Reason function returns reason value.

type Policy_Implicit

type Policy_Implicit struct {
	Implicit *common.ImplicitMetaPolicy `protobuf:"bytes,1,opt,name=implicit,proto3,oneof"`
}

type Policy_SignaturePolicy

type Policy_SignaturePolicy struct {
	SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,2,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}

type ProposalResponsePayload

type ProposalResponsePayload struct {
	ProposalHash []byte           `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"`
	Extension    *ChaincodeAction `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposalResponsePayload) Descriptor deprecated

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

Deprecated: Use ProposalResponsePayload.ProtoReflect.Descriptor instead.

func (*ProposalResponsePayload) GetExtension

func (x *ProposalResponsePayload) GetExtension() *ChaincodeAction

func (*ProposalResponsePayload) GetProposalHash

func (x *ProposalResponsePayload) GetProposalHash() []byte

func (*ProposalResponsePayload) ProtoMessage

func (*ProposalResponsePayload) ProtoMessage()

func (*ProposalResponsePayload) ProtoReflect

func (x *ProposalResponsePayload) ProtoReflect() protoreflect.Message

func (*ProposalResponsePayload) Reset

func (x *ProposalResponsePayload) Reset()

func (*ProposalResponsePayload) String

func (x *ProposalResponsePayload) String() string

func (*ProposalResponsePayload) Validate

func (m *ProposalResponsePayload) Validate() error

Validate checks the field values on ProposalResponsePayload with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProposalResponsePayload) ValidateAll

func (m *ProposalResponsePayload) ValidateAll() error

ValidateAll checks the field values on ProposalResponsePayload with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProposalResponsePayloadMultiError, or nil if none found.

type ProposalResponsePayloadMultiError

type ProposalResponsePayloadMultiError []error

ProposalResponsePayloadMultiError is an error wrapping multiple validation errors returned by ProposalResponsePayload.ValidateAll() if the designated constraints aren't met.

func (ProposalResponsePayloadMultiError) AllErrors

func (m ProposalResponsePayloadMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProposalResponsePayloadMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ProposalResponsePayloadValidationError

type ProposalResponsePayloadValidationError struct {
	// contains filtered or unexported fields
}

ProposalResponsePayloadValidationError is the validation error returned by ProposalResponsePayload.Validate if the designated constraints aren't met.

func (ProposalResponsePayloadValidationError) Cause

Cause function returns cause value.

func (ProposalResponsePayloadValidationError) Error

Error satisfies the builtin error interface

func (ProposalResponsePayloadValidationError) ErrorName

ErrorName returns error name.

func (ProposalResponsePayloadValidationError) Field

Field function returns field value.

func (ProposalResponsePayloadValidationError) Key

Key function returns key value.

func (ProposalResponsePayloadValidationError) Reason

Reason function returns reason value.

type SignatureHeader

type SignatureHeader struct {
	Creator *msp.SerializedIdentity `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Nonce   []byte                  `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*SignatureHeader) Descriptor deprecated

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

Deprecated: Use SignatureHeader.ProtoReflect.Descriptor instead.

func (*SignatureHeader) GetCreator

func (x *SignatureHeader) GetCreator() *msp.SerializedIdentity

func (*SignatureHeader) GetNonce

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

func (*SignatureHeader) ProtoMessage

func (*SignatureHeader) ProtoMessage()

func (*SignatureHeader) ProtoReflect

func (x *SignatureHeader) ProtoReflect() protoreflect.Message

func (*SignatureHeader) Reset

func (x *SignatureHeader) Reset()

func (*SignatureHeader) String

func (x *SignatureHeader) String() string

func (*SignatureHeader) Validate

func (m *SignatureHeader) Validate() error

Validate checks the field values on SignatureHeader with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SignatureHeader) ValidateAll

func (m *SignatureHeader) ValidateAll() error

ValidateAll checks the field values on SignatureHeader with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SignatureHeaderMultiError, or nil if none found.

type SignatureHeaderMultiError

type SignatureHeaderMultiError []error

SignatureHeaderMultiError is an error wrapping multiple validation errors returned by SignatureHeader.ValidateAll() if the designated constraints aren't met.

func (SignatureHeaderMultiError) AllErrors

func (m SignatureHeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SignatureHeaderMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SignatureHeaderValidationError

type SignatureHeaderValidationError struct {
	// contains filtered or unexported fields
}

SignatureHeaderValidationError is the validation error returned by SignatureHeader.Validate if the designated constraints aren't met.

func (SignatureHeaderValidationError) Cause

Cause function returns cause value.

func (SignatureHeaderValidationError) Error

Error satisfies the builtin error interface

func (SignatureHeaderValidationError) ErrorName

func (e SignatureHeaderValidationError) ErrorName() string

ErrorName returns error name.

func (SignatureHeaderValidationError) Field

Field function returns field value.

func (SignatureHeaderValidationError) Key

Key function returns key value.

func (SignatureHeaderValidationError) Reason

Reason function returns reason value.

type Transaction

type Transaction struct {
	ChannelConfig *ChannelConfig       `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"`
	Actions       []*TransactionAction `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

field numbers correspond to HeaderType https://github.com/hyperledger/fabric-protos/blob/main/common/common.proto#L27

func ParseEndorserTransaction

func ParseEndorserTransaction(payload *common.Payload) (*Transaction, error)

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) Events

func (x *Transaction) Events() []*peer.ChaincodeEvent

func (*Transaction) GetActions

func (x *Transaction) GetActions() []*TransactionAction

func (*Transaction) GetChannelConfig

func (x *Transaction) GetChannelConfig() *ChannelConfig

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

func (*Transaction) Validate

func (m *Transaction) Validate() error

Validate checks the field values on Transaction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Transaction) ValidateAll

func (m *Transaction) ValidateAll() error

ValidateAll checks the field values on Transaction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TransactionMultiError, or nil if none found.

type TransactionAction

type TransactionAction struct {
	Header  *SignatureHeader        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Payload *ChaincodeActionPayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func ParseTxAction

func ParseTxAction(txAction *peer.TransactionAction) (*TransactionAction, error)

func ParseTxActions

func ParseTxActions(txActions []*peer.TransactionAction) ([]*TransactionAction, error)

func (*TransactionAction) ChaincodeSpec

func (x *TransactionAction) ChaincodeSpec() *peer.ChaincodeSpec

func (*TransactionAction) Descriptor deprecated

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

Deprecated: Use TransactionAction.ProtoReflect.Descriptor instead.

func (*TransactionAction) Endorsements

func (x *TransactionAction) Endorsements() []*Endorsement

func (*TransactionAction) Event

func (*TransactionAction) GetHeader

func (x *TransactionAction) GetHeader() *SignatureHeader

func (*TransactionAction) GetPayload

func (x *TransactionAction) GetPayload() *ChaincodeActionPayload

func (*TransactionAction) NsReadWriteSet

func (x *TransactionAction) NsReadWriteSet() []*NsReadWriteSet

func (*TransactionAction) ProtoMessage

func (*TransactionAction) ProtoMessage()

func (*TransactionAction) ProtoReflect

func (x *TransactionAction) ProtoReflect() protoreflect.Message

func (*TransactionAction) Reset

func (x *TransactionAction) Reset()

func (*TransactionAction) Response

func (x *TransactionAction) Response() *peer.Response

func (*TransactionAction) String

func (x *TransactionAction) String() string

func (*TransactionAction) Validate

func (m *TransactionAction) Validate() error

Validate checks the field values on TransactionAction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TransactionAction) ValidateAll

func (m *TransactionAction) ValidateAll() error

ValidateAll checks the field values on TransactionAction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TransactionActionMultiError, or nil if none found.

type TransactionActionMultiError

type TransactionActionMultiError []error

TransactionActionMultiError is an error wrapping multiple validation errors returned by TransactionAction.ValidateAll() if the designated constraints aren't met.

func (TransactionActionMultiError) AllErrors

func (m TransactionActionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TransactionActionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TransactionActionValidationError

type TransactionActionValidationError struct {
	// contains filtered or unexported fields
}

TransactionActionValidationError is the validation error returned by TransactionAction.Validate if the designated constraints aren't met.

func (TransactionActionValidationError) Cause

Cause function returns cause value.

func (TransactionActionValidationError) Error

Error satisfies the builtin error interface

func (TransactionActionValidationError) ErrorName

ErrorName returns error name.

func (TransactionActionValidationError) Field

Field function returns field value.

func (TransactionActionValidationError) Key

Key function returns key value.

func (TransactionActionValidationError) Reason

Reason function returns reason value.

type TransactionMultiError

type TransactionMultiError []error

TransactionMultiError is an error wrapping multiple validation errors returned by Transaction.ValidateAll() if the designated constraints aren't met.

func (TransactionMultiError) AllErrors

func (m TransactionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TransactionMultiError) Error

func (m TransactionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TransactionValidationError

type TransactionValidationError struct {
	// contains filtered or unexported fields
}

TransactionValidationError is the validation error returned by Transaction.Validate if the designated constraints aren't met.

func (TransactionValidationError) Cause

Cause function returns cause value.

func (TransactionValidationError) Error

Error satisfies the builtin error interface

func (TransactionValidationError) ErrorName

func (e TransactionValidationError) ErrorName() string

ErrorName returns error name.

func (TransactionValidationError) Field

Field function returns field value.

func (TransactionValidationError) Key

Key function returns key value.

func (TransactionValidationError) Reason

Reason function returns reason value.

type Transformer added in v0.10.6

type Transformer interface {
	Transform(*Block) (*Block, error)
}

Transformer transforms parsed observer data. For example decrypt, or transformer protobuf state to json

type TxReadWriteSet

type TxReadWriteSet struct {
	DataModel string            `protobuf:"bytes,1,opt,name=data_model,json=dataModel,proto3" json:"data_model,omitempty"`
	NsRwset   []*NsReadWriteSet `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset,proto3" json:"ns_rwset,omitempty"`
	// contains filtered or unexported fields
}

func ParseTxReadWriteSet

func ParseTxReadWriteSet(chaincodeAction *peer.ChaincodeAction) (*TxReadWriteSet, error)

func (*TxReadWriteSet) Descriptor deprecated

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

Deprecated: Use TxReadWriteSet.ProtoReflect.Descriptor instead.

func (*TxReadWriteSet) GetDataModel

func (x *TxReadWriteSet) GetDataModel() string

func (*TxReadWriteSet) GetNsRwset

func (x *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet

func (*TxReadWriteSet) ProtoMessage

func (*TxReadWriteSet) ProtoMessage()

func (*TxReadWriteSet) ProtoReflect

func (x *TxReadWriteSet) ProtoReflect() protoreflect.Message

func (*TxReadWriteSet) Reset

func (x *TxReadWriteSet) Reset()

func (*TxReadWriteSet) String

func (x *TxReadWriteSet) String() string

func (*TxReadWriteSet) Validate

func (m *TxReadWriteSet) Validate() error

Validate checks the field values on TxReadWriteSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TxReadWriteSet) ValidateAll

func (m *TxReadWriteSet) ValidateAll() error

ValidateAll checks the field values on TxReadWriteSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TxReadWriteSetMultiError, or nil if none found.

type TxReadWriteSetMultiError

type TxReadWriteSetMultiError []error

TxReadWriteSetMultiError is an error wrapping multiple validation errors returned by TxReadWriteSet.ValidateAll() if the designated constraints aren't met.

func (TxReadWriteSetMultiError) AllErrors

func (m TxReadWriteSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TxReadWriteSetMultiError) Error

func (m TxReadWriteSetMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TxReadWriteSetValidationError

type TxReadWriteSetValidationError struct {
	// contains filtered or unexported fields
}

TxReadWriteSetValidationError is the validation error returned by TxReadWriteSet.Validate if the designated constraints aren't met.

func (TxReadWriteSetValidationError) Cause

Cause function returns cause value.

func (TxReadWriteSetValidationError) Error

Error satisfies the builtin error interface

func (TxReadWriteSetValidationError) ErrorName

func (e TxReadWriteSetValidationError) ErrorName() string

ErrorName returns error name.

func (TxReadWriteSetValidationError) Field

Field function returns field value.

func (TxReadWriteSetValidationError) Key

Key function returns key value.

func (TxReadWriteSetValidationError) Reason

Reason function returns reason value.

type Write

type Write struct {
	KWWrite *kvrwset.KVWrite

	KeyObjectType string
	KeyAttrs      []string
	Key           string

	Block            uint64
	Chaincode        string
	ChaincodeVersion string
	Tx               string
	Timestamp        *timestamp.Timestamp
}

func (*Write) HasKeyObjectType

func (bw *Write) HasKeyObjectType(objectTypes ...string) bool

func (*Write) HasKeyObjectTypeRegexp

func (bw *Write) HasKeyObjectTypeRegexp(pattern string) bool

func (*Write) HasKeyPartObjectType

func (bw *Write) HasKeyPartObjectType(objectTypes ...string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL