You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - this does not convert a Segwit Bech32 address to a Segwit nested in P2SH.
Should convert: from (Segwit Bech32): bc1qcash96s5jqppzsp8hy8swkggf7f6agex98an7h to (Segwit nested in P2SH): 3NULL3ZCUXr7RDLxXeLPDMZDZYxuaYkCnG
However the tests seem to assert the Bech32 equals the Bech32 (rather than the P2SH).
The text was updated successfully, but these errors were encountered:
This library just encodes and decodes Bech32. It intentionally doesn't convert them to Base58, since it's not possible to spend Bech32 funds from a P2SH address and vice versa. If I added that, probably someone would lose their funds.
My usecase was not to convert the Bech 32 address to a Base58 address in order to use the (Base58) address for spending / collecting but to query a node for the transactions on the Base58 address (thus Bech 32 as the latter is not query-able).
I can convert a base 58 to a Bech 32 however that also seems off, i.e: 3NULL3ZCUXr7RDLxXeLPDMZDZYxuaYkCnG returns bc1qye5fnk4zr9rx57ua7qksgq3hqc07k3zxld709m rather than bc1qcash96s5jqppzsp8hy8swkggf7f6agex98an7h
Hi - this does not convert a Segwit Bech32 address to a Segwit nested in P2SH.
Should convert:
from (Segwit Bech32): bc1qcash96s5jqppzsp8hy8swkggf7f6agex98an7h
to (Segwit nested in P2SH): 3NULL3ZCUXr7RDLxXeLPDMZDZYxuaYkCnG
However the tests seem to assert the Bech32 equals the Bech32 (rather than the P2SH).
The text was updated successfully, but these errors were encountered: