Parcourir la source

Clarify in a comment that ranges must always have strictly more than 1 element in them

Ian Goldberg il y a 6 mois
Parent
commit
1a6011d2f7
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      sigma_compiler_core/src/rangeproof.rs

+ 4 - 3
sigma_compiler_core/src/rangeproof.rs

@@ -14,9 +14,10 @@
 //! where `L` is the order of the group you are using.
 //!
 //! The size of the range (`b-a`) will be known at run time, but not
-//! necessarily at compile time.  The size must fit in an [`i128`].
-//! Note that the range (and its size) are public, but the value you
-//! are stating is in the range will be private.
+//! necessarily at compile time.  The size must fit in an [`i128`] and
+//! must be strictly greater than 1.  Note that the range (and its size)
+//! are public, but the value you are stating is in the range will be
+//! private.
 
 use super::codegen::CodeGen;
 use super::pedersen::{recognize_linscalar, recognize_pubscalar, LinScalar};