Class NetworkKeystoreProvider

NetworkKeystoreProvider will look on the XMTP network for an EncryptedPrivateKeyBundle on the user's private storage topic. If found, will decrypt the bundle using a wallet signature and instantiate a Keystore instance using the decrypted value.

Implements

Constructors

Methods

Constructors

Methods

  • Parameters

    Returns Promise<Flatten<{
        createAuthToken: ((req) => Promise<Token>);
        createInvite: ((req) => Promise<CreateInviteResponse>);
        decryptV1: ((req) => Promise<DecryptResponse>);
        decryptV2: ((req) => Promise<DecryptResponse>);
        encryptV1: ((req) => Promise<EncryptResponse>);
        encryptV2: ((req) => Promise<EncryptResponse>);
        getPrivateKeyBundle: (() => Promise<PrivateKeyBundleV1>);
        getPrivatePreferencesTopicIdentifier: (() => Promise<GetPrivatePreferencesTopicIdentifierResponse>);
        getPublicKeyBundle: (() => Promise<PublicKeyBundle>);
        getRefreshJob: ((req) => Promise<GetRefreshJobResponse>);
        getV1Conversations: (() => Promise<GetConversationsResponse>);
        getV2ConversationHmacKeys: ((req) => Promise<GetConversationHmacKeysResponse>);
        getV2Conversations: (() => Promise<GetConversationsResponse>);
        saveInvites: ((req) => Promise<SaveInvitesResponse>);
        saveV1Conversations: ((req) => Promise<SaveV1ConversationsResponse>);
        selfDecrypt: ((req) => Promise<DecryptResponse>);
        selfEncrypt: ((req) => Promise<SelfEncryptResponse>);
        setRefreshJob: ((req) => Promise<SetRefreshJobResponse>);
        signDigest: ((req) => Promise<Signature>);
    } & OtherKeyStoreMethods>>