JOSE
JOSE copied to clipboard
JWS compact serialization
RFC7515 section 7.1 specifies a compact (b64 encoded) serialization. I think this could probably be handled withJws::{from_compact, to_compact} functions
On a related note, TryFrom<General> for Flattened could be useful
As far as I can tell, this is supported by Flattened::from_str.
I think what's missing is the to_compact support mentioned.
Although the Display trait does implement this: https://github.com/RustCrypto/JOSE/blob/70423d5040c64849a8f5bb9fd44105b5a64f2b3e/jose-jws/src/compact.rs#L58-L71