Multi-chain cryptographic assertion & formal verification library.
A production-grade, three-tier assertion template library for cryptocurrency compliance verification, bridging business logic, protocol specifications, and mathematical proofs through compile-time static dispatch and theorem-proven safety guarantees.
| Layer | Directory | Responsibility | Trust Model |
|---|---|---|---|
| Proof | protocol/transfer_proof.mbtp | Mathematical conservation theorems | SMT-solver verified (Z3) |
| Protocol | protocol/ | Type definitions, traits, DefaultVerifier | Compile-time trait resolution |
| Business | business/ | Assertion functions with fn[V: Trait] dispatch | Static dispatch, zero NotImplemented |
┌─────────────────────────────────────────────────────────────┐
│ BUSINESS LAYER │
│ (business/) │
│ │
│ fn[V: Trait] assert_*(verifier: V, ...) -> Result raise E │
│ │
│ • address_assert.mbt (3 assertions) │
│ • security_assert.mbt (6 assertions) │
│ │
│ Consumers inject concrete Verifier implementations. │
│ Dispatch resolved at compile time — zero runtime overhead. │
└──────────────────────────┬──────────────────────────────────┘
│ trait delegation
▼
┌─────────────────────────────────────────────────────────────┐
│ PROTOCOL LAYER │
│ (protocol/) │
│ │
│ • AddressVerifier trait (6 methods) │
│ • TransactionVerifier trait (5 methods) │
│ • SecurityVerifier trait (5 methods) │
│ • DefaultVerifier struct (9 blockchain implementations) │
│ │
│ All traits use self: Self → compile-time static dispatch. │
│ No dyn dispatch, no vtable, no runtime NotImplemented. │
└──────────────────────────┬──────────────────────────────────┘
│ mathematical invariants
▼
┌─────────────────────────────────────────────────────────────┐
│ PROOF LAYER │
│ (protocol/transfer_proof.mbtp) │
│ │
│ 2 predicates: │
│ • fund_conservation_inv │
│ • transfer_state_invariant │
│ │
│ 6 lemmas (Why3/Z3 proven): │
│ • no_inflation_lemma • fee_nonnegative_lemma │
│ • value_monotonic_lemma • overflow_safe_lemma │
│ • transfer_correctness_theorem │
│ │
│ Each lemma carries explicit proof_assert steps. │
│ All theorems validated by `moon prove`. │
└─────────────────────────────────────────────────────────────┘crypto_assert/
├── moon.mod # Package manifest (Kali-Leo/moonbit-CryptoAssert v0.1.0)
├── moon.pkg # Root package declaration
├── README.md # This file
│
├── protocol/ # ═══ Protocol + Proof Layer ═══
│ ├── moon.pkg # Package config (imports business for wbtest)
│ ├── assert_result.mbt # AssertionResult enum, suberror AssertError (10 variants)
│ ├── address_spec.mbt # AddressVerifier trait, DefaultVerifier, AddressType (9),
│ │ # SignatureScheme (5), HashScheme (6), PrecisionSpec,
│ │ # AddressFormatSpec, ChecksumType, AddressLengthRange
│ ├── transaction_spec.mbt # TransactionVerifier trait, TransactionSpec, TxInputSpec,
│ │ # TxOutputSpec, FeeSpec, TokenTransferSpec,
│ │ # TxValidationCode (9 variants), TxStatus (5 variants)
│ ├── security_spec.mbt # SecurityVerifier trait, SecurityAssertResult,
│ │ # ReplayProtectionSpec, TokenSafetySpec, BridgeSpec,
│ │ # ContractSafetyMode (5 variants)
│ ├── transfer_proof.mbtp # Hermes theorem proving (2 predicates + 6 lemmas)
│ ├── spec_easy_test.mbt # Unit tests: enum counts, struct construction (7 tests)
│ └── spec_difficult_test.mbt # Unit tests: complex specs, multi-output TX (9 tests)
│
└── business/ # ═══ Business Assertion Layer ═══
├── moon.pkg # Package config (imports protocol, quickcheck for test)
├── address_assert.mbt # 3 assertion functions: address, sig-compat, tx-sig
├── security_assert.mbt # 6 assertion functions: balance, replay, amount, fee,
│ # contract-safety, bridge-security
└── business_test.mbt # QuickCheck property bombardment (7 tests)| File | Lines | Purpose |
|---|---|---|
| protocol/address_spec.mbt | 245 | 9 address types, 5 sig schemes, 6 hash schemes + DefaultVerifier |
| protocol/transfer_proof.mbtp | 149 | Hermes theorem proofs |
| protocol/security_spec.mbt | 61 | 3 security trait methods + 4 struct types |
| protocol/transaction_spec.mbt | 95 | Transaction trait + 6 struct types |
| protocol/assert_result.mbt | 22 | Error domain model (10 suberror variants) |
| business/security_assert.mbt | 147 | 6 security assertion functions |
| business/address_assert.mbt | 98 | 3 address/signature assertion functions |
| Total | 817 | — |
| Predicate | Signature | Mathematical Meaning |
|---|---|---|
| fund_conservation_inv | (total_in, total_out, fee: UInt64) | total_in ≡ total_out + fee |
| transfer_state_invariant | (pre_total, post_total: UInt64) | pre_total ≡ post_total |
| Lemma | Dependencies | Conclusion |
|---|---|---|
| no_inflation_lemma | fund_conservation_inv ∧ fee ≥ 0 | total_in ≥ total_out |
| fee_nonnegative_lemma | — (UInt64 axiom) | fee ≥ 0 |
| value_monotonic_lemma | in1 ≥ in2 ∧ both ≥ out + fee | (in1 − out − fee) ≥ (in2 − out − fee) |
| overflow_safe_lemma | a + b ≥ a | a + b ≥ b |
| transfer_correctness_theorem | fund_conservation_inv ∧ fee ≥ 0 | No inflation + state invariant |
moon prove protocolpub trait AddressVerifier {
address_format_spec(self: Self, AddressType) -> AddressFormatSpec
valid_address_length_range(self: Self, AddressType) -> AddressLengthRange
validate_checksum(self: Self, AddressType, String) -> Bool
address_precision(self: Self, SignatureScheme) -> PrecisionSpec
hash_output_length(self: Self, HashScheme) -> UInt
is_valid_hash_size(self: Self, Bytes, HashScheme) -> Bool
}| Address Type | Chain | Prefix | Length Range | Checksum |
|---|---|---|---|---|
| BtcP2pkh | Bitcoin | 1 | 26–35 chars | Base58Check |
| BtcP2sh | Bitcoin | 3 | 26–35 chars | Base58Check |
| BtcBech32 | Bitcoin SegWit | bc1 | 26–42 chars | Bech32 |
| BtcBech32m | Bitcoin Taproot | bc1p | 26–42 chars | Bech32 |
| Eth | Ethereum | 0x | 42 chars | None |
| EthEip55 | Ethereum (EIP-55) | 0x | 42 chars | EIP-55 |
| Solana | Solana | (none) | 32–44 chars | None |
| Tron | Tron | T | 26–35 chars | Base58Check |
| Cosmos | Cosmos | cosmos1 | 24–45 chars | Bech32 |
pub trait TransactionVerifier {
validate_transaction(self: Self, TransactionSpec) -> TxValidationCode
verify_signature(self: Self, SignatureVerifySpec) -> Bool
compute_txid(self: Self, TransactionSpec) -> String
estimate_fee(self: Self, TransactionSpec, String) -> FeeSpec
validate_token_transfer(self: Self, TokenTransferSpec) -> TxValidationCode
}pub trait SecurityVerifier {
check_replay_protection(self: Self, TransactionSpec, ReplayProtectionSpec) -> SecurityAssertResult
check_contract_safety(self: Self, TokenSafetySpec) -> SecurityAssertResult
check_bridge_security(self: Self, BridgeSpec) -> SecurityAssertResult
validate_amount_range(self: Self, String, String, String) -> SecurityAssertResult
check_fee_ratio(self: Self, String, String, String) -> SecurityAssertResult
}| Function | Signature | Description |
|---|---|---|
| assert_address_format | fn[V: AddressVerifier](V, String, AddressType) -> AssertionResult raise AssertError | Validates address string against chain format spec |
| assert_sig_scheme_compatible | fn(SignatureScheme, AddressType) -> AssertionResult raise AssertError | Pure function; checks mathematical compatibility |
| assert_tx_signature | fn[V: TransactionVerifier](V, TransactionSpec) -> AssertionResult raise AssertError | Delegates to verifier for signature check |
| Function | Signature | Description |
|---|---|---|
| assert_transaction_balance | fn(TransactionSpec) -> AssertionResult raise AssertError | Fund conservation: Σinputs ≡ Σoutputs + fee |
| assert_replay_protection | fn[V: SecurityVerifier](V, TransactionSpec, ReplayProtectionSpec) -> AssertionResult raise AssertError | Checks nonce/chain_id/timestamp |
| assert_amount_in_range | fn[V: SecurityVerifier](V, String, String, String) -> AssertionResult raise AssertError | Validates amount ∈ [min, max] |
| assert_fee_within_ratio | fn[V: SecurityVerifier](V, String, String, String) -> AssertionResult raise AssertError | Validates fee/amount ≤ max_ratio |
| assert_contract_safety | fn[V: SecurityVerifier](V, TokenSafetySpec) -> AssertionResult raise AssertError | Checks mint/burn/pause/upgrade controls |
| assert_bridge_security | fn[V: SecurityVerifier](V, BridgeSpec) -> AssertionResult raise AssertError | Checks validator set, amount bounds, chain ID |
| Variant | Chain | Description |
|---|---|---|
| BtcP2pkh | Bitcoin | Pay-to-Public-Key-Hash |
| BtcP2sh | Bitcoin | Pay-to-Script-Hash |
| BtcBech32 | Bitcoin | SegWit (native) |
| BtcBech32m | Bitcoin | Taproot |
| Eth | Ethereum | 40-char hex (lowercase) |
| EthEip55 | Ethereum | EIP-55 mixed-case checksum |
| Solana | Solana | Ed25519 base58 |
| Tron | Tron | Base58Check |
| Cosmos | Cosmos | Bech32 |
| Variant | Curve / Scheme | Primary Use |
|---|---|---|
| EcdsaSecp256k1 | secp256k1 | Bitcoin, Ethereum, Tron |
| Ed25519 | Edwards 25519 | Solana, Cosmos, Tron |
| Sr25519 | Schnorr/Ristretto | Polkadot, Substrate |
| Bls12381 | BLS12-381 | Filecoin, Ethereum 2.0 |
| SchnorrSecp256k1 | secp256k1 Schnorr | Bitcoin (BIP-340) |
| Variant | Output (bytes) | Common Use |
|---|---|---|
| Sha256 | 32 | Bitcoin, general |
| Keccak256 | 32 | Ethereum |
| Blake2b256 | 32 | Zcash, general |
| Blake2s256 | 32 | Lightweight |
| Ripemd160 | 20 | Bitcoin addresses |
| Sha256d | 32 | Bitcoin (double SHA-256) |
| Variant | Description |
|---|---|
| None | No checksum (e.g., raw Ethereum hex) |
| Base58Check | Bitcoin-style 4-byte checksum |
| Bech32 | BCH-encoded checksum |
| Eip55 | Mixed-case hex (Ethereum) |
| Struct | Fields | Purpose |
|---|---|---|
| AddressLengthRange | min_chars: UInt, max_chars: UInt, byte_len: UInt | Character-level and byte-level length constraints |
| AddressFormatSpec | ty, length, checksum_type, prefix_req, charset, description | Complete address format descriptor |
| PrecisionSpec | decimals: UInt, unit_vals: String, symbol: String | Token decimal precision |
| TxInputSpec | txid, vout, script_sig, amount_str | Transaction input descriptor |
| TxOutputSpec | address, amount_str, script_pubkey, is_change | Transaction output descriptor |
| FeeSpec | rate_str, total_str, unit_desc | Fee rate and total |
| TransactionSpec | version, inputs[], outputs[], locktime, fee, txid, sig_scheme | Complete transaction descriptor |
| TokenTransferSpec | from, to, contract, amount_str, chain_id, precision | ERC-20 style token transfer |
| SignatureVerifySpec | message_hex, signature_hex, public_key_hex, scheme | Signature verification request |
| ReplayProtectionSpec | require_nonce, require_chain_id, require_timestamp, max_nonce_reuse | Replay attack guard config |
| TokenSafetySpec | has_mint, mint_controlled, has_burn, has_pause, safety_modes[] | Token security audit spec |
| BridgeSpec | contract_address, target_chain_id, min_amount_str, max_amount_str, has_validator_set, min_validators | Cross-chain bridge validator config |
| Method | Returns | Description |
|---|---|---|
| address_format_spec(self, AddressType) | AddressFormatSpec | Get format spec for address type |
| valid_address_length_range(self, AddressType) | AddressLengthRange | Get char/byte length bounds |
| validate_checksum(self, AddressType, String) | Bool | Verify address checksum |
| address_precision(self, SignatureScheme) | PrecisionSpec | Get native currency precision |
| hash_output_length(self, HashScheme) | UInt | Get hash output byte length |
| is_valid_hash_size(self, Bytes, HashScheme) | Bool | Check hash size matches scheme |
| Method | Returns | Description |
|---|---|---|
| validate_transaction(self, TransactionSpec) | TxValidationCode | Validate entire transaction |
| verify_signature(self, SignatureVerifySpec) | Bool | Verify cryptographic signature |
| compute_txid(self, TransactionSpec) | String | Compute transaction ID |
| estimate_fee(self, TransactionSpec, String) | FeeSpec | Estimate transaction fee |
| validate_token_transfer(self, TokenTransferSpec) | TxValidationCode | Validate token transfer |
| Method | Returns | Description |
|---|---|---|
| check_replay_protection(self, TransactionSpec, ReplayProtectionSpec) | SecurityAssertResult | Check replay attack guards |
| check_contract_safety(self, TokenSafetySpec) | SecurityAssertResult | Audit token contract safety |
| check_bridge_security(self, BridgeSpec) | SecurityAssertResult | Audit cross-chain bridge config |
| validate_amount_range(self, String, String, String) | SecurityAssertResult | Check amount ∈ [min, max] |
| check_fee_ratio(self, String, String, String) | SecurityAssertResult | Check fee/amount ratio |
moon doc| Variant | Payload | When Raised |
|---|---|---|
| InvalidPrefix | (String, String) — address, expected prefix | Address prefix mismatch |
| InvalidLength | (String, UInt, UInt) — address, min, max | Address string length out of range |
| InvalidCharacter | (String, Char) — address, illegal char | Character not in allowed charset |
| ChecksumMismatch | (String) — address | Checksum validation failure |
| AmountImbalance | (UInt64, UInt64, UInt64) — total_in, total_out, fee | Fund conservation violation |
| IncompatibleScheme | (SignatureScheme, AddressType) | Signature scheme incompatible with address type |
| SignatureVerificationFailed | (String) — txid | Cryptographic signature check failed |
| NumericParseError | (String) — parse detail | Amount string parsing or overflow |
| HashLengthMismatch | (UInt, UInt) — actual, expected | Hash output size mismatch |
| SecurityCheckFailed | (String) — reason | Generic security check failure |
let result = try @business.assert_address_format(
verifier,
"0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
@protocol.AddressType::EthEip55,
) catch {
@protocol.AssertError::InvalidPrefix(address, expected_prefix) =>
// wrong prefix — e.g., missing "0x"
...
@protocol.AssertError::InvalidLength(address, min, max) =>
// address too short or too long
...
@protocol.AssertError::InvalidCharacter(address, c) =>
// illegal character in address
...
@protocol.AssertError::ChecksumMismatch(address) =>
// checksum validation failed
...
_ =>
// unexpected error
...
}moon add Kali-Leo/moonbit-CryptoAssertimport {
"Kali-Leo/moonbit-CryptoAssert@0.1.0",
}import {
"Kali-Leo/moonbit-CryptoAssert/protocol",
"Kali-Leo/moonbit-CryptoAssert/business",
}/// Validate an Ethereum EIP-55 checksummed address
let verifier = @protocol.DefaultVerifier{}
let result = try @business.assert_address_format(
verifier,
"0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
@protocol.AddressType::EthEip55,
) catch {
@protocol.AssertError::InvalidPrefix(a, p) => panic("Bad prefix: \{p}")
@protocol.AssertError::InvalidLength(a, mn, mx) =>
panic("Length \{a.length()} not in [\{mn}, \{mx}]")
@protocol.AssertError::InvalidCharacter(a, c) =>
panic("Illegal character '\{c}' in address")
@protocol.AssertError::ChecksumMismatch(a) =>
panic("EIP-55 checksum mismatch")
_ => panic("Unknown error")
}
// result == AssertionResult::Valid/// ECDSA + Bitcoin P2PKH is compatible
let ok = try @business.assert_sig_scheme_compatible(
@protocol.SignatureScheme::EcdsaSecp256k1,
@protocol.AddressType::BtcP2pkh,
)
// ok == AssertionResult::Valid
/// BLS12-381 + Bitcoin is NOT compatible
try @business.assert_sig_scheme_compatible(
@protocol.SignatureScheme::Bls12381,
@protocol.AddressType::BtcP2pkh,
) catch {
@protocol.AssertError::IncompatibleScheme(s, a) =>
// s == Bls12381, a == BtcP2pkh
...
}/// Verify fund conservation for a transaction
let tx = @protocol.TransactionSpec::{
version: 1,
inputs: [@protocol.TxInputSpec::{
txid: "abc...", vout: 0,
script_sig: "...", amount_str: "1000000000000000000",
}],
outputs: [
@protocol.TxOutputSpec::{
address: "0xRecipient",
amount_str: "999000000000000000",
script_pubkey: "", is_change: false,
},
@protocol.TxOutputSpec::{
address: "0xChange",
amount_str: "1000000000000000",
script_pubkey: "", is_change: true,
},
],
locktime: 0,
fee: @protocol.FeeSpec::{
rate_str: "50", total_str: "0",
unit_desc: "gwei",
},
txid: "0xtx123",
sig_scheme: @protocol.SignatureScheme::EcdsaSecp256k1,
}
try @business.assert_transaction_balance(tx) catch {
@protocol.AssertError::AmountImbalance(in_, out, fee) =>
// in_ = 1000000000000000000
// out = 1000000000000000000
// fee = 0
// conservation holds
...
@protocol.AssertError::NumericParseError(msg) =>
panic("Failed to parse amount: \{msg}")
@protocol.AssertError::SecurityCheckFailed(msg) =>
panic("Overflow detected: \{msg}")
_ => panic("Unknown error")
}/// Implement a custom verifier for your chain
struct MyChainVerifier {}
impl @protocol.SecurityVerifier for MyChainVerifier with
check_replay_protection(self, tx, spec) {
// Your replay protection logic
if tx.locktime > 0 && spec.require_timestamp {
@protocol.SecurityAssertResult::Safe
} else {
@protocol.SecurityAssertResult::Unsafe("missing timestamp protection")
}
}
impl @protocol.SecurityVerifier for MyChainVerifier with
check_contract_safety(self, spec) {
if spec.safety_modes.contains(@protocol.ContractSafetyMode::TimeLock) {
@protocol.SecurityAssertResult::Safe
} else {
@protocol.SecurityAssertResult::Warning("consider adding TimeLock")
}
}
impl @protocol.SecurityVerifier for MyChainVerifier with
check_bridge_security(self, spec) {
if spec.has_validator_set && spec.min_validators >= 3 {
@protocol.SecurityAssertResult::Safe
} else {
@protocol.SecurityAssertResult::Unsafe("insufficient validators")
}
}
impl @protocol.SecurityVerifier for MyChainVerifier with
validate_amount_range(self, amount, min, max) {
// Delegate to a numeric comparison
@protocol.SecurityAssertResult::Safe
}
impl @protocol.SecurityVerifier for MyChainVerifier with
check_fee_ratio(self, fee, amount, max_ratio) {
// Delegate to a ratio calculation
@protocol.SecurityAssertResult::Safe
}
/// Use the custom verifier
let verifier = MyChainVerifier{}
try @business.assert_contract_safety(verifier, token_spec)
// Compiler guarantees all 5 trait methods are implementedstruct PolkadotVerifier {}
impl @protocol.AddressVerifier for PolkadotVerifier with
address_format_spec(self, ty) {
match ty {
// ... implement all 9 AddressType variants
}
}
// Also required:
// valid_address_length_range(self, ty)
// validate_checksum(self, ty, address)
// address_precision(self, scheme)
// hash_output_length(self, scheme)
// is_valid_hash_size(self, hash, scheme)| Test File | Test Count | Category | Coverage |
|---|---|---|---|
| protocol/spec_easy_test.mbt | 7 | Unit | Enum counts, struct construction, SecurityAssertResult variants |
| protocol/spec_difficult_test.mbt | 9 | Integration | Multi-input/output TX, ERC-20 transfer, BTC/SAT precision, all security specs, bridge config, EIP-55/Cosmos address format, SignatureVerifySpec |
| business/business_test.mbt | 7 | Property | QuickCheck property bombardment |
| Test | Rounds | Description |
|---|---|---|
| qc: ECDSA + BtcP2pkh | 200 | Single compatible pair verification |
| qc: Ed25519 + Solana | 200 | Single compatible pair verification |
| qc: Bls12381 + BtcP2pkh incompatible | 200 | Single incompatible pair (must raise error) |
| qc: error payload correctness | 1 (assertion) | Verify IncompatibleScheme carries correct (scheme, addr) |
| qc: deterministic / idempotence | 500 | Same input → same output (impurity guard) |
| qc: all 11 compatible pairs | 200 each (2,200 total) | Full compatible pair matrix |
| qc: all 34 incompatible pairs | 200 each (6,800 total) | Full incompatible pair matrix (5×9−11=34) |
# Type checking
moon check
# Run all 23 tests
moon test
# Update test snapshots
moon test --update
# Run Hermes theorem proofs
moon prove protocol| Class | Mitigation | Mechanism |
|---|---|---|
| Integer overflow (inflation) | Proven | overflow_safe_lemma + Z3 + runtime guard |
| Integer overflow (fee bypass) | Proven | fund_conservation_inv + Z3 |
| Incomplete trait impl | Prevented | Compile-time trait completeness check |
| Address spoofing (wrong prefix) | Caught | InvalidPrefix error |
| Address spoofing (invalid char) | Caught | InvalidCharacter error |
| Checksum bypass | Caught | ChecksumMismatch error |
| Signature scheme mismatch | Caught | IncompatibleScheme error |
| Double-spend | Caught | TxValidationCode::DoubleSpend |
| Replay attack | Caught | ReplayProtectionSpec + SecurityVerifier |
| Cross-chain bridge exploit | Caught | BridgeSpec.min_validators check |
# ─── Type Checking ──────────────────────────────────
moon check # Full project type check
# ─── Testing ────────────────────────────────────────
moon test # Run all 23 tests
moon test --update # Update test snapshots
moon test --package crypto_assert # Target specific package
# ─── Hermes Theorem Proving ─────────────────────────
moon prove protocol # Verify all lemmas in transfer_proof.mbtp
# ─── Build ──────────────────────────────────────────
moon build # Build the package
moon build --target wasm # Build for WebAssembly
moon build --target wasm-gc # Build for wasm-gc backend
# ─── Documentation ──────────────────────────────────
moon doc # Generate API documentation
# ─── Formatting ─────────────────────────────────────
moon fmt # Format all source files
# ─── IDE Support ────────────────────────────────────
moon ide # Start LSP for editor integration
# ─── Full Validation Pipeline ───────────────────────
moon check && moon prove protocol && moon test# .github/workflows/ci.yml
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: moonbitlang/setup-moon@v1
- run: moon check
- run: moon prove protocol
- run: moon test| Feature | CryptoAssert (MoonBit) | OpenZeppelin (Solidity) | CosmWasm (Rust) | Cosmos SDK (Go) |
|---|---|---|---|---|
| Formal proof (SMT) | ✓ Hermes/Z3 | ✗ (requires Echidna/Certora) | ✗ (external tools) | ✗ |
| Compile-time trait completeness | ✓ (zero NotImplemented) | ✗ (runtime revert) | ✓ (trait bounds) | ✗ (interface checks) |
| Static dispatch | ✓ | ✗ (dynamic calls) | ✓ (monomorphization) | ✗ (interface dispatch) |
| Structured errors | ✓ (10 suberror variants) | Partial (custom errors) | ✓ (thiserror/anyhow) | ✗ (string errors) |
| Property-based testing | ✓ (QuickCheck built-in) | Partial (Foundry fuzz) | ✓ (proptest) | ✗ |
| Multi-chain coverage | 9 chains | Ethereum ecosystem | Cosmos ecosystem | Cosmos ecosystem |
| Proof-carrying code | ✓ | ✗ | ✗ | ✗ |
| Gas optimization | N/A (off-chain) | Critical concern | Moderate concern | Moderate concern |
Install
Download zipMulti-chain cryptographic assertion & formal verification library.