10gic / btc-address-dump

A utility for dump BTC address from mnemonic words or private key or public key, Bitcoin forks are also supported.
MIT License
58 stars 26 forks source link

the p2tr address seems wrong. #10

Closed betta-cyber closed 11 months ago

betta-cyber commented 11 months ago

when i run

btc_address_dump -d bip86 --taproot-output-pubkey 0x4a6f5e3a0dc3a293d0938ef6d7d91cba8bc7615f0107963333320534c2cde210
taproot output pubkey = 4a6f5e3a0dc3a293d0938ef6d7d91cba8bc7615f0107963333320534c2cde210
bech32m address (p2tr) = bc1pffh4uwsdcw3f85yn3mmd0kguh29uwc2lqyrevvenxgznfskduggq04scrt

the p2tr address seems wrong.

10gic commented 11 months ago

What is the correct address you expect?

10gic commented 11 months ago

You can verify it in https://slowli.github.io/bech32-buffer/

image