@local-wallet-standard/node 0.2.19 → 0.2.21

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 (2) hide show
  1. package/index.d.ts +4 -1
  2. package/package.json +5 -5
package/index.d.ts CHANGED
@@ -39,8 +39,11 @@ export declare function importWalletMnemonic(name: string, mnemonic: string, pas
39
39
  * and a random key is generated for the other curve.
40
40
  * The optional `chain` parameter specifies the key's source chain (e.g. "evm", "solana")
41
41
  * to determine which curve it uses. Defaults to "evm" (secp256k1).
42
+ *
43
+ * Alternatively, provide explicit keys for each curve via `secp256k1Key` and `ed25519Key`.
44
+ * When both are given, `privateKeyHex` and `chain` are ignored.
42
45
  */
43
- export declare function importWalletPrivateKey(name: string, privateKeyHex: string, passphrase?: string | undefined | null, vaultPathOpt?: string | undefined | null, chain?: string | undefined | null): WalletInfo
46
+ export declare function importWalletPrivateKey(name: string, privateKeyHex: string, passphrase?: string | undefined | null, vaultPathOpt?: string | undefined | null, chain?: string | undefined | null, secp256K1Key?: string | undefined | null, ed25519Key?: string | undefined | null): WalletInfo
44
47
  /** List all wallets in the vault. */
45
48
  export declare function listWallets(vaultPathOpt?: string | undefined | null): Array<WalletInfo>
46
49
  /** Get a single wallet by name or ID. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@local-wallet-standard/node",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "Node.js native bindings for the Lightweight Wallet Signer",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,10 +28,10 @@
28
28
  "@napi-rs/cli": "^2.18.0"
29
29
  },
30
30
  "optionalDependencies": {
31
- "@local-wallet-standard/node-linux-x64-gnu": "0.2.19",
32
- "@local-wallet-standard/node-linux-arm64-gnu": "0.2.19",
33
- "@local-wallet-standard/node-darwin-x64": "0.2.19",
34
- "@local-wallet-standard/node-darwin-arm64": "0.2.19"
31
+ "@local-wallet-standard/node-linux-x64-gnu": "0.2.21",
32
+ "@local-wallet-standard/node-linux-arm64-gnu": "0.2.21",
33
+ "@local-wallet-standard/node-darwin-x64": "0.2.21",
34
+ "@local-wallet-standard/node-darwin-arm64": "0.2.21"
35
35
  },
36
36
  "license": "MIT",
37
37
  "files": [