The IWallet interface represents a generated wallet containing both classical and quantum key material. It provides the P2WPKH address, classical private and public keys, and ML-DSA quantum private and public keys. All keys are returned in portable formats (WIF or hex) suitable for storage and later restoration.
IWallet
Overview
The full source code is available on GitHub at IWallet.ts.
Import
import { IWallet } from '@btc-vision/transaction';Interfaces
Signature
interface IWallet {
readonly address: string;
readonly privateKey: string;
readonly publicKey: string;
readonly quantumPrivateKey: string;
readonly quantumPublicKey: string;
}Description
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | string | - | The classical Bitcoin address of the wallet (P2WPKH). |
| privateKey | string | - | The classical private key of the wallet (WIF format or hex). |
| publicKey | string | - | The classical public key of the wallet (hex). |
| quantumPrivateKey | string | - | The quantum ML-DSA private key (hex). |
| quantumPublicKey | string | - | The quantum ML-DSA public key (hex). |