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
[experiment/wip] ecdsa nonce anti sidechan util functions
This is based on the description of the fix by Stepan: https://medium.com/cryptoadvance/hardware-wallets-can-be-hacked-but-this-is-fine-a6156bbd199
The protocol wording and functions are copied/adapted from Jonas
Nick's PRs which do the same for BIP-Schnorr:
ae5fb7f#diff-b19c5ee427283d4d82bc5beb4e2f4777R59ae5fb7f#diff-313ca26f0048bc16a608709915d0111eR70
1.
Add secp256k1_ecdsa_anti_nonce_sidechan_client_commit to return the
curve point committing to the signing client nonce.
This is a convenience function and can technically be emulated by
calling secp256k1_ecdsa_sign() and reconstructing the curve point from
the signature r/s values.
2.
secp256k1_ecdsa_sign_nonce_tweak_add, which is the same as
secp256k1_ecdsa_sign_nonce, but with an additional optional tweak parameter to
add to the nonce.
The nicer way to do this is to redefine `secp256k1_nonce_function` to
have a tweak param, but this would break API compatiblity. The way it
is implemented is fully backwards compatible.
0 commit comments