IP Library Granted Patent US 12675796
Granted Patent B2
US 12675796 · App. 18/528,084 · Granted Jul 7, 2026

Transaction uploading method, associated apparatus, and medium

Inventor: Gengliang Zhu (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06Q20/425G06Q20/401
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 12675796
App. No.
18/528,084
Granted
Jul 7, 2026
Kind
B2
Abstract

This application provides a transaction uploading method. The transaction uploading method includes: determining a parent type of the local transaction in response to a first consensus node receiving a local transaction; transmitting the local transaction to a second consensus node if the parent type is a first type, the local transaction instructing the second consensus node to execute the local transaction, recording the local transaction to a second blockchain, generating first uploading verification information of the local transaction, and transmitting the first uploading verification information to a third consensus node, the first uploading verification information instructing the third consensus node to verify uploading of the local transaction according to the first uploading verification information to obtain an uploading verification result, and the second blockchain being not accessible by nodes other than the second consensus node; and obtaining the uploading verification result from the third consensus node.

Claims (67)

1 . A transaction uploading method, performed by a first relay node, the method comprising:

determining a parent type of the local transaction in response to a first consensus node receiving a local transaction;

transmitting the local transaction to a second consensus node in response to that the parent type is a first type, the local transaction instructing the second consensus node to execute the local transaction, recording the local transaction to a first blockchain, generating first uploading verification information of the local transaction, and transmitting the first uploading verification information to a third consensus node, the first uploading verification information instructing the third consensus node to verify uploading of the local transaction according to the first uploading verification information to obtain an uploading verification result of the local transaction, and the first blockchain being not accessible by nodes other than the second consensus node; and

obtaining the uploading verification result of the local transaction from the third consensus node.

2 . The method according to claim 1 , wherein the first consensus node belongs to a local consensus network, the second consensus node belongs to a first global consensus network, the third consensus node belongs to a second global consensus network, and the first relay node is configured to transmit the local transaction of the first type to the second consensus node in the first global consensus network.

3 . The method according to claim 1 , further comprising:

instructing, in response to that the parent type is a second type, the first consensus node to execute the local transaction and to record the local transaction to a second blockchain, the second blockchain being accessible by nodes other than the first consensus node.

4 . The method according to claim 3 , further comprising:

obtaining a global transaction based on a plurality of local transactions of the second type; and

transmitting the global transaction to the third consensus node, the global transaction instructing the third consensus node to execute the global transaction and to record the global transaction to a third blockchain, and the third blockchain being accessible by nodes other than the third consensus node.

5 . The method according to claim 4 , further comprising:

receiving the second uploading verification information from the third consensus node, in response to that the third consensus node records the global transaction to the third blockchain to generate second uploading verification information; and

transmitting the second uploading verification information to the first consensus node, the second uploading verification information instructing the first consensus node to verify uploading of the global transaction.

6 . The method according to claim 1 , wherein:

the first uploading verification information comprises a digest value of the local transaction and a digest value that is determined according to a first path in a first tree and recorded in a first bypass node;

a leaf node in the first tree records a digest value of a transaction recorded on the first blockchain; the first path is a path from a leaf node in the first tree to a root node in the first tree, and the leaf node in the first tree records the digest value of the local transaction; the first bypass node is a sibling node in the first tree of nodes other than the root node in the first path;

the first uploading verification information instructs the third consensus node to determine a first comparative digest value according to the digest value of the local transaction and the digest value recorded in the first bypass node; and

the verification is successful in response to that the digest value recorded in the root node in the first tree and the first comparative digest value are consistent.

7 . The method according to claim 6 , wherein:

the first uploading verification information further comprises a digest value of associated data obtained after execution of the local transaction and a digest value recorded in a second bypass node in a second tree;

a leaf node in the second tree records a digest value of associated data obtained after execution of a transaction recorded on the first blockchain;

a second path is a path from a leaf node in the second tree to a root node in the second tree, and the leaf node in the second tree records the digest value of the associated data obtained after execution of the local transaction;

the second bypass node is a sibling node in the second tree of nodes other than the root node on the second path;

the first uploading verification information further instructs the third consensus node to determine a second comparative digest value according to the digest value of the associated data obtained after execution of the local transaction and the digest value recorded in the second bypass node in response to that the digest value recorded in the root node in the first tree and the first comparative digest value are consistent;

and the verification is successful in response to that the digest value recorded in the root node in the second tree and the second comparative digest value are consistent.

8 . The method according to claim 7 , wherein the first uploading verification information further comprises transaction desensitization information, the transaction desensitization information is obtained by desensitizing the local transaction by the second consensus node, the desensitization is performed according to a desensitization field in a target contract, and the target contract corresponds to a child type of the local transaction; and

the obtaining the uploading verification result of the local transaction from the third consensus node comprises:

obtaining the transaction desensitization information from the third consensus node as the uploading verification result.

9 . The method according to claim 7 , wherein the first uploading verification information further comprises instantaneous-ness information of the local transaction, and the instantaneous-ness information is determined by the second consensus node according to a child type of the local transaction; and

the obtaining the uploading verification result of the local transaction from the third consensus node comprises:

receiving the uploading verification result returned by the third consensus node after the verification of the third consensus node is successful in response to that the instantaneous-ness information indicates that the local transaction is an instantaneous transaction.

10 . The method according to claim 9 , further comprising:

transmitting an uploading verification result request to the third consensus node and obtaining the uploading verification result from a response of the third consensus node to the uploading verification result request in response to that the instantaneous-ness information indicates that the local transaction is a non-instantaneous transaction.

11 . The method according to claim 7 , wherein the first uploading verification information further comprises a first signature of the second bypass node, the first signature is obtained by encrypting a first digest by the second consensus node with a first private key of the second consensus node, and the first digest is generated by the second consensus node according to the digest value of the local transaction, the digest value recorded in the first bypass node, the digest value of the associated data obtained after execution of the local transaction, and the digest value recorded in the second bypass node; and

the first instructs the third consensus node to decrypt, the first signature with a first public key of the second consensus node to obtain a second digest, in response to that the root node in the second tree is consistent with a second root node to be compared, and to generate a third digest according to the digest value of the local transaction, the digest value recorded in the first bypass node, the digest value of the associated data obtained after execution of the local transaction, and the digest value recorded in the second bypass node, and the verification is successful in response to that the third digest and the second digest are consistent.

12 . The method according to claim 1 , further comprising:

receiving a block identifier returned by the third consensus node after the third consensus node records a block comprising the uploading verification result to a third blockchain, the block identifier referring to the block comprising the uploading verification result,

wherein the obtaining the uploading verification result of the local transaction from the third consensus node comprises:

transmitting an uploading verification result request to the third consensus node, the uploading verification result request carrying the block identifier, and the uploading verification result request instructing the third consensus node to obtain the uploading verification result from the third blockchain according to the block identifier; and

receiving the uploading verification result returned by the third consensus node.

13 . The method according to claim 1 , wherein the transmitting the local transaction to a second consensus node comprises:

placing the local transaction in a queue; and

packaging local transactions in the queue in response to the queue satisfying a predetermined condition, and transmitting the local transaction to the second consensus node.

14 . The method according to claim 13 , wherein the packaging the local transactions in the queue in response to the queue satisfying the predetermined condition comprises:

packaging the local transactions in the queue in response to the number of local transactions in the queue reaching a first threshold.

15 . The method according to claim 13 , wherein the packaging the local transactions in the queue in response to the queue satisfying the predetermined condition comprises:

determining a time difference between a current time and a previous packaging time in response to the number of local transactions in the queue not reaching a first threshold; and

packaging the local transactions in the queue in response to the time difference reaching a second threshold.

16 . The method according to claim 13 , wherein the placing the local transaction in the queue for queuing comprises:

determining a child type of the local transaction;

determining a queue corresponding to the child type of the local transaction; and

placing the local transaction in the queue corresponding to the child type.

17 . The method according to claim 16 , wherein the packaging the local transactions in the queue in response to the queue satisfying the predetermined condition comprises:

packaging the local transactions in the queue in response to the number of local transactions in the queue reaching a third threshold.

18 . A transaction uploading method, performed by a second consensus node, the method comprising:

receiving a local transaction forwarded by a first relay node, a parent type of the local transaction being a first type;

executing the local transaction, and recording the local transaction to a first blockchain, the first blockchain being not accessible by nodes other than the second consensus node;

obtaining first uploading verification information of the local transaction; and

transmitting the first uploading verification information to a third consensus node, the first uploading verification information instructing the third consensus node to verify uploading of the local transaction according to the first uploading verification information to obtain an uploading verification result.

19 . The method according to claim 18 , wherein the second consensus node has a trusted execution environment (TEE), and the first blockchain is encrypted with a key of the TEE; and

the transmitting the first uploading verification information to a third consensus node comprises:

receiving a first uploading verification information request transmitted by a second relay node, the first uploading verification information request being transmitted by the second relay node in response to adding an encrypted block on the first blockchain, and the encrypted block being encrypted with the key of the TEE; and

transmitting the first uploading verification information to the second relay node in response to the first uploading verification information request, the first uploading verification information instructing the second relay node to forward the first uploading verification information to the third consensus node.

20 . An electronic device, comprising a memory and one or more processors, the memory storing computer-readable instructions, the processor, when executing the computer-readable instructions, implementing the transaction uploading method comprising:

determining a parent type of the local transaction in response to a first consensus node receiving a local transaction;

transmitting the local transaction to a second consensus node in response to that the parent type is a first type, the local transaction instructing the second consensus node to execute the local transaction for recording the local transaction to a first blockchain, generating first uploading verification information of the local transaction, and transmitting the first uploading verification information to a third consensus node, the first uploading verification information instructing the third consensus node to verify uploading of the local transaction according to the first uploading verification information to obtain an uploading verification result of the local transaction, and the first blockchain being not accessible by nodes other than the second consensus node; and

obtaining the uploading verification result of the local transaction from the third consensus node.