CircomWitnesscalc is an iOS wrapper for the iden3/circom-witnesscalc library
Android: Compatible with any Android device with 64 bit architecture.
- Android 7.0 (API level 24) or higher.
Add
implementation("io.iden3:circomwitnesscalc:0.0.1-alpha.1")
to the build.gradle
Function takes inputs json string and graph data file bytes and returns witness bytes.
import io.iden3.circomwitnesscalc.*
// ...
val inputs: String = assets.open("inputs.json").bufferedReader().use { it.readText() }
val graphData: ByteArray = assets.open("authV2.wcd").loadIntoBytes()
val witness: ByteArray = calculateWitness(inputs, graphData)
To run the example project, clone the repo, and run app
module application.
circom-witnesscalc-android is part of the iden3 project and licensed under MIT and APACHE 2.0 licences. Please check the LICENSE-MIT and LICENSE-APACHE files for more details.