zcash-haskell/src/HaskellZcash/Sapling.hs

13 lines
470 B
Haskell
Raw Normal View History

module HaskellZcash.Sapling where
2023-06-14 14:55:52 +00:00
import C.Zcash (rustWrapperIsShielded, rustWrapperSaplingVkDecode)
import qualified Data.ByteString as BS
-- | Check if given bytesting is a valid encoded shielded address
isValidShieldedAddress :: BS.ByteString -> Bool
isValidShieldedAddress = rustWrapperIsShielded
2023-06-14 14:55:52 +00:00
-- | Check if given bytestring is a valid Sapling viewing key
isValidSaplingViewingKey :: BS.ByteString -> Bool
isValidSaplingViewingKey = rustWrapperSaplingVkDecode