NativeSaplingApi class

SaplingApi backed by a native (FFI/platform) implementation.

Implemented types

Constructors

NativeSaplingApi(BuSaplingApi api)
Creates a native Sapling backend over api.
const

Properties

api → BuSaplingApi
Underlying connector backend (Rust Sapling Groth16 core).
final
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
Releases params handle.
override
prove({required Object handle, required int kind, required List<int> witness}) → BuSaplingProof
Proves kind circuit from witness under handle; returns proof and public inputs; throws CryptoException on native failure.
override
setOutputParams(List<int> params) → Object
Loads Output ceremony params and returns the params handle; throws CryptoException on native failure.
override
setSpendParams(List<int> params) → Object
Loads Spend ceremony params and returns the params handle; throws CryptoException on native failure.
override
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
Verifies proof against inputs for kind under handle; throws CryptoException on verification or native failure.
override

Operators

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