janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.58k stars 1.18k forks source link

How to display the address of p2pk? #389

Closed happyqian closed 3 years ago

happyqian commented 3 years ago

blockchain.info can be displayed. I want to display the p2pk address as a normal address

janoside commented 3 years ago

It's actually not strictly correct to encode p2pk scripts as addresses. For further explanation, see here.

I can see some value in displaying as addresses anyway for simplicity's sake, but given the educational philosophy of this project I'm going to opt to not do anything that's not strictly correct. Thanks for bringing this up though.

happyqian commented 3 years ago

thank you