Documentation
Docs43. Secure Coding Requirements
43. Secure Coding Requirements
To ensure the C++ node daemon remains uncompromised, the engineering team adheres to non-negotiable coding standards:
- Multi-Party Review: All consensus, execution, storage, and cryptographic code is reviewed by at least two engineers, including one designated security reviewer.
- Strict Bounds Checking: All external inputs (RPC JSON payloads, P2P network frames, EVM bytecode) are fully validated and size-bounded before parsing.
- Memory Safety: Raw pointer arithmetic is strictly forbidden in consensus and execution paths.
- Supply Chain Defense: External dependencies are strictly vendored to prevent upstream supply-chain injection attacks.
- Error Handling: All errors are wrapped in
std::expectedand enforced via[[nodiscard]]. Silently dropping errors causes immediate compilation failure.