@aztec/merkle-tree 0.87.7 → 1.0.0-nightly.20250604

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.
package/dest/index.d.ts CHANGED
@@ -4,7 +4,6 @@ export * from './interfaces/merkle_tree.js';
4
4
  export * from './interfaces/update_only_tree.js';
5
5
  export * from './pedersen.js';
6
6
  export * from './poseidon.js';
7
- export * from './sha_256.js';
8
7
  export * from './sparse_tree/sparse_tree.js';
9
8
  export { StandardIndexedTree } from './standard_indexed_tree/standard_indexed_tree.js';
10
9
  export { StandardIndexedTreeWithAppend } from './standard_indexed_tree/test/standard_indexed_tree_with_append.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mEAAmE,CAAC;AAClH,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mEAAmE,CAAC;AAClH,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC"}
package/dest/index.js CHANGED
@@ -4,7 +4,6 @@ export * from './interfaces/merkle_tree.js';
4
4
  export * from './interfaces/update_only_tree.js';
5
5
  export * from './pedersen.js';
6
6
  export * from './poseidon.js';
7
- export * from './sha_256.js';
8
7
  export * from './sparse_tree/sparse_tree.js';
9
8
  export { StandardIndexedTree } from './standard_indexed_tree/standard_indexed_tree.js';
10
9
  export { StandardIndexedTreeWithAppend } from './standard_indexed_tree/test/standard_indexed_tree_with_append.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/merkle-tree",
3
- "version": "0.87.7",
3
+ "version": "1.0.0-nightly.20250604",
4
4
  "type": "module",
5
5
  "exports": "./dest/index.js",
6
6
  "typedocOptions": {
@@ -54,9 +54,9 @@
54
54
  ]
55
55
  },
56
56
  "dependencies": {
57
- "@aztec/foundation": "0.87.7",
58
- "@aztec/kv-store": "0.87.7",
59
- "@aztec/stdlib": "0.87.7",
57
+ "@aztec/foundation": "1.0.0-nightly.20250604",
58
+ "@aztec/kv-store": "1.0.0-nightly.20250604",
59
+ "@aztec/stdlib": "1.0.0-nightly.20250604",
60
60
  "sha256": "^0.2.0",
61
61
  "tslib": "^2.4.0"
62
62
  },
package/src/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from './interfaces/merkle_tree.js';
4
4
  export * from './interfaces/update_only_tree.js';
5
5
  export * from './pedersen.js';
6
6
  export * from './poseidon.js';
7
- export * from './sha_256.js';
8
7
  export * from './sparse_tree/sparse_tree.js';
9
8
  export { StandardIndexedTree } from './standard_indexed_tree/standard_indexed_tree.js';
10
9
  export { StandardIndexedTreeWithAppend } from './standard_indexed_tree/test/standard_indexed_tree_with_append.js';
package/dest/sha_256.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import type { Hasher } from '@aztec/foundation/trees';
2
- /**
3
- * A helper class encapsulating SHA256 hash functionality.
4
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
5
- * purposes.
6
- */
7
- export declare class SHA256 implements Hasher {
8
- hash(lhs: Uint8Array, rhs: Uint8Array): Buffer<ArrayBuffer>;
9
- hashInputs(inputs: Buffer[]): Buffer<ArrayBuffer>;
10
- }
11
- /**
12
- * A helper class encapsulating truncated SHA256 hash functionality.
13
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
14
- * purposes.
15
- */
16
- export declare class SHA256Trunc implements Hasher {
17
- hash(lhs: Uint8Array, rhs: Uint8Array): Buffer<ArrayBuffer>;
18
- hashInputs(inputs: Buffer[]): Buffer<ArrayBuffer>;
19
- }
20
- //# sourceMappingURL=sha_256.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sha_256.d.ts","sourceRoot":"","sources":["../src/sha_256.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;;GAIG;AACH,qBAAa,MAAO,YAAW,MAAM;IAK5B,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAC4B,MAAM,CAAC,WAAW,CAAC;IAOpF,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GACQ,MAAM,CAAC,WAAW,CAAC;CAE9D;AAED;;;;GAIG;AACH,qBAAa,WAAY,YAAW,MAAM;IAKjC,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAC4C,MAAM,CAAC,WAAW,CAAC;IAOpG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GACwB,MAAM,CAAC,WAAW,CAAC;CAE9E"}
package/dest/sha_256.js DELETED
@@ -1,44 +0,0 @@
1
- import { sha256 } from '@aztec/foundation/crypto';
2
- import { truncateAndPad } from '@aztec/foundation/serialize';
3
- /**
4
- * A helper class encapsulating SHA256 hash functionality.
5
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
6
- * purposes.
7
- */ export class SHA256 {
8
- /*
9
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
10
- * purposes.
11
- */ hash(lhs, rhs) {
12
- return sha256(Buffer.concat([
13
- Buffer.from(lhs),
14
- Buffer.from(rhs)
15
- ]));
16
- }
17
- /*
18
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
19
- * purposes.
20
- */ hashInputs(inputs) {
21
- return sha256(Buffer.concat(inputs));
22
- }
23
- }
24
- /**
25
- * A helper class encapsulating truncated SHA256 hash functionality.
26
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
27
- * purposes.
28
- */ export class SHA256Trunc {
29
- /*
30
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
31
- * purposes.
32
- */ hash(lhs, rhs) {
33
- return truncateAndPad(sha256(Buffer.concat([
34
- Buffer.from(lhs),
35
- Buffer.from(rhs)
36
- ])));
37
- }
38
- /*
39
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
40
- * purposes.
41
- */ hashInputs(inputs) {
42
- return truncateAndPad(sha256(Buffer.concat(inputs)));
43
- }
44
- }
package/src/sha_256.ts DELETED
@@ -1,49 +0,0 @@
1
- import { sha256 } from '@aztec/foundation/crypto';
2
- import { truncateAndPad } from '@aztec/foundation/serialize';
3
- import type { Hasher } from '@aztec/foundation/trees';
4
-
5
- /**
6
- * A helper class encapsulating SHA256 hash functionality.
7
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
8
- * purposes.
9
- */
10
- export class SHA256 implements Hasher {
11
- /*
12
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
13
- * purposes.
14
- */
15
- public hash(lhs: Uint8Array, rhs: Uint8Array) {
16
- return sha256(Buffer.concat([Buffer.from(lhs), Buffer.from(rhs)])) as Buffer<ArrayBuffer>;
17
- }
18
-
19
- /*
20
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
21
- * purposes.
22
- */
23
- public hashInputs(inputs: Buffer[]) {
24
- return sha256(Buffer.concat(inputs)) as Buffer<ArrayBuffer>;
25
- }
26
- }
27
-
28
- /**
29
- * A helper class encapsulating truncated SHA256 hash functionality.
30
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
31
- * purposes.
32
- */
33
- export class SHA256Trunc implements Hasher {
34
- /*
35
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
36
- * purposes.
37
- */
38
- public hash(lhs: Uint8Array, rhs: Uint8Array) {
39
- return truncateAndPad(sha256(Buffer.concat([Buffer.from(lhs), Buffer.from(rhs)]))) as Buffer<ArrayBuffer>;
40
- }
41
-
42
- /*
43
- * @deprecated Don't call SHA256 directly in production code. Instead, create suitably-named functions for specific
44
- * purposes.
45
- */
46
- public hashInputs(inputs: Buffer[]) {
47
- return truncateAndPad(sha256(Buffer.concat(inputs))) as Buffer<ArrayBuffer>;
48
- }
49
- }