Clarify wording on canonical scalars

This commit is contained in:
Henry de Valence 2018-03-27 15:03:19 -07:00
parent 35e1b07e72
commit 46048e451b

View file

@ -69,8 +69,10 @@
//! ## Scalars
//!
//! Scalars are represented by the `Scalar` struct. Each scalar has a
//! canonical representative mod the group order; see
//! `Scalar::from_canonical_bytes()` and `Scalar::is_canonical()`.
//! canonical representative mod the group order. To attempt to load
//! a supposedly-canonical scalar, use
//! `Scalar::from_canonical_bytes()`. To check whether a
//! representative is canonical, use `Scalar::is_canonical()`.
//!
//! ## Scalar Multiplication
//!