MCPcopy
hub / github.com/streetwriters/notesnook / getMasterKey

Method getMasterKey

packages/core/src/api/user-manager.ts:442–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440 }
441
442 async getMasterKey(): Promise<SerializedKey | undefined> {
443 const user = await this.getUser();
444 if (!user) return;
445 const key = await this.db.storage().getCryptoKey();
446 if (!key) return;
447 return { key, salt: user.salt };
448 }
449
450 /**
451 * @deprecated

Callers 10

signupMethod · 0.95
getDataEncryptionKeysMethod · 0.95
getUserKeyMethod · 0.95
saveInboxKeysMethod · 0.95
verifyPasswordMethod · 0.95
_updatePasswordMethod · 0.95
usesFallbackPWHashMethod · 0.95
exportMethod · 0.80
RecoveryKeySheetClass · 0.80

Calls 2

getUserMethod · 0.95
getCryptoKeyMethod · 0.65

Tested by

no test coverage detected