| CPC G06Q 50/188 (2013.01) | 19 Claims |

|
1. A method comprising:
accessing, by a computing system bridging an off-chain execution environment and a file system, an electronic document, wherein the electronic document comprises natural language content and a plurality of programmable clauses executed at the off-chain execution environment, wherein a programmable clause of the plurality of programmable clauses comprises computer executable instructions that define:
a clause state object that indicates an execution state of the programmable clause;
computing, by the computing system, a Merkel directed acyclic graph (MDAG) data structure of the electronic document, wherein at least a subset of objects in the MDAG data structure correspond to the clause state object of the programmable clause of the electronic document;
receiving, by the computing system via an application programmable interface in communication with the off-chain execution environment and the file system, a contract input including a hash link reference to a current state object corresponding at least to the subset of objects in the MDAG data structure, the current state object indicating a current execution state of the programmable clause;
responsive to receiving the contract input, processing the contract input according to logic of a root state object associated with the MDAG data structure configured to cause the computing system to:
generate, based on the contract input and the current state object, an updated state object indicating an updated execution state;
modify the MDAG data structure by appending, using hash-linking, at least the subset of objects in the MDAG data structure to include the generated updated state object, the MDAG data structure including a prior version of the generated updated state object;
store, via a peer-to-peer system of the file system, at least the subset of objects of the MDAG data structure to verify the programmable clause; and
dispatch execution to other clause logic object referenced in the MDAG data structure.
|