MCPcopy
hub / github.com/mailvelope/mailvelope / load

Method load

src/modules/KeyStoreLocal.js:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11export default class KeyStoreLocal extends KeyStoreBase {
12 async load() {
13 const pubArmored = await mvelo.storage.get(`mvelo.keyring.${this.id}.publicKeys`);
14 await this.loadKeys(pubArmored, this.publicKeys);
15 const privArmored = await mvelo.storage.get(`mvelo.keyring.${this.id}.privateKeys`);
16 await this.loadKeys(privArmored, this.privateKeys);
17 }
18
19 async loadKeys(keysArmored, keyArray = []) {
20 if (!keysArmored) {

Callers

nothing calls this directly

Calls 2

loadKeysMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected