Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erhant/flutter-snarkjs
Generating zero-knowledge proofs using SnarkJS within Flutter WebView (iOS targeted).
https://github.com/erhant/flutter-snarkjs
circom flutter snarkjs webview
Last synced: 22 days ago
JSON representation
Generating zero-knowledge proofs using SnarkJS within Flutter WebView (iOS targeted).
- Host: GitHub
- URL: https://github.com/erhant/flutter-snarkjs
- Owner: erhant
- Created: 2023-05-03T10:49:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T12:55:40.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T19:06:59.458Z (3 months ago)
- Topics: circom, flutter, snarkjs, webview
- Language: HTML
- Homepage:
- Size: 288 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SnarkJS within Flutter
An attempt to use SnarkJS within Flutter WebView.
- [WebView Tutorial](https://codelabs.developers.google.com/codelabs/flutter-webview#0)
- [SnarkJS in Browser](https://github.com/iden3/snarkjs#in-the-browser)The example circuit used within `multiplier_3` is simply a circuit to compute the multiplication of 3 numbers.
```js
// 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](powersOfTau28_hez_final_08.ptau) (less than $2^8$ constraints in this one).
Note that there is an [issue](https://github.com/iden3/snarkjs/issues/317) 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.