On 2024-08-07, at 15:55, Orie Steele <[email protected]> wrote:
> 
> JSON serializations might be better stored in databases, since the base64 
> encoded components can often be stored as binary instead of text... but CBOR 
> would be even better.

It is trivial to define a CBOR-based serialization of the JWP compact form, 
replacing the base-64 armor by a CBOR sequence of strings (or arrays of strings 
for ~).  Having both means that one can have a URL-safe form (base64url + ./~) 
and a media-type (CBOR sequence).

I didn’t manage to write the document yet, but it’s really trivial (and, like, 
three lines of code).

A true CWP would also get rid of base64 throughout the building of inputs for 
the cryptography.

Grüße, Carsten

_______________________________________________
jose mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to