Closed marsella closed 1 year ago
Notes from a chat this morning:
q
is the order of the k256 curve. There's a k256_order
function in utils.rs
that defines this.positive_bn_random_from_transcript
might still need to take a parameter (it's used with different moduli in pi-mod and pi-sch).
There are two methods that derive
BigNumber
s from aTranscript
inutils.rs
(one draws from±q
and one fromF_q = [0, q)
, for some boundq
).In practice, these are always used to generate challenges from Fiat-Shamir proofs, and the bound is always the order of the elliptic curve.
Simplify the API to hard-code the bound and document/rename the functions to be explicit about their intended use.