| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
SDJWT.Internal.Serialization
Description
Serialization and deserialization of SD-JWT structures.
This module provides functions to serialize and deserialize SD-JWTs to/from the tilde-separated format specified in RFC 9901.
Synopsis
Documentation
serializeSDJWT :: SDJWT -> Text Source #
deserializeSDJWT :: Text -> Either SDJWTError SDJWT Source #
Deserialize SD-JWT from tilde-separated format.
Parses a tilde-separated string into an SDJWT structure.
Returns an error if the format is invalid or if a Key Binding JWT
is present (use deserializePresentation for SD-JWT+KB).
deserializePresentation :: Text -> Either SDJWTError SDJWTPresentation Source #
Deserialize SD-JWT presentation.
Parses a tilde-separated string into an SDJWTPresentation structure.
This handles both SD-JWT (without KB-JWT) and SD-JWT+KB (with KB-JWT) formats.
parseTildeSeparated :: Text -> Either SDJWTError (Text, [EncodedDisclosure], Maybe Text) Source #