Skip to content

Commit

Permalink
*update to latest version of EZKL
Browse files Browse the repository at this point in the history
*TODO: bring back verify evm once new version
has been minted.
  • Loading branch information
ethan-crypto committed Aug 29, 2024
1 parent e753eb3 commit cf29da2
Show file tree
Hide file tree
Showing 44 changed files with 2,193 additions and 2,898 deletions.
16 changes: 6 additions & 10 deletions app/Utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import {
genVk,
genPk,
} from '@ezkljs/engine/web'
import localEVMVerify from '@ezkljs/verify'
import { Hardfork } from '@ezkljs/verify'
// import localEVMVerify from '@ezkljs/verify'
import JSZip from 'jszip'
import { saveAs } from 'file-saver'
import JSONBig from 'json-bigint'
Expand Down Expand Up @@ -281,23 +280,20 @@ export async function handleVerifyButton<T extends FileMapping>(

export async function handleEvmVerifyButton<T extends FileMapping>(
files: T,
evmVersion: Hardfork,
): Promise<VerifyResult> {
const result = await convertFilesToFilesSer(files)
console.log('evmVersion', evmVersion)

const start = performance.now() // Start the timer

let output = await localEVMVerify(
result['proof'],
new TextDecoder().decode(result['bytecodeVerifier']),
evmVersion,
)
// let output = await localEVMVerify(
// result['proof'],
// new TextDecoder().decode(result['bytecodeVerifier'])
// )

const end = performance.now() // End the timer

return {
output: output,
output: true,
executionTime: end - start,
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/components/APINavColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ function NavList() {
<li className='h-14 text-slate-500'>
<Link href='/felt-utils'>Field Element Utilities</Link>
</li>
<li className='h-14 text-slate-500'>
{/* <li className='h-14 text-slate-500'>
<Link href='/in-browser-evm-verify'>In-Browser EVM Verification</Link>
</li>
</li> */}
</ul>
)
}
Loading

0 comments on commit cf29da2

Please sign in to comment.