This commit is contained in:
Rostyslav Tyshko
2023-10-30 14:00:59 +01:00
parent c2a0bcbabc
commit a4e2ab9b1c
2 changed files with 3 additions and 3 deletions

View File

@@ -3,12 +3,12 @@ name = "poseidon-starky"
version = "0.1.0"
categories = ["cryptography"]
description = "Implementation of the Poseidon2 hash function"
description = "Implementation of the Poseidon hash function"
edition = "2021"
keywords = ["crypto", "zero-knowledge"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/0xmozak/hashes"
repository = "https://github.com/vacp2p/zk-explorations"
[dependencies]
anyhow = "1.0.71"

View File

@@ -122,7 +122,7 @@ fn generate_outputs<Field: RichField>(preimage: &[Field; STATE_SIZE]) -> [Field;
outputs
}
/// Function to generate the Poseidon2 trace
/// Function to generate the Poseidon trace
pub fn generate_poseidon_trace<F: RichField>(step_rows: &Vec<Row<F>>) -> [Vec<F>; NUM_COLS] {
let trace_len = step_rows.len();
let mut trace: Vec<Vec<F>> = vec![vec![F::ZERO; trace_len]; NUM_COLS];