MCPcopy
hub / github.com/mailvelope/mailvelope / importKeys

Method importKeys

test/unit/__mocks__/localStorage.js:8–11  ·  view source on GitHub ↗
(keyRingId, {public: pub, private: prv})

Source from the content-addressed store, hash-verified

6 }
7
8 async importKeys(keyRingId, {public: pub, private: prv}) {
9 await this.set(`${this.prefix}.${keyRingId}.publicKeys`, pub);
10 await this.set(`${this.prefix}.${keyRingId}.privateKeys`, prv);
11 }
12
13 async importAttributes(keyRingId, attrs) {
14 const attributes = await this.get(`${this.prefix}.attributes`);

Callers 7

setupKeyringFunction · 0.95
test-harness.jsFile · 0.45
KeyringGPG-test.jsFile · 0.45
pgpModel-test.jsFile · 0.45

Calls 1

setMethod · 0.95

Tested by

no test coverage detected