MCPcopy
hub / github.com/mailvelope/mailvelope / initGPG

Method initGPG

src/modules/keyring.js:33–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32
33 async initGPG() {
34 const hasGpgKeyring = this.has(GNUPG_KEYRING_ID);
35 if (hasGpgKeyring || keyringFirstTimeLoad) {
36 await initNativeMessaging();
37 }
38 if (gpgme) {
39 if (!hasGpgKeyring) {
40 await this.create(GNUPG_KEYRING_ID);
41 }
42 } else {
43 if (hasGpgKeyring) {
44 await this.delete(GNUPG_KEYRING_ID);
45 }
46 }
47 }
48
49 get(keyringId, attrKey) {
50 if (!this.has(keyringId)) {

Callers 1

initGPGFunction · 0.80

Calls 4

createMethod · 0.95
deleteMethod · 0.95
initNativeMessagingFunction · 0.90
hasMethod · 0.45

Tested by

no test coverage detected