Skip to content

Commit

Permalink
add module docs scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Feb 6, 2025
1 parent 456c6a1 commit 2d361ee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/zkvm/lib/src/ecdsa/scalar.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//! A wrapper around the [`elliptic_curve::CurveArithmetic`] scalar.
//!
//! This "newtype" is needed due to some limitations of GATs.
//!
//! Specifically, its impossible to generically implement
//! `ProjectivePoint<C>: for<'a> Mul<&'a C::Scalar>`,
//! as required by the [`ff::Group`] trait.
//!
//! See this playground for a minimum reproduction:
//! <https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=507aad241e3609d2f595bd1a95787038>
use super::ECDSACurve;

use elliptic_curve::{
Expand Down

0 comments on commit 2d361ee

Please sign in to comment.