Skip to content

Commit

Permalink
feat : impl pedersen hash_single
Browse files Browse the repository at this point in the history
  • Loading branch information
varun-doshi committed Jan 10, 2025
1 parent 1c90543 commit 54ab01a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/starknet-types-core/src/hash/pedersen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ impl StarkHash for Pedersen {
});
Felt(PedersenStarkCurve::hash(&current_hash, &data_len.0))
}


/// Computes the Pedersen hash of a single Felt
fn hash_single(felt: &Felt) -> Felt {
todo!()
Felt(PedersenStarkCurve::hash(&Felt::from(0).0, &felt.0))
}
}

Expand Down

0 comments on commit 54ab01a

Please sign in to comment.