Skip to content

Commit

Permalink
Create index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 8, 2024
1 parent 63853cf commit 0856a80
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const { ModelChecker } = require('./model_checker');
const { TheoremProver } = require('./theorem_prover');

class FormalVerifier {
async verifyContract(contractAddress, data) {
const modelChecker = new ModelChecker();
const theoremProver = new TheoremProver();

const modelCheckingResult = await modelChecker.verify(contractAddress, data);
const theoremProvingResult = await theoremProver.verify(contractAddress, data);

return { modelCheckingResult, theoremProvingResult };
}
}

module.exports = FormalVerifier;

0 comments on commit 0856a80

Please sign in to comment.