JOSE icon indicating copy to clipboard operation
JOSE copied to clipboard

JWS compact serialization

Open tgross35 opened this issue 3 years ago • 3 comments

RFC7515 section 7.1 specifies a compact (b64 encoded) serialization. I think this could probably be handled withJws::{from_compact, to_compact} functions

tgross35 avatar Apr 16 '23 09:04 tgross35

On a related note, TryFrom<General> for Flattened could be useful

tgross35 avatar Apr 16 '23 09:04 tgross35

As far as I can tell, this is supported by Flattened::from_str.

I think what's missing is the to_compact support mentioned.

sigmavirus24 avatar Feb 21 '25 01:02 sigmavirus24

Although the Display trait does implement this: https://github.com/RustCrypto/JOSE/blob/70423d5040c64849a8f5bb9fd44105b5a64f2b3e/jose-jws/src/compact.rs#L58-L71

sigmavirus24 avatar Feb 21 '25 01:02 sigmavirus24