MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / hasPrivateKey

Method hasPrivateKey

src/client-API/client-api.js:427–431  ·  view source on GitHub ↗

* Check if keyring contains valid private key with given fingerprint * @param {String|{fingerprint: String, email: String}} query - fingerprint string, or an object with `fingerprint` and/or `email` * @returns {Promise. }

(query = {})

Source from the content-addressed store, hash-verified

425 * @returns {Promise.<boolean, Error>}
426 */
427 hasPrivateKey(query = {}) {
428 const fingerprint = typeof query === 'string' ? query : query.fingerprint;
429 const {email} = query;
430 return send('has-private-key', {identifier: this.identifier, fingerprint, email}).then(result => result);
431 }
432
433 /**
434 * @typedef {Object} UploadSyncReply

Callers 1

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected