@local-wallet-standard/node 0.2.16 → 0.2.17

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 +8 -2
  2. package/package.json +5 -5
package/index.d.ts CHANGED
@@ -33,8 +33,14 @@ export declare function deriveAddress(mnemonic: string, chain: string, index?: n
33
33
  export declare function createWallet(name: string, passphrase?: string | undefined | null, words?: number | undefined | null, vaultPathOpt?: string | undefined | null): WalletInfo
34
34
  /** Import a wallet from a mnemonic phrase (derives addresses for all chains). */
35
35
  export declare function importWalletMnemonic(name: string, mnemonic: string, passphrase?: string | undefined | null, index?: number | undefined | null, vaultPathOpt?: string | undefined | null): WalletInfo
36
- /** Import a wallet from a hex-encoded private key (derives addresses for all chains). */
37
- export declare function importWalletPrivateKey(name: string, privateKeyHex: string, passphrase?: string | undefined | null, vaultPathOpt?: string | undefined | null): WalletInfo
36
+ /**
37
+ * Import a wallet from a hex-encoded private key.
38
+ * All 6 chains are supported: the provided key is used for its curve's chains,
39
+ * and a random key is generated for the other curve.
40
+ * The optional `chain` parameter specifies the key's source chain (e.g. "evm", "solana")
41
+ * to determine which curve it uses. Defaults to "evm" (secp256k1).
42
+ */
43
+ export declare function importWalletPrivateKey(name: string, privateKeyHex: string, passphrase?: string | undefined | null, vaultPathOpt?: string | undefined | null, chain?: string | undefined | null): WalletInfo
38
44
  /** List all wallets in the vault. */
39
45
  export declare function listWallets(vaultPathOpt?: string | undefined | null): Array<WalletInfo>
40
46
  /** 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.16",
3
+ "version": "0.2.17",
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.16",
32
- "@local-wallet-standard/node-linux-arm64-gnu": "0.2.16",
33
- "@local-wallet-standard/node-darwin-x64": "0.2.16",
34
- "@local-wallet-standard/node-darwin-arm64": "0.2.16"
31
+ "@local-wallet-standard/node-linux-x64-gnu": "0.2.17",
32
+ "@local-wallet-standard/node-linux-arm64-gnu": "0.2.17",
33
+ "@local-wallet-standard/node-darwin-x64": "0.2.17",
34
+ "@local-wallet-standard/node-darwin-arm64": "0.2.17"
35
35
  },
36
36
  "license": "MIT",
37
37
  "files": [