Smart Contract Basics
What Is a Smart Contract? Definition, Examples and Risks
What a smart contract is, where it runs, and the risks that come with code nobody can quietly patch.
Solidity, Rust, Soroban, Circom, Halo2, Plonky3 and more, each with AI review and the security tools that fit it: static analysis, fuzzing or formal verification.
Pick your language to see what AI agents review and which audit tools check your code.
And more: Zirgen circuits are covered by ZK Vanguard and Picus.
Smart contracts and ZK circuits fail in different ways, so they need different checks. Scout reviews your code in any of these languages, and the tools that fit each layer bring the evidence.
// 001
Smart contracts or ZK circuits.
// 002
AI review in every language.
// 003
Vanguard and OrCa for smart contracts, ZK Vanguard and Picus for ZK circuits.
// 004
Proofs, traces and counterexamples.
Each language targets a different chain or proof system. Here is what you write in each one, where it is used, and which AuditHub tools check it.
| Language | Layer | What you write | Ecosystem | AuditHub tools |
|---|---|---|---|---|
| Smart contracts | Contract-oriented code compiled to EVM bytecode | Ethereum and EVM chains | Vanguard + OrCa | |
| Smart contracts | On-chain programs in a general purpose systems language | Solana, NEAR, Polkadot, CosmWasm chains | OrCa | |
| Smart contracts | Rust contracts compiled to WebAssembly | Stellar | OrCa | |
| ZK circuits | A circuit DSL that compiles to R1CS constraints | Groth16 and PLONK provers | ZK Vanguard + Picus | |
| ZK circuits | PLONKish circuits built with a Rust library | Zcash and several zk rollups | ZK Vanguard + Picus | |
| ZK circuits | STARK-based circuits built with a Rust toolkit | zkVMs and STARK provers | ZK Vanguard + Picus | |
| Zirgen | ZK circuits | A circuit DSL and compiler from RISC Zero | RISC Zero zkVM | ZK Vanguard + Picus |
Scout’s AI review covers every language in this table.
Whatever your language, the tools come from 150+ security audits by the Veridise auditors behind AuditHub. On RISC Zero’s zkVM, Picus surfaced 35 issues during development.
They are the languages used to write code that runs on a blockchain or proves computation for one. Smart contract languages include Solidity, Rust and Soroban; ZK circuit languages include Circom, Halo2 and Plonky3.
It depends on your chain: Solidity for Ethereum and EVM chains, Rust for Solana and other Rust-based chains, Soroban for Stellar.
A smart contract runs on chain and changes state. A ZK circuit defines the constraints a proof must satisfy, so the main risk is an underconstrained circuit that accepts a false proof.
Solidity: Vanguard and OrCa. Rust and Soroban: OrCa. Circom, Halo2, Plonky3 and Zirgen: ZK Vanguard and Picus. Scout reviews all of them.
Tell us what you build through Contact Us.
Still have questions? Contact us
Smart Contract Basics
What a smart contract is, where it runs, and the risks that come with code nobody can quietly patch.
Smart Contract Basics
How a contract executes on chain, what gas pays for, and how state changes from one transaction to the next.
Smart Contract Basics
Nine real uses of smart contracts, and what each one puts at stake when the code is wrong.
Connect a repository and see which security tools fit your stack.