Skip to content

Conversation

Empact
Copy link
Contributor

@Empact Empact commented Feb 16, 2018

And introduce CPubKeySig to host code relative to key sigs.

@devrandom
Copy link

utACK b0e8b72

@jonasschnelli
Copy link
Contributor

Concept ACK.
Not sure if CPubKeySig needs its own space.

@Empact Empact force-pushed the key-size-consts branch 2 times, most recently from 5393631 to ab4cd44 Compare February 19, 2018 00:14
@Empact
Copy link
Contributor Author

Empact commented Feb 19, 2018

Thanks, made PubKeySig a namespace.

@Empact
Copy link
Contributor Author

Empact commented Feb 20, 2018

On second thought, dropped PubKeySig - without any other code it's barely a separate concern.

@Empact Empact changed the title Refactor key / signature size consts to be relative to their relevant class Refactor key size consts to be relative to their relevant class Feb 20, 2018
@instagibbs
Copy link
Member

seemingly unrelated travis error:

File "/home/travis/build/bitcoin/bitcoin/build/bitcoin-i686-pc-linux-gnu/test/functional/rpc_net.py", line 54, in _test_getnettotals
assert_equal(before['bytesrecv_per_msg']['pong'] + 32, after['bytesrecv_per_msg']['pong'])

kicked travis

@Empact
Copy link
Contributor Author

Empact commented Feb 26, 2018

@instagibbs thanks - seems like that is a timing-related failure, I pushed #12545 to increase the wait, and reduce the likelihood of spurious failures.

@maflcko
Copy link
Member

maflcko commented Mar 19, 2018

Needs rebase if still relevant

@Empact Empact force-pushed the key-size-consts branch 2 times, most recently from b5957ae to cf531e2 Compare March 19, 2018 18:26
@Empact
Copy link
Contributor Author

Empact commented Mar 21, 2018

Rebased

@fanquake fanquake requested a review from sipa March 21, 2018 07:16
@Empact Empact force-pushed the key-size-consts branch 2 times, most recently from 73ad574 to b57fa2a Compare April 12, 2018 20:31
@Empact
Copy link
Contributor Author

Empact commented Apr 12, 2018

Rebased & reimplemented as a scripted-diff

@Empact Empact changed the title Refactor key size consts to be relative to their relevant class scripted-diff: Rename key size consts to be relative to their class Apr 12, 2018
@Empact Empact force-pushed the key-size-consts branch 2 times, most recently from bb3f151 to f1583f2 Compare April 17, 2018 09:11
@sipa
Copy link
Member

sipa commented May 17, 2018

utACK f1583f26f2d9cb199ace6054a67797e1d4d9bed0

@Empact Empact force-pushed the key-size-consts branch from f1583f2 to 0be4880 Compare June 1, 2018 12:18
@Empact
Copy link
Contributor Author

Empact commented Jun 1, 2018

Rebased and updated to cover #13194

@maflcko
Copy link
Member

maflcko commented Sep 7, 2018

utACK 2dda5dd034, but please note that the scripted diff will modify files outside the git tree. I'd prefer to avoid that.

@maflcko maflcko closed this Sep 7, 2018
@maflcko maflcko reopened this Sep 7, 2018
@Empact Empact force-pushed the key-size-consts branch 2 times, most recently from bf342f1 to b9bc812 Compare September 11, 2018 04:54
@Empact
Copy link
Contributor Author

Empact commented Sep 11, 2018

Updated to include 2 new cases, and brought it down to a single sed call which only acts on files in the repo.

@Empact
Copy link
Contributor Author

Empact commented Sep 15, 2018

Rebased for #14195

Copy link
Contributor

@ken2812221 ken2812221 left a comment

Choose a reason for hiding this comment

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

utACK 40c6964

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 17, 2018

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #16463 ([BIP 174] Implement serialization support for GLOBAL_XPUB field. by achow101)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@Empact
Copy link
Contributor Author

Empact commented Mar 4, 2019

Rebased, added a commit to fixup whitespace.

Empact added 2 commits March 4, 2019 01:30
…EY_SIZE

To SIZE and COMPRESSED_SIZE

-BEGIN VERIFY SCRIPT-
sed -i 's/PRIVATE_KEY_SIZE/SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp
sed -i 's/COMPRESSED_PRIVATE_KEY_SIZE/COMPRESSED_SIZE/g' src/*.h src/**/*.cpp src/**/*.h src/**/*.cpp
sed -i 's/PUBLIC_KEY_SIZE/SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp
sed -i 's/COMPRESSED_PUBLIC_KEY_SIZE/COMPRESSED_SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp
-END VERIFY SCRIPT-
@meshcollider
Copy link
Contributor

utACK 0580f86

laanwj added a commit that referenced this pull request Nov 20, 2019
… their class

0580f86 Fixup whitespace (Ben Woosley)
47101bb scripted-diff: Rename CPubKey and CKey::*_KEY_SIZE and COMPRESSED_*_KEY_SIZE (Ben Woosley)

Pull request description:

  ~~And introduce CPubKeySig to host code relative to key sigs.~~

ACKs for top commit:
  meshcollider:
    utACK 0580f86

Tree-SHA512: 29aa0be54912358b138e391b9db78639786f56580493e590ec9f773c0e1b421740133d05a79be247c7ee57e71c9c9e41b9cb54088cb3c0e3f813f74f0895287b
@laanwj laanwj merged commit 0580f86 into bitcoin:master Nov 20, 2019
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 20, 2019
…tive to their class

0580f86 Fixup whitespace (Ben Woosley)
47101bb scripted-diff: Rename CPubKey and CKey::*_KEY_SIZE and COMPRESSED_*_KEY_SIZE (Ben Woosley)

Pull request description:

  ~~And introduce CPubKeySig to host code relative to key sigs.~~

ACKs for top commit:
  meshcollider:
    utACK bitcoin@0580f86

Tree-SHA512: 29aa0be54912358b138e391b9db78639786f56580493e590ec9f773c0e1b421740133d05a79be247c7ee57e71c9c9e41b9cb54088cb3c0e3f813f74f0895287b
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 7, 2020
… to their class

Summary:
  -BEGIN VERIFY SCRIPT-
  sed -i 's/PRIVATE_KEY_SIZE/SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp
  sed -i 's/COMPRESSED_PRIVATE_KEY_SIZE/COMPRESSED_SIZE/g' src/*.h src/**/*.cpp src/**/*.h src/**/*.cpp
  sed -i 's/PUBLIC_KEY_SIZE/SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp
  sed -i 's/COMPRESSED_PUBLIC_KEY_SIZE/COMPRESSED_SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp
  -END VERIFY SCRIPT-

---

Backport of Core [[bitcoin/bitcoin#12461 | PR12461]]

Test Plan:
  ninja all check check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7812
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
…tive to their class

0580f86 Fixup whitespace (Ben Woosley)
47101bb scripted-diff: Rename CPubKey and CKey::*_KEY_SIZE and COMPRESSED_*_KEY_SIZE (Ben Woosley)

Pull request description:

  ~~And introduce CPubKeySig to host code relative to key sigs.~~

ACKs for top commit:
  meshcollider:
    utACK bitcoin@0580f86

Tree-SHA512: 29aa0be54912358b138e391b9db78639786f56580493e590ec9f773c0e1b421740133d05a79be247c7ee57e71c9c9e41b9cb54088cb3c0e3f813f74f0895287b
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Aug 10, 2021
…tive to their class

0580f86 Fixup whitespace (Ben Woosley)
47101bb scripted-diff: Rename CPubKey and CKey::*_KEY_SIZE and COMPRESSED_*_KEY_SIZE (Ben Woosley)

Pull request description:

  ~~And introduce CPubKeySig to host code relative to key sigs.~~

ACKs for top commit:
  meshcollider:
    utACK bitcoin@0580f86

Tree-SHA512: 29aa0be54912358b138e391b9db78639786f56580493e590ec9f773c0e1b421740133d05a79be247c7ee57e71c9c9e41b9cb54088cb3c0e3f813f74f0895287b
5tefan pushed a commit to 5tefan/dash that referenced this pull request Aug 12, 2021
…tive to their class

0580f86 Fixup whitespace (Ben Woosley)
47101bb scripted-diff: Rename CPubKey and CKey::*_KEY_SIZE and COMPRESSED_*_KEY_SIZE (Ben Woosley)

Pull request description:

  ~~And introduce CPubKeySig to host code relative to key sigs.~~

ACKs for top commit:
  meshcollider:
    utACK bitcoin@0580f86

Tree-SHA512: 29aa0be54912358b138e391b9db78639786f56580493e590ec9f773c0e1b421740133d05a79be247c7ee57e71c9c9e41b9cb54088cb3c0e3f813f74f0895287b
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 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.