prove method

  1. @override
BuSaplingProof prove({
  1. required Object handle,
  2. required int kind,
  3. required List<int> witness,
})
override

Proves kind circuit from witness under handle; returns proof and public inputs; throws CryptoException on native failure.

Implementation

@override
BuSaplingProof prove({
  required Object handle,
  required int kind,
  required List<int> witness,
}) {
  return api
      .prove(handle: handle, kind: kind, witness: witness)
      .unwrapOrThrowCryptoError();
}