Repository navigation
bip461: update status to Complete - #2365
Conversation
|
cc BIP author @liamgilligan for sign-off |
|
Sounds good @jonatack |
|
On second look, I'm not sure if it should be deployed. Core implements the algorithm but I haven't seen them use any of the test vectors. I'm not sure if that is required, but if it is perhaps we should hold off. |
I've put a clanker to look for use in other projects and will get back to this later. In the meanwhile, do you think it would be better moved to Complete?
|
|
Complete should definitely be fine. |
|
@liamgilligan: Do I remember right that there was a subtle discrepancy between what you propose here and what Bitcoin Core has implemented, or should this Specification match exactly? If the former, I’d say Complete would be viable, if the latter, I would support Deployed. |
|
@murchandamus there is a difference. Secp will reject high-s signatures, which are rejected by relay policy despite being valid on-chain. The specification here will accept high-s signatures when verifying, but will never produce them. |
Released in Bitcoin Core v0.17.0 (#13666) in 2018.
de029ec to
133212e
Compare
|
Updated to Complete per review feedback (thanks!) |
murchandamus
left a comment
There was a problem hiding this comment.
Complete sounds good to me.
ACK
That's technically correct, but Bitcoin Core normalizes the signature prior to verifying. Since the grinding loop also happens in Core's code, not in secp's, this is probably fine, isn't it? I checked Core v32.1 passes all the test vectors in BIP461 with this (Macos specific, will probably need some adaptation to run on linux). Checked rust-bitcoin ecosystem. Grinding looks the same but verification but verify will just pass the raw signature to libsecp that will reject it. Didn't run the test vectors on this. |
Released in Bitcoin Core v0.17.0 (PR #13666) in 2018, IIUC.