Use address validation

This commit is contained in:
Rene Vergara 2023-10-06 14:28:07 -05:00
parent c4fc57c0b7
commit 3e4aaf647c
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2
4 changed files with 26 additions and 13 deletions

View file

@ -28,7 +28,8 @@ import qualified Data.Text.IO as TIO
import qualified Data.Vector as V import qualified Data.Vector as V
import Data.Word import Data.Word
import GHC.Generics import GHC.Generics
import Zcash import ZcashHaskell.Orchard (isValidUnifiedAddress)
import ZcashHaskell.Sapling (isValidShieldedAddress)
{-import Haskoin.Address.Bech32-} {-import Haskoin.Address.Bech32-}
import Network.HTTP.Simple import Network.HTTP.Simple

View file

@ -31,7 +31,7 @@ resolver: lts-20.16
packages: packages:
- . - .
#- haskoin-core #- haskoin-core
- zcash-haskell #- zcash-haskell
# Dependency packages to be pulled from upstream that are not in the resolver. # Dependency packages to be pulled from upstream that are not in the resolver.
# These entries can reference officially published versions as well as # These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For example: # forks / in-progress versions pinned to a git hash. For example:
@ -43,16 +43,18 @@ packages:
# #
# extra-deps: [] # extra-deps: []
extra-deps: extra-deps:
- git: https://git.vergara.tech/Vergara_Tech/haskell-foreign-rust.git - git: https://git.vergara.tech/Vergara_Tech/zcash-haskell.git
commit: 787c2e813eb3a5d16c375d4b37dfefbd2adcdf05 commit: fef3d3af35a09db718cddb8fc9166b2d2691a744
- git: https://github.com/reach-sh/haskell-hexstring.git - git: https://git.vergara.tech/Vergara_Tech/haskell-foreign-rust.git
commit: 085c16fb21b9f856a435a3faab980e7e0b319341 commit: 787c2e813eb3a5d16c375d4b37dfefbd2adcdf05
- git: https://github.com/well-typed/borsh.git - git: https://github.com/reach-sh/haskell-hexstring.git
commit: d2fcfa159e0a844b1ec5e8ed3e232d4b380fa831 commit: 085c16fb21b9f856a435a3faab980e7e0b319341
- vector-0.13.0.0@sha256:fa5cac81a17a5af388716792e8b99c24b3b66770086756d0d8b23f8272a0244c,9112 - git: https://github.com/well-typed/borsh.git
- aeson-2.1.2.1@sha256:f10f3c661bd5cf57aee46b94420e47736240b8e209ac15f4bfc1a4e4d55831fa,6344 commit: d2fcfa159e0a844b1ec5e8ed3e232d4b380fa831
- generically-0.1.1 - vector-0.13.0.0@sha256:fa5cac81a17a5af388716792e8b99c24b3b66770086756d0d8b23f8272a0244c,9112
- vector-algorithms-0.9.0.1 - aeson-2.1.2.1@sha256:f10f3c661bd5cf57aee46b94420e47736240b8e209ac15f4bfc1a4e4d55831fa,6344
- generically-0.1.1
- vector-algorithms-0.9.0.1
#- vector-0.12.3.1@sha256:abbfe8830e13549596e1295219d340eb01bd00e1c7124d0dd16586911a291c59,8218 #- vector-0.12.3.1@sha256:abbfe8830e13549596e1295219d340eb01bd00e1c7124d0dd16586911a291c59,8218
#extra-lib-dirs: [/home/rav/Documents/programs/haskoin] #extra-lib-dirs: [/home/rav/Documents/programs/haskoin]
# #

View file

@ -4,6 +4,17 @@
# https://docs.haskellstack.org/en/stable/lock_files # https://docs.haskellstack.org/en/stable/lock_files
packages: packages:
- completed:
commit: fef3d3af35a09db718cddb8fc9166b2d2691a744
git: https://git.vergara.tech/Vergara_Tech/zcash-haskell.git
name: zcash-haskell
pantry-tree:
sha256: ec7782cf2646da17548d59af0ea98dcbaac1b6c2176258c696a7f508db6dbc21
size: 1126
version: 0.1.0
original:
commit: fef3d3af35a09db718cddb8fc9166b2d2691a744
git: https://git.vergara.tech/Vergara_Tech/zcash-haskell.git
- completed: - completed:
commit: 787c2e813eb3a5d16c375d4b37dfefbd2adcdf05 commit: 787c2e813eb3a5d16c375d4b37dfefbd2adcdf05
git: https://git.vergara.tech/Vergara_Tech/haskell-foreign-rust.git git: https://git.vergara.tech/Vergara_Tech/haskell-foreign-rust.git

@ -1 +0,0 @@
Subproject commit 1261a585e6f775049e772bccae55233a9fa04b05