@chromia/ft4 - v2.1.0
    Preparing search index...

    Interface LoginKeyStore

    Holds disposable keys associated with various accounts.

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

    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<FtKeyStore | null>