From 690637e3686693574bfd75b435c8ce2a8bbb653c Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Mon, 29 Jan 2018 11:56:48 -0800 Subject: [PATCH] Prevent precomputed points from appearing in the rendered docs. --- build.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.rs b/build.rs index 6b6e652..1c8be62 100644 --- a/build.rs +++ b/build.rs @@ -80,11 +80,13 @@ use edwards::EdwardsBasepointTable; use curve_models::window::LookupTable; use curve_models::AffineNielsPoint; -/// Table containing precomputed multiples of the basepoint `B = (x,4/5)`. -/// -/// The table is defined so `constants::base[i][j-1] = j*(16^2i)*B`, -/// for `0 ≤ i < 32`, `1 ≤ j < 9`. -pub const ED25519_BASEPOINT_TABLE: EdwardsBasepointTable = {:?}; + +/// Table containing precomputed multiples of the Ed25519 basepoint \\\\(B = (x, 4/5)\\\\). +pub const ED25519_BASEPOINT_TABLE: EdwardsBasepointTable = ED25519_BASEPOINT_TABLE_INNER_DOC_HIDDEN; + +/// Inner constant, used to avoid filling the docs with precomputed points. +#[doc(hidden)] +pub const ED25519_BASEPOINT_TABLE_INNER_DOC_HIDDEN: EdwardsBasepointTable = {:?}; \n\n", &table).as_bytes()).unwrap(); // Now generate AFFINE_ODD_MULTIPLES_OF_BASEPOINT