Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

2 votes

Why does Electrum's createnewaddress() only return legacy addresses?

Electrum stores whether to create legacy addresses or segwit addresses at the wallet level (it is part of the Electrum seed itself), hence each wallet is configured to only produce legacy addresses or ...
Ava Chow's user avatar
  • 70.8k
0 votes

How do I construct a P2TR address if I just want to use the key path?

You can read the following code, the key point is that the root of TapRoot should be an empty array so only the public key is hashed. https://github.com/mohanson/pybtc/blob/...
Mohanson's user avatar

Top 50 recent answers are included