zcash-haskell-0.5.3.0: Utilities to interact with the Zcash blockchain
Copyright2022-2024 Vergara Technologies LLC
LicenseMIT
Maintainerpitmutt@vergara.tech
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell2010

ZcashHaskell.Utils

Description

A set of functions to assist in the handling of elements of the Zcash protocol, allowing for decoding of memos, addresses and viewing keys.

Synopsis

Utility functions

decodeBech32 :: ByteString -> RawData #

Decode the given bytestring using Bech32

encodeBech32m :: ByteString -> ByteString -> Text #

Encode the given Human Readable Part and bytestring as a Bech32m string

f4Jumble :: ByteString -> ByteString #

Apply the F4Jumble transformation to the given bytestring

f4UnJumble :: ByteString -> ByteString #

Apply the inverse F4Jumble transformation to the given bytestring

Node interaction

makeZcashCall :: (MonadIO m, FromJSON a) => ByteString -> ByteString -> Text -> [Value] -> m (Response a) #

Make a Zcash RPC call

makeZebraCall #

Arguments

:: FromJSON a 
=> Text

Hostname for zebrad

-> Int

Port for zebrad

-> Text

RPC method to call

-> [Value]

List of parameters

-> IO (Either String a) 

Make a Zebra RPC call