Nonce usage in ECDSA signing algorithm I'm trying to understand the signing function secp256k1_ecdsa_sig_sign(), and I'm curious about the nonce usage here. static int secp256k1_ecdsa_sig_sign(const secp256k1_ecmult_gen_context *ctx, secp256k1_scalar *sigr, secp256k1_scalar *sigs, const secp256k1_scalar *seckey, const secp256k1_scalar *message, const secp256k1_scalar *nonce, int *recid) { unsigned char b[32]; secp256k1_gej rp; secp256k1_ge r; secp256k1_scalar n; int overflow = 0; secp256k1_ecmult_gen(ctx, &rp, nonce); secp256k1_ge_set_gej(&r, &rp); secp256k1_fe_normalize(&r.x); secp256k1_fe_normalize(&r.y); secp256k1_fe_get_b32(b, &r.x); secp256k1_scalar_set_b32(sigr, b, &overflow); /* These two conditions should be checked before calling */ VERIFY_CHECK(!secp256k1_scalar_is_zero(sigr)); VERIFY_CHECK(overflow == 0); if (recid) { /* The overflow condition is cryptographically unreachable as hitting it requires f...
The Importance Of Owning Crypto 😀 Thank You For Watching! :D 🚩 Remember to subscribe and hit the bell "🔔" icon! ►Need certified & professional help with your crypto taxes? Taxbit is here to help! Use this link to receive 10% off of their services: https://ift.tt/2GUy4uv ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SUPPORT THE CHANNEL ► Patreon Sponsors (Private Telegram Group) - https://goo.gl/vpX5sW ► YouTube Sponsors - https://www.youtube.com/channel/UCdUSSt-IEUg2eq46rD7lu_g/join -~-~~-~~~-~~-~- 💓Crypto Donations Are Really Appreciated!💓 💎►Donate Ether and Ethereum-Based Tokens: 0x1466032B4F0F13910DA35B16371807428CB40714 💎►Donate Bitcoin: 3JKQycXHdD5yqSRTf5VabM28Ff9AfXYcJD 💎►Donate Bitcoin Cash: qrsq45lsrumctyu98mgjgc0qjaleng2jdgau3qz90x 💎►Donate Dash Xn1sUfFDkZAwArJ6mtJUYVLndnmXctxA1L 💎►Donate Monero 463EDu2cqU4ASxLVVKYkVMbk1Nz6TQyy9Wt8b3D5CdJjZh9JukZNGUyLvbJnXoJNRXTN98cSpLSRVN2bYoDTmsxkJSUKtmy 💎►Donate Using Paypal: https://goo.gl/7m1X4Z -~-~~-~~~-~~-~- MUS...
Comments
Post a Comment