Skip to content

Commit 54ab01a

Browse files
committed
feat : impl pedersen hash_single
1 parent 1c90543 commit 54ab01a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/starknet-types-core/src/hash/pedersen.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ impl StarkHash for Pedersen {
2626
});
2727
Felt(PedersenStarkCurve::hash(&current_hash, &data_len.0))
2828
}
29-
29+
30+
/// Computes the Pedersen hash of a single Felt
3031
fn hash_single(felt: &Felt) -> Felt {
31-
todo!()
32+
Felt(PedersenStarkCurve::hash(&Felt::from(0).0, &felt.0))
3233
}
3334
}
3435

0 commit comments

Comments
 (0)