rpc: ScriptToUniv Can get address of PUBKEY
ScriptToUniv can get address of PUBKEY #27546
pull cefikhan wants to merge 1 commits into bitcoin:master from cefikhan:master changing 1 files +1 −1-
cefikhan commented at 2:48 AM on April 30, 2023: none
-
ScriptToUniv can get address of PUBKEY 9e41071f0b
-
DrahtBot commented at 2:48 AM on April 30, 2023: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process.
Type Reviewers Concept NACK sipa If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
- DrahtBot added the label CI failed on Apr 30, 2023
-
sipa commented at 7:42 AM on April 30, 2023: member
Concept NACK
Sorry, no. P2PK outputs do not have an address. It's an outdated and confusing practice to refer to them as their corresponding P2PKH address.
-
maflcko commented at 8:59 AM on April 30, 2023: member
Closing for now, because this seems to be controversial and all tests fail, so this can't be merged in any case. Let us know if you have any questions, or you can refer to stack exchange:
General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange or the
#bitcoinIRC channel on Libera Chat. - maflcko closed this on Apr 30, 2023
-
cefikhan commented at 10:35 AM on May 3, 2023: none
Concept NACK
Sorry, no. P2PK outputs do not have an address. It's an outdated and confusing practice to refer to them as their corresponding P2PKH address.
as far as my understanding
see we have private key --> secp256k1 -- > public key --> sha256 --> RIPEMD160 --> Hashed Publickey --> hashed Publickey + checksum = wallet address
and we have the flow of ExtractDestination
PUBKEY -->passed to --> EXTRACT DESTINATION -->PKHash returned
PUBKEYHASH -->passed to --> EXTRACT DESTINATION --> PKHash returned
we pass this PKHash to EncodeDestination which passes it to DestinationEncoder which returns us the wallet address can you please guide me where I am getting it wrong ? that would really nice of you.
- bitcoin locked this on May 2, 2024