Hey, I’m trying to wrap my head around this BIP stuff. So there are two methods for making threshold signatures based on the number k, right?
If k is set to 16, we go with OP_16, which I think is 0x60. What happens when k is 17? Is it 0x61 or 0x11?
I’m confused because k equals 17 in this case... Thanks for any help!
Threshold Signatures and BIP Questions
2 replies 148 views
Alright, here’s my take. If you get into the code, you’ll see that it raises the limit for public keys to 999. For numbers beyond 16, they’re handled like usual but with a “minimal push” rule. So for 17, we use 0x0111. The 0x01 tells the interpreter to push a single byte, and then 0x11 represents 17.
This way, numbers get pushed in the shortest form possible. Can’t wait to see what everyone thinks about this!
Thanks for clarifying that!
But just to be sure, does this mean we can have a ton of pubkeys now? And what’s the reasoning behind this limit change? Seems kinda interesting.
Related topics
- Making BIP-39 Seeds More Compact 17
- Questions about SegWit and Compatibility with Old Bitcoin Nodes 12
- Questions on Bitcoin Core Wallet Encryption and Backups 24
- New Bitcoin Improvement Proposal with $100 Reward 9
- Clipboard Vulnerabilities in Cryptocurrency Transactions 8
- Understanding the Differences Between Traditional and Simplified Chinese Mnemonics 6