Explorar el Código

add addition example

narodnik hace 5 años
padre
commit
2a8fb1ac27
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      scripts/pasta/main.rs

+ 2 - 0
scripts/pasta/main.rs

@@ -16,4 +16,6 @@ fn main() {
     let c = pasta::vesta::Point::random(&mut OsRng);
     let d = pasta::vesta::Point::random(&mut OsRng);
     println!("C = {:?}", c.to_affine());
+    println!("D = {:?}", c.to_affine());
+    println!("C + D = {:?}", (c + d).to_affine());
 }