import { KeystoreBase } from './keystore-base' ; export class InMemoryKeystore extends KeystoreBase { /**
     * Used for mocking keystore operations in unit tests
     */ private _storage : Record < string , string > = { } ; persistKeystore ( keystoreName , keystore ) { this . _storage [ keystoreName ] = keystore ; } getRawKeystore ( keystoreName ) { return this . _storage [ keystoreName ] ; } async getAllKeystoreNames ( ) { return Object . keys ( this . _storage ) ; } removeKeystore ( keystoreName ) { delete this . _storage [ keystoreName ] ; } }