2023-05-04 20:26:49 +00:00
|
|
|
module HaskellZcash.Sapling where
|
|
|
|
|
2023-06-14 14:55:52 +00:00
|
|
|
import C.Zcash (rustWrapperIsShielded, rustWrapperSaplingVkDecode)
|
2023-05-04 20:26:49 +00:00
|
|
|
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
|