Hi everyone, I’m trying to wrap my head around a potential usecase for Holochain and what the resulting architecture looks like.
Let’s say we have a 3rd party piece of software like flux that reads the system time and prints the desired screen temperate to the stdout of a shell. My Holochain app would require users to download this script, run it using a rust Process Command, listen for the stdout and report the contents to their Source Chain every hour.
My first thought on how this would work is that the DNA of the hApp would employ NixOs’s package manager to download and set up the script within the nix environment. However, a dishonest player of the ‘what temperature should my screen be’ game could simply log into the nix-shell and change the script contents, or to rename the PATH variable so that the script executed is an alternate version.
- How ‘rigid’ can we make our nix environments, and can users tamper with scripts once they start up their Holochain conductors inside the nix environment?
- How can we include 3rd party scripts in our games without users tampering with them
- Is there a validation or hashing mechanism by which we can ensure users in the game were running a valid environment and correct version of the script?