Holds disposable keys associated with various accounts.

interface LoginKeyStore {
    clear(accountId): Promise<void>;
    generateKey(accountId): Promise<FtKeyStore>;
    getKeyStore(accountId): Promise<null | FtKeyStore>;
}

Methods

  • Removes the stored keypair for a specified account

    Parameters

    • accountId: Buffer

      the id of the account for which to remove the keypair

    Returns Promise<void>

  • Generates a new key for the specified account id and stores it in this login key store. It does not add the key to the account on the blockchain.

    Parameters

    • accountId: Buffer

      the id of the account for which to generate a new key

    Returns Promise<FtKeyStore>

  • Returns a keystore which contains the stored key for this account id.

    Parameters

    • accountId: Buffer

      the id of the account of which to get the keystore for

    Returns Promise<null | FtKeyStore>