From 31602581dba25edd303e7c2a55158dc0d6841ba1 Mon Sep 17 00:00:00 2001 From: pitmutt Date: Wed, 14 Jun 2023 16:31:46 +0000 Subject: [PATCH] Add 'Haskell Functions' --- Haskell-Functions.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Haskell-Functions.md diff --git a/Haskell-Functions.md b/Haskell-Functions.md new file mode 100644 index 0000000..918f5d6 --- /dev/null +++ b/Haskell-Functions.md @@ -0,0 +1,19 @@ +# Haskell Functions + +## Utils + +## `decodeHexText :: String -> ByteString` + +Decodes a hex-encoded string into bytes. + +## `decodeBech32 :: ByteString -> RawData` + +Takes the bytestring representation of the encoded string and produces `RawData`. + +## `f4Jumble :: ByteString -> ByteString` + +Takes the input bytes and applies the [F4Jumble](https://zips.z.cash/zip-0316#jumbling) transformation. + +## `f4UnJumble :: ByteString -> ByteString` + +Takes the input bytes and applies the [inverse F4Jumble](https://zips.z.cash/zip-0316#jumbling) transformation. \ No newline at end of file