Sitelet https://github.com/Snezhkko/cairo/commit/cd2b949815fed85c5d0244bfdfe0871219308da4
Skip to content

Commit cd2b949

Browse files
authored
fix(corelib): correct range notation in is_signature_s_valid (starkware-libs#9183)
1 parent c13b015 commit cd2b949

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎corelib/src/starknet/secp256_trait.cairo‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,15 @@ pub fn is_signature_entry_valid<
230230
value != 0_u256 && value < Secp256Impl::get_curve_size()
231231
}
232232

233-
/// Checks whether the given `s` is in the range [1, N / 2), where N is the size of the curve.
233+
/// Checks whether the given `s` is in the range [1, N / 2], where N is the size of the curve.
234234
///
235-
/// For ECDSA signatures to be secure, the `s` component must be in the range [1, N / 2),
235+
/// For ECDSA signatures to be secure, the `s` component must be in the range [1, N / 2],
236236
/// where N is the order of the curve.
237237
/// This function validates that a given value meets this requirement.
238238
///
239239
/// # Returns
240240
///
241-
/// Returns `true` if the value is in the valid range [1, N / 2), `false` otherwise.
241+
/// Returns `true` if the value is in the valid range [1, N / 2], `false` otherwise.
242242
///
243243
/// # Examples
244244
///

0 commit comments

Comments
 (0)