@aztec/foundation 0.76.3 → 0.76.4-devnet-test
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/fields/fields.js +1 -1
- package/package.json +2 -2
- package/src/fields/fields.ts +1 -1
package/dest/fields/fields.js
CHANGED
|
@@ -130,7 +130,7 @@ export function fromBuffer(buffer, f) {
|
|
|
130
130
|
return new f(reader.readBytes(BaseField.SIZE_IN_BYTES));
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
|
-
* Constructs a field from a Buffer, but reduces it first.
|
|
133
|
+
* Constructs a field from a Buffer, but reduces it first, modulo the field modulus.
|
|
134
134
|
* This requires a conversion to a bigint first so the initial underlying representation will be a bigint.
|
|
135
135
|
*/
|
|
136
136
|
function fromBufferReduce(buffer, f) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/foundation",
|
|
3
|
-
"version": "0.76.
|
|
3
|
+
"version": "0.76.4-devnet-test",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dest/index.js",
|
|
6
6
|
"types": "./dest/index.d.ts",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@aztec/bb.js": "0.76.
|
|
107
|
+
"@aztec/bb.js": "0.76.4-devnet-test",
|
|
108
108
|
"@koa/cors": "^5.0.0",
|
|
109
109
|
"@noble/curves": "^1.2.0",
|
|
110
110
|
"bn.js": "^5.2.1",
|
package/src/fields/fields.ts
CHANGED
|
@@ -166,7 +166,7 @@ export function fromBuffer<T extends BaseField>(buffer: Buffer | BufferReader, f
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* Constructs a field from a Buffer, but reduces it first.
|
|
169
|
+
* Constructs a field from a Buffer, but reduces it first, modulo the field modulus.
|
|
170
170
|
* This requires a conversion to a bigint first so the initial underlying representation will be a bigint.
|
|
171
171
|
*/
|
|
172
172
|
function fromBufferReduce<T extends BaseField>(buffer: Buffer, f: DerivedField<T>) {
|