Class SnapProvider

The Snap keystore provider will:

  1. Check if the user is capable of using Snaps
  2. Check if the user has already setup the Snap with the appropriate keys
  3. If not, will get keys from the network or create new keys and store them in the Snap

Implements

Constructors

Properties

Methods

Constructors

Properties

snapId: string
snapVersion?: string

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>);
        getKeystoreStatus: ((req: GetKeystoreStatusRequest) => Promise<GetKeystoreStatusResponse>);
        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>);
        initKeystore: ((req: InitKeystoreRequest) => Promise<InitKeystoreResponse>);
        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>>