modules: Port bitcoin-core/secp256k1#1579 to zkp-specific code

This commit is contained in:
DarkWindman
2026-02-18 16:26:07 +02:00
parent 913be29ea2
commit e3bddfa750
13 changed files with 34 additions and 12 deletions

View File

@@ -34,6 +34,7 @@ static void secp256k1_bppp_challenge_scalar(secp256k1_scalar* ch, const secp256k
secp256k1_bppp_le64(buf, idx);
secp256k1_sha256_write(&sha, buf, 8);
secp256k1_sha256_finalize(&sha, buf);
secp256k1_sha256_clear(&sha);
secp256k1_scalar_set_b32(ch, buf, NULL);
}