본문으로 건너뛰기
Skillpedia
보안48k · #5812

smart-contract-formal-verification

하는 일

이 도구는 엄격한 수학적 시험을 사용해 스마트 계약(블록체인에서 실행되는 프로그램)이 의도한 대로 작동하는지 확인합니다. 사용되기 전에 보안 결함을 찾는 데 도움을 줍니다.

사용하는 경우

  • ✓새 계약을 위한 보안 규칙을 만들 때.
  • ✓감사자와 개발자가 함께 계약을 검토해야 할 때.
  • ✓계약이 안전한지 보여 주는 보고서를 만들고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/smart-contract-formal-verification/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/smart-contract-formal-verification/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 암호화폐 거래 계약이 해커로부터 안전한지 어떻게 검증할 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

계약의 운영 규칙을 정의하고, 이 규칙이 항상 지켜지는지 수학적 시험을 적용하며, 보안 보고서를 만듭니다. 계약이 사용되기 전에 문제를 찾는 데 도움을 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Smart Contract Formal Verification

What it is: Applies rigorous mathematical invariant proofs, symbolic execution engines, and property-based fuzz tests to verify smart contract safety.

Overview

Provides a standardized, auditable framework and data model for Smart Contract Formal Verification operations across distributed engineering and decentralized application systems.

When to Use This Skill

  • When formalizing architectural contracts, security invariants, or operational limits for Smart Contract Formal Verification.
  • When cross-functional review is required between protocol developers, smart contract auditors, and AI engineering agents.
  • When generating reproducible CSV, SQL DDL, JSON Schema, and Notion property registers for tracking compliance.

How It Works

  1. Define the parameters, thresholds, and identity bindings required for the target operational register.
  2. Select appropriate boundary enforcement values from validated enum select sets.
  3. Export standardized artifacts (CSV table, SQL DDL, JSON Schema) to integrate into validation CI pipelines.

Field Reference

# Field Name Type SQL Type JSON Schema Type Notion Property Type Example Value
1 Formal Spec ID id SERIAL PRIMARY KEY integer Text SPEC-001
2 Target Contract Module text VARCHAR(64) string Text vault_liquidity_engine
3 State Transition Property text VARCHAR(128) string Text Total Assets Equals Sum of Shares
4 Verification Method select VARCHAR(64) string Select Foundry Invariant Fuzzing
5 Fuzz Runs Count number INTEGER number Number 100000
6 Symbolic Execution Engine select VARCHAR(32) string Select Certora Prover
7 Counterexample Discovered select VARCHAR(16) string Select No
8 Mathematical Theorem Proved select VARCHAR(16) string Select Yes
9 Invariant Violation Tolerance currency NUMERIC(14,2) number Number 0.00
10 Formal Verification Status select VARCHAR(32) string Select Formally Verified
11 Proof Generation Date date DATE string, format: date Date 2026-10-01

Select Options

Verification Method

Foundry Invariant Fuzzing | Halmos Symbolic Execution | Certora Rule Prover | SMT Solver

Symbolic Execution Engine

Certora Prover | Halmos | Z3 SMT | None (Fuzzing Only)

Counterexample Discovered

Yes | No

Mathematical Theorem Proved

Yes | No

Formal Verification Status

Formally Verified | Violations Found | Proof In Progress

Relations

  • Audit Reference -> links to the formal review documentation or test repository.
  • Target Architecture -> links to the deployed contract or autonomous agent runtime component.

Examples

Prompt

How do I configure and track Smart Contract Formal Verification for our production environment?

Recommended Next Step

Generate the unified field schema, SQL DDL migration, and JSON validation schema to register into your system catalog.

Workflow: Define criteria -> Run automated verification -> Record baseline -> Monitor invariants.

Best Practices

  • Enforce strict typing on numerical bounds and currency amounts; avoid unstructured free-text fields for critical states.
  • Re-run validation test suites on every state-altering commit or parameter change.
  • Keep example data synthetic and isolated from production cryptographic keys or private endpoints.

Limitations

  • Provides architectural specifications, data models, and verification schemas; does not execute direct transaction signing without authorized external tooling.
  • Requires network connectivity and valid RPC credentials when querying on-chain states.

Security & Safety Notes

  • All parameters declare risk: safe. No unauthorized state modification or privileged credential access is performed.
  • Use synthetic dummy keys and mock addresses in test suites and local verification scripts.

Common Pitfalls

  • Problem: Mismatched decimal precision between contract runtime and database register. Solution: Always verify decimals using the explicit field mapping in this reference.
  • Problem: Missing authorization checks prior to state update.

…

자주 묻는 질문

「불변식(invariants)」이란 무엇인가요?

계약에서 항상 참이어야 하는 규칙입니다. 예를 들어 '계좌의 총 금액은 스스로 줄어들 수 없다'와 같습니다.

「기호 실행(symbolic execution)」이란 무엇인가요?

일반적인 값으로 계약을 시험해 가능한 모든 실행 경로를 보고, 그중 오류로 이어지는 경로가 있는지 확인하는 방법입니다.

이 도구가 제 계약을 고칠 수 있나요?

아니요, 이 도구는 보안 문제를 찾아냅니다. 수정은 계약 개발자가 해야 합니다.

상세 정보

작성자의 원본 설명

Foundry and Soroban formal invariant verification register: state transition rules, boundary invariant properties, and symbolic execution checks.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5812
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬