Skip to content

Commit

Permalink
*bring back init
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-crypto committed Sep 1, 2023
1 parent c3e1c03 commit 7753b5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'
import React, { useEffect, useState } from 'react'


import init from '@ezkljs/engine/mobile/ezkl.js'

import ElgamalRandomVar from './components/ElgamalRandomVar'
import ElgamalEncrypt from './components/ElgamalEncrypt'
Expand All @@ -18,6 +18,14 @@ interface Files {
export default function Home() {
const [files, setFiles] = useState<Files>({})

useEffect(() => {
async function run() {
// Initialize the WASM module
await init()
}
run()
})


const handleFileChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const id = event.target.id
Expand Down

0 comments on commit 7753b5d

Please sign in to comment.