System and method for compiling high-level language code into a script executable on a blockchain platform
AssigneenChain Holdings Limited
InventorsCraig Steven WRIGHT, Stephane SAVANAH
Life of this patent
Estimating the term…
Loading patent…
AssigneenChain Holdings Limited
InventorsCraig Steven WRIGHT, Stephane SAVANAH
Estimating the term…
A computer-implemented method (and corresponding system) is provided that enables or facilitates the execution of a portion of source code, written in a high-level language (HLL), on a blockchain platform. The method and system can include a blockchain compiler, arranged to convert a portion of high-level source code into a form that can be used with a blockchain platform. This may be the Bitcoin blockchain or an alternative. The method can include: receiving the portion of source code as input; and generating an output script comprising a plurality of op codes. The op codes are a subset of op codes that are native to a functionally-restricted, blockchain scripting language. The outputted script is arranged and/or generated such that, when executed, the script provides, at least in part, the functionality specified in the source code. The blockchain scripting language is restricted such that it does not natively support complex control-flow constructs or recursion via jump-based loops or other recursive programming constructs. The step of generating the output script may comprise the unrolling at least one looping construct provided in the source code. The method may further comprise providing or using an interpreter or virtual machine arranged to convert the output script into a form that is executable on a blockchain platform.
A computer-implemented method comprising the steps:
A computer-implemented method comprising the step of using static compilation to translate a portion of source code into a blockchain-compatible script, preferably wherein the static compilation comprises the step of loop unrolling.
Dependencies are inferred from the claim text.