* 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 = {})
| 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 |
no test coverage detected