Skip to content

Commit

Permalink
chore(CAHN Demo): 🔥 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
A9-dev committed Sep 2, 2024
1 parent 89c96d7 commit 06a8e54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 1 addition & 5 deletions packages/cahn_demo/server/emailToPublicKeys.json
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"henry@nquiringminds.com": [
"OJfIatZ4d806LEGIZa/0Fg7kDJsuhp3PMH+NxwsO/0E="
]
}
{}
2 changes: 0 additions & 2 deletions packages/cahn_demo/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,6 @@ app.get("/device/:deviceId", async (req, res) => {
// Command to run Prolog query and retrieve data for a specific device
const command = `swipl -s ./output/output.pl -g "attach_db('./output/output_db.pl'), db:output_device_data(\\"${deviceId}\\", DeviceData), write(current_output, DeviceData), halt."`;

console.log("command :>> ", command);

exec(command, (error, stdout, stderr) => {
claimCascadeInProgress = false;
if (error) {
Expand Down
5 changes: 4 additions & 1 deletion packages/cahn_demo/server/output/output_db.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
created(1725284127.4283504).
created(1725284556.401133).
assert(device_type_trust("henry@nquiringminds.com",1725284541476,"EvilPhone-id")).
assert(manufacturer_trust(1725284533884,"EvilInc-id","henry@nquiringminds.com")).
assert(device_type(1723716151033,"TrustPhone-id","TrustPhone")).
assert(device_type(1723716151033,"VulnerableCamera-id","VulnerableCamera")).
assert(device_type(1723716151033,"EvilPhone-id","EvilPhone")).
Expand Down Expand Up @@ -28,3 +30,4 @@
assert(sbom(1723716151033,"VulnerableCameraSBOM-id","VulnerableCamera SBOM information")).
assert(manufacturer(1723716151033,"EvilInc-id","EvilInc")).
assert(manufacturer(1723716151033,"TrustCorp-id","TrustCorp")).
assert(user(true,true,true,1725284526714,"henry@nquiringminds.com","henry-user")).

0 comments on commit 06a8e54

Please sign in to comment.