Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit 8df2b9d

Browse files
authored
Merge pull request #351 from dapphub/prove-hash-klab-hash
klab-build-js: use klab commit hash for proof hash
2 parents 338dc55 + 8b3c559 commit 8df2b9d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

libexec/klab-build-js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ const {
2323
makeInterabiExhaustiveness
2424
} = require("../lib/build.js");
2525
const {
26+
ensureDirs,
27+
getKlabHEAD,
2628
read,
27-
testPath,
2829
revert,
29-
ensureDirs,
30+
sha3,
31+
testPath,
3032
warn,
31-
sha3
3233
} = require("../lib/util.js");
3334
const __a2n = act => act.subject + "_" + act.name;
3435

@@ -85,12 +86,13 @@ const bin_runtime_defs = Object.keys(config.implementations)
8586

8687
config.get_proof_hash = ({name, spec}) => {
8788
let proof = {
89+
bin_runtime_defs,
8890
evms: EVM_SEMANTICS_VERSION,
91+
klab: getKlabHEAD(),
8992
rules: rules_str,
93+
smt_prelude: prelude_str,
9094
spec : spec,
9195
timeout: timeouts[name] || null,
92-
smt_prelude: prelude_str,
93-
bin_runtime_defs
9496
}
9597
if (memory[name]) proof.memory = memory[name];
9698
return sha3(JSON.stringify(proof))

0 commit comments

Comments
 (0)