src/keyring/keyring.js
function keyIdCheck(keyId, key) {
  if (keyId.length === 16) {
    return keyId === key.getKeyId().toHex();
  }
  return keyId === key.getFingerprint();
}
function keyIdCheck(keyId, key) {
  if (keyId.length === 16) {
    return keyId === key.getKeyId().toHex();
  }
  return keyId === key.getFingerprint();
}
function keyIdCheck ( keyId , key ) { if ( keyId . length === 16 ) { return keyId === key . getKeyId ( ) . toHex ( ) ; } return keyId === key . getFingerprint ( ) ; }
Checks a key to see if it matches the specified keyid
@private
@param {String} keyId provided as string of lowercase hex number
withouth 0x prefix (can be 16-character key ID or fingerprint)
@param {module:key.Key|module:key.SubKey} key The key to be checked
@returns {Boolean} True if key has the specified keyid
Checks a key to see if it matches the specified keyid