Inspiration
This is a pull request that I wanted for did-comm and perhaps things I haven't imagined. The Blinky Project and work with Ceramic was a motivation. Many libraries did not support P-256.
What it does
Extends the did-jwt library with the P-256 curve for JWE.
alg = 'ECDH-ES+A256KW;
enc = 'A256GCM' or enc = 'dir'
alg = 'ECDH-ES+XC20PKW'
const enc = 'XC20P' / enc = 'dir'
Challenges I ran into
+I still do not know how to get sharedSecret to be used in createX25519EcdhEsKek because doing this may allow two banks of tests for Auth Encryption to run in a256gcmEncryption.test.ts
'ECDH-ES+A256KW (P-256) Dir Auth, Key Wrapping Mode with A256GCM content encryption'
'ECDH-ES+A256KW (P-256) Auth, Key Wrapping Mode with A256GCM content encryption'
+It was awfully hard to describe my project in 3 minutes.
Log in or sign up for Devpost to join the conversation.