Invention Grant
- Patent Title: Method for implementing smart contract based on blockchain
-
Application No.: US17348979Application Date: 2021-06-16
-
Publication No.: US12210892B2Publication Date: 2025-01-28
- Inventor: Wei Xiao
- Applicant: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
- Applicant Address: CN Beijing
- Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
- Current Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
- Current Assignee Address: CN Beijing
- Agency: Maschoff Brennan
- Priority: CN202010677698.6 20200715
- Main IPC: G06F9/455
- IPC: G06F9/455 ; G06F9/50

Abstract:
A method for implementing a smart contract based on a blockchain, a device, and a medium are provided. The detailed implementation includes: creating a resident process for a resident smart contract and creating a virtual machine by the resident process when achieving an enable condition of the resident smart contract; loading codes of the resident smart contract into a memory through the virtual machine; receiving a data access request generated by a normal smart contract within a block generation cycle through an across-contract calling interface of the virtual machine; and executing the resident smart contract through the virtual machine to process the data access request and returning a data access result to the normal smart contract.
Public/Granted literature
- US20210311770A1 METHOD FOR IMPLEMENTING SMART CONTRACT BASED ON BLOCKCHAIN Public/Granted day:2021-10-07
Information query