Copyright | 2022-2024 Vergara Technologies |
---|---|
License | MIT |
Maintainer | pitmutt@vergara.tech |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Functions to interact with the transparent addresses in the Zcash blockchain
Synopsis
- sha256 :: ByteString -> ByteString
- encodeTransparentReceiver :: ZcashNet -> TransparentReceiver -> Text
- genTransparentPrvKey :: Seed -> CoinType -> AccountId -> IO TransparentSpendingKey
- genTransparentReceiver :: Int -> Scope -> XPrvKey -> IO TransparentReceiver
- genTransparentSecretKey :: Int -> Scope -> XPrvKey -> IO TransparentSpendingKey
- decodeTransparentAddress :: ByteString -> Maybe TransparentAddress
- encodeExchangeAddress :: ZcashNet -> TransparentReceiver -> Maybe Text
- decodeExchangeAddress :: ByteString -> Maybe ExchangeAddress
Documentation
sha256 :: ByteString -> ByteString #
Required for TransparentReceiver
encoding and decoding
:: ZcashNet | |
-> TransparentReceiver | The address to encode |
-> Text |
Encodes a TransparentReceiver
into the human-readable format per the Zcash Protocol section 5.6.1.1
:: 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.
:: Int | The index of the address to be created |
-> Scope |
|
-> XPrvKey | The transparent private key |
-> IO TransparentReceiver |
Generate a transparent receiver
:: Int | The index of the address to be created |
-> Scope |
|
-> 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