/** * Type definitions for HD wallet cryptographic operations */ /** * Derived key result from HD derivation */ export interface DerivedKey { /** 32-byte private key (seed for Ed25519) */ privateKey: Uint8Array; /** 32-byte chain code for further derivation */ chainCode: Uint8Array; } /** * Full key pair with public key */ export interface KeyPair { /** 32-byte private key */ privateKey: Uint8Array; /** 32-byte public key */ publicKey: Uint8Array; } /** * Encryption key pair (X25519) */ export interface EncryptionKeyPair { /** 32-byte X25519 private key */ privateKey: Uint8Array; /** 32-byte X25519 public key */ publicKey: Uint8Array; } /** * Secp256k1 identity key pair (for libp2p PeerID) */ export interface IdentityKeyPair { /** 32-byte secp256k1 private key */ privateKey: Uint8Array; /** 33-byte compressed secp256k1 public key */ publicKey: Uint8Array; } /** * Derived SDN identity */ export interface DerivedIdentity { /** BIP-44 account index */ account: number; /** Secp256k1 identity key at m/44'/0'/account' (for libp2p PeerID) */ identityKey: IdentityKeyPair; /** PeerID string derived from secp256k1 identity public key */ peerId: string; /** BIP-32 xpub at m/44'/0'/account' */ xpub: string; /** Ed25519 signing key pair (for auth) */ signingKey: KeyPair; /** X25519 encryption key pair */ encryptionKey: EncryptionKeyPair; /** Derivation path for identity key */ identityKeyPath: string; /** Derivation path for signing key */ signingKeyPath: string; /** Derivation path for encryption key */ encryptionKeyPath: string; } /** * HD wallet initialization options */ export interface HDWalletOptions { /** Path to WASM file (optional, uses default paths if not provided) */ wasmPath?: string; } /** * Mnemonic generation options */ export interface MnemonicOptions { /** Number of words (12, 15, 18, 21, or 24). Default: 24 */ wordCount?: 12 | 15 | 18 | 21 | 24; /** Language for wordlist. Default: 'english' */ language?: 'english' | 'japanese' | 'korean' | 'spanish' | 'chinese_simplified' | 'chinese_traditional' | 'french' | 'italian' | 'czech' | 'portuguese'; } /** * Language codes for BIP-39 wordlists */ export declare const LanguageCode: { readonly english: 0; readonly japanese: 1; readonly korean: 2; readonly spanish: 3; readonly chinese_simplified: 4; readonly chinese_traditional: 5; readonly french: 6; readonly italian: 7; readonly czech: 8; readonly portuguese: 9; }; /** * SDN derivation constants */ export declare const SDNDerivation: { /** BIP-44 coin type (0 = Bitcoin, standard default) */ readonly COIN_TYPE: 0; /** Signing key purpose (change index 0) */ readonly SIGNING_PURPOSE: 0; /** Encryption key purpose (change index 1) */ readonly ENCRYPTION_PURPOSE: 1; /** Default BIP-44 purpose */ readonly BIP44_PURPOSE: 44; }; /** * Build SDN derivation path for identity key (secp256k1): m/44'/0'/account' */ export declare function buildIdentityPath(account: number): string; /** * Build SDN derivation path for signing key */ export declare function buildSigningPath(account: number): string; /** * Build SDN derivation path for encryption key */ export declare function buildEncryptionPath(account: number): string; //# sourceMappingURL=types.d.ts.map