Smart contract compiler
OwnerAkiva Dubrofsky, Ashwin Tumneinventors
Life of this patent
Estimating the term…
Abstract
A compiler method for a smart contract. The compiler method is deployed on a blockchain; hence, the compiler method is an on-chain compiler. The compiler method comprises receiving a byte sequence program for an object structure. The object structure includes at least one agreement condition. The compiler method further, maps the byte sequence program into at least one executable smart contract representation of the object structure executable by the blockchain.
Claims17
A compiler method for a smart contract, the method comprising:
- by the smart contract deployed on a blockchain:
- receiving an input string having at least one agreement condition and at least one action;
- accepting the input string;
- parsing, using a parser, the input string into an object structure, wherein the object structure is in a string format;
- determining a byte sequence program for the object structure, wherein the byte sequence program is an ordered sequence of bytecodes for executing the at least one agreement condition and the at least one action;
- mapping the byte sequence program into at least one executable smart contract representation of the object structure executable by the blockchain, wherein the at least one executable smart contract representation implements at least one function of a programming language, wherein in response to receiving a request for executing the at least one function of the programming language, the at least one executable smart contract representation for the at least one function is executed and the at least one action is performed;
- receiving, from a computing device, a second input string for updating a segment of at least one of the agreement conditions;
- parsing, using the parser, the second input string into a second object structure comprising the segment;
- determining a second byte sequence program for the second object structure;
- updating the byte sequence program with the second byte sequence program;
- evaluating the at least one executable smart contract representation in response to the at least one agreement condition being satisfied;
- and
- sending, to the computing device or another computing device, confirmation of execution of the at least one smart contract representation.
A computer-readable medium having tangibly stored thereon computer-executable instructions that, in response to execution by a processor, cause a smart contract of the processor deployed on a blockchain to:
- receive an input string having at least one agreement condition and at least one action;
- accept the input string;
- parse, using a parser, the input string into an object structure, wherein the object structure is in a string format;
- determine a byte sequence program for the object structure, wherein the byte sequence program is an ordered sequence of bytecodes for executing the at least one agreement condition and the at least one action;
- map the byte sequence program into at least one executable smart contract representation of the object structure executable by the blockchain, wherein the at least one executable smart contract representation implements at least one function of a programming language, wherein in response to receiving a request for executing the at least one function of the programming language, the at least one executable smart contract representation for the at least one function is executed and the at least one action is performed;
- receive, from a computing device, a second input string for updating a segment of at least one of the agreement conditions;
- parse, using the parser, the second input string into a second object structure comprising the segment;
- determine a second byte sequence program for the second object structure;
- update the byte sequence program with the second byte sequence program;
- evaluate the at least one executable smart contract representation in response to the at least one agreement condition being satisfied;
- and
- send, to the computing device or another computing device, confirmation of execution of the at least one smart contract representation.
Dependencies are inferred from the claim text.