()
| 10 | |
| 11 | export 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) { |