12345678910111213141516171819202122232425262728293031323334353637383940 |
- import ECDSA from '../ECDSA';
- import { Transaction } from '../models/transactions';
- declare class Wallet {
- readonly publicKey: string;
- readonly privateKey: string;
- readonly classicAddress: string;
- readonly seed?: string;
- constructor(publicKey: string, privateKey: string, opts?: {
- masterAddress?: string;
- seed?: string;
- });
- get address(): string;
- static generate(algorithm?: ECDSA): Wallet;
- static fromSeed(seed: string, opts?: {
- masterAddress?: string;
- algorithm?: ECDSA;
- }): Wallet;
- static fromSecret: typeof Wallet.fromSeed;
- static fromEntropy(entropy: Uint8Array | number[], opts?: {
- masterAddress?: string;
- algorithm?: ECDSA;
- }): Wallet;
- static fromMnemonic(mnemonic: string, opts?: {
- masterAddress?: string;
- derivationPath?: string;
- mnemonicEncoding?: 'bip39' | 'rfc1751';
- algorithm?: ECDSA;
- }): Wallet;
- private static fromRFC1751Mnemonic;
- private static deriveWallet;
- sign(this: Wallet, transaction: Transaction, multisign?: boolean | string): {
- tx_blob: string;
- hash: string;
- };
- verifyTransaction(signedTransaction: Transaction | string): boolean;
- getXAddress(tag?: number | false, isTestnet?: boolean): string;
- private checkTxSerialization;
- }
- export default Wallet;
- //# sourceMappingURL=index.d.ts.map
|