@aztec/circuits.js
Advanced tools
Comparing version 0.1.0-alpha33 to 0.1.0-alpha34
@@ -51,2 +51,10 @@ /// <reference types="node" resolution-mode="require"/> | ||
/** | ||
* Compresses an array of buffers. | ||
* @param wasm - The barretenberg module. | ||
* @param inputs - The array of buffers to compress. | ||
* @param hashIndex - Hash index of the generator to use (See GeneratorIndex enum). | ||
* @returns The resulting 32-byte hash. | ||
*/ | ||
export declare function pedersenPlookupCompressWithHashIndex(wasm: IWasmModule, inputs: Buffer[], hashIndex: number): Buffer; | ||
/** | ||
* Get a 32-byte pedersen hash from a buffer. | ||
@@ -53,0 +61,0 @@ * @param wasm - The barretenberg module. |
@@ -95,2 +95,17 @@ import { Buffer } from 'buffer'; | ||
/** | ||
* Compresses an array of buffers. | ||
* @param wasm - The barretenberg module. | ||
* @param inputs - The array of buffers to compress. | ||
* @param hashIndex - Hash index of the generator to use (See GeneratorIndex enum). | ||
* @returns The resulting 32-byte hash. | ||
*/ | ||
export function pedersenPlookupCompressWithHashIndex(wasm, inputs, hashIndex) { | ||
// If not done already, precompute constants. | ||
wasm.call('pedersen__init'); | ||
const inputVectors = serializeBufferArrayToVector(inputs); | ||
wasm.writeMemory(0, inputVectors); | ||
wasm.call('pedersen_plookup_compress_with_hash_index', 0, 0, hashIndex); | ||
return Buffer.from(wasm.getMemorySlice(0, 32)); | ||
} | ||
/** | ||
* Get a 32-byte pedersen hash from a buffer. | ||
@@ -135,2 +150,2 @@ * @param wasm - The barretenberg module. | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVkZXJzZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYmFycmV0ZW5iZXJnL2NyeXB0by9wZWRlcnNlbi9wZWRlcnNlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sUUFBUSxDQUFD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BSSxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsU0FBUyxFQUFFLFNBQVMsR0FBRyxDQUFDLEdBQUcsZUFBZSxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDckcsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUUsUUFBUSxDQUFDLENBQUM7SUFDOUIsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUUsU0FBUyxDQUFDLENBQUM7SUFFL0IsT0FBTywwQkFBMEIsQ0FBQyxnQkFBZ0IsRUFBRSxVQUFVLENBQUMsQ0FBQyxJQUFJLENBQUM7QUFDdkUsQ0FBQyJ9 |
@@ -104,2 +104,3 @@ export declare const ARGS_LENGTH = 16; | ||
TX_REQUEST = 33, | ||
SIGNATURE_PAYLOAD = 34, | ||
VK = 41, | ||
@@ -106,0 +107,0 @@ PRIVATE_CIRCUIT_PUBLIC_INPUTS = 42, |
@@ -107,2 +107,3 @@ /* eslint-disable */ | ||
GeneratorIndex[GeneratorIndex["TX_REQUEST"] = 33] = "TX_REQUEST"; | ||
GeneratorIndex[GeneratorIndex["SIGNATURE_PAYLOAD"] = 34] = "SIGNATURE_PAYLOAD"; | ||
GeneratorIndex[GeneratorIndex["VK"] = 41] = "VK"; | ||
@@ -134,2 +135,2 @@ GeneratorIndex[GeneratorIndex["PRIVATE_CIRCUIT_PUBLIC_INPUTS"] = 42] = "PRIVATE_CIRCUIT_PUBLIC_INPUTS"; | ||
})(PrivateStateType || (PrivateStateType = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmdlbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jYmluZC9jb25zdGFudHMuZ2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9CQUFvQjtBQUNwQiwwREFBMEQ7QUFDMUQsTUFBTSxDQUFDL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ixxRkFBUyxDQUFBO0lBQ1QsbUZBQVEsQ0FBQTtJQUNSLDJGQUFZLENBQUE7QUFDZCxDQUFDLEVBUlcsOEJBQThCLEtBQTlCLDhCQUE4QixRQVF6QztBQUNELE1BQU0sQ0FBTixJQUFZLGdCQUdYO0FBSEQsV0FBWSxnQkFBZ0I7SUFDMUIscUVBQWUsQ0FBQTtJQUNmLHlEQUFTLENBQUE7QUFDWCxDQUFDLEVBSFcsZ0JBQWdCLEtBQWhCLGdCQUFnQixRQUczQiJ9 |
{ | ||
"name": "@aztec/circuits.js", | ||
"version": "0.1.0-alpha33", | ||
"version": "0.1.0-alpha34", | ||
"exports": { | ||
@@ -14,3 +14,3 @@ ".": "./dest/index.js", | ||
"dependencies": { | ||
"@aztec/foundation": "0.1.0-alpha33", | ||
"@aztec/foundation": "0.1.0-alpha34", | ||
"@msgpack/msgpack": "^3.0.0-beta2", | ||
@@ -17,0 +17,0 @@ "@noble/curves": "^1.0.0", |
@@ -105,2 +105,18 @@ import { IWasmModule } from '@aztec/foundation/wasm'; | ||
/** | ||
* Compresses an array of buffers. | ||
* @param wasm - The barretenberg module. | ||
* @param inputs - The array of buffers to compress. | ||
* @param hashIndex - Hash index of the generator to use (See GeneratorIndex enum). | ||
* @returns The resulting 32-byte hash. | ||
*/ | ||
export function pedersenPlookupCompressWithHashIndex(wasm: IWasmModule, inputs: Buffer[], hashIndex: number): Buffer { | ||
// If not done already, precompute constants. | ||
wasm.call('pedersen__init'); | ||
const inputVectors = serializeBufferArrayToVector(inputs); | ||
wasm.writeMemory(0, inputVectors); | ||
wasm.call('pedersen_plookup_compress_with_hash_index', 0, 0, hashIndex); | ||
return Buffer.from(wasm.getMemorySlice(0, 32)); | ||
} | ||
/** | ||
* Get a 32-byte pedersen hash from a buffer. | ||
@@ -107,0 +123,0 @@ * @param wasm - The barretenberg module. |
@@ -106,2 +106,3 @@ /* eslint-disable */ | ||
TX_REQUEST = 33, | ||
SIGNATURE_PAYLOAD = 34, | ||
VK = 41, | ||
@@ -108,0 +109,0 @@ PRIVATE_CIRCUIT_PUBLIC_INPUTS = 42, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6992648
24395
+ Added@aztec/foundation@0.1.0-alpha34(transitive)
- Removed@aztec/foundation@0.1.0-alpha33(transitive)