be able to publish other kind of keys
Right now webapp/nickserver only accepts openpgp keys. The API described in the doc mentions type
for send_key
. But AFAIK the actual implementation differs from that.
Right now we upload keys by PUT {"user[public_key]": "<openpgp-key>"}
to https://nicknym.provider.com/1/users/user@provider.com.json
. Can we add an extra entry in the data we send to provide the key type? Something like user[key_type]
? I guess for backward compatibility will make sense to default to openpgp if the type entry is not provided.
AFAIK to discover keys the current API is a POST address=user@provider.com
to https://nicknym.provider.com
that returns a json like:
{
"address": "user@provider.com",
"openpgp": "<openpgp-key>"
}
It looks like we can just extend it adding entries with the names of the types.