Open vimmerru opened 3 years ago
I believe this could be added as part of the std
support. I'm away this week, but something to investigate.
PR #25 has some improvements here, it adds a JwkSerialize
wrapper which implements Serialize
. For deserialization I believe JwkParts
can be nested in another structure, or deserialized directly from a serde_json::Value
. It doesn't look like std
is necessary.
For deserialization I believe JwkParts can be nested in another structure, or deserialized directly from a serde_json::Value.
Nesting is most probably possible, but there is no way to serialize from Value
due obvious problems with lifetime. I am still trying to write serialization/de-serialization of JWE and seems i have 2 options:
Hello,
ECDH-EC, ECDH-1PU specifications require EPK to be presented as embedded object. For example, ECDH-1PU protected header will be
With current approach for JWKParts serialisation it will be quite hard to serialize/de-serialize such structure without intermediate conversion to Value. I understand
nostd
targeting, but it significantly affectsstd
option.