spruceid / ssi

Core library for decentralized identity.
https://spruceid.dev
Apache License 2.0
193 stars 61 forks source link

Support parsing of SSH and GPG private/public key formats in ssi and didkit #177

Open wyc opened 3 years ago

wyc commented 3 years ago

To support #176, we must implement support for SSH's id_rsa/id_ed25519/id_ed25519.pub/etc. and authorized_keys formats in addition to GPG ASCII-armored formats for both public and private keys. This interoperability will allow us to use existing infrastructure that developers are familiar with to work with DIDs + VCs.

In DIDKit, we can expose this functionality as an alternative way to JWKs to use keys.

clehner commented 3 years ago

Parsing SSH public keys (RSA, Ed25519, P-256), as found in authorized_keys, into JWK, is implemented in #178.

Parsing GPG keys is not yet implemented. If we use https://or13.github.io/lds-pgp2021/, the ASCII-armored public key string could be put directly into a property of the verification method object,