Interface representing a keystore account.

WARNING: call

privateKey.fill(0)

after use to avoid to invalidate any security audit and certification granted to this code.

Differently from ethers KeystoreAccount, this type represents the private key as a buffer of bytes to avoid Memory Dumping attack.

interface KeystoreAccount {
    address: string;
    mnemonic?: {
        entropy: string;
        locale?: string;
        path?: string;
    };
    privateKey: string;
}

Properties

address: string

The address associated with the account.

mnemonic?: {
    entropy: string;
    locale?: string;
    path?: string;
}
privateKey: string

The private key associated with the account.