@aztec/merkle-tree 0.69.1 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ import { type MerkleTree } from './interfaces/merkle_tree.js';
|
|
|
8
8
|
/**
|
|
9
9
|
* An ephemeral unbalanced Merkle tree implementation.
|
|
10
10
|
* Follows the rollup implementation which greedily hashes pairs of nodes up the tree.
|
|
11
|
-
* Remaining rightmost nodes are shifted up until they can be paired.
|
|
11
|
+
* Remaining rightmost nodes are shifted up until they can be paired.
|
|
12
12
|
*/
|
|
13
13
|
export declare class UnbalancedTree<T extends Bufferable = Buffer> implements MerkleTree<T> {
|
|
14
14
|
private name;
|
package/dest/unbalanced_tree.js
CHANGED
|
@@ -5,7 +5,7 @@ const indexToKeyHash = (name, level, index) => `${name}:${level}:${index}`;
|
|
|
5
5
|
/**
|
|
6
6
|
* An ephemeral unbalanced Merkle tree implementation.
|
|
7
7
|
* Follows the rollup implementation which greedily hashes pairs of nodes up the tree.
|
|
8
|
-
* Remaining rightmost nodes are shifted up until they can be paired.
|
|
8
|
+
* Remaining rightmost nodes are shifted up until they can be paired.
|
|
9
9
|
*/
|
|
10
10
|
export class UnbalancedTree {
|
|
11
11
|
constructor(hasher, name, maxDepth = 0, deserializer) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/merkle-tree",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"typedocOptions": {
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@aztec/circuit-types": "0.
|
|
60
|
-
"@aztec/foundation": "0.
|
|
61
|
-
"@aztec/kv-store": "0.
|
|
62
|
-
"@aztec/types": "0.
|
|
59
|
+
"@aztec/circuit-types": "0.70.0",
|
|
60
|
+
"@aztec/foundation": "0.70.0",
|
|
61
|
+
"@aztec/kv-store": "0.70.0",
|
|
62
|
+
"@aztec/types": "0.70.0",
|
|
63
63
|
"sha256": "^0.2.0",
|
|
64
64
|
"tslib": "^2.4.0"
|
|
65
65
|
},
|
package/src/unbalanced_tree.ts
CHANGED
|
@@ -10,7 +10,7 @@ const indexToKeyHash = (name: string, level: number, index: bigint) => `${name}:
|
|
|
10
10
|
/**
|
|
11
11
|
* An ephemeral unbalanced Merkle tree implementation.
|
|
12
12
|
* Follows the rollup implementation which greedily hashes pairs of nodes up the tree.
|
|
13
|
-
* Remaining rightmost nodes are shifted up until they can be paired.
|
|
13
|
+
* Remaining rightmost nodes are shifted up until they can be paired.
|
|
14
14
|
*/
|
|
15
15
|
export class UnbalancedTree<T extends Bufferable = Buffer> implements MerkleTree<T> {
|
|
16
16
|
// This map stores index and depth -> value
|