mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-08 21:00:40 +00:00
Clarify wording on canonical scalars
This commit is contained in:
parent
35e1b07e72
commit
46048e451b
1 changed files with 4 additions and 2 deletions
|
|
@ -69,8 +69,10 @@
|
||||||
//! ## Scalars
|
//! ## Scalars
|
||||||
//!
|
//!
|
||||||
//! Scalars are represented by the `Scalar` struct. Each scalar has a
|
//! Scalars are represented by the `Scalar` struct. Each scalar has a
|
||||||
//! canonical representative mod the group order; see
|
//! canonical representative mod the group order. To attempt to load
|
||||||
//! `Scalar::from_canonical_bytes()` and `Scalar::is_canonical()`.
|
//! a supposedly-canonical scalar, use
|
||||||
|
//! `Scalar::from_canonical_bytes()`. To check whether a
|
||||||
|
//! representative is canonical, use `Scalar::is_canonical()`.
|
||||||
//!
|
//!
|
||||||
//! ## Scalar Multiplication
|
//! ## Scalar Multiplication
|
||||||
//!
|
//!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue