IP Library Granted Patent US 12,494,928
Granted Patent B2
US 12,494,928 · App. 18/276,878 · Granted Dec 9, 2025

Registration and execution methods, apparatuses and system of timed smart contract in blockchain

Inventor: Kaikai Feng (Beijing, CN)
Assignee: DIGITAL CURRENCY INSTITUTE, THE PEOPLE'S BANK OF CHINA
H04L9/50H04L9/3297
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,494,928
App. No.
18/276,878
Granted
Dec 9, 2025
Kind
B2
Abstract

Disclosed are a registration method, an execution method, an execution apparatus and an execution system of a timed smart contract in a blockchain, and relates to the technical field of computers. The method includes: a registration request of the timed smart contract is received; according to the registration request, an interface for the timed smart contract connecting to an oracle contract is generated for the timed smart contract, where the oracle contract is deployed on the blockchain and configured to receive time information sent by a trusted oracle, so as to supply the time information to the timed smart contract through the interface. The management and execution of the timed smart contract are realized via the blockchain.

Claims (70)

1 . A registration method of a timed smart contract in a blockchain, comprising:

receiving a registration request of the timed smart contract; and

according to the registration request, generating, for the timed smart contract, an interface for the timed smart contract connecting to an oracle contract, wherein the oracle contract is deployed on the blockchain and configured to receive time information sent by a trusted oracle, so as to supply the time information to the timed smart contract through the interface;

wherein the timed smart contract refers to a smart contract, which has a timed-triggered function and is timed-triggered by combining time and the timed-triggered function, and when the time information satisfies the timed-triggered function, the timed smart contract is executed.

2 . The registration method for the timed smart contract in the blockchain according to claim 1 , further comprising:

generating a corresponding transaction block for other smart contract, and recording a transaction corresponding to the other smart contract in the transaction block, wherein the other smart contract is a smart contract without an event-triggered function, and thus is executed based on the transaction block.

3 . The registration method for the timed smart contract in the blockchain according to claim 2 , further comprising:

for the timed smart contract, generating a corresponding built-in block or a built-in region in a transaction block; and

configuring a corresponding amount of consumable resources for the built-in block or the built-in region in the transaction block, and recording a transaction corresponding to the timed smart contract in the transaction block so that the timed smart contract is able to be executed based on the built-in block or the built-in region in the transaction block.

4 . An execution method of a timed smart contract in a blockchain, comprising:

providing time information, sent by a trusted oracle, to an oracle contract, wherein the trusted oracle is elected from a plurality of oracles;

providing the time information to the timed smart contract through an interface, wherein the timed smart contract comprises a time-triggered function and is connected to the oracle contract through the interface; and

executing the timed smart contract under a condition the time information satisfies the time-triggered function;

wherein the timed smart contract refers to a smart contract, which has a timed-triggered function and is timed-triggered by combining time and the timed-triggered function.

5 . The execution method of the timed smart contract in the blockchain according to claim 4 , further comprising:

adopting a polling mode to determine the trusted oracle from the plurality of oracles;

or,

adopting a vote mode to select the trusted oracle from the plurality of oracles.

6 . The execution method of the timed smart contract in the blockchain according to claim 4 , further comprising:

generating a log, and recording the time information in the log;

when a lookup request of a trusted node or other trusted oracle in the blockchain is received, providing the log to the trusted node or the other trusted oracle; and

according to a lookup result, verifying whether the time information recorded in the log is accurate or not,

if not, marking the trusted oracle as being un-trusted and re-executing a step of electing the trusted oracle from the plurality of oracles.

7 . The execution method of the timed smart contract in the blockchain according to claim 4 , further comprising:

setting a transaction block for a non-timed smart contract, wherein a transaction corresponding to the other smart contracts is recorded in the transaction block; and

executing the transaction block corresponding to the other smart contract when an execution trigger of the other smart contract is received.

8 . The execution method of the timed smart contract in the blockchain according to claim 7 ,

further comprising: for the timed smart contract, setting a built-in block or a built-in region in a transaction block; and configuring a corresponding amount of consumable resources to the built-in block or the built-in region, wherein the built-in block or the built-in region records a transaction corresponding to the timed smart contract, and

executing the timed smart contract comprising:

when an execution trigger of the timed smart contract is received, judging whether an amount of resources currently required is not greater than the amount of consumable resources corresponding to the built-in block or the built-in region or not, if yes, executing the built-in block or the built-in region corresponding to the timed smart contract, and if not, forbidding execution.

9 . The execution method of the timed smart contract in the blockchain according to claim 4 , wherein

the timed smart contract comprises at least two time-triggered functions, and each time-triggered function corresponds to one processing logic in the timed smart contract; and

executing the timed smart contract comprises: executing a processing logic corresponding to a time-triggered function.

10 . A registration electronic device of a timed smart contract in a blockchain, comprising:

one or more processors; and

a memory device configured to store one or more programs,

wherein when the one or more programs are executed by the one or more processors, the one or more processors implement following actions:

receiving a registration request of the timed smart contract; and

according to the registration request, generating, for the timed smart contract, an interface for the timed smart contract connecting to an oracle contract, wherein the oracle contract is deployed on the blockchain and configured to receive time information sent by a trusted oracle, so as to supply the time information to the timed smart contract through the interface; wherein the timed smart contract refers to a smart contract, which has a timed-triggered function and is timed-triggered by combining time and the timed-triggered function, and when the time information satisfies the timed-triggered function, the timed smart contract is executed.

11 . A non-transitory computer-readable medium, storing a computer program, wherein the computer program is executed by a processor to implement following actions:

receiving a registration request of the timed smart contract; and

according to the registration request, generating, for the timed smart contract, an interface for the timed smart contract connecting to an oracle contract, wherein the oracle contract is deployed on the blockchain and configured to receive time information sent by a trusted oracle, so as to supply the time information to the timed smart contract through the interface; wherein the timed smart contract refers to a smart contract, which has a timed-triggered function and is timed-triggered by combining time and the timed-triggered function, and when the time information satisfies the timed-triggered function, the timed smart contract is executed.

12 . The registration electronic device of the timed smart contract in the blockchain according to claim 10 , further comprising:

generating a corresponding transaction block for other smart contract, and recording a transaction corresponding to the other smart contract in the transaction block, wherein the other smart contract is a smart contract without an event-triggered function, and thus is executed based on the transaction block.

13 . The registration electronic device of the timed smart contract in the blockchain according to claim 12 , further comprising:

for the timed smart contract, generating a corresponding built-in block or a built-in region in a transaction block; and

configuring a corresponding amount of consumable resources for the built-in block or the built-in region in the transaction block, and recording a transaction corresponding to the timed smart contract in the transaction block so that the timed smart contract is able to be executed based on the built-in block or the built-in region in the transaction block.

14 . The registration electronic device of the timed smart contract in the blockchain according to claim 10 , wherein the one or more processors further implement the following actions:

providing time information, sent by a trusted oracle, to an oracle contract, wherein the trusted oracle is elected from a plurality of oracles;

providing the time information to the timed smart contract through an interface, wherein the timed smart contract comprises a time-triggered function and is connected to the oracle contract through the interface; and

executing the timed smart contract under a condition the time information satisfies the time-triggered function.

15 . The registration electronic device of the timed smart contract in the blockchain according to claim 14 , further comprising:

adopting a polling mode to determine the trusted oracle from the plurality of oracles;

or,

adopting a vote mode to select the trusted oracle from the plurality of oracles.

16 . The registration electronic device of the timed smart contract in the blockchain according to claim 14 , further comprising:

generating a log, and recording the time information in the log;

when a lookup request of a trusted node or other trusted oracle in the blockchain is received, providing the log to the trusted node or the other trusted oracle; and

according to a lookup result, verifying whether the time information recorded in the log is accurate or not,

if not, marking the trusted oracle as being un-trusted and re-executing a step of electing the trusted oracle from the plurality of oracles.

17 . The registration electronic device of the timed smart contract in the blockchain according to claim 14 , further comprising:

setting a transaction block for a non-timed smart contract, wherein a transaction corresponding to the other smart contracts is recorded in the transaction block; and

executing the transaction block corresponding to the other smart contract when an execution trigger of the other smart contract is received.

18 . The registration electronic device of the timed smart contract in the blockchain according to claim 17 ,

further comprising: for the timed smart contract, setting a built-in block or a built-in region in a transaction block; and configuring a corresponding amount of consumable resources to the built-in block or the built-in region, wherein the built-in block or the built-in region records a transaction corresponding to the timed smart contract, and

executing the timed smart contract comprising:

when an execution trigger of the timed smart contract is received, judging whether an amount of resources currently required is not greater than the amount of consumable resources corresponding to the built-in block or the built-in region or not, if yes, executing the built-in block or the built-in region corresponding to the timed smart contract, and if not, forbidding execution.

19 . The registration electronic device of the timed smart contract in the blockchain according to claim 14 , wherein

the timed smart contract comprises at least two time-triggered functions, and each time-triggered function corresponds to one processing logic in the timed smart contract; and

executing the timed smart contract comprises: executing a processing logic corresponding to a time-triggered function.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 10, 2023
From: FENG, KAIKAI
To: DIGITAL CURRENCY INSTITUTE,THE PEOPLE'S BANK OF CHINA
Reel/Frame 064557/0808 →
Priority Claims (1)
CN 202110185555.8 · Feb 10, 2021 · national
Continuity (1)
Related Publication 20240121121A1 · Apr 11, 2024
References Cited (28)
US 11398911B1 · Gunning · 2022 [cited by examiner]
US 20170085595A1 · Ng · 2017 [cited by examiner]
US 20180218176A1 · Voorhees · 2018 [cited by examiner]
US 20180331835A1 · Jackson · 2018 [cited by examiner]
US 20190013948A1 · Mercuri · 2019 [cited by examiner]
US 20190080406A1 · Molinari · 2019 [cited by examiner]
US 20190095880A1 · Glover · 2019 [cited by examiner]
US 20190114706A1 · Bell · 2019 [cited by examiner]
US 20190158275A1 · Beck · 2019 [cited by examiner]
US 20190180291A1 · Schmeling · 2019 [cited by examiner]
US 20190188399A1 · Palaniappan · 2019 [cited by examiner]
US 20190354989A1 · Saket et al. · 2019 [cited by applicant]
US 20190361842A1 · Wood · 2019 [cited by examiner]
US 20200005282A1 · Kim · 2020 [cited by examiner]
US 20200007513A1 · Gleichauf · 2020 [cited by examiner]
US 20200111092A1 · Wood · 2020 [cited by examiner]
US 20200233966A1 · Bursell · 2020 [cited by examiner]
US 20200387500A1 · Malfiza Garcia de Macedo · 2020 [cited by examiner]
US 20210135855A1 · Sunkavally · 2021 [cited by examiner]
CN 109474701A · 2019 [cited by applicant]
CN 110633286A · 2019 [cited by applicant]
CN 110659907A · 2020 [cited by applicant]
CN 111367621A · 2020 [cited by applicant]
CN 111753011A · 2020 [cited by applicant]
CN 111818185A · 2020 [cited by applicant]
CN 112837157A · 2021 [cited by applicant]
IN 110992020A · 2020 [cited by applicant]
The search report of counterpart EP application No. 22752348.7 issued on Jan. 21, 2025. [cited by applicant]