Skip to content

Commit

Permalink
Test lambdaworks hash as a const with const fn
Browse files Browse the repository at this point in the history
  • Loading branch information
entropidelic committed Mar 26, 2024
1 parent c5af9f6 commit 9190e7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/starknet-types-core/src/hash/pedersen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ use lambdaworks_math::field::{
};

use super::traits::StarkHash;
const PEDERSEN_LAMBDAWORKS: lambdaworks_crypto::hash::pedersen::Pedersen =
PedersenLambdaworks::default();
const PEDERSEN_LAMBDAWORKS: lambdaworks_crypto::hash::pedersen::Pedersen = pedersen_lambdaworks();

const fn pedersen_lambdaworks() -> PedersenLambdaworks {
PedersenLambdaworks::default()
}

pub struct Pedersen;

Expand Down

0 comments on commit 9190e7f

Please sign in to comment.