mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
@@ -31,6 +31,7 @@ library IncrementalBinaryTree {
|
||||
uint8 depth,
|
||||
uint256 zero
|
||||
) public {
|
||||
require(zero < SNARK_SCALAR_FIELD, "IncrementalBinaryTree: leaf must be < SNARK_SCALAR_FIELD");
|
||||
require(depth > 0 && depth <= MAX_DEPTH, "IncrementalBinaryTree: tree depth must be between 1 and 32");
|
||||
|
||||
self.depth = depth;
|
||||
|
||||
@@ -31,6 +31,7 @@ library IncrementalQuinTree {
|
||||
uint8 depth,
|
||||
uint256 zero
|
||||
) public {
|
||||
require(zero < SNARK_SCALAR_FIELD, "IncrementalBinaryTree: leaf must be < SNARK_SCALAR_FIELD");
|
||||
require(depth > 0 && depth <= MAX_DEPTH, "IncrementalQuinTree: tree depth must be between 1 and 32");
|
||||
|
||||
self.depth = depth;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zk-kit/incremental-merkle-tree.sol",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "Incremental Merkle tree Solidity libraries.",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
|
||||
Reference in New Issue
Block a user