@btc-vision/wallet-sdk 2.0.5 → 2.0.7
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +14 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ export declare class HdKeyring {
|
|
|
177
177
|
private readonly securityLevel;
|
|
178
178
|
private readonly passphrase;
|
|
179
179
|
private addressType;
|
|
180
|
-
private
|
|
180
|
+
private _hdPath;
|
|
181
181
|
constructor(options?: HdKeyringOptions);
|
|
182
182
|
/**
|
|
183
183
|
* Get the HD derivation path
|
|
@@ -204,6 +204,10 @@ export declare class HdKeyring {
|
|
|
204
204
|
* Uses custom hdPath if set, otherwise uses Unisat-compatible derivation.
|
|
205
205
|
*/
|
|
206
206
|
deriveWallet(index: number): Wallet;
|
|
207
|
+
/**
|
|
208
|
+
* Check if the current hdPath is a custom (non-standard) path
|
|
209
|
+
*/
|
|
210
|
+
private isCustomHdPath;
|
|
207
211
|
/**
|
|
208
212
|
* Derive a wallet using standard (non-Unisat) derivation
|
|
209
213
|
*/
|
|
@@ -299,10 +303,6 @@ export declare class HdKeyring {
|
|
|
299
303
|
* Get ML-DSA keypair for quantum operations
|
|
300
304
|
*/
|
|
301
305
|
getMLDSAKeypair(publicKey: string): QuantumBIP32Interface;
|
|
302
|
-
/**
|
|
303
|
-
* Check if the current hdPath is a custom (non-standard) path
|
|
304
|
-
*/
|
|
305
|
-
private isCustomHdPath;
|
|
306
306
|
private findWalletByPublicKey;
|
|
307
307
|
private getAddressFromWallet;
|
|
308
308
|
}
|
|
@@ -670,7 +670,10 @@ export declare class SimpleKeyring {
|
|
|
670
670
|
*/
|
|
671
671
|
importPrivateKey(privateKey: string, quantumPrivateKey?: string): void;
|
|
672
672
|
/**
|
|
673
|
-
* Import an existing quantum private key
|
|
673
|
+
* Import an existing quantum private key.
|
|
674
|
+
* Supports both:
|
|
675
|
+
* - Key only (e.g., 2560 bytes for ML-DSA-44)
|
|
676
|
+
* - Key + chaincode (e.g., 2560 + 32 = 2592 bytes for ML-DSA-44)
|
|
674
677
|
*/
|
|
675
678
|
importQuantumKey(quantumPrivateKeyHex: string): void;
|
|
676
679
|
/**
|
|
@@ -699,8 +702,13 @@ export declare class SimpleKeyring {
|
|
|
699
702
|
getPublicKey(): string;
|
|
700
703
|
/**
|
|
701
704
|
* Get the quantum public key
|
|
705
|
+
* @throws Error if no quantum keypair is initialized
|
|
702
706
|
*/
|
|
703
707
|
getQuantumPublicKey(): string;
|
|
708
|
+
/**
|
|
709
|
+
* Get the quantum public key if available, or undefined if not initialized
|
|
710
|
+
*/
|
|
711
|
+
getQuantumPublicKeyOrUndefined(): string | undefined;
|
|
704
712
|
/**
|
|
705
713
|
* Get the quantum public key hash (universal identifier)
|
|
706
714
|
*/
|