@aztec/foundation 2.1.0-rc.2 → 2.1.0-rc.20

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.
@@ -46,7 +46,7 @@ import { hasHexPrefix, hexToBuffer } from '../string/index.js';
46
46
  return new Signature(Buffer32.fromBuffer(hexToBuffer(sig.r)), Buffer32.fromBuffer(hexToBuffer(sig.s)), sig.yParity);
47
47
  }
48
48
  static random() {
49
- return new Signature(Buffer32.random(), Buffer32.random(), Math.floor(Math.random() * 2));
49
+ return new Signature(Buffer32.random(), Buffer32.random(), 1);
50
50
  }
51
51
  static empty() {
52
52
  return new Signature(Buffer32.ZERO, Buffer32.ZERO, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/foundation",
3
- "version": "2.1.0-rc.2",
3
+ "version": "2.1.0-rc.20",
4
4
  "type": "module",
5
5
  "main": "./dest/index.js",
6
6
  "types": "./dest/index.d.ts",
@@ -102,7 +102,7 @@
102
102
  "testEnvironment": "../../foundation/src/jest/env.mjs"
103
103
  },
104
104
  "dependencies": {
105
- "@aztec/bb.js": "2.1.0-rc.2",
105
+ "@aztec/bb.js": "2.1.0-rc.20",
106
106
  "@koa/cors": "^5.0.0",
107
107
  "@noble/curves": "=1.7.0",
108
108
  "bn.js": "^5.2.1",
@@ -153,7 +153,7 @@
153
153
  "ts-node": "^10.9.1",
154
154
  "typescript": "^5.3.3",
155
155
  "typescript-eslint": "^8.32.1",
156
- "viem": "2.23.7"
156
+ "viem": "npm:@spalladino/viem@2.38.2-eip7594.0"
157
157
  },
158
158
  "files": [
159
159
  "dest",
@@ -78,7 +78,7 @@ export class Signature {
78
78
  }
79
79
 
80
80
  static random(): Signature {
81
- return new Signature(Buffer32.random(), Buffer32.random(), Math.floor(Math.random() * 2));
81
+ return new Signature(Buffer32.random(), Buffer32.random(), 1);
82
82
  }
83
83
 
84
84
  static empty(): Signature {