summaryrefslogtreecommitdiff
path: root/ui/app/lib
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-10-24 11:53:10 +0200
committerRuben Pollan <meskio@sindominio.net>2017-10-26 18:37:05 +0200
commit5243c7eb4c58a4419da2103af8c1e4004f01053b (patch)
treeb12fcb016fc95ed9a07a5a2501329db8ec2a623d /ui/app/lib
parentd16b25da0962156601615587a612b57b918b0dc6 (diff)
[feat] add fetch key by fingerprint to keymanager
- Resolves: #9023
Diffstat (limited to 'ui/app/lib')
-rw-r--r--ui/app/lib/bitmask.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js
index 37d09979..31a1e938 100644
--- a/ui/app/lib/bitmask.js
+++ b/ui/app/lib/bitmask.js
@@ -428,6 +428,19 @@ var bitmask = function(){
},
/**
+ * Fetch key by fingerprint
+ *,
+ * @param {string} uid The uid of the keyring.
+ * @param {string} address The email address of the key.
+ * @param {string} fingerprint The key fingerprnit.
+ *
+ * @return {Promise<KeyObject>} The key
+ */
+ fetch: function(uid, address, fingerprint) {
+ return call(['keys', 'fetch', address, fingerprint]);
+ },
+
+ /**
* Insert key
*
* @param {string} uid The uid of the keyring.