Skip to content

Commit

Permalink
one more approach
Browse files Browse the repository at this point in the history
opened issues for Geometry lib
  • Loading branch information
skaunov committed Jan 30, 2024
1 parent 65514b1 commit 151b4c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions rust-arkworks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ edition = "2021"

[dependencies]
ark-ec = "~0.4.0"
ark-ff = "0.3.0"
ark-std = "0.3.0"
ark-serialize = "~0.4.0"
ark-serialize-derive = "0.3.0"
# ark-ff = "0.3.0"
# ark-std = "0.3.0"
# ark-serialize = "0.3.0"
# ark-serialize-derive = "0.3.0"
thiserror = "1.0.30"
secp256k1 = { git = "https://github.com/geometryresearch/ark-secp256k1.git" }
rand_core = {version = "0.6", default-features=false, features = ["getrandom"] }
Expand Down
6 changes: 5 additions & 1 deletion rust-arkworks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mod tests;
pub mod sig {
use crate::error::EcError;
use crate::hash_to_curve;
use ark_ec::hashing::HashToCurve;
use ark_ec::short_weierstrass_jacobian::GroupAffine;
use ark_ec::{models::SWModelParameters, AffineCurve, ProjectiveCurve};
use ark_ff::{PrimeField, ToBytes};
Expand Down Expand Up @@ -46,7 +47,10 @@ pub mod sig {
//let pk_affine_bytes_vec = affine_to_bytes::<P>(pk);
//let m_pk = [message, pk_affine_bytes_vec.as_slice()].concat();
//hash_to_curve::try_and_increment::<C>(m_pk.as_slice())
Ok(hash_to_curve::hash_to_curve::<Fq, P>(message, pk))
Ok(hash_to_curve::hash_to_curve::<Fq, P>(message, pk));
ark_ec::hashing::map_to_curve_hasher::MapToCurveBasedHasher::<>::hash(
&self, message
)
}

fn compute_c_v1<P: SWModelParameters>(
Expand Down

0 comments on commit 151b4c8

Please sign in to comment.