-
Notifications
You must be signed in to change notification settings - Fork 645
Open
Description
Bitcoin Core v0.17.0 introduced R-value grinding to ensure that all DER signatures are 71 bytes. In involves looping through nonce values till you produce a smaller sig and deterministically stopping at the first one.
Electrum recently rolled it out so the code could be lifted from there.
- Core issue: Always create signatures with Low R values bitcoin/bitcoin#13666
- Electrum grinding: https://github.com/spesmilo/electrum/blob/4.0.4/electrum/ecc.py#L467
- Reddit thread: https://www.reddit.com/r/Electrum/comments/jf97pc/
- Test Script: https://github.com/brianddk/reddit/blob/master/python/compare-btclib-elec.py
Metadata
Metadata
Assignees
Labels
No labels