Skip to content

Generating zero-knowledge proofs using SnarkJS within Flutter WebView (iOS targeted).

Notifications You must be signed in to change notification settings

erhant/flutter-snarkjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnarkJS within Flutter

An attempt to use SnarkJS within Flutter WebView.

The example circuit used within multiplier_3 is simply a circuit to compute the multiplication of 3 numbers.

// input signals
{
  "in": [3, 7, 11]
}

// output signals
{
  "out": 231
}

The provided prover key & verification key is of a PLONK proof system. PTAU used is for BN128 by Polygon Hermez (less than $2^8$ constraints in this one).

Note that there is an issue with browser code of Snarkjs right now, until that is fixed we are using version 0.5.x.

Disclaimer

I have no idea of mobile development, this is practically my hello-world in the mobile space.

About

Generating zero-knowledge proofs using SnarkJS within Flutter WebView (iOS targeted).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages