Skip to content

Commit

Permalink
tmp_start
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Sep 11, 2023
1 parent 93c41f8 commit bfd6790
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ optional = true
version = "0.13"
default-features = false

[dependencies.pasta_curves]
version = "0.5"
features = ["alloc"]

[dependencies.group]
version = "0.13"
default-features = false
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.61.0"
channel = "1.66.0"
components = [ "clippy", "rustfmt" ]
4 changes: 4 additions & 0 deletions src/g1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption};
#[cfg(feature = "alloc")]
use group::WnafGroup;

use pasta_curves::arithmetic::CurveExt;

use crate::fp::Fp;
use crate::Scalar;

Expand Down Expand Up @@ -587,6 +589,8 @@ impl<'a, 'b> Mul<&'b G1Affine> for &'a Scalar {
}
}

impl CurveExt for G1Projective {}

impl_binops_additive!(G1Projective, G1Projective);
impl_binops_multiplicative!(G1Projective, Scalar);
impl_binops_multiplicative_mixed!(G1Affine, Scalar, G1Projective);
Expand Down

0 comments on commit bfd6790

Please sign in to comment.