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 Sapling shielded pool of the Zcash blockchain.
Synopsis
- isValidShieldedAddress :: ByteString -> Bool
- getShieldedOutputs :: HexString -> [ByteString]
- isValidSaplingViewingKey :: ByteString -> Bool
- matchSaplingAddress :: ByteString -> ByteString -> Bool
- decodeSaplingOutput :: ByteString -> ByteString -> Maybe DecodedNote
- genSaplingSpendingKey :: Seed -> CoinType -> Int -> Maybe SaplingSpendingKey
- genSaplingPaymentAddress :: Int -> SaplingSpendingKey -> Maybe SaplingReceiver
- genSaplingInternalAddress :: SaplingSpendingKey -> Maybe SaplingReceiver
Documentation
isValidShieldedAddress :: ByteString -> Bool #
Check if given bytesting is a valid encoded shielded address
getShieldedOutputs :: HexString -> [ByteString] #
isValidSaplingViewingKey :: ByteString -> Bool #
Check if given bytestring is a valid Sapling viewing key
matchSaplingAddress :: ByteString -> ByteString -> Bool #
Check if the given bytestring for the Sapling viewing key matches the second bytestring for the address
decodeSaplingOutput :: ByteString -> ByteString -> Maybe DecodedNote #
Attempt to decode the given raw tx with the given Sapling viewing key
genSaplingSpendingKey :: Seed -> CoinType -> Int -> Maybe SaplingSpendingKey #
Attempts to obtain a sapling SpendingKey using a HDSeed
genSaplingPaymentAddress :: Int -> SaplingSpendingKey -> Maybe SaplingReceiver #
Attempts to generate a sapling Payment Address using an ExtendedSpendingKey and a Diversifier Index
genSaplingInternalAddress :: SaplingSpendingKey -> Maybe SaplingReceiver #
Generate an internal Sapling address