UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

46 lines 2.41 kB
import { BIP32Interface, MLDSASecurityLevel, QuantumBIP32Interface } from '../../node_modules/@btc-vision/bip32/src/cjs/index.cjs'; import { Network } from '../../node_modules/@btc-vision/bitcoin/browser/index.js'; import { Wallet } from '../keypair/Wallet.js'; import { MnemonicStrength } from './MnemonicStrength.js'; import { BIPStandard } from './BIPStandard.js'; import { AddressTypes } from '../keypair/AddressVerificator.js'; export { BIPStandard, getBIPDescription } from './BIPStandard.js'; /** * Mnemonic class for managing BIP39 mnemonic phrases with BIP360 quantum support */ export declare class Mnemonic implements Disposable { private readonly _phrase; private readonly _passphrase; private readonly _network; private readonly _securityLevel; private readonly _seed; private readonly _classicalRoot; private readonly _quantumRoot; constructor(phrase: string, passphrase?: string, network?: Network, securityLevel?: MLDSASecurityLevel); get phrase(): string; get network(): Network; get securityLevel(): MLDSASecurityLevel; get seed(): Uint8Array; static generatePhrase(strength?: MnemonicStrength): string; static generate(strength?: MnemonicStrength, passphrase?: string, network?: Network, securityLevel?: MLDSASecurityLevel): Mnemonic; static validate(phrase: string): boolean; /** * Best-effort zeroing of secret material held by this mnemonic. * * Zeros the seed buffer and root private keys in-place. * The mnemonic phrase and passphrase are JS strings and cannot be zeroed. */ zeroize(): void; [Symbol.dispose](): void; derive(index?: number, account?: number, isChange?: boolean, bipStandard?: BIPStandard): Wallet; deriveOPWallet(addressType?: AddressTypes, index?: number, account?: number, isChange?: boolean): Wallet; deriveMultipleOPWallet(addressType?: AddressTypes, count?: number, startIndex?: number, account?: number, isChange?: boolean): Wallet[]; deriveMultiple(count: number, startIndex?: number, account?: number, isChange?: boolean, bipStandard?: BIPStandard): Wallet[]; deriveCustomPath(classicalPath: string, quantumPath: string): Wallet; getClassicalRoot(): BIP32Interface; getQuantumRoot(): QuantumBIP32Interface; private buildClassicalPath; private buildQuantumPath; private getCoinType; } //# sourceMappingURL=Mnemonic.d.ts.map