Sapling Groth16 proving backend interface.
Packed little-endian witnesses (mirror Rust ffi::sapling docs):
spend (1288 B): value u64 | randomness | ak | nsk | g_d |
commitment_randomness | ar | auth_path32 | pos32 (bytes 0/1) |
anchor; output (168 B): value u64 | randomness | g_d | pk_d |
commitment_randomness | esk.
Parameter handles are opaque backend objects: obtain from setSpendParams/setOutputParams, release with paramsFree.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paramsFree(
Object handle) → void - Release a params handle.
-
prove(
{required Object handle, required int kind, required List< int> witness}) → BuSaplingProof -
Prove under
handle. Returns the 192-byte proof + public inputs. -
setOutputParams(
List< int> params) → Object - Load Output ceremony parameters.
-
setSpendParams(
List< int> params) → Object - Load Spend ceremony parameters.
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
{required Object handle, required int kind, required List< int> proof, required List<int> inputs}) → void -
Verify under
handle. Throws on failure.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- output → const int
- Circuit kind: Output.
- outputWitnessLen → const int
- Packed output witness size.
- proofLen → const int
- Groth16 proof size.
- spend → const int
- Circuit kind: Spend.
- spendWitnessLen → const int
- Packed spend witness size.