When we ever switch to p2sh-p2pkh this will be useful for general wallet usage, as well as adapting tests where retrieving the pubkeys for standard addresses is important.
Enable pubkey lookup for p2sh-p2wpkh in validateaddress #8992
pull instagibbs wants to merge 2 commits into bitcoin:master from instagibbs:validatep2pkh changing 1 files +9 −0-
instagibbs commented at 8:04 PM on October 21, 2016: member
-
Enable pubkey lookup for p2sh-p2wpkh in validateaddress 3d2db70980
-
in src/rpc/misc.cpp:None in 3d2db70980 outdated
140 | + std::vector<unsigned char> witnessprogram; 141 | + subscript.IsWitnessProgram(witnessversion, witnessprogram); 142 | + CPubKey vchPubKey; 143 | + if (pwalletMain->GetPubKey(CKeyID(uint160(witnessprogram)), vchPubKey)) { 144 | + obj.push_back(Pair("pubkey", HexStr(vchPubKey))); 145 | + obj.push_back(Pair("iscompressed", vchPubKey.IsCompressed()));
jl2012 commented at 8:50 PM on October 21, 2016:Signing and watching with segwit uncompressed keys are already disabled. I think the results should be suppressed if the key is not compressed.
fanquake added the label RPC/REST/ZMQ on Oct 22, 2016supress uncompressed segwit pubkeys 981af939e8instagibbs commented at 1:46 PM on October 24, 2016: member@jl2012 suppressed uncompressed pubkeys and removed the
iscompressedfieldluke-jr referenced this in commit 4762f19400 on Dec 21, 2016luke-jr referenced this in commit f2eb1cf077 on Dec 21, 2016instagibbs commented at 6:28 PM on January 4, 2017: memberClosing in favor of https://github.com/bitcoin/bitcoin/pull/9017
instagibbs closed this on Jan 4, 2017MarcoFalke locked this on Sep 8, 2021ContributorsLabels
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-13 15:15 UTC
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-13 15:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me