summaryrefslogtreecommitdiff
path: root/app/designs/identity/pgp_key_by_email.js
blob: f783908c2c7687a7003a5179980802afe3b65972 (plain)
1
2
3
4
5
6
7
8
function(doc) {
  if (doc.type != 'Identity') {
    return;
  }
  if (typeof doc.keys === "object") {
    emit(doc.address, doc.keys["pgp"]);
  }
}