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

Function keyIdCheck

src/modules/keyStore.js:103–108  ·  view source on GitHub ↗
(keyId, key)

Source from the content-addressed store, hash-verified

101}
102
103function keyIdCheck(keyId, key) {
104 if (keyId.length === 16) {
105 return keyId === key.getKeyID().toHex();
106 }
107 return keyId === key.getFingerprint();
108}

Callers 2

getForIdMethod · 0.85
removeForIdMethod · 0.85

Calls 2

toHexMethod · 0.80
getKeyIDMethod · 0.45

Tested by

no test coverage detected