commit a43c7064e7f28f6d9fea2d36e5c3bcb3853a66b4 parent f11d8ab5678a9729f27c8387a77839fe44fdcc2a Author: Jared Tobin <jared@jtobin.io> Date: Tue, 17 Dec 2024 21:17:12 -0330 lib: typos Diffstat:
M | lib/Data/ByteString/Bech32.hs | | | 6 | +++--- |
M | lib/Data/ByteString/Bech32m.hs | | | 6 | +++--- |
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/Data/ByteString/Bech32.hs b/lib/Data/ByteString/Bech32.hs @@ -37,14 +37,14 @@ toStrict = BS.toStrict create_checksum :: BS.ByteString -> BS.ByteString -> BS.ByteString create_checksum = B32.create_checksum Bech32 --- | Encode a base255 human-readable part and input as bech32. +-- | Encode a base256 human-readable part and input as bech32. -- -- >>> let Just bech32 = encode "bc" "my string" -- >>> bech32 -- "bc1d4ujqum5wf5kuecmu02w2" encode - :: BS.ByteString -- ^ base255-encoded human-readable part - -> BS.ByteString -- ^ base255-encoded data part + :: BS.ByteString -- ^ base256-encoded human-readable part + -> BS.ByteString -- ^ base256-encoded data part -> Maybe BS.ByteString -- ^ bech32-encoded bytestring encode hrp (B32.encode -> dat) = do guard (B32.valid_hrp hrp) diff --git a/lib/Data/ByteString/Bech32m.hs b/lib/Data/ByteString/Bech32m.hs @@ -37,14 +37,14 @@ toStrict = BS.toStrict create_checksum :: BS.ByteString -> BS.ByteString -> BS.ByteString create_checksum = B32.create_checksum Bech32m --- | Encode a base255 human-readable part and input as bech32m. +-- | Encode a base256 human-readable part and input as bech32m. -- -- >>> let Just bech32m = encode "bc" "my string" -- >>> bech32m -- "bc1d4ujqum5wf5kuecwqlxtg" encode - :: BS.ByteString -- ^ base255-encoded human-readable part - -> BS.ByteString -- ^ base255-encoded data part + :: BS.ByteString -- ^ base256-encoded human-readable part + -> BS.ByteString -- ^ base256-encoded data part -> Maybe BS.ByteString -- ^ bech32m-encoded bytestring encode hrp (B32.encode -> dat) = do guard (B32.valid_hrp hrp)