Package-level declarations
Types
Represents a field-aligned byte array value from the Midnight runtime.
Granular progress updates during the balance+submit pipeline.
Thrown when circuit execution or transaction assembly fails.
Executes Compact smart contract circuits on Android via QuickJS + Rust FFI.
Typed errors from MidnightContract.call — each stage has its own subclass.
Progress stages emitted during MidnightContract.call.
Native bridge to the Rust contract runtime.
Connects to a DApp Connector wallet (e.g., mn serve) via WebSocket JSON-RPC.
Result of contract deployment assembly.
Result of deploying a contract to the blockchain.
Result of circuit execution and transaction assembly.
Thrown by LedgerEvaluator.readAll when the JS read pipeline fails.
Proves transactions locally on the phone using cached proving keys.
Configuration for Midnight contract operations.
High-level interface for calling Midnight smart contract circuits from Android.
A typed, eagerly-evaluated snapshot of a deployed contract's ledger.
Thrown when MidnightLedger is asked for a field that doesn't exist in the contract's schema. The exception lists knownFields so a typo or version mismatch can be diagnosed immediately.
Result of MidnightContract.prepare — a proven transaction ready for later submission via MidnightConfig.submit.
Proof data produced by a circuit execution.
Generates ZK proofs for unproven transactions.
Thrown when ZK proof generation fails.
Abstracts the wallet operations needed to finalize a proven transaction: adding dust fee inputs (balancing) and submitting to the blockchain.
Result of a successful MidnightContract.call.
How the witness's WitnessResult.data bytes should be presented to the Compact runtime when the witness function is called from JS.
Provides witness data for circuit execution.
Result of a witness callback.
Thrown when a typed accessor's expectation doesn't match what the contract's getter returned. Indicates schema drift, version mismatch, or a wrong-type call on the caller's side.