diff options
author | Andrew Chow <github@achow101.com> | 2023-10-05 11:52:04 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-10-05 11:58:07 -0400 |
commit | 6e5cf8e95391cd9a8bfc0c357e8a6f3963bad4b4 (patch) | |
tree | fd5e3912ae56317b957c03497eb48b31dcdb89bd /src/clientversion.cpp | |
parent | d9c1cc5f1f5460f6adcce95779f34f2ed356dda3 (diff) | |
parent | c1e6c542af6d89a499e2a65465865aec651c4d67 (diff) | |
download | bitcoin-6e5cf8e95391cd9a8bfc0c357e8a6f3963bad4b4.tar.xz |
Merge bitcoin/bitcoin#28587: descriptors: disallow hybrid public keys
c1e6c542af6d89a499e2a65465865aec651c4d67 descriptors: disallow hybrid public keys (Pieter Wuille)
Pull request description:
Fixes #28511
The descriptor documentation (`doc/descriptors.md`) and [BIP380](https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki) explicitly require that hex-encoded public keys start with 02 or 03 (compressed) or 04 (uncompressed). However, the current parsing/inference code permit 06 and 07 (hybrid) encoding as well. Fix this.
ACKs for top commit:
darosior:
ACK c1e6c542af6d89a499e2a65465865aec651c4d67
achow101:
ACK c1e6c542af6d89a499e2a65465865aec651c4d67
Tree-SHA512: 23b674fb420619b2536d12da10008bb87cf7bc0333ec59e618c0d02c3574b468cc71248475ece37f76658d743ef51e68566948e903bca79fda5f7d75416fea4d
Diffstat (limited to 'src/clientversion.cpp')
0 files changed, 0 insertions, 0 deletions