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: CreateAuthTokenRequest) => Promise<Token>);
        createInvite: ((req: CreateInviteRequest) => Promise<CreateInviteResponse>);
        decryptV1: ((req: DecryptV1Request) => Promise<DecryptResponse>);
        decryptV2: ((req: DecryptV2Request) => Promise<DecryptResponse>);
        encryptV1: ((req: EncryptV1Request) => Promise<EncryptResponse>);
        encryptV2: ((req: EncryptV2Request) => Promise<EncryptResponse>);
        getPrivateKeyBundle: (() => Promise<PrivateKeyBundleV1>);
        getPrivatePreferencesTopicIdentifier: (() => Promise<GetPrivatePreferencesTopicIdentifierResponse>);
        getPublicKeyBundle: (() => Promise<PublicKeyBundle>);
        getRefreshJob: ((req: GetRefreshJobRequest) => Promise<GetRefreshJobResponse>);
        getV1Conversations: (() => Promise<GetConversationsResponse>);
        getV2ConversationHmacKeys: ((req: GetConversationHmacKeysRequest) => Promise<GetConversationHmacKeysResponse>);
        getV2Conversations: (() => Promise<GetConversationsResponse>);
        saveInvites: ((req: SaveInvitesRequest) => Promise<SaveInvitesResponse>);
        saveV1Conversations: ((req: SaveV1ConversationsRequest) => Promise<SaveV1ConversationsResponse>);
        selfDecrypt: ((req: SelfDecryptRequest) => Promise<DecryptResponse>);
        selfEncrypt: ((req: SelfEncryptRequest) => Promise<SelfEncryptResponse>);
        setRefreshJob: ((req: SetRefeshJobRequest) => Promise<SetRefreshJobResponse>);
        signDigest: ((req: SignDigestRequest) => Promise<Signature>);
    } & OtherKeyStoreMethods & PrivatePreferenceKeystoreMethods>>