-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New witness program definition in BIP141, and related revision in 142 - 144 #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
363063e
to
06dee85
Compare
ACK on the 141 and 143 changes |
0245041
to
62957bf
Compare
ACK on all BIPs. |
ACK BIP 142, much improved. |
bip-0142.mediawiki
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signle > single
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schildbach Corrected. Thanks
ACK |
NACK for 142. This would make a conflict between two version bytes, breaking client who depended on the base58 to infer the network of a base58 string. Main EXT_PUBLIC_KEY 4,136,178,30 <=> TestNet WITNESS_P2WPKH 4 Solution without conflict:
I also want to note there is conflict with the segnet and mainnet as well
@sipa I think this should be changed for the public segnet, or people trying the segnet will break when they wanted to extract the network from the base58 string. It's a weak NACK, I understand that not making collision will be harder and harder though. |
BIP142 revised to resolve the conflict |
Thanks, last thing I am thinking. Why making a scheme address specific for v0 and not something general to all segwit payment ? If we use the BIP142 scheme, the problem is that when a new segwit will release, no wallet will be able to send to it... all wallets want to do is sending money, they should not need to implement a new address scheme for a new segwit version. There should be one address version for both wsh and wpkh. |
@NicolasDorier This is actually generalizable, as long as the future version is 20 byte or 32 byte or both. It's very likely that future versions will be 32 byte. In the very first version of BIP142 I actually made it completely generalizable to any script length but that idea was not very popular: #267 |
well, in future version a new address version should be found. And during a while, all wallet will not be able to send to it. |
I see, ACK. In the future when a new segwit version will be out, maybe a new address scheme will be implemented which is generaly secure for scripts. |
README.mediawiki
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need a BOM here...
New witness program definition in BIP141, and related revision in 142 - 144
BIP141: New witness program definition
BIP142: Title change; new address definition
BIP143: Title change and update reference implementation
BIP144: Update reference implementation