@btc-vision/wallet-sdk 2.0.0 → 2.0.2

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 CHANGED
@@ -177,7 +177,12 @@ export declare class HdKeyring {
177
177
  private readonly securityLevel;
178
178
  private readonly passphrase;
179
179
  private addressType;
180
+ private readonly _hdPath;
180
181
  constructor(options?: HdKeyringOptions);
182
+ /**
183
+ * Get the HD derivation path
184
+ */
185
+ get hdPath(): string;
181
186
  /**
182
187
  * Generate a new mnemonic with quantum support
183
188
  */
@@ -195,7 +200,8 @@ export declare class HdKeyring {
195
200
  */
196
201
  hasMnemonic(): boolean;
197
202
  /**
198
- * Derive a wallet at a specific index using Unisat-compatible derivation
203
+ * Derive a wallet at a specific index.
204
+ * Uses custom hdPath if set, otherwise uses Unisat-compatible derivation.
199
205
  */
200
206
  deriveWallet(index: number): Wallet;
201
207
  /**
@@ -293,6 +299,10 @@ export declare class HdKeyring {
293
299
  * Get ML-DSA keypair for quantum operations
294
300
  */
295
301
  getMLDSAKeypair(publicKey: string): QuantumBIP32Interface;
302
+ /**
303
+ * Check if the current hdPath is a custom (non-standard) path
304
+ */
305
+ private isCustomHdPath;
296
306
  private findWalletByPublicKey;
297
307
  private getAddressFromWallet;
298
308
  }
@@ -307,6 +317,7 @@ export declare interface HdKeyringOptions {
307
317
  readonly securityLevel?: MLDSASecurityLevel | undefined;
308
318
  readonly activeIndexes?: readonly number[] | undefined;
309
319
  readonly addressType?: AddressTypes | undefined;
320
+ readonly hdPath?: string | undefined;
310
321
  }
311
322
 
312
323
  /**