MCPcopy
hub / github.com/mailvelope/mailvelope / verifyUser

Function verifyUser

src/modules/key.js:79–93  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

77}
78
79export async function verifyUser(user) {
80 try {
81 await user.verify();
82 return KEY_STATUS.valid;
83 } catch (e) {
84 switch (e.message) {
85 case 'No self-certifications found':
86 return KEY_STATUS.no_self_cert;
87 case 'Self-certification is revoked':
88 return KEY_STATUS.revoked;
89 default:
90 return KEY_STATUS.invalid;
91 }
92 }
93}
94
95export async function verifySubKey(subKey) {
96 try {

Callers 7

setKeyExDateMethod · 0.90
getKeyDataMethod · 0.90
importKeyMethod · 0.90
readArmoredKeysMethod · 0.90
mapUsersFunction · 0.85
sanitizeKeyFunction · 0.85
verifyForAddressFunction · 0.85

Calls 1

verifyMethod · 0.80

Tested by

no test coverage detected