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
kindcircuit fromwitnessunderhandle; returns proof and public inputs; throwsCryptoExceptionon native failure.override -
setOutputParams(
List< int> params) → Object -
Loads Output ceremony
paramsand returns the params handle; throwsCryptoExceptionon native failure.override -
setSpendParams(
List< int> params) → Object -
Loads Spend ceremony
paramsand returns the params handle; throwsCryptoExceptionon 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
proofagainstinputsforkindunderhandle; throwsCryptoExceptionon verification or native failure.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited