# US 2022/0261267 A1 · Language agnostic smart contract execution on a blockchain

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0261267 A1
- Document ID: US20220261267A1
- Status: Published application
- Kind: A1
- Application number: 17/335,912
- Filed: 2021-06-01
- Published: 2022-08-18
- Earliest claimed: 2021-02-16
- Assignees: block.one
- Applicants: block.one
- Inventors: Ian Holsman
- Web page: https://patentgrep.com/patent/US20220261267A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 8/33: Intelligent editors
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/3247: {involving digital signatures}
- H04L 9/3297: {involving time stamps, e.g. generation of time stamps}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2221/2141: Access rights, e.g. capability lists, access control lists, access tables, access matrices
- G06F 2221/2149: Restricted operating environment
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for providing a language agnostic contract execution on a blockchain is provided. The method includes providing a menu comprising multiple execution environments, and selecting, from a suite of virtual machine containers, a virtual machine container that runs an execution environment selected by the developer of the blockchain application. The method also includes enabling one or more functions in the virtual machine container to access a dedicated memory or a state variable in the block producer to run an action in the virtual machine container, the action provided by a server running the blockchain application, providing the action to the blockchain application in the virtual machine container, and writing an output from the action of the blockchain application to a secure ledger in a blockchain. A system and a non-transitory, computer-readable medium storing instructions to perform the above method are also provided.

## Claims

### Claim 1

A computer-implemented method for smart contract execution on a blockchain, comprising:
providing, to a developer of a blockchain application accessed by a block producer, a menu comprising a list of multiple execution environments, wherein the blockchain application is hosted by a server as an immutable register in a suite of virtual machine containers;
searching for a virtual machine container that runs an execution environment requested by the developer;
selecting, from a search result, a virtual machine container that runs an execution environment selected by the developer of the blockchain application from the menu;
enabling one or more functions in the virtual machine container to access a dedicated memory or a state variable in the block producer to run an action in the virtual machine container, the action provided by a server running the blockchain application for allowing the server to access the dedicated memory or the state variable from the one or more functions of the blockchain application executable in the virtual machine container provided by the server;
providing the action to the blockchain application in the virtual machine container; and
preventing access to the blockchain application with a security feature in an associated virtual machine container.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein providing a menu comprising multiple execution environments comprises providing a menu including at least one of JVM, native, and C++ execution environments.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein providing a menu comprising multiple execution environments comprises providing a menu including one or more versions of a same execution environment.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein enabling one or more functions to access a dedicated memory space comprises executing a software development kit to access the state variable and a library accessible to the developer of the blockchain application.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising preventing access to the blockchain application by a third party with a security feature in the virtual machine container.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein selecting a virtual machine that runs an execution environment selected by the developer comprises detecting the execution environment from a format of a header in a code script provided by the developer.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein selecting a virtual machine container that runs an execution environment selected by the developer of the blockchain application comprises selecting the virtual machine container that runs an updated version of the execution environment selected by the developer.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising identifying a string of characters in a code script from a client device to automatically select the execution environment for the developer.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising configuring a virtual machine container to run an execution environment requested by the developer.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, further comprising allowing a server to access an updated value of the state variable from the blockchain application.

### Claim 11

A system for smart contract execution on a blockchain, comprising:
a memory configured to store instructions; and
one or more hardware processors configured to execute the instructions to cause the system to:
provide, to a developer of a blockchain application accessed by a block producer, a menu comprising a list of multiple execution environments, wherein the blockchain application is hosted by a server as an immutable register in a suite of virtual machine containers;
search for a virtual machine container that runs an execution environment requested by the developer;
select, from a search result, a virtual machine container that runs an execution environment selected by the developer of the blockchain application from the menu;
enable one or more functions in the virtual machine container to access a dedicated memory or a state variable in the block producer to run an action in the virtual machine container, the action provided by a server running the blockchain application to allow the server to access the dedicated memory or the state variable from the one or more functions of the blockchain application executable in the virtual machine container provided by the server;
provide the action to the blockchain application in the virtual machine container; and
prevent access to the blockchain application with a security feature in an associated virtual machine container.

### Claim 12 (depends on 11)

The system of claim 11, wherein providing a menu comprising multiple execution environments comprises providing a menu including one or more versions of a same execution environment.

### Claim 13 (depends on 11)

The system of claim 11, wherein enabling one or more functions to access a dedicated memory space comprises executing a software development kit to access the state variable and a library accessible to the developer of the blockchain application.

### Claim 14 (depends on 11)

The system of claim 11, further comprising preventing access to the blockchain application by a third party with a security feature in the virtual machine container.

### Claim 15 (depends on 11)

The system of claim 11, wherein selecting a virtual machine that runs an execution environment selected by the developer comprises detecting the execution environment from a format of a header in a code script provided by the developer.

### Claim 16

A non-transitory, computer-readable storage medium storing instructions which, when executed by a hardware processor, cause a computer to perform a method for smart contract execution on a blockchain, the method comprising:
providing, to a developer of a blockchain application accessed by a block producer, a menu comprising a list of multiple execution environments, wherein the blockchain application is hosted by a server as an immutable register in a suite of virtual machine containers;
searching for a virtual machine container that runs an execution environment requested by the developer;
selecting, from a search result, a virtual machine container that runs an execution environment selected by the developer of the blockchain application from the menu;
enabling one or more functions in the virtual machine container to access a dedicated memory or a state variable in the block producer to run an action in the virtual machine container, the action provided by a server running the blockchain application for allowing the server to access the dedicated memory or the state variable from the one or more functions of the blockchain application executable in the virtual machine container provided by the server;
providing the action to the blockchain application in the virtual machine container;
preventing access to the blockchain application with a security feature in an associated virtual machine container; and
writing an output from the action of the blockchain application to a secure ledger in a blockchain.

### Claim 17 (depends on 16)

The non-transitory, computer-readable medium of claim 16 wherein, in the method, enabling one or more functions to access a dedicated memory space comprises executing a software development kit to access the state variable and a library accessible to the developer of the blockchain application.

### Claim 18 (depends on 16)

The non-transitory, computer-readable medium of claim 16, wherein the method further comprises preventing access to the blockchain application by a third party with a security feature in the virtual machine container.

### Claim 19 (depends on 16)

The non-transitory, computer-readable medium of claim 16 wherein, in the method, selecting a virtual machine that runs an execution environment selected by the developer comprises detecting the execution environment from a format of a header in a code script provided by the developer.

### Claim 20 (depends on 16)

The non-transitory, computer-readable medium of claim 16, wherein the method further comprises at least one of searching for a virtual machine container that runs an execution environment requested by the developer, or configuring a virtual machine container to run an execution environment requested by the developer.
