[Paper Review] Uma Prova de Conceito para a Verificação Formal de Contratos Inteligentes
The paper demonstrates a proof of concept using Relativized Contract Language (RCL) and the RECALL tool to specify and verify a multilateral purchase contract, then translates and tests a corrected Solidity version in Remix.
Smart contracts are tools with self-execution capabilities that provide enhanced security compared to traditional contracts; however, their immutability makes post-deployment fault correction extremely complex, highlighting the need for a verification layer prior to this stage. Although formalisms such as Contract Language (CL) enable logical analyses, they prove limited in attributing responsibilities within complex multilateral scenarios. This work presents a proof of concept using the Relativized Contract Language (RCL) and the RECALL tool for the specification and verification of a purchase and sale contract involving multiple agents. The study demonstrates the tool's capability to detect normative conflicts during the modeling phase. After correcting logical inconsistencies, the contract was translated into Solidity and functionally validated within the Remix IDE environment, confirming that prior formal verification is fundamental to ensuring the reliability and security of the final code.
Motivation & Objective
- Motivate formal verification for smart contracts to address post-deployment immutability risks.
- Show how RCL can model multilateral responsibilities to avoid ambiguities in contracts.
- Demonstrate conflict detection with RECALL and resolve issues before implementation.
Proposed method
- Describe a purchase contract in RCL with multiple agents (buyer, seller, bank, carrier).
- Use RECALL to detect normative conflicts in the RCL specification.
- Correct conflicts in the RCL, then translate the contract into Solidity for implementation.
- Translate the RCL description into Solidity with stateful control flow and participant-specific modifiers.
- Test the Solidity version in Remix IDE to verify functional alignment with the RCL model.
Experimental results
Research questions
- RQ1Can RCL specification and RECALL verification uncover normative conflicts in multilateral smart contracts?
- RQ2Does correcting RCL conflicts lead to a consistent and implementable Solidity contract that preserves intended behavior?
- RQ3Is a formal verification layer essential to ensure reliability and security before deploying smart contracts on Ethereum?
Key findings
- RECALL detected a conflict between the carrier’s delivery rule and the freight payment flow in the initial RCL contract.
- After modifying the RCL (notifying the carrier about freight payment and adjusting internal carrier rule), RECALL reported a conflict-free contract.
- The authors translated the revised RCL-based contract into Solidity and validated its behavior in Remix, illustrating the value of pre-deployment formal verification.
- The study discusses the need for a multi-step transformation from RCL to Solidity to preserve semantics and argues formal verification enhances contract reliability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.