Change to RPC command "validateaddress" to return the hex-encoded public key of an address #676

pull forrestv wants to merge 1 commits into bitcoin:master from forrestv:validateaddress_pubkey changing 1 files +3 −0
  1. forrestv commented at 3:20 AM on December 3, 2011: contributor

    This change is useful for programs that might send payments to pubkeys, such as P2Pool. Currently, the only way to do this is to require the user to enable IP transactions and then use the "checkorder" bitcoin P2P command. However, checkorder may be removed and using it is very clumsy.

    Background: Using public keys wherever they can be used is good for the bitcoin network. The total size of a txout and claim txin is smaller when using them, as the pubkey hash is never included and there are several less opcodes.

  2. laanwj commented at 4:43 PM on December 3, 2011: member

    I see nothing wrong with adding this, and the code impact is minimal. ACK.

  3. gavinandresen commented at 8:32 PM on December 3, 2011: contributor

    Same feature is part of the OP_EVAL/multisignature pull request.

  4. RPC command "validateaddress" now returns the hex-encoded public key of an address if it is known 5cb1af4ac1
  5. gavinandresen commented at 8:39 PM on December 20, 2011: contributor

    Closing, because I pulled the superset OP_EVAL change to validateaddress.

  6. gavinandresen closed this on Dec 20, 2011

  7. jpentland referenced this in commit 69867faca7 on Feb 7, 2016
  8. ptschip referenced this in commit 50022f50dc on Jul 11, 2017
  9. rajarshimaitra referenced this in commit 9698ef9c39 on Aug 5, 2021
  10. DrahtBot locked this on Sep 8, 2021

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-26 15:16 UTC

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