Crate rust_rapidsnark

Source
Expand description

Rust bindings for rapidsnark proving.

Prebuilt binaries are provided for the following platforms:

  • aarch64-apple-ios
  • aarch64-apple-ios-sim
  • x86_64-apple-ios
  • aarch64-apple-darwin
  • x86_64-apple-darwin
  • aarch64-linux-android
  • x86_64-linux-android
  • x86_64 linux
  • arm64 linux

If a specific target is not included the sysytem will fallback to the generic architecture, which may cause problems. e.g. if you compile for aarch64-linux-generic, the system will fallback to aarch64.

Structs§

ProofResult
A structure representing a proof and public signals.

Functions§

groth16_prover_zkey_file
groth16_prover_zkey_file_wrapper
Wrapper for groth16_prover_zkey_file
groth16_verify
groth16_verify_wrapper
Wrapper for groth16_verify
parse_bigints_to_witness
Parse bigints to wtns format.
Reference: witnesscalc/src/witnesscalc.cpp

Type Aliases§

WtnsFn
A function that converts named inputs to a full witness. This should be generated using e.g. rust-witness.