We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7056824 + 582ba73 commit 6150895Copy full SHA for 6150895
common-files/utils/crypto/merkle-tree/utils.mjs
@@ -182,8 +182,7 @@ function shaHash(...items) {
182
function poseidonHash(...items) {
183
const inputs = items.map(i => generalise(i));
184
const hash = poseidonHashFunction(inputs);
185
-console.log('--------------------------------------------');
186
-return `0x${hash.hex().slice(2).padStart(64, '0')}`;
+return hash.hex(32);
187
}
188
189
function concatenateThenHash(hashType, ...items) {
nightfall-deployer/contracts/Poseidon.sol
@@ -1,3 +1,7 @@
1
+// SPDX-License-Identifier: CC0-1.0
2
+// This is adapted from https://.com/Loopring/
3
+// but converted for our specific 2-input hash variety
4
+// We are grateful for the work done by Loopring.
5
pragma solidity ^0.8.0;
6
7
library Poseidon
0 commit comments