Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Sig = Sig {
- sigTime :: Natural
- sigV1 :: [ByteString]
- isSigValid :: Sig -> WebhookSecretKey -> ByteString -> Bool
- digest :: WebhookSecretKey -> Natural -> ByteString -> ByteString
- signedPayload :: Natural -> ByteString -> ByteString
- natBytes :: Natural -> ByteString
- parseSig :: Text -> Maybe Sig
Documentation
The relevant bits of data extracted from the Stripe signature header.
Sig | |
|
isSigValid :: Sig -> WebhookSecretKey -> ByteString -> Bool Source #
digest :: WebhookSecretKey -> Natural -> ByteString -> ByteString Source #
signedPayload :: Natural -> ByteString -> ByteString Source #
natBytes :: Natural -> ByteString Source #
Convert a natural number to the ASCII encoding of its decimal representation.