Skip to content

Commit

Permalink
chainio/utils nit
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovahs committed May 9, 2024
1 parent fb42347 commit e4e70ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/chainio/utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use eigensdk_crypto_bn254::utils::u256_to_bigint256;
use RegistryCoordinator::{G1Point as RegistryG1Point, G2Point as RegistryG2Point};

pub fn convert_bn254_to_ark(g1_point: RegistryCoordinator::G1Point) -> G1Point {
G1Point::new(u256_to_bigint256(g1_point.x), u256_to_bigint256(g1_point.y))
G1Point::new(u256_to_bigint256(g1_point.X), u256_to_bigint256(g1_point.Y))
}

pub fn convert_to_bn254_g1_point(g1: G1Projective) -> RegistryG1Point {
Expand Down
3 changes: 3 additions & 0 deletions crates/contracts/bindings/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//! This module is a helper module to generate ethers bindings, if required
//!
//! If you are using alloy, you don't need to take any action.


3 changes: 2 additions & 1 deletion crates/crypto/bls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ ark-ff.workspace = true
eigensdk-crypto-bn254.workspace = true
thiserror.workspace = true
ethers-core.workspace = true
ark-ec = "0.4.2"
ark-ec = "0.4.2"
alloy-primitives.workspace = true
2 changes: 1 addition & 1 deletion crates/crypto/bls/src/attestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use ark_ff::{BigInteger256, Field, One};
use eigensdk_crypto_bn254::utils::{
get_g2_generator, mul_by_generator_g1, mul_by_generator_g2, u256_to_bigint256,
};
use ethers_core::types::U256;
use alloy_primitives::U256;
use std::ops::Neg;
use std::ops::{Add, Mul};
pub fn new_fp_element(x: BigInteger256) -> Fq {
Expand Down

0 comments on commit e4e70ac

Please sign in to comment.