jose-0.1.26.0: Javascript Object Signing and Encryption

Safe HaskellSafe-Inferred

Crypto.JOSE.Compact

Description

JWS, JWE and some related specifications provide for compact representations of certain types. This module defines classes and functions for working with such data.

Synopsis

Documentation

class FromCompact a whereSource

Data that can be parsed from a compact representation.

Instances

decodeCompact :: FromCompact a => ByteString -> Either String aSource

Decode a compact representation.

class ToCompact a whereSource

Data that can be converted to a compact representation.

Instances

encodeCompact :: ToCompact a => a -> Either String ByteStringSource

Encode data to a compact representation.