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

How do I generate a Taproot Bech32m address #84

Closed
lusharenck opened this issue May 29, 2023 · 3 comments
Closed

How do I generate a Taproot Bech32m address #84

lusharenck opened this issue May 29, 2023 · 3 comments

Comments

@lusharenck
Copy link

How do I generate a Taproot Bech32m address

@jjhesk
Copy link

jjhesk commented Dec 14, 2023

Lets have more detail about this. I am trying to generate an Taproot address with this package. As we know that the taproot address has a specific format starting with bc1q...
with another library that does the work like this..

from bitcoinlib.wallets import Wallet

passphrase = 'input display smile visa surround learn solar hero vacuum parrot cigar devote'

w = Wallet.create("Wallet11", witness_type='segwit', keys=passphrase, network='bitcoin')
WalletKeys = (w.get_keys(number_of_keys=10))
# bech32 address (p2wpkh)
for k in WalletKeys:
    print(k.address)

it is a part of bech32 address (p2wpkh)

@jjhesk
Copy link

jjhesk commented Feb 5, 2024

The above is not correct. I will need some more assistance.

@meherett
Copy link
Member

P2TR supported in the v3 package. Thank you.

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

3 participants