Skip to content

koolexcrypto/sec-fv-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Security: Formal Verification using Act [Simple NFT Contract]

We have two versions of contract specification:

  • v1 doesn't check if minting reaches 3000 which is supposed to be the NFT max supply. Therefore, Act indicates the behaviour of mint function violates this requirement.
  • v2 does check that. Thus, it passes the check!

Verify NFT contract version 1

act prove --file sec-fv-sample/spec/nftv1.act

Result: NFTv1 verification result

Verify NFT contract version 2

act prove --file sec-fv-sample/spec/nftv2.act

Result: NFTv1 verification result

Reach out to me

Koolex Twitter

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published