Keystore Represents a Web3 Secret Storage keystore object that holds information about a private cryptographic key. and its associated wallet address.

interface Keystore {
    address: string;
    crypto: {
        cipher: string;
        cipherparams: {
            iv: string;
        };
        ciphertext: string;
        kdf: string;
        kdfparams: {
            dklen: number;
            n: number;
            p: number;
            r: number;
            salt: string;
        };
        mac: string;
    };
    id: string;
    version: number;
}

Properties

address: string

The wallet address associated with the stored private key.

crypto: {
    cipher: string;
    cipherparams: {
        iv: string;
    };
    ciphertext: string;
    kdf: string;
    kdfparams: {
        dklen: number;
        n: number;
        p: number;
        r: number;
        salt: string;
    };
    mac: string;
}

The encryption information for the key.

id: string

The unique identifier version 4 for the key store.

version: number

The version number of the key store.