From 79bcbdc89b242446e2596b7f98fb7386534eed17 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 29 Jan 2023 11:53:43 -0700 Subject: [PATCH] Re-export commonly used types from toplevel (#502) Re-exports the following commonly used types from their respective modules to the toplevel of the crate, which makes them easier to access: - `EdwardsPoint` - `MontgomeryPoint` - `RistrettoPoint` - `Scalar` --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 6286ab9..abdf980 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,3 +80,7 @@ pub(crate) mod backend; // Generic code for window lookups pub(crate) mod window; + +pub use crate::{ + edwards::EdwardsPoint, montgomery::MontgomeryPoint, ristretto::RistrettoPoint, scalar::Scalar, +};