@ipshipyard/keychain
    Preparing search index...

    Interface KeychainInit

    interface KeychainInit {
        hash?: "SHA-512" | "SHA-256" | "SHA-384";
        iterations?: number;
        password?: string;
        salt?: string;
        selfKey?: string;
    }
    Index

    Properties

    hash?: "SHA-512" | "SHA-256" | "SHA-384"

    The hash type

    SHA2-512
    
    iterations?: number

    How many iterations to use when deriving a key from the password

    10_000
    
    password?: string

    The password is used to derive a key which encrypts the keychain at rest

    salt?: string

    Specify a non-default PBK2 function salt

    selfKey?: string

    The 'self' key is the private key of the node from which the peer id is derived.

    It cannot be renamed or removed.

    By default it is stored under the 'self' key, to use a different name, pass this option.

    'self'