diff options
-rw-r--r-- | app/designs/identity/keys_by_email.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/designs/identity/keys_by_email.js b/app/designs/identity/keys_by_email.js new file mode 100644 index 0000000..c81ac2f --- /dev/null +++ b/app/designs/identity/keys_by_email.js @@ -0,0 +1,8 @@ +function(doc) { + if (doc.type != 'Identity') { + return; + } + if (typeof doc.keys === "object") { + emit(doc.address, doc.keys); + } +} |