OrchardApi class abstract interface

Orchard Action proving backend interface (Halo2, Pasta curves).

One packed circuit per Action (little-endian, 1716 B, field level): path32 | pos u32 | gd_old64 | pkd_old64 | v_old u64 | rho_old32 | psi_old32 | rcm_old32 | cm_old64 | alpha32 | ak64 | nk32 | rivk32 | gd_new64 | pkd_new64 | v_new u64 | psi_new32 | rcm_new32 | rcv32. Instances travel separately (10 x 32 LE limbs per action); seed carries 32 fresh blinding-seed bytes per prove call.

Versions: 0 insecure (pre-NU6.2), 1 fixed (post-NU6.2), 2 NU6.3. disableCrossAddress applies ONLY to version 2 and must match the key. Proving keys are opaque backend objects: pkNew + pkFree.

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

createProof({required Object pk, required List<int> inputs, required List<int> instances, required List<int> seed, required int version, bool disableCrossAddress = false}) → BuBytes
Prove N actions (inputs = n x packedInputLen bytes, instances = n x 10 x 32 bytes, seed = 32 fresh blinding-seed bytes).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pkFree(Object pk) → void
Release a proving-key handle.
pkNew({required int version}) → Object
Build a proving key for version.
toString() → String
A string representation of this object.
inherited
verifyProof({required Object pk, required List<int> proof, required List<int> instances, required int version, bool disableCrossAddress = false}) → void
Verify proof against n×10×32 instance limbs. Throws on failure.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

packedInputLen → const int
Packed size of one circuit.
versionFixed → const int
Fixed post-NU6.2 circuit.
versionInsecure → const int
Insecure pre-NU6.2 circuit.
versionNu63 → const int
NU6.3 circuit.