Skip to content

Conversation

instagibbs
Copy link
Member

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.

CPubKey vchPubKey;
if (pwalletMain->GetPubKey(CKeyID(uint160(witnessprogram)), vchPubKey)) {
obj.push_back(Pair("pubkey", HexStr(vchPubKey)));
obj.push_back(Pair("iscompressed", vchPubKey.IsCompressed()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signing and watching with segwit uncompressed keys are already disabled. I think the results should be suppressed if the key is not compressed.

@instagibbs
Copy link
Member Author

@jl2012 suppressed uncompressed pubkeys and removed the iscompressed field

luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Dec 21, 2016
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Dec 21, 2016
@instagibbs
Copy link
Member Author

Closing in favor of #9017

@instagibbs instagibbs closed this Jan 4, 2017
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants