Safe Haskell | None |
---|
Crypto.JOSE.Classes
Description
Type classes for use with the JOSE modules.
- class Key k where
- sign :: Alg -> k -> ByteString -> ByteString
- verify :: Alg -> k -> ByteString -> ByteString -> Bool
Documentation
A Key that can sign messages and validate signatures according
to a given Alg
.
Methods
sign :: Alg -> k -> ByteString -> ByteStringSource
verify :: Alg -> k -> ByteString -> ByteString -> BoolSource