bitcoinlib
bitcoinlib copied to clipboard
I want to generate a taproot wallet, how do I do it?
w = Wallet.create("Wallet_taproot", keys=mnemonic, network='bitcoin',witness_type='taproot',db_uri='taproot.db') This will cause an error
#348 you can try like this
wallet = Wallet.create("Wallet_taproot", network='bitcoin')
taproot = Address(wallet.get_key().address, script_type="p2tr", encoding='bech32').address
Taproot wallets are not supported at the moment. But it is currently under development.