diff --git a/src/arithmetic/curves.rs b/src/arithmetic/curves.rs index b6b5db5a0c..8097344110 100644 --- a/src/arithmetic/curves.rs +++ b/src/arithmetic/curves.rs @@ -98,6 +98,11 @@ pub struct Coordinates { } impl Coordinates { + // Crates new coordinates + pub fn new(x: C::Base, y: C::Base) -> Self { + Self { x, y } + } + /// Returns the x-coordinate. /// /// Equivalent to `Coordinates::u`.