Skip to content

Commit dda8c08

Browse files
committed
add version info
1 parent e95092d commit dda8c08

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

apps/noir-compiler/src/app/components/container.tsx

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { NoirAppContext } from '../contexts'
55
import { CompileOptions } from '@remix-ui/helper'
66
import { compileNoirCircuit } from '../actions'
77

8+
const NOIR_VERSION = 'v1.0.0-beta.12'
9+
const BARRETENBERG_VERSION = 'v0.85.0'
10+
811
export function Container () {
912
const noirApp = useContext(NoirAppContext)
1013

@@ -64,17 +67,27 @@ export function Container () {
6467
<article>
6568
<div className="pt-0 noir_section">
6669
<div className="mb-1">
67-
<label className="noir_label form-check-label">
68-
<FormattedMessage id="noir.compiler" />
69-
</label>
70-
<CustomTooltip
71-
placement="bottom"
72-
tooltipId="showNoirCompilerTooltip"
73-
tooltipClasses="text-nowrap"
74-
tooltipText='See compiler license'
75-
>
76-
<span className="far fa-file-certificate border-0 p-0 ms-2" onClick={() => showCompilerLicense()}></span>
77-
</CustomTooltip>
70+
<div className="d-flex align-items-center">
71+
<label className="noir_label form-check-label">
72+
<FormattedMessage id="noir.compiler" />
73+
</label>
74+
<CustomTooltip
75+
placement="bottom"
76+
tooltipId="showNoirCompilerTooltip"
77+
tooltipClasses="text-nowrap"
78+
tooltipText='See compiler license'
79+
>
80+
<span className="far fa-file-certificate border-0 p-0 ms-2" onClick={() => showCompilerLicense()}></span>
81+
</CustomTooltip>
82+
<CustomTooltip
83+
placement="bottom"
84+
tooltipId="noirVersionTooltip"
85+
tooltipClasses="text-nowrap"
86+
tooltipText={`Using Noir ${NOIR_VERSION} and Barretenberg ${BARRETENBERG_VERSION}`}
87+
>
88+
<span className="text-muted small ms-2">{NOIR_VERSION}</span>
89+
</CustomTooltip>
90+
</div>
7891
{/* <CompileOptions setCircuitAutoCompile={handleCircuitAutoCompile} setCircuitHideWarnings={handleCircuitHideWarnings} autoCompile={noirApp.appState.autoCompile} hideWarnings={noirApp.appState.hideWarnings} /> */}
7992
<hr></hr>
8093
<div>

apps/noir-compiler/src/app/services/noirPluginClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ export class NoirPluginClient extends PluginClient {
234234
let formattedPublicInputsStr: string | null = null
235235

236236
const filesToSave = {
237-
'proof.bin': { path: `${buildPath}/proof.bin`, type: 'hex' },
238-
'vk.bin': { path: `${buildPath}/vk.bin`, type: 'hex' },
237+
'vk': { path: `${buildPath}/vk`, type: 'hex' },
239238
'scripts/verify.ts': { path: `${scriptsPath}/verify.ts`, type: 'string', isScript: true },
240239
'verifier/solidity/Verifier.sol': { path: `${contractsPath}/Verifier.sol`, type: 'string' },
241240
'proof': { path: `${buildPath}/proof`, type: 'string', isProof: true },

0 commit comments

Comments
 (0)