envelopes

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_xmtpv4_envelopes_envelopes_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthenticatedData

type AuthenticatedData struct {
	TargetOriginator uint32       `protobuf:"varint,1,opt,name=target_originator,json=targetOriginator,proto3" json:"target_originator,omitempty"`
	TargetTopic      []byte       `protobuf:"bytes,2,opt,name=target_topic,json=targetTopic,proto3" json:"target_topic,omitempty"`
	LastSeen         *VectorClock `protobuf:"bytes,3,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// contains filtered or unexported fields
}

Data visible to the server that has been authenticated by the client.

func (*AuthenticatedData) Descriptor deprecated

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

Deprecated: Use AuthenticatedData.ProtoReflect.Descriptor instead.

func (*AuthenticatedData) GetLastSeen

func (x *AuthenticatedData) GetLastSeen() *VectorClock

func (*AuthenticatedData) GetTargetOriginator

func (x *AuthenticatedData) GetTargetOriginator() uint32

func (*AuthenticatedData) GetTargetTopic

func (x *AuthenticatedData) GetTargetTopic() []byte

func (*AuthenticatedData) ProtoMessage

func (*AuthenticatedData) ProtoMessage()

func (*AuthenticatedData) ProtoReflect

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

func (*AuthenticatedData) Reset

func (x *AuthenticatedData) Reset()

func (*AuthenticatedData) String

func (x *AuthenticatedData) String() string

type BlockchainProof

type BlockchainProof struct {
	TransactionHash []byte `protobuf:"bytes,1,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
	// contains filtered or unexported fields
}

An alternative to a signature for blockchain payloads

func (*BlockchainProof) Descriptor deprecated

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

Deprecated: Use BlockchainProof.ProtoReflect.Descriptor instead.

func (*BlockchainProof) GetTransactionHash

func (x *BlockchainProof) GetTransactionHash() []byte

func (*BlockchainProof) ProtoMessage

func (*BlockchainProof) ProtoMessage()

func (*BlockchainProof) ProtoReflect

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

func (*BlockchainProof) Reset

func (x *BlockchainProof) Reset()

func (*BlockchainProof) String

func (x *BlockchainProof) String() string

type ClientEnvelope

type ClientEnvelope struct {
	Aad *AuthenticatedData `protobuf:"bytes,1,opt,name=aad,proto3" json:"aad,omitempty"`
	// Types that are assignable to Payload:
	//
	//	*ClientEnvelope_GroupMessage
	//	*ClientEnvelope_WelcomeMessage
	//	*ClientEnvelope_UploadKeyPackage
	//	*ClientEnvelope_IdentityUpdate
	Payload isClientEnvelope_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*ClientEnvelope) Descriptor deprecated

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

Deprecated: Use ClientEnvelope.ProtoReflect.Descriptor instead.

func (*ClientEnvelope) GetAad

func (x *ClientEnvelope) GetAad() *AuthenticatedData

func (*ClientEnvelope) GetGroupMessage

func (x *ClientEnvelope) GetGroupMessage() *v1.GroupMessageInput

func (*ClientEnvelope) GetIdentityUpdate

func (x *ClientEnvelope) GetIdentityUpdate() *associations.IdentityUpdate

func (*ClientEnvelope) GetPayload

func (m *ClientEnvelope) GetPayload() isClientEnvelope_Payload

func (*ClientEnvelope) GetUploadKeyPackage

func (x *ClientEnvelope) GetUploadKeyPackage() *v1.UploadKeyPackageRequest

func (*ClientEnvelope) GetWelcomeMessage

func (x *ClientEnvelope) GetWelcomeMessage() *v1.WelcomeMessageInput

func (*ClientEnvelope) ProtoMessage

func (*ClientEnvelope) ProtoMessage()

func (*ClientEnvelope) ProtoReflect

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

func (*ClientEnvelope) Reset

func (x *ClientEnvelope) Reset()

func (*ClientEnvelope) String

func (x *ClientEnvelope) String() string

type ClientEnvelope_GroupMessage

type ClientEnvelope_GroupMessage struct {
	GroupMessage *v1.GroupMessageInput `protobuf:"bytes,2,opt,name=group_message,json=groupMessage,proto3,oneof"`
}

type ClientEnvelope_IdentityUpdate

type ClientEnvelope_IdentityUpdate struct {
	IdentityUpdate *associations.IdentityUpdate `protobuf:"bytes,5,opt,name=identity_update,json=identityUpdate,proto3,oneof"`
}

type ClientEnvelope_UploadKeyPackage

type ClientEnvelope_UploadKeyPackage struct {
	UploadKeyPackage *v1.UploadKeyPackageRequest `protobuf:"bytes,4,opt,name=upload_key_package,json=uploadKeyPackage,proto3,oneof"`
}

type ClientEnvelope_WelcomeMessage

type ClientEnvelope_WelcomeMessage struct {
	WelcomeMessage *v1.WelcomeMessageInput `protobuf:"bytes,3,opt,name=welcome_message,json=welcomeMessage,proto3,oneof"`
}

type OriginatorEnvelope

type OriginatorEnvelope struct {
	UnsignedOriginatorEnvelope []byte `` // Protobuf serialized
	/* 141-byte string literal not displayed */
	// Types that are assignable to Proof:
	//
	//	*OriginatorEnvelope_OriginatorSignature
	//	*OriginatorEnvelope_BlockchainProof
	Proof isOriginatorEnvelope_Proof `protobuf_oneof:"proof"`
	// contains filtered or unexported fields
}

Signed originator envelope

func (*OriginatorEnvelope) Descriptor deprecated

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

Deprecated: Use OriginatorEnvelope.ProtoReflect.Descriptor instead.

func (*OriginatorEnvelope) GetBlockchainProof

func (x *OriginatorEnvelope) GetBlockchainProof() *BlockchainProof

func (*OriginatorEnvelope) GetOriginatorSignature

func (x *OriginatorEnvelope) GetOriginatorSignature() *associations.RecoverableEcdsaSignature

func (*OriginatorEnvelope) GetProof

func (m *OriginatorEnvelope) GetProof() isOriginatorEnvelope_Proof

func (*OriginatorEnvelope) GetUnsignedOriginatorEnvelope

func (x *OriginatorEnvelope) GetUnsignedOriginatorEnvelope() []byte

func (*OriginatorEnvelope) ProtoMessage

func (*OriginatorEnvelope) ProtoMessage()

func (*OriginatorEnvelope) ProtoReflect

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

func (*OriginatorEnvelope) Reset

func (x *OriginatorEnvelope) Reset()

func (*OriginatorEnvelope) String

func (x *OriginatorEnvelope) String() string

type OriginatorEnvelope_BlockchainProof

type OriginatorEnvelope_BlockchainProof struct {
	BlockchainProof *BlockchainProof `protobuf:"bytes,3,opt,name=blockchain_proof,json=blockchainProof,proto3,oneof"`
}

type OriginatorEnvelope_OriginatorSignature

type OriginatorEnvelope_OriginatorSignature struct {
	OriginatorSignature *associations.RecoverableEcdsaSignature `protobuf:"bytes,2,opt,name=originator_signature,json=originatorSignature,proto3,oneof"`
}

type PayerEnvelope

type PayerEnvelope struct {
	UnsignedClientEnvelope []byte `` // Protobuf serialized
	/* 129-byte string literal not displayed */
	PayerSignature *associations.RecoverableEcdsaSignature `protobuf:"bytes,2,opt,name=payer_signature,json=payerSignature,proto3" json:"payer_signature,omitempty"`
	// contains filtered or unexported fields
}

Wraps client envelope with payer signature

func (*PayerEnvelope) Descriptor deprecated

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

Deprecated: Use PayerEnvelope.ProtoReflect.Descriptor instead.

func (*PayerEnvelope) GetPayerSignature

func (x *PayerEnvelope) GetPayerSignature() *associations.RecoverableEcdsaSignature

func (*PayerEnvelope) GetUnsignedClientEnvelope

func (x *PayerEnvelope) GetUnsignedClientEnvelope() []byte

func (*PayerEnvelope) ProtoMessage

func (*PayerEnvelope) ProtoMessage()

func (*PayerEnvelope) ProtoReflect

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

func (*PayerEnvelope) Reset

func (x *PayerEnvelope) Reset()

func (*PayerEnvelope) String

func (x *PayerEnvelope) String() string

type UnsignedOriginatorEnvelope

type UnsignedOriginatorEnvelope struct {
	OriginatorNodeId     uint32         `protobuf:"varint,1,opt,name=originator_node_id,json=originatorNodeId,proto3" json:"originator_node_id,omitempty"`
	OriginatorSequenceId uint64         `protobuf:"varint,2,opt,name=originator_sequence_id,json=originatorSequenceId,proto3" json:"originator_sequence_id,omitempty"`
	OriginatorNs         int64          `protobuf:"varint,3,opt,name=originator_ns,json=originatorNs,proto3" json:"originator_ns,omitempty"`
	PayerEnvelope        *PayerEnvelope `protobuf:"bytes,4,opt,name=payer_envelope,json=payerEnvelope,proto3" json:"payer_envelope,omitempty"`
	// contains filtered or unexported fields
}

For blockchain envelopes, these fields are set by the smart contract

func (*UnsignedOriginatorEnvelope) Descriptor deprecated

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

Deprecated: Use UnsignedOriginatorEnvelope.ProtoReflect.Descriptor instead.

func (*UnsignedOriginatorEnvelope) GetOriginatorNodeId

func (x *UnsignedOriginatorEnvelope) GetOriginatorNodeId() uint32

func (*UnsignedOriginatorEnvelope) GetOriginatorNs

func (x *UnsignedOriginatorEnvelope) GetOriginatorNs() int64

func (*UnsignedOriginatorEnvelope) GetOriginatorSequenceId

func (x *UnsignedOriginatorEnvelope) GetOriginatorSequenceId() uint64

func (*UnsignedOriginatorEnvelope) GetPayerEnvelope

func (x *UnsignedOriginatorEnvelope) GetPayerEnvelope() *PayerEnvelope

func (*UnsignedOriginatorEnvelope) ProtoMessage

func (*UnsignedOriginatorEnvelope) ProtoMessage()

func (*UnsignedOriginatorEnvelope) ProtoReflect

func (*UnsignedOriginatorEnvelope) Reset

func (x *UnsignedOriginatorEnvelope) Reset()

func (*UnsignedOriginatorEnvelope) String

func (x *UnsignedOriginatorEnvelope) String() string

type VectorClock

type VectorClock struct {
	NodeIdToSequenceId map[uint32]uint64 `` /* 211-byte string literal not displayed */
	// contains filtered or unexported fields
}

The last seen entry per originator. Originators that have not been seen are omitted. Entries MUST be sorted in ascending order, so that smaller node ID's appear first.

func (*VectorClock) Descriptor deprecated

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

Deprecated: Use VectorClock.ProtoReflect.Descriptor instead.

func (*VectorClock) GetNodeIdToSequenceId

func (x *VectorClock) GetNodeIdToSequenceId() map[uint32]uint64

func (*VectorClock) ProtoMessage

func (*VectorClock) ProtoMessage()

func (*VectorClock) ProtoReflect

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

func (*VectorClock) Reset

func (x *VectorClock) Reset()

func (*VectorClock) String

func (x *VectorClock) String() string

Jump to

Keyboard shortcuts

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