IP Library Granted Patent US 12,021,993
Granted Patent B2
US 12,021,993 · App. 17/317,727 · Granted Jun 25, 2024

Blockchain-based transaction method and apparatus, and remitter device

Inventors: Baoli Ma (Zhejiang, CN); Wenbin Zhang (Zhejiang, CN)
Assignee: Advanced New Technologies Co., Ltd.
H04L9/3221G06Q20/0658G06Q20/3825H04L9/008H04L9/0825H04L9/0869H04L9/50H04L2209/56
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,021,993
App. No.
17/317,727
Granted
Jun 25, 2024
Kind
B2
Abstract

Implementations of the present specification provide a blockchain-based transaction method and apparatus, and a remitter device. The method includes: calculating a transaction amount commitment, a first commitment random number ciphertext, a first transaction amount ciphertext, a second commitment random number ciphertext, and a second transaction amount ciphertext; and submitting transaction data to the blockchain, the transaction data including the transaction amount commitment, the first commitment random number ciphertext, the first transaction amount ciphertext, the second commitment random number ciphertext, and the second transaction amount ciphertext, for the transaction amount commitment, the first commitment random number ciphertext, and the first transaction amount ciphertext to be recorded into a remitter account, and the transaction amount commitment, the second commitment random number ciphertext, and the second transaction amount ciphertext to be recorded into a remittee account.

Claims (64)

1. A blockchain-based transaction method, comprising:

identifying a transaction amount of a transaction involving a remitter account and a remittee account registered in a blockchain network and a commitment random number of the transaction;

obtaining a first commitment random number ciphertext and a first transaction amount ciphertext by encrypting the commitment random number and the transaction amount separately based on a first key of the remitter account using a first encryption algorithm;

obtaining a second commitment random number ciphertext and a second transaction amount ciphertext by encrypting the commitment random number and the transaction amount separately based on a second key of the remittee account using the first encryption algorithm; and

causing transaction data of the transaction to be stored in a blockchain of the blockchain network, the transaction data of the transaction including the first commitment random number ciphertext, the first transaction amount ciphertext, the second commitment random number ciphertext, and the second transaction amount ciphertext.

2. The method according to claim 1 , wherein the causing the transaction data to be stored in the blockchain includes:

causing the first commitment random number ciphertext and the first transaction amount ciphertext to be recorded into the remitter account; and

causing the second commitment random number ciphertext and the second transaction amount ciphertext to be recorded into the remittee account.

3. The method according to claim 2 , wherein the remitter account registers a remitter balance commitment, a remitter random number ciphertext, and a remitter balance ciphertext in the blockchain; the remitter balance commitment is calculated based on a remitter random number and a remitter balance; the remitter random number ciphertext is calculated based on the remitter random number by using the first encryption algorithm; the remitter balance ciphertext is calculated based on the remitter balance by using the first encryption algorithm; and

wherein the remittee account registers a remittee balance commitment, a remittee random number ciphertext, and a remittee balance ciphertext in the blockchain; the remittee balance commitment is calculated based on a remittee random number and a remittee balance; the remittee random number ciphertext is calculated based on the remittee random number by using the first encryption algorithm; the remittee balance ciphertext is calculated based on the remittee balance by using the first encryption algorithm.

4. The method according to claim 3 , wherein the first transaction amount ciphertext and the first commitment random number ciphertext are recorded into the remitter account by updating the remitter random number ciphertext based on the first commitment random number ciphertext, and updating the remitter balance ciphertext based on the first transaction amount ciphertext; and

wherein the second transaction amount ciphertext and the second commitment random number ciphertext are recorded into the remittee account by updating the remittee random number ciphertext based on the second commitment random number ciphertext, and updating the remittee balance ciphertext based on the second transaction amount ciphertext.

5. The method according to claim 1 , wherein the obtaining the first commitment random number ciphertext and the first transaction amount ciphertext includes:

obtaining the first commitment random number ciphertext by encrypting the commitment random number based on a first encryption random number and the first public key of the remitter account using the first encryption algorithm; and

obtaining the first transaction amount ciphertext by encrypting the transaction amount based on a second encryption random number and the first key of the remitter account using the first encryption algorithm.

6. The method according to claim 1 , wherein the obtaining the second commitment random number ciphertext and the second transaction amount ciphertext includes:

obtaining the second commitment random number ciphertext by encrypting the commitment random number based on a third encryption random number and the second key of the remittee account using the first encryption algorithm; and

obtaining the second transaction amount ciphertext by encrypting the transaction amount based on a fourth encryption random number and the second key of the remittee account using the first encryption algorithm.

7. The method according to claim 1 , wherein the causing the transaction data to be stored in the blockchain includes:

generating a first zero-knowledge proof, the first zero-knowledge proof configured to verify that the transaction amount is not less than 0; and

forming the transaction data to include the first zero-knowledge proof.

8. The method according to claim 1 , wherein the causing the transaction data to be stored in the blockchain includes:

generating a second zero-knowledge proof, the second zero-knowledge proof configured to verify that the transaction amount is not greater than a balance of the remitter account; and

forming the transaction data to include the second zero-knowledge proof.

9. A computing device, comprising:

a memory, configured to store computer instructions; and

a processor, configured to execute the computer instructions to implement acts including:

identifying a transaction amount of a transaction involving a remitter account and a remittee account registered in a blockchain network and a commitment random number of the transaction;

obtaining a first commitment random number ciphertext and a first transaction amount ciphertext by encrypting the commitment random number and the transaction amount separately based on a first key of the remitter account using a first encryption algorithm;

obtaining a second commitment random number ciphertext and a second transaction amount ciphertext by encrypting the commitment random number and the transaction amount separately based on a second key of the remittee account using the first encryption algorithm; and

causing transaction data of the transaction to be stored in a blockchain of the blockchain network, the transaction data of the transaction including the first commitment random number ciphertext, the first transaction amount ciphertext, the second commitment random number ciphertext, and the second transaction amount ciphertext.

10. The computing device according to claim 9 , wherein the causing the transaction data to be stored in the blockchain includes:

causing the first commitment random number ciphertext and the first transaction amount ciphertext to be recorded into the remitter account; and

causing the second commitment random number ciphertext and the second transaction amount ciphertext to be recorded into the remittee account.

11. The computing device according to claim 10 , wherein the remitter account registers a remitter balance commitment, a remitter random number ciphertext, and a remitter balance ciphertext in the blockchain; the remitter balance commitment is calculated based on a remitter random number and a remitter balance; the remitter random number ciphertext is calculated based on the remitter random number by using the first encryption algorithm; the remitter balance ciphertext is calculated based on the remitter balance by using the first encryption algorithm; and

wherein the remittee account registers a remittee balance commitment, a remittee random number ciphertext, and a remittee balance ciphertext in the blockchain; the remittee balance commitment is calculated based on a remittee random number and a remittee balance; the remittee random number ciphertext is calculated based on the remittee random number by using the first encryption algorithm; the remittee balance ciphertext is calculated based on the remittee balance by using the first encryption algorithm.

12. The computing device according to claim 11 , wherein the first transaction amount ciphertext and the first commitment random number ciphertext are recorded into the remitter account by updating the remitter random number ciphertext based on the first commitment random number ciphertext, and updating the remitter balance ciphertext based on the first transaction amount ciphertext; and

wherein the second transaction amount ciphertext and the second commitment random number ciphertext are recorded into the remittee account by updating the remittee random number ciphertext based on the second commitment random number ciphertext, and updating the remittee balance ciphertext based on the second transaction amount ciphertext.

13. The computing device according to claim 9 , wherein the obtaining the first commitment random number ciphertext and the first transaction amount ciphertext includes:

obtaining the first commitment random number ciphertext by encrypting the commitment random number based on a first encryption random number and the first public key of the remitter account using the first encryption algorithm; and

obtaining the first transaction amount ciphertext by encrypting the transaction amount based on a second encryption random number and the first key of the remitter account using the first encryption algorithm.

14. The computing device according to claim 9 , wherein the obtaining the second commitment random number ciphertext and the second transaction amount ciphertext includes:

obtaining the second commitment random number ciphertext by encrypting the commitment random number based on a third encryption random number and the second key of the remittee account using the first encryption algorithm; and

obtaining the second transaction amount ciphertext by encrypting the transaction amount based on a fourth encryption random number and the second key of the remittee account using the first encryption algorithm.

15. The computing device according to claim 9 , wherein the causing the transaction data to be stored in the blockchain includes:

generating a first zero-knowledge proof, the first zero-knowledge proof configured to verify that the transaction amount is not less than 0; and

forming the transaction data to include the first zero-knowledge proof.

16. The computing device according to claim 9 , wherein the causing the transaction data to be stored in the blockchain includes:

generating a second zero-knowledge proof, the second zero-knowledge proof configured to verify that the transaction amount is not greater than a balance of the remitter account; and

forming the transaction data to include the second zero-knowledge proof.

17. A non-transitory storage medium having executable instructions stored thereon, which when executed by a processor configure the processor to implement acts comprising:

identifying a transaction amount of a transaction involving a remitter account and a remittee account registered in a blockchain network and a commitment random number of the transaction;

obtaining a first commitment random number ciphertext and a first transaction amount ciphertext by encrypting the commitment random number and the transaction amount separately based on a first key of the remitter account using a first encryption algorithm;

obtaining a second commitment random number ciphertext and a second transaction amount ciphertext by encrypting the commitment random number and the transaction amount separately based on a second key of the remittee account using the first encryption algorithm; and

causing transaction data of the transaction to be stored in a blockchain of the blockchain network, the transaction data of the transaction including the first commitment random number ciphertext, the first transaction amount ciphertext, the second commitment random number ciphertext, and the second transaction amount ciphertext.

18. The non-transitory storage medium according to claim 17 , wherein the causing the transaction data to be stored in the blockchain includes:

causing the first commitment random number ciphertext and the first transaction amount ciphertext to be recorded into the remitter account; and

causing the second commitment random number ciphertext and the second transaction amount ciphertext to be recorded into the remittee account.

19. The non-transitory storage medium according to claim 17 , wherein the causing the transaction data to be stored in the blockchain includes:

generating a first zero-knowledge proof, the first zero-knowledge proof configured to verify that the transaction amount is not less than 0; and

forming the transaction data to include the first zero-knowledge proof.

20. The non-transitory storage medium according to claim 17 , wherein the causing the transaction data to be stored in the blockchain includes:

generating a second zero-knowledge proof, the second zero-knowledge proof configured to verify that the transaction amount is not greater than a balance of the remitter account; and

forming the transaction data to include the second zero-knowledge proof.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 28, 2025
From: ADVANCED NEW TECHNOLOGIES CO., LTD.
To: ANTCHAIN TECHNOLOGY PTE. LTD.
Reel/Frame 070037/0470 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 28, 2021
From: MA, BAOLI; ZHANG, WENBIN
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 056388/0230 →
Priority Claims (1)
CN 201811101747.0 · Sep 20, 2018 · national
Continuity (3)
Continuation 17079362 · Oct 23, 2020
Continuation PCTCN2019100691 · Aug 15, 2019
Related Publication 20210281413A1 · Sep 9, 2021