System and method for executing different types of blockchain contracts
First Claim
Patent Images
1. A computer-implemented method for executing blockchain contracts, comprising:
- obtaining a bytecode of a blockchain contract, wherein;
the bytecode comprises a plurality of indicators,the plurality of indicators comprise a first indicator indicating a virtual machine type for executing the blockchain contract and a second indicator indicating a virtual machine version for executing the blockchain contract,the first indicator corresponds to a first byte of the bytecode of the blockchain contract,the second indicator corresponds to a second byte of the bytecode of the blockchain contract, anda third to an nth byte of the bytecode of the blockchain contract correspond to code for executing the blockchain contract, n being a natural number no less than three, and the first to the nth byte of the bytecode of the blockchain contract specifying an application binary interface (ABI) format; and
executing the blockchain contract using a virtual machine of the virtual machine type associated with the first indicator and of the virtual machine version associated with the second indicator.
3 Assignments
0 Petitions
Accused Products
Abstract
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for executing blockchain contracts are provided. One of the methods includes: obtaining a bytecode of a blockchain contract, wherein the bytecode comprises one or more indicators, and the one or more indicators comprise a first indicator indicating a virtual machine type for executing the blockchain contract; and executing the blockchain contract using a virtual machine of the virtual machine type associated with the first indicator.
43 Citations
20 Claims
-
1. A computer-implemented method for executing blockchain contracts, comprising:
-
obtaining a bytecode of a blockchain contract, wherein; the bytecode comprises a plurality of indicators, the plurality of indicators comprise a first indicator indicating a virtual machine type for executing the blockchain contract and a second indicator indicating a virtual machine version for executing the blockchain contract, the first indicator corresponds to a first byte of the bytecode of the blockchain contract, the second indicator corresponds to a second byte of the bytecode of the blockchain contract, and a third to an nth byte of the bytecode of the blockchain contract correspond to code for executing the blockchain contract, n being a natural number no less than three, and the first to the nth byte of the bytecode of the blockchain contract specifying an application binary interface (ABI) format; and executing the blockchain contract using a virtual machine of the virtual machine type associated with the first indicator and of the virtual machine version associated with the second indicator. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system for executing blockchain contracts, comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the system to perform operations comprising:
-
obtaining a bytecode of a blockchain contract, wherein; the bytecode comprises a plurality of indicators, the plurality of indicators comprise a first indicator indicating a virtual machine type for executing the blockchain contract and a second indicator indicating a virtual machine version for executing the blockchain contract, the first indicator corresponds to a first byte of the bytecode of the blockchain contract, the second indicator corresponds to a second byte of the bytecode of the blockchain contract, and a third to an nth byte of the bytecode of the blockchain contract correspond to code for executing the blockchain contract, n being a natural number no less than three, and the first to the nth byte of the bytecode of the blockchain contract specifying an application binary interface (ABI) format; and executing the blockchain contract using a virtual machine of the virtual machine type associated with the first indicator and of the virtual machine version associated with the second indicator. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable storage medium for executing blockchain contracts, the storage medium coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the one or more processors to perform operations comprising:
-
obtaining a bytecode of a blockchain contract, wherein; the bytecode comprises a plurality of indicators, and the plurality of indicators comprise a first indicator indicating a virtual machine type for executing the blockchain contract and a second indicator indicating a virtual machine version for executing the blockchain contract, the first indicator corresponds to a first byte of the bytecode of the blockchain contract, the second indicator corresponds to a second byte of the bytecode of the blockchain contract, and a third to an nth byte of the bytecode of the blockchain contract correspond to code for executing the blockchain contract, n being a natural number no less than three, and the first to the nth byte of the bytecode of the blockchain contract specifying an application binary interface (ABI) format; and executing the blockchain contract using a virtual machine of the virtual machine type associated with the first indicator and of the virtual machine version associated with the second indicator. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification