Add new function to decode a Transparent Address in HRF #59
1 changed files with 4 additions and 4 deletions
|
@ -125,20 +125,20 @@ decodeTransparentAddress taddress = do
|
||||||
189 ->
|
189 ->
|
||||||
Just $
|
Just $
|
||||||
TransparentAddress MainNet $
|
TransparentAddress MainNet $
|
||||||
TransparentReceiver P2SH (fromRawBytes digest)
|
TransparentReceiver P2SH (fromRawBytes transparentReceiver)
|
||||||
186 ->
|
186 ->
|
||||||
Just $
|
Just $
|
||||||
TransparentAddress TestNet $
|
TransparentAddress TestNet $
|
||||||
TransparentReceiver P2SH (fromRawBytes digest)
|
TransparentReceiver P2SH (fromRawBytes transparentReceiver)
|
||||||
184 ->
|
184 ->
|
||||||
Just $
|
Just $
|
||||||
TransparentAddress MainNet $
|
TransparentAddress MainNet $
|
||||||
TransparentReceiver P2PKH (fromRawBytes digest)
|
TransparentReceiver P2PKH (fromRawBytes transparentReceiver)
|
||||||
_ -> Nothing
|
_ -> Nothing
|
||||||
29 ->
|
29 ->
|
||||||
if sb == 37
|
if sb == 37
|
||||||
then Just $
|
then Just $
|
||||||
TransparentAddress TestNet $
|
TransparentAddress TestNet $
|
||||||
TransparentReceiver P2PKH (fromRawBytes digest)
|
TransparentReceiver P2PKH (fromRawBytes transparentReceiver)
|
||||||
else Nothing
|
else Nothing
|
||||||
_ -> Nothing
|
_ -> Nothing
|
||||||
|
|
Loading…
Reference in a new issue