You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switches to UltraHonk by default. Introduces `flavor` config variable.
Supported values are `ultra_keccak_honk` (default), `ultra_plonk` or
both as an array. Solidity verifiers are generated according to the
`flavor` set in the config.
Minimum supported bb.js version is 0.67.0 due to `ultra_keccak_honk`
proof generation introduction only in that version:
AztecProtocol/aztec-packages#10489.
@@ -141,7 +147,7 @@ output of `npx hardhat help example`
141
147
142
148
This plugin extends the Hardhat Runtime Environment by adding a `noir` field.
143
149
144
-
You can call `hre.noir.getCircuit(name)` to get a compiled circuit JSON.
150
+
You can call `hre.noir.getCircuit(name, backendClass)` to get a compiled circuit JSON.
145
151
146
152
## Configuration
147
153
@@ -158,6 +164,19 @@ export default {
158
164
};
159
165
```
160
166
167
+
Change the proof flavor. It will generate different Solidity verifiers. If you switch to `ultra_plonk`, use `noir.getCircuit(name, UltraPlonkBackend)` to get ultra plonk backend.
168
+
169
+
```js
170
+
exportdefault {
171
+
noir: {
172
+
// default is "ultra_keccak_honk"
173
+
flavor:"ultra_plonk",
174
+
// you can also specify multiple flavors
175
+
// flavor: ["ultra_keccak_honk", "ultra_plonk"],
176
+
},
177
+
};
178
+
```
179
+
161
180
The default folder where Noir is located is `noir`. You can change it in `hardhat.config.js`:
* Call this only once per circuit as it creates a new backend each time.
36
35
*
37
36
* @param name name of the circuit
38
-
* @paramcreateBackend an optional function that creates a backend for the given circuit. By default, it creates a `BarretenbergBackend`.
37
+
* @parambackendClass Backend class. Depends on the `noir.flavor` type you have set in Hardhat config. Either {@link UltraHonkBackend} or {@link UltraPlonkBackend}
0 commit comments