Documentation ¶
Index ¶
- Variables
- func CheckKeyExchanges(instance *commsNetwork.Instance, grp *cyclic.Group, sendE2E E2eSender, ...)
- func Start(switchboard *receive.Switchboard, ratchet *ratchet.Ratchet, sender E2eSender, ...) (stoppable.Stoppable, error)
- type E2eSender
- type Params
- type RekeyConfirm
- type RekeyTrigger
- func (*RekeyTrigger) Descriptor() ([]byte, []int)deprecated
- func (x *RekeyTrigger) GetPublicKey() []byte
- func (x *RekeyTrigger) GetSessionID() []byte
- func (x *RekeyTrigger) GetSidhPublicKey() []byte
- func (*RekeyTrigger) ProtoMessage()
- func (x *RekeyTrigger) ProtoReflect() protoreflect.Message
- func (x *RekeyTrigger) Reset()
- func (x *RekeyTrigger) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_xchange_proto protoreflect.FileDescriptor
Functions ¶
func CheckKeyExchanges ¶
Types ¶
type E2eSender ¶
type E2eSender func(mt catalog.MessageType, recipient *id.ID, payload []byte, cmixParams cmix.CMIXParams) (e2e.SendReport, error)
type Params ¶
type Params struct { RoundTimeout time.Duration TriggerName string Trigger catalog.MessageType ConfirmName string Confirm catalog.MessageType StoppableName string }
func GetDefaultEphemeralParams ¶
func GetDefaultEphemeralParams() Params
GetDefaultEphemeralParams returns a default set of Params for ephemeral re-keying.
func GetDefaultParams ¶
func GetDefaultParams() Params
GetDefaultParams returns a default set of Params.
func GetParameters ¶
GetParameters returns the default network parameters, or override with given parameters, if set.
func (Params) MarshalJSON ¶
MarshalJSON adheres to the json.Marshaler interface.
func (*Params) UnmarshalJSON ¶
UnmarshalJSON adheres to the json.Unmarshaler interface.
type RekeyConfirm ¶
type RekeyConfirm struct { // ID of the session created SessionID []byte `protobuf:"bytes,1,opt,name=sessionID,proto3" json:"sessionID,omitempty"` // contains filtered or unexported fields }
func (*RekeyConfirm) Descriptor
deprecated
func (*RekeyConfirm) Descriptor() ([]byte, []int)
Deprecated: Use RekeyConfirm.ProtoReflect.Descriptor instead.
func (*RekeyConfirm) GetSessionID ¶
func (x *RekeyConfirm) GetSessionID() []byte
func (*RekeyConfirm) ProtoMessage ¶
func (*RekeyConfirm) ProtoMessage()
func (*RekeyConfirm) ProtoReflect ¶
func (x *RekeyConfirm) ProtoReflect() protoreflect.Message
func (*RekeyConfirm) Reset ¶
func (x *RekeyConfirm) Reset()
func (*RekeyConfirm) String ¶
func (x *RekeyConfirm) String() string
type RekeyTrigger ¶
type RekeyTrigger struct { // PublicKey used in the rekey PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // SIDHPublicKey used in the rekey SidhPublicKey []byte `protobuf:"bytes,2,opt,name=sidhPublicKey,proto3" json:"sidhPublicKey,omitempty"` // ID of the session used to create this session SessionID []byte `protobuf:"bytes,3,opt,name=sessionID,proto3" json:"sessionID,omitempty"` // contains filtered or unexported fields }
func (*RekeyTrigger) Descriptor
deprecated
func (*RekeyTrigger) Descriptor() ([]byte, []int)
Deprecated: Use RekeyTrigger.ProtoReflect.Descriptor instead.
func (*RekeyTrigger) GetPublicKey ¶
func (x *RekeyTrigger) GetPublicKey() []byte
func (*RekeyTrigger) GetSessionID ¶
func (x *RekeyTrigger) GetSessionID() []byte
func (*RekeyTrigger) GetSidhPublicKey ¶
func (x *RekeyTrigger) GetSidhPublicKey() []byte
func (*RekeyTrigger) ProtoMessage ¶
func (*RekeyTrigger) ProtoMessage()
func (*RekeyTrigger) ProtoReflect ¶
func (x *RekeyTrigger) ProtoReflect() protoreflect.Message
func (*RekeyTrigger) Reset ¶
func (x *RekeyTrigger) Reset()
func (*RekeyTrigger) String ¶
func (x *RekeyTrigger) String() string
Click to show internal directories.
Click to hide internal directories.