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
  1. cefikhan commented at 2:48 AM on April 30, 2023: none

    rpc: ScriptToUniv Can get address of PUBKEY

  2. ScriptToUniv can get address of PUBKEY 9e41071f0b
  3. 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.

  4. DrahtBot added the label CI failed on Apr 30, 2023
  5. 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.

  6. 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 #bitcoin IRC channel on Libera Chat.

  7. maflcko closed this on Apr 30, 2023

  8. 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.

  9. bitcoin locked this on May 2, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-28 00:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me