Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
IMPLEMENTATION OF REFLECTIVE MECHANISM IN BLOCKCHAIN
Document Type and Number:
WIPO Patent Application WO/2024/045382
Kind Code:
A1
Abstract:
A method for implementing a reflective mechanism in a blockchain, comprising: when a compiler compiles a contract source code comprising reflective programming into a Wasm file, generating meta information of a first type and a first function in the first type according to a code, in a source code/bytecode, that defines the first type, and encapsulating the generated meta information of the first type and the first function in the first type into the Wasm file; according to a reflective function code in the source code, generating a contract bytecode of a second function for acquiring a first function type and a first function content according to a dynamic parameter during operation; and after receiving a transaction of invoking a contract, a virtual machine loading a Wasm file of the invoked contract, creating a linear memory area, using the meta information in the Wasm file to initialize at least part of the memory in the linear memory area, parsing and executing the contract bytecode in the Wasm file, and when the bytecode of the second function is executed, determining a first function in the linear memory area according to a dynamic parameter of an invoked function and on the basis of the meta information and executing the first function.

Inventors:
ZHOU WEI (CN)
Application Number:
PCT/CN2022/135332
Publication Date:
March 07, 2024
Filing Date:
November 30, 2022
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ANT BLOCKCHAIN TECH SHANGHAI CO LTD (CN)
International Classes:
G06F8/41; G06F9/448; G06F9/455
Foreign References:
CN110704064A2020-01-17
CN114064042A2022-02-18
CN113326032A2021-08-31
US7720877B12010-05-18
CN107025105A2017-08-08
Attorney, Agent or Firm:
BEIJING BESTIPR INTELLECTUAL PROPERTY LAW CORPORATION (CN)
Download PDF: