Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating P2SH Addresses for Networks Without SegWit Support #117

Open
mrtnetwork opened this issue Dec 5, 2023 · 1 comment
Open

Creating P2SH Addresses for Networks Without SegWit Support #117

mrtnetwork opened this issue Dec 5, 2023 · 1 comment

Comments

@mrtnetwork
Copy link

I generated a BCH address using the BchP2SHAddrEncoder on the BCH testnet for testing purposes. Despite multiple attempts, I could not initiate a payment from this address. Subsequently, I created another address for this network, this time using the P2SH type but with a different script (p2sh-p2pk, p2sh-p2pkh, and the standard p2sh multisig address). Fortunately, I was able to spend from the newly created address. During my research, I stumbled upon this post:. I believe that a different script should be employed to generate P2SH addresses for networks that don't support SegWit, such as BCH, DASH, and DOGE. I'm not entirely sure and would appreciate it if you could confirm. Thanks.

I want to express my gratitude for the excellent package you have created. I extensively used your package code to develop a wallet package in Dart.

@ebellocchia
Copy link
Owner

Hi, thanks and sorry for the late reply. I'll take a look into it, even if I remember the addresses were correctly generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants