@swapkit/wallet-keystore 1.0.0-rc.98 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts DELETED
@@ -1,53 +0,0 @@
1
- import { Chain } from '@swapkit/types';
2
- import type { ConnectWalletParams } from '@swapkit/types';
3
-
4
- export declare const decryptFromKeystore: (keystore: Keystore, password: string) => Promise<string>;
5
-
6
- export declare const encryptToKeyStore: (phrase: string, password: string) => Promise<{
7
- meta: string;
8
- version: number;
9
- crypto: {
10
- cipher: string;
11
- cipherparams: {
12
- iv: string;
13
- };
14
- ciphertext: string;
15
- kdf: string;
16
- kdfparams: {
17
- c: number;
18
- prf: string;
19
- dklen: number;
20
- salt: string;
21
- };
22
- mac: string;
23
- };
24
- }>;
25
-
26
- export declare const generatePhrase: (size?: number) => string;
27
-
28
- export declare type Keystore = {
29
- crypto: {
30
- cipher: string;
31
- ciphertext: string;
32
- cipherparams: {
33
- iv: string;
34
- };
35
- kdf: string;
36
- kdfparams: {
37
- prf: string;
38
- dklen: number;
39
- salt: string;
40
- c: number;
41
- };
42
- mac: string;
43
- };
44
- version: number;
45
- meta: string;
46
- };
47
-
48
- export declare const keystoreWallet: {
49
- connectMethodName: "connectKeystore";
50
- connect: ({ addChain, apis, rpcUrls, config: { thorswapApiKey, covalentApiKey, ethplorerApiKey, blockchairApiKey, utxoApiKey, stagenet, }, }: ConnectWalletParams) => (chains: Chain[], phrase: string, index?: number) => Promise<void>;
51
- };
52
-
53
- export { }