common

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ack_STATUS_name = map[int32]string{
		0: "OK",
		1: "ERROR",
	}
	Ack_STATUS_value = map[string]int32{
		"OK":    0,
		"ERROR": 1,
	}
)

Enum value maps for Ack_STATUS.

View Source
var (
	LockMechanism_name = map[int32]string{
		0: "HTLC",
	}
	LockMechanism_value = map[string]int32{
		"HTLC": 0,
	}
)

Enum value maps for LockMechanism.

View Source
var (
	HashMechanism_name = map[int32]string{
		0: "SHA256",
		1: "SHA512",
	}
	HashMechanism_value = map[string]int32{
		"SHA256": 0,
		"SHA512": 1,
	}
)

Enum value maps for HashMechanism.

View Source
var (
	TimeSpec_name = map[int32]string{
		0: "EPOCH",
		1: "DURATION",
	}
	TimeSpec_value = map[string]int32{
		"EPOCH":    0,
		"DURATION": 1,
	}
)

Enum value maps for TimeSpec.

View Source
var (
	EventType_name = map[int32]string{
		0: "LEDGER_STATE",
		1: "ASSET_LOCK",
		2: "ASSET_CLAIM",
	}
	EventType_value = map[string]int32{
		"LEDGER_STATE": 0,
		"ASSET_LOCK":   1,
		"ASSET_CLAIM":  2,
	}
)

Enum value maps for EventType.

View Source
var (
	EventSubOperation_name = map[int32]string{
		0: "SUBSCRIBE",
		1: "UNSUBSCRIBE",
		2: "UPDATE",
	}
	EventSubOperation_value = map[string]int32{
		"SUBSCRIBE":   0,
		"UNSUBSCRIBE": 1,
		"UPDATE":      2,
	}
)

Enum value maps for EventSubOperation.

View Source
var (
	EventSubscriptionState_STATUS_name = map[int32]string{
		0: "SUBSCRIBE_PENDING_ACK",
		1: "SUBSCRIBE_PENDING",
		2: "SUBSCRIBED",
		3: "UNSUBSCRIBE_PENDING_ACK",
		4: "UNSUBSCRIBE_PENDING",
		5: "UNSUBSCRIBED",
		6: "ERROR",
		7: "DUPLICATE_QUERY_SUBSCRIBED",
	}
	EventSubscriptionState_STATUS_value = map[string]int32{
		"SUBSCRIBE_PENDING_ACK":      0,
		"SUBSCRIBE_PENDING":          1,
		"SUBSCRIBED":                 2,
		"UNSUBSCRIBE_PENDING_ACK":    3,
		"UNSUBSCRIBE_PENDING":        4,
		"UNSUBSCRIBED":               5,
		"ERROR":                      6,
		"DUPLICATE_QUERY_SUBSCRIBED": 7,
	}
)

Enum value maps for EventSubscriptionState_STATUS.

View Source
var (
	ConfidentialPayload_HashType_name = map[int32]string{
		0: "HMAC",
	}
	ConfidentialPayload_HashType_value = map[string]int32{
		"HMAC": 0,
	}
)

Enum value maps for ConfidentialPayload_HashType.

View Source
var (
	Meta_Protocol_name = map[int32]string{
		0: "BITCOIN",
		1: "ETHEREUM",
		3: "FABRIC",
		4: "CORDA",
	}
	Meta_Protocol_value = map[string]int32{
		"BITCOIN":  0,
		"ETHEREUM": 1,
		"FABRIC":   3,
		"CORDA":    4,
	}
)

Enum value maps for Meta_Protocol.

View Source
var (
	RequestState_STATUS_name = map[int32]string{
		0: "PENDING_ACK",
		1: "PENDING",
		2: "ERROR",
		3: "COMPLETED",
		4: "EVENT_RECEIVED",
		5: "EVENT_WRITTEN",
		6: "EVENT_WRITE_ERROR",
		7: "DELETED",
	}
	RequestState_STATUS_value = map[string]int32{
		"PENDING_ACK":       0,
		"PENDING":           1,
		"ERROR":             2,
		"COMPLETED":         3,
		"EVENT_RECEIVED":    4,
		"EVENT_WRITTEN":     5,
		"EVENT_WRITE_ERROR": 6,
		"DELETED":           7,
	}
)

Enum value maps for RequestState_STATUS.

View Source
var File_common_access_control_proto protoreflect.FileDescriptor
View Source
var File_common_ack_proto protoreflect.FileDescriptor
View Source
var File_common_asset_locks_proto protoreflect.FileDescriptor
View Source
var File_common_asset_transfer_proto protoreflect.FileDescriptor
View Source
var File_common_events_proto protoreflect.FileDescriptor
View Source
var File_common_interop_payload_proto protoreflect.FileDescriptor
View Source
var File_common_membership_proto protoreflect.FileDescriptor
View Source
var File_common_proofs_proto protoreflect.FileDescriptor
View Source
var File_common_query_proto protoreflect.FileDescriptor
View Source
var File_common_state_proto protoreflect.FileDescriptor
View Source
var File_common_verification_policy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessControlPolicy

type AccessControlPolicy struct {
	SecurityDomain string  `protobuf:"bytes,1,opt,name=securityDomain,proto3" json:"securityDomain,omitempty"`
	Rules          []*Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

AccessControlPolicy specifies a set of data that can be accessed by some SecurityGroup

func (*AccessControlPolicy) Descriptor deprecated

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

Deprecated: Use AccessControlPolicy.ProtoReflect.Descriptor instead.

func (*AccessControlPolicy) GetRules

func (x *AccessControlPolicy) GetRules() []*Rule

func (*AccessControlPolicy) GetSecurityDomain

func (x *AccessControlPolicy) GetSecurityDomain() string

func (*AccessControlPolicy) ProtoMessage

func (*AccessControlPolicy) ProtoMessage()

func (*AccessControlPolicy) ProtoReflect

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

func (*AccessControlPolicy) Reset

func (x *AccessControlPolicy) Reset()

func (*AccessControlPolicy) String

func (x *AccessControlPolicy) String() string

type Ack

type Ack struct {
	Status    Ack_STATUS `protobuf:"varint,2,opt,name=status,proto3,enum=common.ack.Ack_STATUS" json:"status,omitempty"`
	RequestId string     `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// an error can have an associated string
	// this is the best way to represent this in protobuf
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

This message respresents "ACKs" sent between relay-relay, relay-driver and relay-network

func (*Ack) Descriptor deprecated

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

Deprecated: Use Ack.ProtoReflect.Descriptor instead.

func (*Ack) GetMessage

func (x *Ack) GetMessage() string

func (*Ack) GetRequestId

func (x *Ack) GetRequestId() string

func (*Ack) GetStatus

func (x *Ack) GetStatus() Ack_STATUS

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) ProtoReflect

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

func (*Ack) Reset

func (x *Ack) Reset()

func (*Ack) String

func (x *Ack) String() string

type Ack_STATUS

type Ack_STATUS int32
const (
	Ack_OK    Ack_STATUS = 0
	Ack_ERROR Ack_STATUS = 1
)

func (Ack_STATUS) Descriptor

func (Ack_STATUS) Descriptor() protoreflect.EnumDescriptor

func (Ack_STATUS) Enum

func (x Ack_STATUS) Enum() *Ack_STATUS

func (Ack_STATUS) EnumDescriptor deprecated

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

Deprecated: Use Ack_STATUS.Descriptor instead.

func (Ack_STATUS) Number

func (x Ack_STATUS) Number() protoreflect.EnumNumber

func (Ack_STATUS) String

func (x Ack_STATUS) String() string

func (Ack_STATUS) Type

type AssetClaim

type AssetClaim struct {
	LockMechanism LockMechanism `protobuf:"varint,1,opt,name=lockMechanism,proto3,enum=common.asset_locks.LockMechanism" json:"lockMechanism,omitempty"`
	ClaimInfo     []byte        `protobuf:"bytes,2,opt,name=claimInfo,proto3" json:"claimInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetClaim) Descriptor deprecated

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

Deprecated: Use AssetClaim.ProtoReflect.Descriptor instead.

func (*AssetClaim) GetClaimInfo

func (x *AssetClaim) GetClaimInfo() []byte

func (*AssetClaim) GetLockMechanism

func (x *AssetClaim) GetLockMechanism() LockMechanism

func (*AssetClaim) ProtoMessage

func (*AssetClaim) ProtoMessage()

func (*AssetClaim) ProtoReflect

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

func (*AssetClaim) Reset

func (x *AssetClaim) Reset()

func (*AssetClaim) String

func (x *AssetClaim) String() string

type AssetClaimHTLC

type AssetClaimHTLC struct {
	HashMechanism      HashMechanism `protobuf:"varint,1,opt,name=hashMechanism,proto3,enum=common.asset_locks.HashMechanism" json:"hashMechanism,omitempty"`
	HashPreimageBase64 []byte        `protobuf:"bytes,2,opt,name=hashPreimageBase64,proto3" json:"hashPreimageBase64,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetClaimHTLC) Descriptor deprecated

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

Deprecated: Use AssetClaimHTLC.ProtoReflect.Descriptor instead.

func (*AssetClaimHTLC) GetHashMechanism added in v1.3.0

func (x *AssetClaimHTLC) GetHashMechanism() HashMechanism

func (*AssetClaimHTLC) GetHashPreimageBase64

func (x *AssetClaimHTLC) GetHashPreimageBase64() []byte

func (*AssetClaimHTLC) ProtoMessage

func (*AssetClaimHTLC) ProtoMessage()

func (*AssetClaimHTLC) ProtoReflect

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

func (*AssetClaimHTLC) Reset

func (x *AssetClaimHTLC) Reset()

func (*AssetClaimHTLC) String

func (x *AssetClaimHTLC) String() string

type AssetClaimStatus added in v1.2.4

type AssetClaimStatus struct {
	AssetDetails     []byte `protobuf:"bytes,1,opt,name=assetDetails,proto3" json:"assetDetails,omitempty"`
	LocalNetworkID   string `protobuf:"bytes,2,opt,name=localNetworkID,proto3" json:"localNetworkID,omitempty"`
	RemoteNetworkID  string `protobuf:"bytes,3,opt,name=remoteNetworkID,proto3" json:"remoteNetworkID,omitempty"`
	Recipient        string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
	ClaimStatus      bool   `protobuf:"varint,5,opt,name=claimStatus,proto3" json:"claimStatus,omitempty"`
	ExpiryTimeSecs   uint64 `protobuf:"varint,6,opt,name=expiryTimeSecs,proto3" json:"expiryTimeSecs,omitempty"`
	ExpirationStatus bool   `protobuf:"varint,7,opt,name=expirationStatus,proto3" json:"expirationStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetClaimStatus) Descriptor deprecated added in v1.2.4

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

Deprecated: Use AssetClaimStatus.ProtoReflect.Descriptor instead.

func (*AssetClaimStatus) GetAssetDetails added in v1.2.4

func (x *AssetClaimStatus) GetAssetDetails() []byte

func (*AssetClaimStatus) GetClaimStatus added in v1.2.4

func (x *AssetClaimStatus) GetClaimStatus() bool

func (*AssetClaimStatus) GetExpirationStatus added in v1.2.4

func (x *AssetClaimStatus) GetExpirationStatus() bool

func (*AssetClaimStatus) GetExpiryTimeSecs added in v1.2.4

func (x *AssetClaimStatus) GetExpiryTimeSecs() uint64

func (*AssetClaimStatus) GetLocalNetworkID added in v1.2.4

func (x *AssetClaimStatus) GetLocalNetworkID() string

func (*AssetClaimStatus) GetRecipient added in v1.2.4

func (x *AssetClaimStatus) GetRecipient() string

func (*AssetClaimStatus) GetRemoteNetworkID added in v1.2.4

func (x *AssetClaimStatus) GetRemoteNetworkID() string

func (*AssetClaimStatus) ProtoMessage added in v1.2.4

func (*AssetClaimStatus) ProtoMessage()

func (*AssetClaimStatus) ProtoReflect added in v1.2.4

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

func (*AssetClaimStatus) Reset added in v1.2.4

func (x *AssetClaimStatus) Reset()

func (*AssetClaimStatus) String added in v1.2.4

func (x *AssetClaimStatus) String() string

type AssetContractHTLC

type AssetContractHTLC struct {
	ContractId string                  `protobuf:"bytes,1,opt,name=contractId,proto3" json:"contractId,omitempty"`
	Agreement  *AssetExchangeAgreement `protobuf:"bytes,2,opt,name=agreement,proto3" json:"agreement,omitempty"`
	Lock       *AssetLockHTLC          `protobuf:"bytes,3,opt,name=lock,proto3" json:"lock,omitempty"`
	Claim      *AssetClaimHTLC         `protobuf:"bytes,4,opt,name=claim,proto3" json:"claim,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetContractHTLC) Descriptor deprecated

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

Deprecated: Use AssetContractHTLC.ProtoReflect.Descriptor instead.

func (*AssetContractHTLC) GetAgreement

func (x *AssetContractHTLC) GetAgreement() *AssetExchangeAgreement

func (*AssetContractHTLC) GetClaim

func (x *AssetContractHTLC) GetClaim() *AssetClaimHTLC

func (*AssetContractHTLC) GetContractId

func (x *AssetContractHTLC) GetContractId() string

func (*AssetContractHTLC) GetLock

func (x *AssetContractHTLC) GetLock() *AssetLockHTLC

func (*AssetContractHTLC) ProtoMessage

func (*AssetContractHTLC) ProtoMessage()

func (*AssetContractHTLC) ProtoReflect

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

func (*AssetContractHTLC) Reset

func (x *AssetContractHTLC) Reset()

func (*AssetContractHTLC) String

func (x *AssetContractHTLC) String() string

type AssetExchangeAgreement

type AssetExchangeAgreement struct {
	AssetType string `protobuf:"bytes,1,opt,name=assetType,proto3" json:"assetType,omitempty"`
	Id        string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Locker    string `protobuf:"bytes,3,opt,name=locker,proto3" json:"locker,omitempty"`
	Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetExchangeAgreement) Descriptor deprecated

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

Deprecated: Use AssetExchangeAgreement.ProtoReflect.Descriptor instead.

func (*AssetExchangeAgreement) GetAssetType added in v1.5.3

func (x *AssetExchangeAgreement) GetAssetType() string

func (*AssetExchangeAgreement) GetId

func (x *AssetExchangeAgreement) GetId() string

func (*AssetExchangeAgreement) GetLocker

func (x *AssetExchangeAgreement) GetLocker() string

func (*AssetExchangeAgreement) GetRecipient

func (x *AssetExchangeAgreement) GetRecipient() string

func (*AssetExchangeAgreement) ProtoMessage

func (*AssetExchangeAgreement) ProtoMessage()

func (*AssetExchangeAgreement) ProtoReflect

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

func (*AssetExchangeAgreement) Reset

func (x *AssetExchangeAgreement) Reset()

func (*AssetExchangeAgreement) String

func (x *AssetExchangeAgreement) String() string

type AssetLock

type AssetLock struct {
	LockMechanism LockMechanism `protobuf:"varint,1,opt,name=lockMechanism,proto3,enum=common.asset_locks.LockMechanism" json:"lockMechanism,omitempty"`
	LockInfo      []byte        `protobuf:"bytes,2,opt,name=lockInfo,proto3" json:"lockInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetLock) Descriptor deprecated

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

Deprecated: Use AssetLock.ProtoReflect.Descriptor instead.

func (*AssetLock) GetLockInfo

func (x *AssetLock) GetLockInfo() []byte

func (*AssetLock) GetLockMechanism

func (x *AssetLock) GetLockMechanism() LockMechanism

func (*AssetLock) ProtoMessage

func (*AssetLock) ProtoMessage()

func (*AssetLock) ProtoReflect

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

func (*AssetLock) Reset

func (x *AssetLock) Reset()

func (*AssetLock) String

func (x *AssetLock) String() string

type AssetLockHTLC

type AssetLockHTLC struct {
	HashMechanism  HashMechanism `protobuf:"varint,1,opt,name=hashMechanism,proto3,enum=common.asset_locks.HashMechanism" json:"hashMechanism,omitempty"`
	HashBase64     []byte        `protobuf:"bytes,2,opt,name=hashBase64,proto3" json:"hashBase64,omitempty"`
	ExpiryTimeSecs uint64        `protobuf:"varint,3,opt,name=expiryTimeSecs,proto3" json:"expiryTimeSecs,omitempty"`
	TimeSpec       TimeSpec      `protobuf:"varint,4,opt,name=timeSpec,proto3,enum=common.asset_locks.TimeSpec" json:"timeSpec,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetLockHTLC) Descriptor deprecated

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

Deprecated: Use AssetLockHTLC.ProtoReflect.Descriptor instead.

func (*AssetLockHTLC) GetExpiryTimeSecs

func (x *AssetLockHTLC) GetExpiryTimeSecs() uint64

func (*AssetLockHTLC) GetHashBase64

func (x *AssetLockHTLC) GetHashBase64() []byte

func (*AssetLockHTLC) GetHashMechanism added in v1.3.0

func (x *AssetLockHTLC) GetHashMechanism() HashMechanism

func (*AssetLockHTLC) GetTimeSpec

func (x *AssetLockHTLC) GetTimeSpec() TimeSpec

func (*AssetLockHTLC) ProtoMessage

func (*AssetLockHTLC) ProtoMessage()

func (*AssetLockHTLC) ProtoReflect

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

func (*AssetLockHTLC) Reset

func (x *AssetLockHTLC) Reset()

func (*AssetLockHTLC) String

func (x *AssetLockHTLC) String() string

type AssetPledge added in v1.2.4

type AssetPledge struct {
	AssetDetails    []byte `protobuf:"bytes,1,opt,name=assetDetails,proto3" json:"assetDetails,omitempty"`
	LocalNetworkID  string `protobuf:"bytes,2,opt,name=localNetworkID,proto3" json:"localNetworkID,omitempty"`
	RemoteNetworkID string `protobuf:"bytes,3,opt,name=remoteNetworkID,proto3" json:"remoteNetworkID,omitempty"`
	Recipient       string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
	ExpiryTimeSecs  uint64 `protobuf:"varint,5,opt,name=expiryTimeSecs,proto3" json:"expiryTimeSecs,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetPledge) Descriptor deprecated added in v1.2.4

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

Deprecated: Use AssetPledge.ProtoReflect.Descriptor instead.

func (*AssetPledge) GetAssetDetails added in v1.2.4

func (x *AssetPledge) GetAssetDetails() []byte

func (*AssetPledge) GetExpiryTimeSecs added in v1.2.4

func (x *AssetPledge) GetExpiryTimeSecs() uint64

func (*AssetPledge) GetLocalNetworkID added in v1.2.4

func (x *AssetPledge) GetLocalNetworkID() string

func (*AssetPledge) GetRecipient added in v1.2.4

func (x *AssetPledge) GetRecipient() string

func (*AssetPledge) GetRemoteNetworkID added in v1.2.4

func (x *AssetPledge) GetRemoteNetworkID() string

func (*AssetPledge) ProtoMessage added in v1.2.4

func (*AssetPledge) ProtoMessage()

func (*AssetPledge) ProtoReflect added in v1.2.4

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

func (*AssetPledge) Reset added in v1.2.4

func (x *AssetPledge) Reset()

func (*AssetPledge) String added in v1.2.4

func (x *AssetPledge) String() string

type ConfidentialPayload added in v1.2.9

type ConfidentialPayload struct {
	EncryptedPayload []byte                       `protobuf:"bytes,1,opt,name=encrypted_payload,json=encryptedPayload,proto3" json:"encrypted_payload,omitempty"`
	HashType         ConfidentialPayload_HashType `` /* 143-byte string literal not displayed */
	Hash             []byte                       `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfidentialPayload) Descriptor deprecated added in v1.2.9

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

Deprecated: Use ConfidentialPayload.ProtoReflect.Descriptor instead.

func (*ConfidentialPayload) GetEncryptedPayload added in v1.2.9

func (x *ConfidentialPayload) GetEncryptedPayload() []byte

func (*ConfidentialPayload) GetHash added in v1.2.9

func (x *ConfidentialPayload) GetHash() []byte

func (*ConfidentialPayload) GetHashType added in v1.2.9

func (*ConfidentialPayload) ProtoMessage added in v1.2.9

func (*ConfidentialPayload) ProtoMessage()

func (*ConfidentialPayload) ProtoReflect added in v1.2.9

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

func (*ConfidentialPayload) Reset added in v1.2.9

func (x *ConfidentialPayload) Reset()

func (*ConfidentialPayload) String added in v1.2.9

func (x *ConfidentialPayload) String() string

type ConfidentialPayloadContents added in v1.2.9

type ConfidentialPayloadContents struct {
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Random  []byte `protobuf:"bytes,2,opt,name=random,proto3" json:"random,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfidentialPayloadContents) Descriptor deprecated added in v1.2.9

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

Deprecated: Use ConfidentialPayloadContents.ProtoReflect.Descriptor instead.

func (*ConfidentialPayloadContents) GetPayload added in v1.2.9

func (x *ConfidentialPayloadContents) GetPayload() []byte

func (*ConfidentialPayloadContents) GetRandom added in v1.2.9

func (x *ConfidentialPayloadContents) GetRandom() []byte

func (*ConfidentialPayloadContents) ProtoMessage added in v1.2.9

func (*ConfidentialPayloadContents) ProtoMessage()

func (*ConfidentialPayloadContents) ProtoReflect added in v1.2.9

func (*ConfidentialPayloadContents) Reset added in v1.2.9

func (x *ConfidentialPayloadContents) Reset()

func (*ConfidentialPayloadContents) String added in v1.2.9

func (x *ConfidentialPayloadContents) String() string

type ConfidentialPayload_HashType added in v1.2.9

type ConfidentialPayload_HashType int32
const (
	ConfidentialPayload_HMAC ConfidentialPayload_HashType = 0
)

func (ConfidentialPayload_HashType) Descriptor added in v1.2.9

func (ConfidentialPayload_HashType) Enum added in v1.2.9

func (ConfidentialPayload_HashType) EnumDescriptor deprecated added in v1.2.9

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

Deprecated: Use ConfidentialPayload_HashType.Descriptor instead.

func (ConfidentialPayload_HashType) Number added in v1.2.9

func (ConfidentialPayload_HashType) String added in v1.2.9

func (ConfidentialPayload_HashType) Type added in v1.2.9

type ContractTransaction added in v1.5.0

type ContractTransaction struct {
	DriverId        string   `protobuf:"bytes,1,opt,name=driver_id,json=driverId,proto3" json:"driver_id,omitempty"`
	LedgerId        string   `protobuf:"bytes,2,opt,name=ledger_id,json=ledgerId,proto3" json:"ledger_id,omitempty"`
	ContractId      string   `protobuf:"bytes,3,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	Func            string   `protobuf:"bytes,4,opt,name=func,proto3" json:"func,omitempty"`
	Args            [][]byte `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"`
	ReplaceArgIndex uint64   `protobuf:"varint,6,opt,name=replace_arg_index,json=replaceArgIndex,proto3" json:"replace_arg_index,omitempty"`
	Members         []string `protobuf:"bytes,7,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractTransaction) Descriptor deprecated added in v1.5.0

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

Deprecated: Use ContractTransaction.ProtoReflect.Descriptor instead.

func (*ContractTransaction) GetArgs added in v1.5.0

func (x *ContractTransaction) GetArgs() [][]byte

func (*ContractTransaction) GetContractId added in v1.5.0

func (x *ContractTransaction) GetContractId() string

func (*ContractTransaction) GetDriverId added in v1.5.0

func (x *ContractTransaction) GetDriverId() string

func (*ContractTransaction) GetFunc added in v1.5.0

func (x *ContractTransaction) GetFunc() string

func (*ContractTransaction) GetLedgerId added in v1.5.0

func (x *ContractTransaction) GetLedgerId() string

func (*ContractTransaction) GetMembers added in v1.5.1

func (x *ContractTransaction) GetMembers() []string

func (*ContractTransaction) GetReplaceArgIndex added in v1.5.0

func (x *ContractTransaction) GetReplaceArgIndex() uint64

func (*ContractTransaction) ProtoMessage added in v1.5.0

func (*ContractTransaction) ProtoMessage()

func (*ContractTransaction) ProtoReflect added in v1.5.0

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

func (*ContractTransaction) Reset added in v1.5.0

func (x *ContractTransaction) Reset()

func (*ContractTransaction) String added in v1.5.0

func (x *ContractTransaction) String() string

type EventMatcher added in v1.5.0

type EventMatcher struct {
	EventType             EventType `protobuf:"varint,1,opt,name=event_type,json=eventType,proto3,enum=common.events.EventType" json:"event_type,omitempty"`
	EventClassId          string    `protobuf:"bytes,2,opt,name=event_class_id,json=eventClassId,proto3" json:"event_class_id,omitempty"`
	TransactionLedgerId   string    `protobuf:"bytes,3,opt,name=transaction_ledger_id,json=transactionLedgerId,proto3" json:"transaction_ledger_id,omitempty"`
	TransactionContractId string    `` /* 126-byte string literal not displayed */
	TransactionFunc       string    `protobuf:"bytes,5,opt,name=transaction_func,json=transactionFunc,proto3" json:"transaction_func,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMatcher) Descriptor deprecated added in v1.5.0

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

Deprecated: Use EventMatcher.ProtoReflect.Descriptor instead.

func (*EventMatcher) GetEventClassId added in v1.5.0

func (x *EventMatcher) GetEventClassId() string

func (*EventMatcher) GetEventType added in v1.5.0

func (x *EventMatcher) GetEventType() EventType

func (*EventMatcher) GetTransactionContractId added in v1.5.0

func (x *EventMatcher) GetTransactionContractId() string

func (*EventMatcher) GetTransactionFunc added in v1.5.0

func (x *EventMatcher) GetTransactionFunc() string

func (*EventMatcher) GetTransactionLedgerId added in v1.5.0

func (x *EventMatcher) GetTransactionLedgerId() string

func (*EventMatcher) ProtoMessage added in v1.5.0

func (*EventMatcher) ProtoMessage()

func (*EventMatcher) ProtoReflect added in v1.5.0

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

func (*EventMatcher) Reset added in v1.5.0

func (x *EventMatcher) Reset()

func (*EventMatcher) String added in v1.5.0

func (x *EventMatcher) String() string

type EventPublication added in v1.5.0

type EventPublication struct {

	// Types that are assignable to PublicationTarget:
	//
	//	*EventPublication_Ctx
	//	*EventPublication_AppUrl
	PublicationTarget isEventPublication_PublicationTarget `protobuf_oneof:"publication_target"`
	// contains filtered or unexported fields
}

func (*EventPublication) Descriptor deprecated added in v1.5.0

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

Deprecated: Use EventPublication.ProtoReflect.Descriptor instead.

func (*EventPublication) GetAppUrl added in v1.5.0

func (x *EventPublication) GetAppUrl() string

func (*EventPublication) GetCtx added in v1.5.0

func (*EventPublication) GetPublicationTarget added in v1.5.0

func (m *EventPublication) GetPublicationTarget() isEventPublication_PublicationTarget

func (*EventPublication) ProtoMessage added in v1.5.0

func (*EventPublication) ProtoMessage()

func (*EventPublication) ProtoReflect added in v1.5.0

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

func (*EventPublication) Reset added in v1.5.0

func (x *EventPublication) Reset()

func (*EventPublication) String added in v1.5.0

func (x *EventPublication) String() string

type EventPublication_AppUrl added in v1.5.0

type EventPublication_AppUrl struct {
	AppUrl string `protobuf:"bytes,2,opt,name=app_url,json=appUrl,proto3,oneof"`
}

type EventPublication_Ctx added in v1.5.0

type EventPublication_Ctx struct {
	Ctx *ContractTransaction `protobuf:"bytes,1,opt,name=ctx,proto3,oneof"`
}

type EventState added in v1.5.0

type EventState struct {
	State   *RequestState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	EventId string        `protobuf:"bytes,2,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	Message string        `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

the payload that is used for the communication between the requesting relay and its network

func (*EventState) Descriptor deprecated added in v1.5.0

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

Deprecated: Use EventState.ProtoReflect.Descriptor instead.

func (*EventState) GetEventId added in v1.5.0

func (x *EventState) GetEventId() string

func (*EventState) GetMessage added in v1.5.0

func (x *EventState) GetMessage() string

func (*EventState) GetState added in v1.5.0

func (x *EventState) GetState() *RequestState

func (*EventState) ProtoMessage added in v1.5.0

func (*EventState) ProtoMessage()

func (*EventState) ProtoReflect added in v1.5.0

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

func (*EventState) Reset added in v1.5.0

func (x *EventState) Reset()

func (*EventState) String added in v1.5.0

func (x *EventState) String() string

type EventStates added in v1.5.0

type EventStates struct {
	States []*EventState `protobuf:"bytes,1,rep,name=states,proto3" json:"states,omitempty"`
	// contains filtered or unexported fields
}

func (*EventStates) Descriptor deprecated added in v1.5.0

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

Deprecated: Use EventStates.ProtoReflect.Descriptor instead.

func (*EventStates) GetStates added in v1.5.0

func (x *EventStates) GetStates() []*EventState

func (*EventStates) ProtoMessage added in v1.5.0

func (*EventStates) ProtoMessage()

func (*EventStates) ProtoReflect added in v1.5.0

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

func (*EventStates) Reset added in v1.5.0

func (x *EventStates) Reset()

func (*EventStates) String added in v1.5.0

func (x *EventStates) String() string

type EventSubOperation added in v1.5.0

type EventSubOperation int32
const (
	EventSubOperation_SUBSCRIBE   EventSubOperation = 0
	EventSubOperation_UNSUBSCRIBE EventSubOperation = 1
	EventSubOperation_UPDATE      EventSubOperation = 2
)

func (EventSubOperation) Descriptor added in v1.5.0

func (EventSubOperation) Enum added in v1.5.0

func (EventSubOperation) EnumDescriptor deprecated added in v1.5.0

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

Deprecated: Use EventSubOperation.Descriptor instead.

func (EventSubOperation) Number added in v1.5.0

func (EventSubOperation) String added in v1.5.0

func (x EventSubOperation) String() string

func (EventSubOperation) Type added in v1.5.0

type EventSubscription added in v1.5.0

type EventSubscription struct {
	EventMatcher *EventMatcher     `protobuf:"bytes,1,opt,name=event_matcher,json=eventMatcher,proto3" json:"event_matcher,omitempty"`
	Query        *Query            `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	Operation    EventSubOperation `protobuf:"varint,3,opt,name=operation,proto3,enum=common.events.EventSubOperation" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

Below message is used to communicate between dest-relay and src-relay; and src-relay and src-driver.

func (*EventSubscription) Descriptor deprecated added in v1.5.0

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

Deprecated: Use EventSubscription.ProtoReflect.Descriptor instead.

func (*EventSubscription) GetEventMatcher added in v1.5.0

func (x *EventSubscription) GetEventMatcher() *EventMatcher

func (*EventSubscription) GetOperation added in v1.5.0

func (x *EventSubscription) GetOperation() EventSubOperation

func (*EventSubscription) GetQuery added in v1.5.0

func (x *EventSubscription) GetQuery() *Query

func (*EventSubscription) ProtoMessage added in v1.5.0

func (*EventSubscription) ProtoMessage()

func (*EventSubscription) ProtoReflect added in v1.5.0

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

func (*EventSubscription) Reset added in v1.5.0

func (x *EventSubscription) Reset()

func (*EventSubscription) String added in v1.5.0

func (x *EventSubscription) String() string

type EventSubscriptionState added in v1.5.0

type EventSubscriptionState struct {
	RequestId             string                        `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	PublishingRequestId   string                        `protobuf:"bytes,2,opt,name=publishing_request_id,json=publishingRequestId,proto3" json:"publishing_request_id,omitempty"`
	Status                EventSubscriptionState_STATUS `protobuf:"varint,3,opt,name=status,proto3,enum=common.events.EventSubscriptionState_STATUS" json:"status,omitempty"`
	Message               string                        `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	EventMatcher          *EventMatcher                 `protobuf:"bytes,5,opt,name=event_matcher,json=eventMatcher,proto3" json:"event_matcher,omitempty"`
	EventPublicationSpecs []*EventPublication           `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EventSubscriptionState) Descriptor deprecated added in v1.5.0

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

Deprecated: Use EventSubscriptionState.ProtoReflect.Descriptor instead.

func (*EventSubscriptionState) GetEventMatcher added in v1.5.0

func (x *EventSubscriptionState) GetEventMatcher() *EventMatcher

func (*EventSubscriptionState) GetEventPublicationSpecs added in v1.5.4

func (x *EventSubscriptionState) GetEventPublicationSpecs() []*EventPublication

func (*EventSubscriptionState) GetMessage added in v1.5.0

func (x *EventSubscriptionState) GetMessage() string

func (*EventSubscriptionState) GetPublishingRequestId added in v1.5.4

func (x *EventSubscriptionState) GetPublishingRequestId() string

func (*EventSubscriptionState) GetRequestId added in v1.5.0

func (x *EventSubscriptionState) GetRequestId() string

func (*EventSubscriptionState) GetStatus added in v1.5.0

func (*EventSubscriptionState) ProtoMessage added in v1.5.0

func (*EventSubscriptionState) ProtoMessage()

func (*EventSubscriptionState) ProtoReflect added in v1.5.0

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

func (*EventSubscriptionState) Reset added in v1.5.0

func (x *EventSubscriptionState) Reset()

func (*EventSubscriptionState) String added in v1.5.0

func (x *EventSubscriptionState) String() string

type EventSubscriptionState_STATUS added in v1.5.0

type EventSubscriptionState_STATUS int32
const (
	// pending ACK from remote relay
	EventSubscriptionState_SUBSCRIBE_PENDING_ACK EventSubscriptionState_STATUS = 0
	// Received ACK, waiting for event subscription confirmation from remote relay
	EventSubscriptionState_SUBSCRIBE_PENDING          EventSubscriptionState_STATUS = 1
	EventSubscriptionState_SUBSCRIBED                 EventSubscriptionState_STATUS = 2
	EventSubscriptionState_UNSUBSCRIBE_PENDING_ACK    EventSubscriptionState_STATUS = 3
	EventSubscriptionState_UNSUBSCRIBE_PENDING        EventSubscriptionState_STATUS = 4
	EventSubscriptionState_UNSUBSCRIBED               EventSubscriptionState_STATUS = 5
	EventSubscriptionState_ERROR                      EventSubscriptionState_STATUS = 6
	EventSubscriptionState_DUPLICATE_QUERY_SUBSCRIBED EventSubscriptionState_STATUS = 7
)

func (EventSubscriptionState_STATUS) Descriptor added in v1.5.0

func (EventSubscriptionState_STATUS) Enum added in v1.5.0

func (EventSubscriptionState_STATUS) EnumDescriptor deprecated added in v1.5.0

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

Deprecated: Use EventSubscriptionState_STATUS.Descriptor instead.

func (EventSubscriptionState_STATUS) Number added in v1.5.0

func (EventSubscriptionState_STATUS) String added in v1.5.0

func (EventSubscriptionState_STATUS) Type added in v1.5.0

type EventType added in v1.5.0

type EventType int32
const (
	EventType_LEDGER_STATE EventType = 0
	EventType_ASSET_LOCK   EventType = 1
	EventType_ASSET_CLAIM  EventType = 2
)

func (EventType) Descriptor added in v1.5.0

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum added in v1.5.0

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated added in v1.5.0

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

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number added in v1.5.0

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String added in v1.5.0

func (x EventType) String() string

func (EventType) Type added in v1.5.0

type FungibleAssetContractHTLC

type FungibleAssetContractHTLC struct {
	ContractId string                          `protobuf:"bytes,1,opt,name=contractId,proto3" json:"contractId,omitempty"`
	Agreement  *FungibleAssetExchangeAgreement `protobuf:"bytes,2,opt,name=agreement,proto3" json:"agreement,omitempty"`
	Lock       *AssetLockHTLC                  `protobuf:"bytes,3,opt,name=lock,proto3" json:"lock,omitempty"`
	Claim      *AssetClaimHTLC                 `protobuf:"bytes,4,opt,name=claim,proto3" json:"claim,omitempty"`
	// contains filtered or unexported fields
}

func (*FungibleAssetContractHTLC) Descriptor deprecated

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

Deprecated: Use FungibleAssetContractHTLC.ProtoReflect.Descriptor instead.

func (*FungibleAssetContractHTLC) GetAgreement

func (*FungibleAssetContractHTLC) GetClaim

func (*FungibleAssetContractHTLC) GetContractId

func (x *FungibleAssetContractHTLC) GetContractId() string

func (*FungibleAssetContractHTLC) GetLock

func (*FungibleAssetContractHTLC) ProtoMessage

func (*FungibleAssetContractHTLC) ProtoMessage()

func (*FungibleAssetContractHTLC) ProtoReflect

func (*FungibleAssetContractHTLC) Reset

func (x *FungibleAssetContractHTLC) Reset()

func (*FungibleAssetContractHTLC) String

func (x *FungibleAssetContractHTLC) String() string

type FungibleAssetExchangeAgreement

type FungibleAssetExchangeAgreement struct {
	AssetType string `protobuf:"bytes,1,opt,name=assetType,proto3" json:"assetType,omitempty"`
	NumUnits  uint64 `protobuf:"varint,2,opt,name=numUnits,proto3" json:"numUnits,omitempty"`
	Locker    string `protobuf:"bytes,3,opt,name=locker,proto3" json:"locker,omitempty"`
	Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// contains filtered or unexported fields
}

func (*FungibleAssetExchangeAgreement) Descriptor deprecated

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

Deprecated: Use FungibleAssetExchangeAgreement.ProtoReflect.Descriptor instead.

func (*FungibleAssetExchangeAgreement) GetAssetType added in v1.5.3

func (x *FungibleAssetExchangeAgreement) GetAssetType() string

func (*FungibleAssetExchangeAgreement) GetLocker

func (x *FungibleAssetExchangeAgreement) GetLocker() string

func (*FungibleAssetExchangeAgreement) GetNumUnits

func (x *FungibleAssetExchangeAgreement) GetNumUnits() uint64

func (*FungibleAssetExchangeAgreement) GetRecipient

func (x *FungibleAssetExchangeAgreement) GetRecipient() string

func (*FungibleAssetExchangeAgreement) ProtoMessage

func (*FungibleAssetExchangeAgreement) ProtoMessage()

func (*FungibleAssetExchangeAgreement) ProtoReflect

func (*FungibleAssetExchangeAgreement) Reset

func (x *FungibleAssetExchangeAgreement) Reset()

func (*FungibleAssetExchangeAgreement) String

type HashMechanism added in v1.3.0

type HashMechanism int32
const (
	HashMechanism_SHA256 HashMechanism = 0
	HashMechanism_SHA512 HashMechanism = 1
)

func (HashMechanism) Descriptor added in v1.3.0

func (HashMechanism) Enum added in v1.3.0

func (x HashMechanism) Enum() *HashMechanism

func (HashMechanism) EnumDescriptor deprecated added in v1.3.0

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

Deprecated: Use HashMechanism.Descriptor instead.

func (HashMechanism) Number added in v1.3.0

func (HashMechanism) String added in v1.3.0

func (x HashMechanism) String() string

func (HashMechanism) Type added in v1.3.0

type HybridAssetExchangeAgreement added in v1.5.7

type HybridAssetExchangeAgreement struct {
	AssetType string `protobuf:"bytes,1,opt,name=assetType,proto3" json:"assetType,omitempty"`
	Id        string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	AssetData []byte `protobuf:"bytes,3,opt,name=assetData,proto3" json:"assetData,omitempty"`
	NumUnits  uint64 `protobuf:"varint,4,opt,name=numUnits,proto3" json:"numUnits,omitempty"`
	Locker    string `protobuf:"bytes,5,opt,name=locker,proto3" json:"locker,omitempty"`
	Recipient string `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// contains filtered or unexported fields
}

func (*HybridAssetExchangeAgreement) Descriptor deprecated added in v1.5.7

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

Deprecated: Use HybridAssetExchangeAgreement.ProtoReflect.Descriptor instead.

func (*HybridAssetExchangeAgreement) GetAssetData added in v1.5.7

func (x *HybridAssetExchangeAgreement) GetAssetData() []byte

func (*HybridAssetExchangeAgreement) GetAssetType added in v1.5.7

func (x *HybridAssetExchangeAgreement) GetAssetType() string

func (*HybridAssetExchangeAgreement) GetId added in v1.5.7

func (*HybridAssetExchangeAgreement) GetLocker added in v1.5.7

func (x *HybridAssetExchangeAgreement) GetLocker() string

func (*HybridAssetExchangeAgreement) GetNumUnits added in v1.5.7

func (x *HybridAssetExchangeAgreement) GetNumUnits() uint64

func (*HybridAssetExchangeAgreement) GetRecipient added in v1.5.7

func (x *HybridAssetExchangeAgreement) GetRecipient() string

func (*HybridAssetExchangeAgreement) ProtoMessage added in v1.5.7

func (*HybridAssetExchangeAgreement) ProtoMessage()

func (*HybridAssetExchangeAgreement) ProtoReflect added in v1.5.7

func (*HybridAssetExchangeAgreement) Reset added in v1.5.7

func (x *HybridAssetExchangeAgreement) Reset()

func (*HybridAssetExchangeAgreement) String added in v1.5.7

type Identifier

type Identifier struct {

	// pattern defines the view/views that this rule applies to
	// A rule may contain a "*" at the end of the pattern
	Pattern string  `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
	Policy  *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

List of identifiers for the VerificationPolicy

func (*Identifier) Descriptor deprecated

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

Deprecated: Use Identifier.ProtoReflect.Descriptor instead.

func (*Identifier) GetPattern

func (x *Identifier) GetPattern() string

func (*Identifier) GetPolicy

func (x *Identifier) GetPolicy() *Policy

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

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

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) String

func (x *Identifier) String() string

type InteropPayload

type InteropPayload struct {
	Payload              []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Address              string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Confidential         bool   `protobuf:"varint,3,opt,name=confidential,proto3" json:"confidential,omitempty"`
	RequestorCertificate string `protobuf:"bytes,4,opt,name=requestor_certificate,json=requestorCertificate,proto3" json:"requestor_certificate,omitempty"`
	Nonce                string `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*InteropPayload) Descriptor deprecated

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

Deprecated: Use InteropPayload.ProtoReflect.Descriptor instead.

func (*InteropPayload) GetAddress

func (x *InteropPayload) GetAddress() string

func (*InteropPayload) GetConfidential added in v1.2.9

func (x *InteropPayload) GetConfidential() bool

func (*InteropPayload) GetNonce added in v1.2.9

func (x *InteropPayload) GetNonce() string

func (*InteropPayload) GetPayload

func (x *InteropPayload) GetPayload() []byte

func (*InteropPayload) GetRequestorCertificate added in v1.2.9

func (x *InteropPayload) GetRequestorCertificate() string

func (*InteropPayload) ProtoMessage

func (*InteropPayload) ProtoMessage()

func (*InteropPayload) ProtoReflect

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

func (*InteropPayload) Reset

func (x *InteropPayload) Reset()

func (*InteropPayload) String

func (x *InteropPayload) String() string

type LockMechanism

type LockMechanism int32
const (
	LockMechanism_HTLC LockMechanism = 0
)

func (LockMechanism) Descriptor

func (LockMechanism) Enum

func (x LockMechanism) Enum() *LockMechanism

func (LockMechanism) EnumDescriptor deprecated

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

Deprecated: Use LockMechanism.Descriptor instead.

func (LockMechanism) Number

func (LockMechanism) String

func (x LockMechanism) String() string

func (LockMechanism) Type

type Member

type Member struct {
	Value string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Type  string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Chain []string `protobuf:"bytes,3,rep,name=chain,proto3" json:"chain,omitempty"`
	// contains filtered or unexported fields
}

Member of a security group is represented by a set of public keys, certificates or certificate authorities

func (*Member) Descriptor deprecated

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

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetChain

func (x *Member) GetChain() []string

func (*Member) GetType

func (x *Member) GetType() string

func (*Member) GetValue

func (x *Member) GetValue() string

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

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

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

type Membership

type Membership struct {
	SecurityDomain string             `protobuf:"bytes,1,opt,name=securityDomain,proto3" json:"securityDomain,omitempty"`
	Members        map[string]*Member `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Membership captures the members of an external entity such as a thing, person, organization or groups of entities such as networks

func (*Membership) Descriptor deprecated

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

Deprecated: Use Membership.ProtoReflect.Descriptor instead.

func (*Membership) GetMembers

func (x *Membership) GetMembers() map[string]*Member

func (*Membership) GetSecurityDomain

func (x *Membership) GetSecurityDomain() string

func (*Membership) ProtoMessage

func (*Membership) ProtoMessage()

func (*Membership) ProtoReflect

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

func (*Membership) Reset

func (x *Membership) Reset()

func (*Membership) String

func (x *Membership) String() string

type Meta

type Meta struct {

	// Underlying distributed ledger protocol.
	Protocol Meta_Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=common.state.Meta_Protocol" json:"protocol,omitempty"`
	// What notion of time?
	// If the observer and network are synchronizing on a global clock
	// there won't be a need to distinguish between static and dynamic views.
	Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Notorization, SPV, ZKP, etc. Possibly enum
	ProofType string `protobuf:"bytes,3,opt,name=proof_type,json=proofType,proto3" json:"proof_type,omitempty"`
	// The data field's serialization format (e.g. JSON, XML, Protobuf)
	SerializationFormat string `protobuf:"bytes,4,opt,name=serialization_format,json=serializationFormat,proto3" json:"serialization_format,omitempty"`
	// contains filtered or unexported fields
}

Metadata for a View

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetProofType

func (x *Meta) GetProofType() string

func (*Meta) GetProtocol

func (x *Meta) GetProtocol() Meta_Protocol

func (*Meta) GetSerializationFormat

func (x *Meta) GetSerializationFormat() string

func (*Meta) GetTimestamp

func (x *Meta) GetTimestamp() string

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type Meta_Protocol

type Meta_Protocol int32
const (
	Meta_BITCOIN  Meta_Protocol = 0
	Meta_ETHEREUM Meta_Protocol = 1
	Meta_FABRIC   Meta_Protocol = 3
	Meta_CORDA    Meta_Protocol = 4
)

func (Meta_Protocol) Descriptor

func (Meta_Protocol) Enum

func (x Meta_Protocol) Enum() *Meta_Protocol

func (Meta_Protocol) EnumDescriptor deprecated

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

Deprecated: Use Meta_Protocol.Descriptor instead.

func (Meta_Protocol) Number

func (Meta_Protocol) String

func (x Meta_Protocol) String() string

func (Meta_Protocol) Type

type Policy

type Policy struct {
	Type     string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Criteria []string `protobuf:"bytes,2,rep,name=criteria,proto3" json:"criteria,omitempty"`
	// contains filtered or unexported fields
}

The Policy captures the list of parties that are required to provide proofs of a view in order for the Fabric network to accept the view as valid.

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetCriteria

func (x *Policy) GetCriteria() []string

func (*Policy) GetType

func (x *Policy) GetType() string

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

type Proof

type Proof struct {
	Signature   string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// contains filtered or unexported fields
}

func (*Proof) Descriptor deprecated

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

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetCertificate

func (x *Proof) GetCertificate() string

func (*Proof) GetSignature

func (x *Proof) GetSignature() string

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect

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

func (*Proof) Reset

func (x *Proof) Reset()

func (*Proof) String

func (x *Proof) String() string

type Proofs

type Proofs struct {
	Proofs []*Proof `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
	// contains filtered or unexported fields
}

func (*Proofs) Descriptor deprecated

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

Deprecated: Use Proofs.ProtoReflect.Descriptor instead.

func (*Proofs) GetProofs

func (x *Proofs) GetProofs() []*Proof

func (*Proofs) ProtoMessage

func (*Proofs) ProtoMessage()

func (*Proofs) ProtoReflect

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

func (*Proofs) Reset

func (x *Proofs) Reset()

func (*Proofs) String

func (x *Proofs) String() string

type Query

type Query struct {
	Policy             []string `protobuf:"bytes,1,rep,name=policy,proto3" json:"policy,omitempty"`
	Address            string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	RequestingRelay    string   `protobuf:"bytes,3,opt,name=requesting_relay,json=requestingRelay,proto3" json:"requesting_relay,omitempty"`
	RequestingNetwork  string   `protobuf:"bytes,4,opt,name=requesting_network,json=requestingNetwork,proto3" json:"requesting_network,omitempty"`
	Certificate        string   `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"`
	RequestorSignature string   `protobuf:"bytes,6,opt,name=requestor_signature,json=requestorSignature,proto3" json:"requestor_signature,omitempty"`
	Nonce              string   `protobuf:"bytes,7,opt,name=nonce,proto3" json:"nonce,omitempty"`
	RequestId          string   `protobuf:"bytes,8,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	RequestingOrg      string   `protobuf:"bytes,9,opt,name=requesting_org,json=requestingOrg,proto3" json:"requesting_org,omitempty"`
	Confidential       bool     `protobuf:"varint,10,opt,name=confidential,proto3" json:"confidential,omitempty"`
	// contains filtered or unexported fields
}

the payload to define the data that is being requested

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetAddress

func (x *Query) GetAddress() string

func (*Query) GetCertificate

func (x *Query) GetCertificate() string

func (*Query) GetConfidential added in v1.2.9

func (x *Query) GetConfidential() bool

func (*Query) GetNonce

func (x *Query) GetNonce() string

func (*Query) GetPolicy

func (x *Query) GetPolicy() []string

func (*Query) GetRequestId

func (x *Query) GetRequestId() string

func (*Query) GetRequestingNetwork

func (x *Query) GetRequestingNetwork() string

func (*Query) GetRequestingOrg

func (x *Query) GetRequestingOrg() string

func (*Query) GetRequestingRelay

func (x *Query) GetRequestingRelay() string

func (*Query) GetRequestorSignature

func (x *Query) GetRequestorSignature() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type RequestState

type RequestState struct {
	RequestId string              `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Status    RequestState_STATUS `protobuf:"varint,2,opt,name=status,proto3,enum=common.state.RequestState_STATUS" json:"status,omitempty"`
	// Types that are assignable to State:
	//
	//	*RequestState_View
	//	*RequestState_Error
	State isRequestState_State `protobuf_oneof:"state"`
	// contains filtered or unexported fields
}

the payload that is used for the communication between the requesting relay and its network

func (*RequestState) Descriptor deprecated

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

Deprecated: Use RequestState.ProtoReflect.Descriptor instead.

func (*RequestState) GetError

func (x *RequestState) GetError() string

func (*RequestState) GetRequestId

func (x *RequestState) GetRequestId() string

func (*RequestState) GetState

func (m *RequestState) GetState() isRequestState_State

func (*RequestState) GetStatus

func (x *RequestState) GetStatus() RequestState_STATUS

func (*RequestState) GetView

func (x *RequestState) GetView() *View

func (*RequestState) ProtoMessage

func (*RequestState) ProtoMessage()

func (*RequestState) ProtoReflect

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

func (*RequestState) Reset

func (x *RequestState) Reset()

func (*RequestState) String

func (x *RequestState) String() string

type RequestState_Error

type RequestState_Error struct {
	Error string `protobuf:"bytes,4,opt,name=error,proto3,oneof"`
}

type RequestState_STATUS

type RequestState_STATUS int32
const (
	// pending ACK from remote relay
	RequestState_PENDING_ACK RequestState_STATUS = 0
	// Received ACK, waiting for data to be sent from remote relay
	RequestState_PENDING           RequestState_STATUS = 1
	RequestState_ERROR             RequestState_STATUS = 2 // View is not there, received error from remote relay
	RequestState_COMPLETED         RequestState_STATUS = 3 // Data Sharing completed Successfully
	RequestState_EVENT_RECEIVED    RequestState_STATUS = 4 // View is there and event is received from remote relay
	RequestState_EVENT_WRITTEN     RequestState_STATUS = 5 // Driver Successfully wrote the view to ledger
	RequestState_EVENT_WRITE_ERROR RequestState_STATUS = 6 // View is there but driver failed to write
	RequestState_DELETED           RequestState_STATUS = 7 // Once network fetches this request state, mark it delete for cleanup later on
)

func (RequestState_STATUS) Descriptor

func (RequestState_STATUS) Enum

func (RequestState_STATUS) EnumDescriptor deprecated

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

Deprecated: Use RequestState_STATUS.Descriptor instead.

func (RequestState_STATUS) Number

func (RequestState_STATUS) String

func (x RequestState_STATUS) String() string

func (RequestState_STATUS) Type

type RequestState_View

type RequestState_View struct {
	View *View `protobuf:"bytes,3,opt,name=view,proto3,oneof"`
}

type Rule

type Rule struct {
	Principal     string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
	PrincipalType string `protobuf:"bytes,2,opt,name=principalType,proto3" json:"principalType,omitempty"`
	Resource      string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	Read          bool   `protobuf:"varint,4,opt,name=read,proto3" json:"read,omitempty"`
	// contains filtered or unexported fields
}

Rule represents a single data access rule for the AccessControlPolicy

func (*Rule) Descriptor deprecated

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetPrincipal

func (x *Rule) GetPrincipal() string

func (*Rule) GetPrincipalType

func (x *Rule) GetPrincipalType() string

func (*Rule) GetRead

func (x *Rule) GetRead() bool

func (*Rule) GetResource

func (x *Rule) GetResource() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

type TimeSpec added in v1.5.3

type TimeSpec int32
const (
	TimeSpec_EPOCH    TimeSpec = 0
	TimeSpec_DURATION TimeSpec = 1
)

func (TimeSpec) Descriptor added in v1.5.3

func (TimeSpec) Descriptor() protoreflect.EnumDescriptor

func (TimeSpec) Enum added in v1.5.3

func (x TimeSpec) Enum() *TimeSpec

func (TimeSpec) EnumDescriptor deprecated added in v1.5.3

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

Deprecated: Use TimeSpec.Descriptor instead.

func (TimeSpec) Number added in v1.5.3

func (x TimeSpec) Number() protoreflect.EnumNumber

func (TimeSpec) String added in v1.5.3

func (x TimeSpec) String() string

func (TimeSpec) Type added in v1.5.3

type VerificationPolicy

type VerificationPolicy struct {
	SecurityDomain string        `protobuf:"bytes,1,opt,name=securityDomain,proto3" json:"securityDomain,omitempty"`
	Identifiers    []*Identifier `protobuf:"bytes,2,rep,name=identifiers,proto3" json:"identifiers,omitempty"`
	// contains filtered or unexported fields
}

VerificationPolicy stores the rules around which parties from a foreign network need to provide proof of a view in order for it to be deemed valid by the Fabric network

func (*VerificationPolicy) Descriptor deprecated

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

Deprecated: Use VerificationPolicy.ProtoReflect.Descriptor instead.

func (*VerificationPolicy) GetIdentifiers

func (x *VerificationPolicy) GetIdentifiers() []*Identifier

func (*VerificationPolicy) GetSecurityDomain

func (x *VerificationPolicy) GetSecurityDomain() string

func (*VerificationPolicy) ProtoMessage

func (*VerificationPolicy) ProtoMessage()

func (*VerificationPolicy) ProtoReflect

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

func (*VerificationPolicy) Reset

func (x *VerificationPolicy) Reset()

func (*VerificationPolicy) String

func (x *VerificationPolicy) String() string

type View

type View struct {
	Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// Represents the data playload of this view.
	// The representation of Fabric, Corda etc will be captured elsewhere.
	// For some protocols, like Bitcoin, the structure of an SPV proof is well known.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*View) Descriptor deprecated

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

Deprecated: Use View.ProtoReflect.Descriptor instead.

func (*View) GetData

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

func (*View) GetMeta

func (x *View) GetMeta() *Meta

func (*View) ProtoMessage

func (*View) ProtoMessage()

func (*View) ProtoReflect

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

func (*View) Reset

func (x *View) Reset()

func (*View) String

func (x *View) String() string

type ViewPayload

type ViewPayload struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Types that are assignable to State:
	//
	//	*ViewPayload_View
	//	*ViewPayload_Error
	State isViewPayload_State `protobuf_oneof:"state"`
	// contains filtered or unexported fields
}

View represents the response from a remote network

func (*ViewPayload) Descriptor deprecated

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

Deprecated: Use ViewPayload.ProtoReflect.Descriptor instead.

func (*ViewPayload) GetError

func (x *ViewPayload) GetError() string

func (*ViewPayload) GetRequestId

func (x *ViewPayload) GetRequestId() string

func (*ViewPayload) GetState

func (m *ViewPayload) GetState() isViewPayload_State

func (*ViewPayload) GetView

func (x *ViewPayload) GetView() *View

func (*ViewPayload) ProtoMessage

func (*ViewPayload) ProtoMessage()

func (*ViewPayload) ProtoReflect

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

func (*ViewPayload) Reset

func (x *ViewPayload) Reset()

func (*ViewPayload) String

func (x *ViewPayload) String() string

type ViewPayload_Error

type ViewPayload_Error struct {
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type ViewPayload_View

type ViewPayload_View struct {
	View *View `protobuf:"bytes,2,opt,name=view,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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