Class InMemoryKeystore

Implements

Constructors

Accessors

Methods

  • Create an XMTP auth token to be used as a header on XMTP API requests

    Parameters

    • __namedParameters: CreateAuthTokenRequest

    Returns Promise<Token>

  • Create a sealed/encrypted invite and store the Topic keys in the Keystore for later use. The returned invite payload must be sent to the network for the other party to be able to communicate.

    Parameters

    • req: CreateInviteRequest

    Returns Promise<CreateInviteResponse>

  • Export the private keys. May throw an error if the keystore implementation does not allow this operation

    Returns Promise<PrivateKeyBundleV1>

  • Get the private preferences topic identifier

    Returns Promise<GetPrivatePreferencesTopicIdentifierResponse>

  • Get a refresh job from the persistence

    Parameters

    • __namedParameters: GetRefreshJobRequest

    Returns Promise<GetRefreshJobResponse>

  • Returns the conversation HMAC keys for the current, previous, and next 30 day periods since the epoch

    Parameters

    • Optionalreq: GetConversationHmacKeysRequest

    Returns Promise<GetConversationHmacKeysResponse>

  • Take a batch of invite messages and store the TopicKeys for later use in decrypting messages

    Parameters

    • req: SaveInvitesRequest

    Returns Promise<SaveInvitesResponse>

  • Save V1 Conversations

    Parameters

    • __namedParameters: SaveV1ConversationsRequest

    Returns Promise<SaveV1ConversationsResponse>

  • Encrypt a batch of messages to yourself

    Parameters

    • req: SelfEncryptRequest

    Returns Promise<SelfEncryptResponse>

  • Sets the time of a refresh job

    Parameters

    • __namedParameters: SetRefeshJobRequest

    Returns Promise<SetRefreshJobResponse>

  • Sign the provided digest with either the IdentityKey or a specified PreKey

    Parameters

    • req: SignDigestRequest

    Returns Promise<Signature>