Having the constants checked explicitly in a single spot helps with possible regressions and also useful for documentation.
In addition, add a check for undefined v1 witness programs.
Having the constants checked explicitly in a single spot helps with possible regressions and also useful for documentation.
In addition, add a check for undefined v1 witness programs.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | theStack, MarcoFalke |
Concept ACK | jamesob |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Code-review ACK b093f5619f8f9b7d63ee60ff04de00b907b13d64
Cross-checked the dust limit values by comparing to the output of the functional dust limit test that #26631 introduces:
02023-01-13T14:57:38.059000Z TestFramework (INFO): Test default dust limit setting (3000 sat/kvB)...
12023-01-13T14:57:38.064000Z TestFramework (INFO): -> Test P2PK (uncompressed) output (size 67, limit 672)
22023-01-13T14:57:38.100000Z TestFramework (INFO): -> Test P2PK (compressed) output (size 35, limit 576)
32023-01-13T14:57:38.119000Z TestFramework (INFO): -> Test P2PKH output (size 25, limit 546)
42023-01-13T14:57:38.133000Z TestFramework (INFO): -> Test P2SH output (size 23, limit 540)
52023-01-13T14:57:38.146000Z TestFramework (INFO): -> Test P2WPKH output (size 22, limit 294)
62023-01-13T14:57:38.159000Z TestFramework (INFO): -> Test P2WSH output (size 34, limit 330)
72023-01-13T14:57:38.173000Z TestFramework (INFO): -> Test P2TR output (size 34, limit 330)
82023-01-13T14:57:38.187000Z TestFramework (INFO): -> Test P2?? (future witness version 2) output (size 4, limit 240)
92023-01-13T14:57:38.201000Z TestFramework (INFO): -> Test P2?? (future witness version 16) output (size 42, limit 354)
102023-01-13T14:57:38.215000Z TestFramework (INFO): -> Test bare multisig (m-of-3) output (size 201, limit 1074)
112023-01-13T14:57:38.231000Z TestFramework (INFO): -> Test null data (OP_RETURN) output (size 20, limit 0)
(somehow unrelated side-note: through the comment for uncompressed P2PK, TIL about the existence of “hybrid” pubkeys, prefixed with 0x06 or 0x07 instead of 0x04 👀 : https://bitcoin.stackexchange.com/questions/57855/c-secp256k1-what-do-prefixes-0x06-and-0x07-in-an-uncompressed-public-key-signif)
OpenSSL is a trip :)
I didn’t know about that PR, sorry! Will take a look there as well.
review ACK b093f5619f8f9b7d63ee60ff04de00b907b13d64 🥉
Signature:
0-----BEGIN PGP SIGNED MESSAGE-----
1Hash: SHA512
2
3review ACK b093f5619f8f9b7d63ee60ff04de00b907b13d64 🥉
4-----BEGIN PGP SIGNATURE-----
5
6iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
7pUicAQwAme8hUdLpNPexYsRu2QXv5c+O0Omdfg5cwmLORnRckSquLFWxYDPcY6TZ
8Q9AhWfbVyWltCzFEEkd1kfEBRTTHup868DR5VEPyjt6VPmA7O8MlqthgS9Q0DAep
94MHTTJ/n0Z6zDRybltWQS0btS/42SIH6Bk4WcrJI5DtW7IkXbekDVsdKg6uohULj
10HxGzxpo4xQVHuZ84VFDktrwI+luxpaS3dm0qodl65N3kPm2fY62rSLGBFZVHRyK6
11e994TMtglrLzta7MSTXFi/DJwfMjGLQXgCqKKidwsnGF9DPoEJxvMjc52A1ehJQ3
12je8XzV+0QKWMSaU87/ColX6NT1cN+sb96jy8Xs2JgE7eeAOQvr+AqlXSEvuho++w
13KM8bbHEHmd9mcFZ9InTJa4aVGjXxoi6J97Xv1YJWPFP8xJJvJlsqPCS6z1mttqGo
14wieMmHUNOeKynoaB/SJEENX4NOoAnl2c8E1LnsgzbCRwgOZnMBe0GMBj7y2PJYcE
15LeqTa6/B
16=/7JM
17-----END PGP SIGNATURE-----