TBD54566975 / web5-kt

Apache License 2.0
10 stars 10 forks source link

Add support for compressed keys #280

Open jiyoontbd opened 6 months ago

jiyoontbd commented 6 months ago

would like more input from @decentralgabe wrt this comment https://github.com/TBD54566975/web5-kt/pull/262#discussion_r1540333190

decentralgabe commented 6 months ago

DID DHT advocates for using compressed key representations when possible. Here's some more information on compression of elliptic curve keys also here.

Notably compression only matters with binary (or non-JWK) representations of keys, as JWKs do not support compressed key representations.

As a reference the ssi-sdk supports an open during conversion to/from public/private keys and their byte representations for compression and there's common library support for compressed key representations.