iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.42k stars 1.42k forks source link

Add taproot using bip86 #507

Open iancoleman opened 2 years ago

iancoleman commented 2 years ago

See BIP86 - https://github.com/bitcoin/bips/blob/master/bip-0086.mediawiki

This document suggests a derivation scheme for HD wallets whose keys are involved in single key P2TR (BIP 341) outputs as the Taproot internal key. ... To derive a public key from the root account, this BIP uses the same account-structure as defined in BIPs 44, 49, and 84, but with a different purpose value for the script type.

Note especially the test vectors

petjal commented 2 years ago

how can we help?

julien-boudry commented 2 years ago

https://github.com/Anderson-Juhasc/bip86

julien-boudry commented 2 years ago

Hi,

Any news/projects about that?

Thanks,

andronoob commented 1 year ago

Things look quite different nowadays. Many APIs have been removed by bitcoinjs, like HDNode, ECPair. There's also bip39 library implemented by bitcoinjs.

andronoob commented 1 year ago

In bitcoinjs-lib's TODO list:

p2tr payment API to make script spends easier

Although the example code to generate SegWit v1 address has been given, it's probably better to just wait bitcoinjs-lib to implement the p2tr payment API.

openMolNike commented 1 year ago

@iancoleman I've created Android app with taproot support. I can help you with theory. This app can derivate Bitcoin and Ethereum absolutely offline. Select "Restore seed" and "Seed to addresses" BIP-39 Coin-flip for crypto Legacy and segwit addresses are equal to iancoleman. Taproot addresses are equal to this tool