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

ZcashHaskell.Transparent

Description

Functions to interact with the transparent addresses in the Zcash blockchain

Synopsis

Documentation

sha256 :: ByteString -> ByteString #

Required for TransparentReceiver encoding and decoding

encodeTransparentReceiver #

Arguments

:: ZcashNet

The network, MainNet or TestNet

-> TransparentReceiver

The address to encode

-> Text 

Encodes a TransparentReceiver into the human-readable format per the Zcash Protocol section 5.6.1.1

genTransparentPrvKey #

Arguments

:: Seed

The cryptographic seed of the wallet

-> CoinType

The coin type constant to be used

-> AccountId

The index of the account to be used

-> IO TransparentSpendingKey 

Generate an Extended Private Key from a known HDSeed.

genTransparentReceiver #

Arguments

:: Int

The index of the address to be created

-> Scope

External for wallet addresses or Internal for change addresses

-> XPrvKey

The transparent private key

-> IO TransparentReceiver 

Generate a transparent receiver

genTransparentSecretKey #

Arguments

:: Int

The index of the address to be created

-> Scope

External for wallet addresses or Internal for change addresses

-> XPrvKey

The transparent private key

-> IO TransparentSpendingKey 

Generate a transparent receiver

decodeTransparentAddress :: ByteString -> Maybe TransparentAddress #

decode a Transparent Address in HRF and return a TransparentAddress object

encodeExchangeAddress :: ZcashNet -> TransparentReceiver -> Maybe Text #

Encode an Exchange Addresss into HRF from TransparentReceiver

decodeExchangeAddress :: ByteString -> Maybe ExchangeAddress #

Decode an Exchange Address into a ExchangeAddress