You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you call RFC6979() function in USE_FASTECDSA case, you need to pass it additional argument True for prehashed parameter. This means that the message that you pass it to generate k does not need to be hashed again. Indeed, this value has already been double hashed in by Transaction object. There is no need to hash it again. While there is no harm in hashing it again, it makes you inconsistent with other wallets as you won't have the same signature for the same transaction, which was the whole point for actually generating deterministic signatures.
The text was updated successfully, but these errors were encountered:
When you call RFC6979() function in USE_FASTECDSA case, you need to pass it additional argument True for prehashed parameter. This means that the message that you pass it to generate k does not need to be hashed again. Indeed, this value has already been double hashed in by Transaction object. There is no need to hash it again. While there is no harm in hashing it again, it makes you inconsistent with other wallets as you won't have the same signature for the same transaction, which was the whole point for actually generating deterministic signatures.
The text was updated successfully, but these errors were encountered: