Skip to main content

Module types

Module types 

Source
Expand description

Pure data types — wasm-friendly subset.

Lifecycle types (TxStatus, SegmentStatus, Fees, UnshieldedUtxo*, FinalizedTxData, ContractStateStreamStart, ContractStateQueryAt, CallResult*, PartitionedTranscript*) live in [moonproof_contracts::types] to keep the host-only moonproof_wallet::ProtocolVersion dep out of the wasm-friendly runtime crate.

Structs§

BlockHash
A block hash — indexer-hex convention. Port of TS BlockHash = string.
CircuitId
A provable circuit identifier — the exported name from the Compact source. Matches TS AnyProvableCircuitId = string.
CoinPublicKey
The Zswap coin public key used as the sender/owner identity. 32 bytes.
ContractAddress
EncPublicKey
The Zswap encryption public key used to seal coins addressed to the current user. 32 bytes.
PrivateStateId
Opaque identifier for a stored private state blob. Port of TS PrivateStateId = string.
ProverKey
Raw prover-key bytes produced by compactc’s keys/<circuit>.prover output.
TransactionHash
Transaction hash as the indexer reports it — hex string.
TransactionId
Transaction identifier as the indexer reports it — hex string.
VerifierKey
Raw verifier-key bytes produced by compactc’s keys/<circuit>.verifier output.
ZkConfig
Bundle of all ZK artifacts for a single circuit. Port of TS ZKConfig<K>.
Zkir
Raw ZKIR bytes produced by compactc’s zkir/<circuit>.bzkir output.