The invention discloses a
smart contract audit
verification method and
system based on a block chain, and a medium. The
smart contract audit
verification method comprises the steps of obtaining a to-be-audited
smart contract; performing
static analysis on the code of the smart contract, recording security
vulnerability information, and executing a first
security measure according to the security
vulnerability information; dynamically analyzing the running process of the smart contract, recording first abnormal information, and executing a second
security measure according to the first abnormal information; generating a
test case, testing the smart contract according to the
test case, recording second abnormal information, and executing a third
security measure according to the second abnormal information; and performing formalized
verification on the attributes of the smart contract, recording performance data, and executing performance optimization measures according to the performance data. The method can reduce the
attack and abuse of the smart contract, reduces the
occurrence probability of contract logic errors and potential safety hazards, and can be widely applied to the technical field of block chains.