Bundling a couple things into one issue here.
Script should print out the identity for each name given, separated by newlines.
The export option should wrap the output in the cache structure (dict with name-to-string keys). Use proper comma-based delineation between multiple identities.
For each identity, convert the encryptor to its public counterpart.
All these things will make it much easier and simpler to share encryption information. I can just do:
$ ejtp-identity details email@example.com -ep > philip.pub.json
and email that to my friend Xerxes, who can merge it into his own local cache with:
$ ejtp-identity merge path/to/my/cache.json < philip.pub.json
Currently this is difficult, because you'd have to manually convert the encryptor, and add the necessary wrapper stuff to make the merge command work, etc. And of course, multiple names makes it easy to copy out a subset of your cache into a separate file, and you never know when that'll come in handy.
DONE / Accepting payments