@metamask-previews/keyring-api 23.4.0-5951828 → 23.5.0-1fa477f

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/rpc.d.cts +3 -3
  3. package/dist/rpc.d.mts +3 -3
  4. package/dist/v2/api/create-account/index.d.cts +1 -1
  5. package/dist/v2/api/create-account/index.d.mts +1 -1
  6. package/dist/v2/api/create-account/private-key.d.cts +3 -2
  7. package/dist/v2/api/create-account/private-key.d.cts.map +1 -1
  8. package/dist/v2/api/create-account/private-key.d.mts +3 -2
  9. package/dist/v2/api/create-account/private-key.d.mts.map +1 -1
  10. package/dist/v2/api/export-account/index.d.cts +6 -4
  11. package/dist/v2/api/export-account/index.d.cts.map +1 -1
  12. package/dist/v2/api/export-account/index.d.mts +6 -4
  13. package/dist/v2/api/export-account/index.d.mts.map +1 -1
  14. package/dist/v2/api/export-account/private-key.d.cts +6 -4
  15. package/dist/v2/api/export-account/private-key.d.cts.map +1 -1
  16. package/dist/v2/api/export-account/private-key.d.mts +6 -4
  17. package/dist/v2/api/export-account/private-key.d.mts.map +1 -1
  18. package/dist/v2/api/keyring-capabilities.d.cts +12 -10
  19. package/dist/v2/api/keyring-capabilities.d.cts.map +1 -1
  20. package/dist/v2/api/keyring-capabilities.d.mts +12 -10
  21. package/dist/v2/api/keyring-capabilities.d.mts.map +1 -1
  22. package/dist/v2/api/keyring-rpc.d.cts +10 -8
  23. package/dist/v2/api/keyring-rpc.d.cts.map +1 -1
  24. package/dist/v2/api/keyring-rpc.d.mts +10 -8
  25. package/dist/v2/api/keyring-rpc.d.mts.map +1 -1
  26. package/dist/v2/api/private-key.cjs +5 -0
  27. package/dist/v2/api/private-key.cjs.map +1 -1
  28. package/dist/v2/api/private-key.d.cts +13 -6
  29. package/dist/v2/api/private-key.d.cts.map +1 -1
  30. package/dist/v2/api/private-key.d.mts +13 -6
  31. package/dist/v2/api/private-key.d.mts.map +1 -1
  32. package/dist/v2/api/private-key.mjs +5 -0
  33. package/dist/v2/api/private-key.mjs.map +1 -1
  34. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,9 +9,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Added
11
11
 
12
+ - Add support for `base32` private key encoding in `exportAccount` ([#589](https://github.com/MetaMask/accounts/pull/589))
13
+
14
+ ## [23.5.0]
15
+
16
+ ### Added
17
+
12
18
  - Add `resolveAccountAddress` to `KeyringSnapRpc` (v2) ([#585](https://github.com/MetaMask/accounts/pull/585))
13
19
  - Add `snap.resolveAccountAddress` boolean flag to `KeyringCapabilities` to declare support for this method.
14
20
 
21
+ ### Changed
22
+
23
+ - Bump `@metamask/superstruct` from `^3.1.0` to `^3.3.0` ([#580](https://github.com/MetaMask/accounts/pull/580))
24
+
15
25
  ## [23.4.0]
16
26
 
17
27
  ### Added
@@ -786,7 +796,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
786
796
  - SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
787
797
  - Helper functions to create keyring handler in the snap.
788
798
 
789
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@23.4.0...HEAD
799
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@23.5.0...HEAD
800
+ [23.5.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@23.4.0...@metamask/keyring-api@23.5.0
790
801
  [23.4.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@23.3.0...@metamask/keyring-api@23.4.0
791
802
  [23.3.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@23.2.0...@metamask/keyring-api@23.3.0
792
803
  [23.2.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@23.1.0...@metamask/keyring-api@23.2.0
package/dist/rpc.d.cts CHANGED
@@ -280,7 +280,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
280
280
  type: "custom";
281
281
  } | {
282
282
  type: "private-key:import";
283
- encoding: "hexadecimal" | "base58";
283
+ encoding: "hexadecimal" | "base58" | "base32";
284
284
  privateKey: string;
285
285
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
286
286
  };
@@ -311,7 +311,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
311
311
  type: "custom";
312
312
  } | {
313
313
  type: "private-key:import";
314
- encoding: "hexadecimal" | "base58";
314
+ encoding: "hexadecimal" | "base58" | "base32";
315
315
  privateKey: string;
316
316
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
317
317
  };
@@ -339,7 +339,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
339
339
  type: "custom";
340
340
  } | {
341
341
  type: "private-key:import";
342
- encoding: "hexadecimal" | "base58";
342
+ encoding: "hexadecimal" | "base58" | "base32";
343
343
  privateKey: string;
344
344
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
345
345
  }, null>;
package/dist/rpc.d.mts CHANGED
@@ -280,7 +280,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
280
280
  type: "custom";
281
281
  } | {
282
282
  type: "private-key:import";
283
- encoding: "hexadecimal" | "base58";
283
+ encoding: "hexadecimal" | "base58" | "base32";
284
284
  privateKey: string;
285
285
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
286
286
  };
@@ -311,7 +311,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
311
311
  type: "custom";
312
312
  } | {
313
313
  type: "private-key:import";
314
- encoding: "hexadecimal" | "base58";
314
+ encoding: "hexadecimal" | "base58" | "base32";
315
315
  privateKey: string;
316
316
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
317
317
  };
@@ -339,7 +339,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
339
339
  type: "custom";
340
340
  } | {
341
341
  type: "private-key:import";
342
- encoding: "hexadecimal" | "base58";
342
+ encoding: "hexadecimal" | "base58" | "base32";
343
343
  privateKey: string;
344
344
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
345
345
  }, null>;
@@ -72,7 +72,7 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
72
72
  type: "custom";
73
73
  } | {
74
74
  type: "private-key:import";
75
- encoding: "hexadecimal" | "base58";
75
+ encoding: "hexadecimal" | "base58" | "base32";
76
76
  privateKey: string;
77
77
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
78
78
  }, null>;
@@ -72,7 +72,7 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
72
72
  type: "custom";
73
73
  } | {
74
74
  type: "private-key:import";
75
- encoding: "hexadecimal" | "base58";
75
+ encoding: "hexadecimal" | "base58" | "base32";
76
76
  privateKey: string;
77
77
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
78
78
  }, null>;
@@ -4,7 +4,7 @@ import type { Infer } from "@metamask/superstruct";
4
4
  */
5
5
  export declare const CreateAccountPrivateKeyOptionsStruct: import("@metamask/superstruct").Struct<{
6
6
  type: "private-key:import";
7
- encoding: "hexadecimal" | "base58";
7
+ encoding: "hexadecimal" | "base58" | "base32";
8
8
  privateKey: string;
9
9
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
10
10
  }, {
@@ -19,9 +19,10 @@ export declare const CreateAccountPrivateKeyOptionsStruct: import("@metamask/sup
19
19
  /**
20
20
  * The encoding of the private key.
21
21
  */
22
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
22
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
23
23
  hexadecimal: "hexadecimal";
24
24
  base58: "base58";
25
+ base32: "base32";
25
26
  }>;
26
27
  /**
27
28
  * The account type of the imported account.
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;IAC/C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;IAEH;;OAEG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
1
+ {"version":3,"file":"private-key.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;IAC/C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;IAEH;;OAEG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
@@ -4,7 +4,7 @@ import type { Infer } from "@metamask/superstruct";
4
4
  */
5
5
  export declare const CreateAccountPrivateKeyOptionsStruct: import("@metamask/superstruct").Struct<{
6
6
  type: "private-key:import";
7
- encoding: "hexadecimal" | "base58";
7
+ encoding: "hexadecimal" | "base58" | "base32";
8
8
  privateKey: string;
9
9
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
10
10
  }, {
@@ -19,9 +19,10 @@ export declare const CreateAccountPrivateKeyOptionsStruct: import("@metamask/sup
19
19
  /**
20
20
  * The encoding of the private key.
21
21
  */
22
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
22
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
23
23
  hexadecimal: "hexadecimal";
24
24
  base58: "base58";
25
+ base32: "base32";
25
26
  }>;
26
27
  /**
27
28
  * The account type of the imported account.
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.d.mts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;IAC/C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;IAEH;;OAEG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
1
+ {"version":3,"file":"private-key.d.mts","sourceRoot":"","sources":["../../../../src/v2/api/create-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;IAC/C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;IAEH;;OAEG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
@@ -14,12 +14,13 @@ export declare enum AccountExportType {
14
14
  */
15
15
  export declare const ExportAccountOptionsStruct: import("@metamask/superstruct").Struct<{
16
16
  type: "private-key";
17
- encoding: "hexadecimal" | "base58";
17
+ encoding: "hexadecimal" | "base58" | "base32";
18
18
  }, {
19
19
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
20
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
20
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
21
21
  hexadecimal: "hexadecimal";
22
22
  base58: "base58";
23
+ base32: "base32";
23
24
  }>;
24
25
  }>;
25
26
  /**
@@ -31,14 +32,15 @@ export type ExportAccountOptions = Infer<typeof ExportAccountOptionsStruct>;
31
32
  */
32
33
  export declare const ExportedAccountStruct: import("@metamask/superstruct").Struct<{
33
34
  type: "private-key";
34
- encoding: "hexadecimal" | "base58";
35
+ encoding: "hexadecimal" | "base58" | "base32";
35
36
  privateKey: string;
36
37
  }, {
37
38
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
38
39
  privateKey: import("@metamask/superstruct").Struct<string, null>;
39
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
40
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
40
41
  hexadecimal: "hexadecimal";
41
42
  base58: "base58";
43
+ base32: "base32";
42
44
  }>;
43
45
  }>;
44
46
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAOnD,kCAA8B;AAE9B;;GAEG;AACH,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,UAAU,gBAAgB;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;EAAuC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;EAAkC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAOnD,kCAA8B;AAE9B;;GAEG;AACH,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,UAAU,gBAAgB;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;EAAuC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAAkC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -14,12 +14,13 @@ export declare enum AccountExportType {
14
14
  */
15
15
  export declare const ExportAccountOptionsStruct: import("@metamask/superstruct").Struct<{
16
16
  type: "private-key";
17
- encoding: "hexadecimal" | "base58";
17
+ encoding: "hexadecimal" | "base58" | "base32";
18
18
  }, {
19
19
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
20
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
20
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
21
21
  hexadecimal: "hexadecimal";
22
22
  base58: "base58";
23
+ base32: "base32";
23
24
  }>;
24
25
  }>;
25
26
  /**
@@ -31,14 +32,15 @@ export type ExportAccountOptions = Infer<typeof ExportAccountOptionsStruct>;
31
32
  */
32
33
  export declare const ExportedAccountStruct: import("@metamask/superstruct").Struct<{
33
34
  type: "private-key";
34
- encoding: "hexadecimal" | "base58";
35
+ encoding: "hexadecimal" | "base58" | "base32";
35
36
  privateKey: string;
36
37
  }, {
37
38
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
38
39
  privateKey: import("@metamask/superstruct").Struct<string, null>;
39
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
40
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
40
41
  hexadecimal: "hexadecimal";
41
42
  base58: "base58";
43
+ base32: "base32";
42
44
  }>;
43
45
  }>;
44
46
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAOnD,kCAA8B;AAE9B;;GAEG;AACH,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,UAAU,gBAAgB;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;EAAuC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;EAAkC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAOnD,kCAA8B;AAE9B;;GAEG;AACH,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,UAAU,gBAAgB;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;EAAuC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAAkC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -4,7 +4,7 @@ import type { Infer } from "@metamask/superstruct";
4
4
  */
5
5
  export declare const PrivateKeyExportedAccountStruct: import("@metamask/superstruct").Struct<{
6
6
  type: "private-key";
7
- encoding: "hexadecimal" | "base58";
7
+ encoding: "hexadecimal" | "base58" | "base32";
8
8
  privateKey: string;
9
9
  }, {
10
10
  /**
@@ -18,9 +18,10 @@ export declare const PrivateKeyExportedAccountStruct: import("@metamask/superstr
18
18
  /**
19
19
  * The encoding of the exported private key.
20
20
  */
21
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
21
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
22
22
  hexadecimal: "hexadecimal";
23
23
  base58: "base58";
24
+ base32: "base32";
24
25
  }>;
25
26
  }>;
26
27
  /**
@@ -32,7 +33,7 @@ export type PrivateKeyExportedAccount = Infer<typeof PrivateKeyExportedAccountSt
32
33
  */
33
34
  export declare const ExportAccountPrivateKeyOptionsStruct: import("@metamask/superstruct").Struct<{
34
35
  type: "private-key";
35
- encoding: "hexadecimal" | "base58";
36
+ encoding: "hexadecimal" | "base58" | "base32";
36
37
  }, {
37
38
  /**
38
39
  * The type of the account export.
@@ -41,9 +42,10 @@ export declare const ExportAccountPrivateKeyOptionsStruct: import("@metamask/sup
41
42
  /**
42
43
  * The encoding of the exported private key.
43
44
  */
44
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
45
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
45
46
  hexadecimal: "hexadecimal";
46
47
  base58: "base58";
48
+ base32: "base32";
47
49
  }>;
48
50
  }>;
49
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;IAC1C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAC3C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;IAC/C;;OAEG;;IAEH;;OAEG;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
1
+ {"version":3,"file":"private-key.d.cts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;IAC1C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAC3C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;IAC/C;;OAEG;;IAEH;;OAEG;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
@@ -4,7 +4,7 @@ import type { Infer } from "@metamask/superstruct";
4
4
  */
5
5
  export declare const PrivateKeyExportedAccountStruct: import("@metamask/superstruct").Struct<{
6
6
  type: "private-key";
7
- encoding: "hexadecimal" | "base58";
7
+ encoding: "hexadecimal" | "base58" | "base32";
8
8
  privateKey: string;
9
9
  }, {
10
10
  /**
@@ -18,9 +18,10 @@ export declare const PrivateKeyExportedAccountStruct: import("@metamask/superstr
18
18
  /**
19
19
  * The encoding of the exported private key.
20
20
  */
21
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
21
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
22
22
  hexadecimal: "hexadecimal";
23
23
  base58: "base58";
24
+ base32: "base32";
24
25
  }>;
25
26
  }>;
26
27
  /**
@@ -32,7 +33,7 @@ export type PrivateKeyExportedAccount = Infer<typeof PrivateKeyExportedAccountSt
32
33
  */
33
34
  export declare const ExportAccountPrivateKeyOptionsStruct: import("@metamask/superstruct").Struct<{
34
35
  type: "private-key";
35
- encoding: "hexadecimal" | "base58";
36
+ encoding: "hexadecimal" | "base58" | "base32";
36
37
  }, {
37
38
  /**
38
39
  * The type of the account export.
@@ -41,9 +42,10 @@ export declare const ExportAccountPrivateKeyOptionsStruct: import("@metamask/sup
41
42
  /**
42
43
  * The encoding of the exported private key.
43
44
  */
44
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
45
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
45
46
  hexadecimal: "hexadecimal";
46
47
  base58: "base58";
48
+ base32: "base32";
47
49
  }>;
48
50
  }>;
49
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.d.mts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;IAC1C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAC3C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;IAC/C;;OAEG;;IAEH;;OAEG;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
1
+ {"version":3,"file":"private-key.d.mts","sourceRoot":"","sources":["../../../../src/v2/api/export-account/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;IAC1C;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAC3C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;IAC/C;;OAEG;;IAEH;;OAEG;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAChD,OAAO,oCAAoC,CAC5C,CAAC"}
@@ -15,11 +15,11 @@ export declare const KeyringCapabilitiesStruct: import("@metamask/superstruct").
15
15
  };
16
16
  privateKey?: {
17
17
  importFormats?: {
18
- encoding: "hexadecimal" | "base58";
18
+ encoding: "hexadecimal" | "base58" | "base32";
19
19
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
20
20
  }[];
21
21
  exportFormats?: {
22
- encoding: "hexadecimal" | "base58";
22
+ encoding: "hexadecimal" | "base58" | "base32";
23
23
  }[];
24
24
  };
25
25
  snap?: {
@@ -67,26 +67,27 @@ export declare const KeyringCapabilitiesStruct: import("@metamask/superstruct").
67
67
  */
68
68
  privateKey: import("@metamask/superstruct").ExactOptionalStruct<{
69
69
  importFormats?: {
70
- encoding: "hexadecimal" | "base58";
70
+ encoding: "hexadecimal" | "base58" | "base32";
71
71
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
72
72
  }[];
73
73
  exportFormats?: {
74
- encoding: "hexadecimal" | "base58";
74
+ encoding: "hexadecimal" | "base58" | "base32";
75
75
  }[];
76
76
  }, {
77
77
  /**
78
78
  * List of supported formats for importing private keys.
79
79
  */
80
80
  importFormats: import("@metamask/superstruct").ExactOptionalStruct<{
81
- encoding: "hexadecimal" | "base58";
81
+ encoding: "hexadecimal" | "base58" | "base32";
82
82
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
83
83
  }[], import("@metamask/superstruct").Struct<{
84
- encoding: "hexadecimal" | "base58";
84
+ encoding: "hexadecimal" | "base58" | "base32";
85
85
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
86
86
  }, {
87
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
87
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
88
88
  hexadecimal: "hexadecimal";
89
89
  base58: "base58";
90
+ base32: "base32";
90
91
  }>;
91
92
  type: import("@metamask/superstruct").ExactOptionalStruct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account", {
92
93
  "eip155:eoa": "eip155:eoa";
@@ -105,13 +106,14 @@ export declare const KeyringCapabilitiesStruct: import("@metamask/superstruct").
105
106
  * List of supported formats for exporting private keys.
106
107
  */
107
108
  exportFormats: import("@metamask/superstruct").ExactOptionalStruct<{
108
- encoding: "hexadecimal" | "base58";
109
+ encoding: "hexadecimal" | "base58" | "base32";
109
110
  }[], import("@metamask/superstruct").Struct<{
110
- encoding: "hexadecimal" | "base58";
111
+ encoding: "hexadecimal" | "base58" | "base32";
111
112
  }, {
112
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
113
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
113
114
  hexadecimal: "hexadecimal";
114
115
  base58: "base58";
116
+ base32: "base32";
115
117
  }>;
116
118
  }>>;
117
119
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-capabilities.d.cts","sourceRoot":"","sources":["../../../src/v2/api/keyring-capabilities.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAQnD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACpC;;OAEG;;IAEH;;OAEG;;;;;;;QAGC;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;IAIP;;OAEG;;;;;;;;;;QAGC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;QAEH;;WAEG;;;;;;;;;;;;IAIP;;;;;;OAMG;;;;;;IAQH;;;;OAIG;;;;;;;;;;QAGC;;WAEG;;;;;YAGC;;;eAGG;;YAEH;;;eAGG;;;QAIP;;;WAGG;;QAEH;;;WAGG;;QAEH;;;WAGG;;;EAIP,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"keyring-capabilities.d.cts","sourceRoot":"","sources":["../../../src/v2/api/keyring-capabilities.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAQnD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACpC;;OAEG;;IAEH;;OAEG;;;;;;;QAGC;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;IAIP;;OAEG;;;;;;;;;;QAGC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;QAEH;;WAEG;;;;;;;;;;;;;IAIP;;;;;;OAMG;;;;;;IAQH;;;;OAIG;;;;;;;;;;QAGC;;WAEG;;;;;YAGC;;;eAGG;;YAEH;;;eAGG;;;QAIP;;;WAGG;;QAEH;;;WAGG;;QAEH;;;WAGG;;;EAIP,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -15,11 +15,11 @@ export declare const KeyringCapabilitiesStruct: import("@metamask/superstruct").
15
15
  };
16
16
  privateKey?: {
17
17
  importFormats?: {
18
- encoding: "hexadecimal" | "base58";
18
+ encoding: "hexadecimal" | "base58" | "base32";
19
19
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
20
20
  }[];
21
21
  exportFormats?: {
22
- encoding: "hexadecimal" | "base58";
22
+ encoding: "hexadecimal" | "base58" | "base32";
23
23
  }[];
24
24
  };
25
25
  snap?: {
@@ -67,26 +67,27 @@ export declare const KeyringCapabilitiesStruct: import("@metamask/superstruct").
67
67
  */
68
68
  privateKey: import("@metamask/superstruct").ExactOptionalStruct<{
69
69
  importFormats?: {
70
- encoding: "hexadecimal" | "base58";
70
+ encoding: "hexadecimal" | "base58" | "base32";
71
71
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
72
72
  }[];
73
73
  exportFormats?: {
74
- encoding: "hexadecimal" | "base58";
74
+ encoding: "hexadecimal" | "base58" | "base32";
75
75
  }[];
76
76
  }, {
77
77
  /**
78
78
  * List of supported formats for importing private keys.
79
79
  */
80
80
  importFormats: import("@metamask/superstruct").ExactOptionalStruct<{
81
- encoding: "hexadecimal" | "base58";
81
+ encoding: "hexadecimal" | "base58" | "base32";
82
82
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
83
83
  }[], import("@metamask/superstruct").Struct<{
84
- encoding: "hexadecimal" | "base58";
84
+ encoding: "hexadecimal" | "base58" | "base32";
85
85
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
86
86
  }, {
87
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
87
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
88
88
  hexadecimal: "hexadecimal";
89
89
  base58: "base58";
90
+ base32: "base32";
90
91
  }>;
91
92
  type: import("@metamask/superstruct").ExactOptionalStruct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account", {
92
93
  "eip155:eoa": "eip155:eoa";
@@ -105,13 +106,14 @@ export declare const KeyringCapabilitiesStruct: import("@metamask/superstruct").
105
106
  * List of supported formats for exporting private keys.
106
107
  */
107
108
  exportFormats: import("@metamask/superstruct").ExactOptionalStruct<{
108
- encoding: "hexadecimal" | "base58";
109
+ encoding: "hexadecimal" | "base58" | "base32";
109
110
  }[], import("@metamask/superstruct").Struct<{
110
- encoding: "hexadecimal" | "base58";
111
+ encoding: "hexadecimal" | "base58" | "base32";
111
112
  }, {
112
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
113
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
113
114
  hexadecimal: "hexadecimal";
114
115
  base58: "base58";
116
+ base32: "base32";
115
117
  }>;
116
118
  }>>;
117
119
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-capabilities.d.mts","sourceRoot":"","sources":["../../../src/v2/api/keyring-capabilities.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAQnD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACpC;;OAEG;;IAEH;;OAEG;;;;;;;QAGC;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;IAIP;;OAEG;;;;;;;;;;QAGC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;QAEH;;WAEG;;;;;;;;;;;;IAIP;;;;;;OAMG;;;;;;IAQH;;;;OAIG;;;;;;;;;;QAGC;;WAEG;;;;;YAGC;;;eAGG;;YAEH;;;eAGG;;;QAIP;;;WAGG;;QAEH;;;WAGG;;QAEH;;;WAGG;;;EAIP,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"keyring-capabilities.d.mts","sourceRoot":"","sources":["../../../src/v2/api/keyring-capabilities.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAQnD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACpC;;OAEG;;IAEH;;OAEG;;;;;;;QAGC;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;IAIP;;OAEG;;;;;;;;;;QAGC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;QAEH;;WAEG;;;;;;;;;;;;;IAIP;;;;;;OAMG;;;;;;IAQH;;;;OAIG;;;;;;;;;;QAGC;;WAEG;;;;;YAGC;;;eAGG;;YAEH;;;eAGG;;;QAIP;;;WAGG;;QAEH;;;WAGG;;QAEH;;;WAGG;;;EAIP,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -210,7 +210,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
210
210
  type: "custom";
211
211
  } | {
212
212
  type: "private-key:import";
213
- encoding: "hexadecimal" | "base58";
213
+ encoding: "hexadecimal" | "base58" | "base32";
214
214
  privateKey: string;
215
215
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
216
216
  };
@@ -239,7 +239,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
239
239
  type: "custom";
240
240
  } | {
241
241
  type: "private-key:import";
242
- encoding: "hexadecimal" | "base58";
242
+ encoding: "hexadecimal" | "base58" | "base32";
243
243
  privateKey: string;
244
244
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
245
245
  }, null>;
@@ -345,7 +345,7 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
345
345
  id: string;
346
346
  options?: {
347
347
  type: "private-key";
348
- encoding: "hexadecimal" | "base58";
348
+ encoding: "hexadecimal" | "base58" | "base32";
349
349
  };
350
350
  };
351
351
  }, {
@@ -354,18 +354,19 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
354
354
  id: string;
355
355
  options?: {
356
356
  type: "private-key";
357
- encoding: "hexadecimal" | "base58";
357
+ encoding: "hexadecimal" | "base58" | "base32";
358
358
  };
359
359
  }, {
360
360
  id: import("@metamask/superstruct").Struct<string, null>;
361
361
  options: import("@metamask/superstruct").ExactOptionalStruct<{
362
362
  type: "private-key";
363
- encoding: "hexadecimal" | "base58";
363
+ encoding: "hexadecimal" | "base58" | "base32";
364
364
  }, {
365
365
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
366
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
366
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
367
367
  hexadecimal: "hexadecimal";
368
368
  base58: "base58";
369
+ base32: "base32";
369
370
  }>;
370
371
  }>;
371
372
  }>;
@@ -375,14 +376,15 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
375
376
  export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
376
377
  export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<{
377
378
  type: "private-key";
378
- encoding: "hexadecimal" | "base58";
379
+ encoding: "hexadecimal" | "base58" | "base32";
379
380
  privateKey: string;
380
381
  }, {
381
382
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
382
383
  privateKey: import("@metamask/superstruct").Struct<string, null>;
383
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
384
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
384
385
  hexadecimal: "hexadecimal";
385
386
  base58: "base58";
387
+ base32: "base32";
386
388
  }>;
387
389
  }>;
388
390
  export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-rpc.d.cts","sourceRoot":"","sources":["../../../src/v2/api/keyring-rpc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,K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,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAAkC,CAAC;AAE3E,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAK9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,iFAAa,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAI9E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,SAAS,SAAS,gBAAgB,IAAI,OAAO,CACzE,kBAAkB,EAClB;IAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAA;CAAE,CAC3B,CAAC"}
@@ -210,7 +210,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
210
210
  type: "custom";
211
211
  } | {
212
212
  type: "private-key:import";
213
- encoding: "hexadecimal" | "base58";
213
+ encoding: "hexadecimal" | "base58" | "base32";
214
214
  privateKey: string;
215
215
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
216
216
  };
@@ -239,7 +239,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
239
239
  type: "custom";
240
240
  } | {
241
241
  type: "private-key:import";
242
- encoding: "hexadecimal" | "base58";
242
+ encoding: "hexadecimal" | "base58" | "base32";
243
243
  privateKey: string;
244
244
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
245
245
  }, null>;
@@ -345,7 +345,7 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
345
345
  id: string;
346
346
  options?: {
347
347
  type: "private-key";
348
- encoding: "hexadecimal" | "base58";
348
+ encoding: "hexadecimal" | "base58" | "base32";
349
349
  };
350
350
  };
351
351
  }, {
@@ -354,18 +354,19 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
354
354
  id: string;
355
355
  options?: {
356
356
  type: "private-key";
357
- encoding: "hexadecimal" | "base58";
357
+ encoding: "hexadecimal" | "base58" | "base32";
358
358
  };
359
359
  }, {
360
360
  id: import("@metamask/superstruct").Struct<string, null>;
361
361
  options: import("@metamask/superstruct").ExactOptionalStruct<{
362
362
  type: "private-key";
363
- encoding: "hexadecimal" | "base58";
363
+ encoding: "hexadecimal" | "base58" | "base32";
364
364
  }, {
365
365
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
366
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
366
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
367
367
  hexadecimal: "hexadecimal";
368
368
  base58: "base58";
369
+ base32: "base32";
369
370
  }>;
370
371
  }>;
371
372
  }>;
@@ -375,14 +376,15 @@ export declare const ExportAccountRequestStruct: import("@metamask/superstruct")
375
376
  export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
376
377
  export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<{
377
378
  type: "private-key";
378
- encoding: "hexadecimal" | "base58";
379
+ encoding: "hexadecimal" | "base58" | "base32";
379
380
  privateKey: string;
380
381
  }, {
381
382
  type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
382
383
  privateKey: import("@metamask/superstruct").Struct<string, null>;
383
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
384
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
384
385
  hexadecimal: "hexadecimal";
385
386
  base58: "base58";
387
+ base32: "base32";
386
388
  }>;
387
389
  }>;
388
390
  export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-rpc.d.mts","sourceRoot":"","sources":["../../../src/v2/api/keyring-rpc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAmBnD,OAAO,KAAK,EAAE,OAAO,EAAE,sBAAkB;AAEzC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACpC,cAAc,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1C,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACxC,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACxC,aAAa,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;CASnB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAYD,eAAO,MAAM,wBAAwB;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8B,CAAC;AA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AM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,oDAAgB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAK9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAAkC,CAAC;AAE3E,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAK9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,iFAAa,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAI9E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,SAAS,SAAS,gBAAgB,IAAI,OAAO,CACzE,kBAAkB,EAClB;IAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAA;CAAE,CAC3B,CAAC"}
@@ -16,6 +16,10 @@ var PrivateKeyEncoding;
16
16
  * Base58 encoding format.
17
17
  */
18
18
  PrivateKeyEncoding["Base58"] = "base58";
19
+ /**
20
+ * Base32 encoding format.
21
+ */
22
+ PrivateKeyEncoding["Base32"] = "base32";
19
23
  })(PrivateKeyEncoding || (exports.PrivateKeyEncoding = PrivateKeyEncoding = {}));
20
24
  /**
21
25
  * Struct for {@link PrivateKeyEncoding}.
@@ -23,6 +27,7 @@ var PrivateKeyEncoding;
23
27
  exports.PrivateKeyEncodingStruct = (0, superstruct_1.enums)([
24
28
  `${PrivateKeyEncoding.Hexadecimal}`,
25
29
  `${PrivateKeyEncoding.Base58}`,
30
+ `${PrivateKeyEncoding.Base32}`,
26
31
  ]);
27
32
  /**
28
33
  * Struct for {@link ImportPrivateKeyFormat}.
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.cjs","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":";;;AAAA,uDAAqE;AAGrE,mDAA6D;AAE7D;;GAEG;AACH,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,iDAA2B,CAAA;IAE3B;;OAEG;IACH,uCAAiB,CAAA;AACnB,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B;AAED;;GAEG;AACU,QAAA,wBAAwB,GAAG,IAAA,mBAAK,EAAC;IAC5C,GAAG,kBAAkB,CAAC,WAAW,EAAE;IACnC,GAAG,kBAAkB,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,gCAAwB;IAElC;;;;;;OAMG;IACH,IAAI,EAAE,IAAA,2BAAa,EAAC,kCAAwB,CAAC;CAC9C,CAAC,CAAC;AAOH;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,gCAAwB;CACnC,CAAC,CAAC","sourcesContent":["import { enums, exactOptional, object } from '@metamask/superstruct';\nimport type { Infer } from '@metamask/superstruct';\n\nimport { KeyringAccountTypeStruct } from '../../api/account';\n\n/**\n * Supported encoding formats for private keys.\n */\nexport enum PrivateKeyEncoding {\n /**\n * Hexadecimal encoding format.\n */\n Hexadecimal = 'hexadecimal',\n\n /**\n * Base58 encoding format.\n */\n Base58 = 'base58',\n}\n\n/**\n * Struct for {@link PrivateKeyEncoding}.\n */\nexport const PrivateKeyEncodingStruct = enums([\n `${PrivateKeyEncoding.Hexadecimal}`,\n `${PrivateKeyEncoding.Base58}`,\n]);\n\n/**\n * Struct for {@link ImportPrivateKeyFormat}.\n */\nexport const ImportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n\n /**\n * Type of the account to be created.\n *\n * This field is necessary when there is ambiguity about the type of account\n * to be created from the private key. For example, in Bitcoin, a private key\n * can be used to create multiple types of accounts, such as P2WPKH, or P2TR.\n */\n type: exactOptional(KeyringAccountTypeStruct),\n});\n\n/**\n * Represents the format for importing a private key into a keyring.\n */\nexport type ImportPrivateKeyFormat = Infer<typeof ImportPrivateKeyFormatStruct>;\n\n/**\n * Struct for {@link ExportPrivateKeyFormat}.\n */\nexport const ExportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n});\n\n/**\n * Represents the format for exporting a private key from a keyring.\n */\nexport type ExportPrivateKeyFormat = Infer<typeof ExportPrivateKeyFormatStruct>;\n"]}
1
+ {"version":3,"file":"private-key.cjs","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":";;;AAAA,uDAAqE;AAGrE,mDAA6D;AAE7D;;GAEG;AACH,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,iDAA2B,CAAA;IAE3B;;OAEG;IACH,uCAAiB,CAAA;IAEjB;;OAEG;IACH,uCAAiB,CAAA;AACnB,CAAC,EAfW,kBAAkB,kCAAlB,kBAAkB,QAe7B;AAED;;GAEG;AACU,QAAA,wBAAwB,GAAG,IAAA,mBAAK,EAAC;IAC5C,GAAG,kBAAkB,CAAC,WAAW,EAAE;IACnC,GAAG,kBAAkB,CAAC,MAAM,EAAE;IAC9B,GAAG,kBAAkB,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,gCAAwB;IAElC;;;;;;OAMG;IACH,IAAI,EAAE,IAAA,2BAAa,EAAC,kCAAwB,CAAC;CAC9C,CAAC,CAAC;AAOH;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,gCAAwB;CACnC,CAAC,CAAC","sourcesContent":["import { enums, exactOptional, object } from '@metamask/superstruct';\nimport type { Infer } from '@metamask/superstruct';\n\nimport { KeyringAccountTypeStruct } from '../../api/account';\n\n/**\n * Supported encoding formats for private keys.\n */\nexport enum PrivateKeyEncoding {\n /**\n * Hexadecimal encoding format.\n */\n Hexadecimal = 'hexadecimal',\n\n /**\n * Base58 encoding format.\n */\n Base58 = 'base58',\n\n /**\n * Base32 encoding format.\n */\n Base32 = 'base32',\n}\n\n/**\n * Struct for {@link PrivateKeyEncoding}.\n */\nexport const PrivateKeyEncodingStruct = enums([\n `${PrivateKeyEncoding.Hexadecimal}`,\n `${PrivateKeyEncoding.Base58}`,\n `${PrivateKeyEncoding.Base32}`,\n]);\n\n/**\n * Struct for {@link ImportPrivateKeyFormat}.\n */\nexport const ImportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n\n /**\n * Type of the account to be created.\n *\n * This field is necessary when there is ambiguity about the type of account\n * to be created from the private key. For example, in Bitcoin, a private key\n * can be used to create multiple types of accounts, such as P2WPKH, or P2TR.\n */\n type: exactOptional(KeyringAccountTypeStruct),\n});\n\n/**\n * Represents the format for importing a private key into a keyring.\n */\nexport type ImportPrivateKeyFormat = Infer<typeof ImportPrivateKeyFormatStruct>;\n\n/**\n * Struct for {@link ExportPrivateKeyFormat}.\n */\nexport const ExportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n});\n\n/**\n * Represents the format for exporting a private key from a keyring.\n */\nexport type ExportPrivateKeyFormat = Infer<typeof ExportPrivateKeyFormatStruct>;\n"]}
@@ -10,28 +10,34 @@ export declare enum PrivateKeyEncoding {
10
10
  /**
11
11
  * Base58 encoding format.
12
12
  */
13
- Base58 = "base58"
13
+ Base58 = "base58",
14
+ /**
15
+ * Base32 encoding format.
16
+ */
17
+ Base32 = "base32"
14
18
  }
15
19
  /**
16
20
  * Struct for {@link PrivateKeyEncoding}.
17
21
  */
18
- export declare const PrivateKeyEncodingStruct: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
22
+ export declare const PrivateKeyEncodingStruct: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
19
23
  hexadecimal: "hexadecimal";
20
24
  base58: "base58";
25
+ base32: "base32";
21
26
  }>;
22
27
  /**
23
28
  * Struct for {@link ImportPrivateKeyFormat}.
24
29
  */
25
30
  export declare const ImportPrivateKeyFormatStruct: import("@metamask/superstruct").Struct<{
26
- encoding: "hexadecimal" | "base58";
31
+ encoding: "hexadecimal" | "base58" | "base32";
27
32
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
28
33
  }, {
29
34
  /**
30
35
  * Format used to encode the private key as a string.
31
36
  */
32
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
37
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
33
38
  hexadecimal: "hexadecimal";
34
39
  base58: "base58";
40
+ base32: "base32";
35
41
  }>;
36
42
  /**
37
43
  * Type of the account to be created.
@@ -61,14 +67,15 @@ export type ImportPrivateKeyFormat = Infer<typeof ImportPrivateKeyFormatStruct>;
61
67
  * Struct for {@link ExportPrivateKeyFormat}.
62
68
  */
63
69
  export declare const ExportPrivateKeyFormatStruct: import("@metamask/superstruct").Struct<{
64
- encoding: "hexadecimal" | "base58";
70
+ encoding: "hexadecimal" | "base58" | "base32";
65
71
  }, {
66
72
  /**
67
73
  * Format used to encode the private key as a string.
68
74
  */
69
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
75
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
70
76
  hexadecimal: "hexadecimal";
71
77
  base58: "base58";
78
+ base32: "base32";
72
79
  }>;
73
80
  }>;
74
81
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.d.cts","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;EAGnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;IACvC;;OAEG;;;;;IAGH;;;;;;OAMG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;IACvC;;OAEG;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"private-key.d.cts","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;EAInC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;IACvC;;OAEG;;;;;;IAGH;;;;;;OAMG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;IACvC;;OAEG;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -10,28 +10,34 @@ export declare enum PrivateKeyEncoding {
10
10
  /**
11
11
  * Base58 encoding format.
12
12
  */
13
- Base58 = "base58"
13
+ Base58 = "base58",
14
+ /**
15
+ * Base32 encoding format.
16
+ */
17
+ Base32 = "base32"
14
18
  }
15
19
  /**
16
20
  * Struct for {@link PrivateKeyEncoding}.
17
21
  */
18
- export declare const PrivateKeyEncodingStruct: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
22
+ export declare const PrivateKeyEncodingStruct: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
19
23
  hexadecimal: "hexadecimal";
20
24
  base58: "base58";
25
+ base32: "base32";
21
26
  }>;
22
27
  /**
23
28
  * Struct for {@link ImportPrivateKeyFormat}.
24
29
  */
25
30
  export declare const ImportPrivateKeyFormatStruct: import("@metamask/superstruct").Struct<{
26
- encoding: "hexadecimal" | "base58";
31
+ encoding: "hexadecimal" | "base58" | "base32";
27
32
  type?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
28
33
  }, {
29
34
  /**
30
35
  * Format used to encode the private key as a string.
31
36
  */
32
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
37
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
33
38
  hexadecimal: "hexadecimal";
34
39
  base58: "base58";
40
+ base32: "base32";
35
41
  }>;
36
42
  /**
37
43
  * Type of the account to be created.
@@ -61,14 +67,15 @@ export type ImportPrivateKeyFormat = Infer<typeof ImportPrivateKeyFormatStruct>;
61
67
  * Struct for {@link ExportPrivateKeyFormat}.
62
68
  */
63
69
  export declare const ExportPrivateKeyFormatStruct: import("@metamask/superstruct").Struct<{
64
- encoding: "hexadecimal" | "base58";
70
+ encoding: "hexadecimal" | "base58" | "base32";
65
71
  }, {
66
72
  /**
67
73
  * Format used to encode the private key as a string.
68
74
  */
69
- encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
75
+ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58" | "base32", {
70
76
  hexadecimal: "hexadecimal";
71
77
  base58: "base58";
78
+ base32: "base32";
72
79
  }>;
73
80
  }>;
74
81
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.d.mts","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;EAGnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;IACvC;;OAEG;;;;;IAGH;;;;;;OAMG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;IACvC;;OAEG;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"private-key.d.mts","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD;;GAEG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;EAInC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;IACvC;;OAEG;;;;;;IAGH;;;;;;OAMG;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;IACvC;;OAEG;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -13,6 +13,10 @@ export var PrivateKeyEncoding;
13
13
  * Base58 encoding format.
14
14
  */
15
15
  PrivateKeyEncoding["Base58"] = "base58";
16
+ /**
17
+ * Base32 encoding format.
18
+ */
19
+ PrivateKeyEncoding["Base32"] = "base32";
16
20
  })(PrivateKeyEncoding || (PrivateKeyEncoding = {}));
17
21
  /**
18
22
  * Struct for {@link PrivateKeyEncoding}.
@@ -20,6 +24,7 @@ export var PrivateKeyEncoding;
20
24
  export const PrivateKeyEncodingStruct = enums([
21
25
  `${PrivateKeyEncoding.Hexadecimal}`,
22
26
  `${PrivateKeyEncoding.Base58}`,
27
+ `${PrivateKeyEncoding.Base32}`,
23
28
  ]);
24
29
  /**
25
30
  * Struct for {@link ImportPrivateKeyFormat}.
@@ -1 +1 @@
1
- {"version":3,"file":"private-key.mjs","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,8BAA8B;AAGrE,OAAO,EAAE,wBAAwB,EAAE,8BAA0B;AAE7D;;GAEG;AACH,MAAM,CAAN,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,iDAA2B,CAAA;IAE3B;;OAEG;IACH,uCAAiB,CAAA;AACnB,CAAC,EAVW,kBAAkB,KAAlB,kBAAkB,QAU7B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;IAC5C,GAAG,kBAAkB,CAAC,WAAW,EAAE;IACnC,GAAG,kBAAkB,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,wBAAwB;IAElC;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,CAAC,wBAAwB,CAAC;CAC9C,CAAC,CAAC;AAOH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,wBAAwB;CACnC,CAAC,CAAC","sourcesContent":["import { enums, exactOptional, object } from '@metamask/superstruct';\nimport type { Infer } from '@metamask/superstruct';\n\nimport { KeyringAccountTypeStruct } from '../../api/account';\n\n/**\n * Supported encoding formats for private keys.\n */\nexport enum PrivateKeyEncoding {\n /**\n * Hexadecimal encoding format.\n */\n Hexadecimal = 'hexadecimal',\n\n /**\n * Base58 encoding format.\n */\n Base58 = 'base58',\n}\n\n/**\n * Struct for {@link PrivateKeyEncoding}.\n */\nexport const PrivateKeyEncodingStruct = enums([\n `${PrivateKeyEncoding.Hexadecimal}`,\n `${PrivateKeyEncoding.Base58}`,\n]);\n\n/**\n * Struct for {@link ImportPrivateKeyFormat}.\n */\nexport const ImportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n\n /**\n * Type of the account to be created.\n *\n * This field is necessary when there is ambiguity about the type of account\n * to be created from the private key. For example, in Bitcoin, a private key\n * can be used to create multiple types of accounts, such as P2WPKH, or P2TR.\n */\n type: exactOptional(KeyringAccountTypeStruct),\n});\n\n/**\n * Represents the format for importing a private key into a keyring.\n */\nexport type ImportPrivateKeyFormat = Infer<typeof ImportPrivateKeyFormatStruct>;\n\n/**\n * Struct for {@link ExportPrivateKeyFormat}.\n */\nexport const ExportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n});\n\n/**\n * Represents the format for exporting a private key from a keyring.\n */\nexport type ExportPrivateKeyFormat = Infer<typeof ExportPrivateKeyFormatStruct>;\n"]}
1
+ {"version":3,"file":"private-key.mjs","sourceRoot":"","sources":["../../../src/v2/api/private-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,8BAA8B;AAGrE,OAAO,EAAE,wBAAwB,EAAE,8BAA0B;AAE7D;;GAEG;AACH,MAAM,CAAN,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,iDAA2B,CAAA;IAE3B;;OAEG;IACH,uCAAiB,CAAA;IAEjB;;OAEG;IACH,uCAAiB,CAAA;AACnB,CAAC,EAfW,kBAAkB,KAAlB,kBAAkB,QAe7B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;IAC5C,GAAG,kBAAkB,CAAC,WAAW,EAAE;IACnC,GAAG,kBAAkB,CAAC,MAAM,EAAE;IAC9B,GAAG,kBAAkB,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,wBAAwB;IAElC;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,CAAC,wBAAwB,CAAC;CAC9C,CAAC,CAAC;AAOH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,wBAAwB;CACnC,CAAC,CAAC","sourcesContent":["import { enums, exactOptional, object } from '@metamask/superstruct';\nimport type { Infer } from '@metamask/superstruct';\n\nimport { KeyringAccountTypeStruct } from '../../api/account';\n\n/**\n * Supported encoding formats for private keys.\n */\nexport enum PrivateKeyEncoding {\n /**\n * Hexadecimal encoding format.\n */\n Hexadecimal = 'hexadecimal',\n\n /**\n * Base58 encoding format.\n */\n Base58 = 'base58',\n\n /**\n * Base32 encoding format.\n */\n Base32 = 'base32',\n}\n\n/**\n * Struct for {@link PrivateKeyEncoding}.\n */\nexport const PrivateKeyEncodingStruct = enums([\n `${PrivateKeyEncoding.Hexadecimal}`,\n `${PrivateKeyEncoding.Base58}`,\n `${PrivateKeyEncoding.Base32}`,\n]);\n\n/**\n * Struct for {@link ImportPrivateKeyFormat}.\n */\nexport const ImportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n\n /**\n * Type of the account to be created.\n *\n * This field is necessary when there is ambiguity about the type of account\n * to be created from the private key. For example, in Bitcoin, a private key\n * can be used to create multiple types of accounts, such as P2WPKH, or P2TR.\n */\n type: exactOptional(KeyringAccountTypeStruct),\n});\n\n/**\n * Represents the format for importing a private key into a keyring.\n */\nexport type ImportPrivateKeyFormat = Infer<typeof ImportPrivateKeyFormatStruct>;\n\n/**\n * Struct for {@link ExportPrivateKeyFormat}.\n */\nexport const ExportPrivateKeyFormatStruct = object({\n /**\n * Format used to encode the private key as a string.\n */\n encoding: PrivateKeyEncodingStruct,\n});\n\n/**\n * Represents the format for exporting a private key from a keyring.\n */\nexport type ExportPrivateKeyFormat = Infer<typeof ExportPrivateKeyFormatStruct>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-api",
3
- "version": "23.4.0-5951828",
3
+ "version": "23.5.0-1fa477f",
4
4
  "description": "MetaMask Keyring API",
5
5
  "keywords": [
6
6
  "keyring",