Skip to content

Commit

Permalink
use pedersen__hash_with_hash_index instead of pedersen__compress_with…
Browse files Browse the repository at this point in the history
…_hash_index
  • Loading branch information
kevaundray committed Oct 25, 2023
1 parent 245e44b commit 7ac8d37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function pedersenHashWithHashIndex(wasm: IWasmModule, inputs: Buffer[], h
wasm.call('pedersen__init');
const inputVectors = serializeBufferArrayToVector(inputs);
wasm.writeMemory(0, inputVectors);
wasm.call('pedersen__compress_with_hash_index', 0, 0, hashIndex);
wasm.call('pedersen__hash_with_hash_index', 0, 0, hashIndex);
return Buffer.from(wasm.getMemorySlice(0, 32));
}

Expand Down

0 comments on commit 7ac8d37

Please sign in to comment.