Interface
LoginKeyStore
On this page
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>;
}Methods
clear
clear(accountId: Buffer): Promise<void>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>
- accountId: Buffer
generateKey
generateKey(accountId: Buffer): Promise<FtKeyStore>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>
- accountId: Buffer
getKeyStore
getKeyStore(accountId: Buffer): Promise<FtKeyStore | null>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>
- accountId: Buffer