Protocols
The following protocols are available globally.
-
Undocumented
See moreDeclaration
Swift
public protocol CoreCryptoProtocol
-
Undocumented
See moreDeclaration
Swift
public protocol ClientIdProtocol : AnyObject, Sendable
-
A unique identifier for a single conversation.
The backend provides an opaque string identifying a new conversation. Construct an instance of this newtype to pass that identifier to Rust.
See moreDeclaration
Swift
public protocol ConversationIdProtocol : AnyObject, Sendable
-
Undocumented
See moreDeclaration
Swift
public protocol CoreCryptoProtocol : AnyObject, Sendable
-
Undocumented
See moreDeclaration
Swift
public protocol CoreCryptoContextProtocol : AnyObject, Sendable
-
This trait is used to provide a callback mechanism to hook up the respective platform logging system.
See moreDeclaration
Swift
public protocol CoreCryptoLogger : AnyObject, Sendable
-
See [core_crypto::e2e_identity::E2eiEnrollment]
See moreDeclaration
Swift
public protocol E2eiEnrollmentProtocol : AnyObject, Sendable
-
An
See moreEpochObserver
is notified whenever a conversation’s epoch changes.Declaration
Swift
public protocol EpochObserver : AnyObject, Sendable
-
The raw public key of an external sender.
This can be used to initialize a subconversation.
See moreDeclaration
Swift
public protocol ExternalSenderKeyProtocol : AnyObject, Sendable
-
MLS Group Information
This is used when joining by external commit. It can be found within the
See moreGroupInfoBundle
within aCommitBundle
.Declaration
Swift
public protocol GroupInfoProtocol : AnyObject, Sendable
-
An
See moreHistoryObserver
is notified whenever a new history client is created.Declaration
Swift
public protocol HistoryObserver : AnyObject, Sendable
-
A signed object describing a client’s identity and capabilities.
Includes a public key that can be used to encrypt to that client. Other clients can use a client’s KeyPackage to introduce that client to a new group.
See moreDeclaration
Swift
public protocol KeyPackageProtocol : AnyObject, Sendable
-
Used by core crypto to send commits or application messages to the delivery service. This trait must be implemented before calling any functions that produce commits.
See moreDeclaration
Swift
public protocol MlsTransport : AnyObject, Sendable
-
Declaration
Swift
public protocol SecretKeyProtocol : AnyObject, Sendable
-
A TLS-serialized Welcome message.
This structure is defined in RFC 9420: https://www.rfc-editor.org/rfc/rfc9420.html#joining-via-welcome-message.
See moreDeclaration
Swift
public protocol WelcomeProtocol : AnyObject, Sendable