MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / isValidEncryptionKey

Function isValidEncryptionKey

src/modules/key.js:398–404  ·  view source on GitHub ↗
(key, keyringId)

Source from the content-addressed store, hash-verified

396 * @return {Boolean}
397 */
398export async function isValidEncryptionKey(key, keyringId) {
399 try {
400 return await key.getEncryptionKey() && !await isKeyPseudoRevoked(keyringId, key);
401 } catch (e) {
402 return false;
403 }
404}
405
406export function sortKeysByCreationDate(keys, defaultKeyFpr) {
407 keys.sort((a, b) => {

Callers 4

getKeyDataFunction · 0.90
getKeyByAddressMethod · 0.90
lookupKeyFunction · 0.90

Calls 1

isKeyPseudoRevokedFunction · 0.90

Tested by

no test coverage detected