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

Enabled tf bech32m-encode #108

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Enabled tf bech32m-encode #108

merged 1 commit into from
Apr 4, 2022

Conversation

mplsgrant
Copy link
Contributor

Issue

The Tapscript example does not produce the bech32 address that I expected.

Cause

The Tapscript example uses bech32 instead of bech32m. I believe that most systems will expect bech32m for Tapscript.

Solution

I enabled bech32m-encode.
If my assumptions about tapscript and bech32m hold true, and if this PR gets merged, I may have time to update the example to include bech32m-encodings.

Bech32m vs bech32

bech32m result: bcrt1p7y52329xxmse7q9gq9542rldlsntdawaqnvntmz99z224kfcauxqag4w9y
bech32 result: bcrt1p7y52329xxmse7q9gq9542rldlsntdawaqnvntmz99z224kfcauxqg59zqx

@kallewoof kallewoof merged commit 3ba1ec7 into bitcoin-core:master Apr 4, 2022
@kallewoof
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants