# US 2021/0281413 A1 · Blockchain-based transaction method and apparatus, and remitter device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0281413 A1
- Document ID: US20210281413A1
- Status: Published application
- Kind: A1
- Application number: 17/317,727
- Filed: 2021-05-11
- Published: 2021-09-09
- Earliest claimed: 2018-09-20
- Assignees: Advanced New Technologies Co., Ltd.
- Applicants: Advanced New Technologies Co., Ltd.
- Inventors: Baoli MA; Wenbin ZHANG
- Web page: https://patentgrep.com/patent/US20210281413A1

## CPC

- H04L 9/3221: {interactive zero-knowledge proofs}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06Q 20/0658: {e-cash managed locally}
- G06Q 20/3825: {Use of electronic signatures}
- H04L 9/008: {involving homomorphic encryption}
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/0869: {involving random numbers or seeds}
- H04L 9/3218: {using proof of knowledge, e.g. Fiat-Shamir, GQ, Schnorr, ornon-interactive zero-knowledge proofs}
- H04L 9/3247: {involving digital signatures}
- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/42: Anonymization, e.g. involving pseudonyms
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## 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

### Claim 1

A blockchain-based transaction method, comprising:
identifying a transaction amount of a transaction involving a remitter account and a remitter 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 to be stored in a blockchain of the blockchain network, the transaction data including the first commitment random number ciphertext, the first transaction amount ciphertext, the second commitment random number ciphertext, and the second transaction amount ciphertext.

### Claim 2 (depends on 1)

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.

### Claim 3 (depends on 2)

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.

### Claim 4 (depends on 3)

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.

### Claim 5 (depends on 1)

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.

### Claim 6 (depends on 1)

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.

### Claim 7 (depends on 1)

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

### Claim 8 (depends on 1)

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.

### Claim 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 remitter 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 to be stored in a blockchain of the blockchain network, the transaction data including the first commitment random number ciphertext, the first transaction amount ciphertext, the second commitment random number ciphertext, and the second transaction amount ciphertext.

### Claim 10 (depends on 9)

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.

### Claim 11 (depends on 10)

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.

### Claim 12 (depends on 11)

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.

### Claim 13 (depends on 9)

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.

### Claim 14 (depends on 9)

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.

### Claim 15 (depends on 9)

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

### Claim 16 (depends on 9)

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.

### Claim 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 remitter 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 to be stored in a blockchain of the blockchain network, the transaction data including the first commitment random number ciphertext, the first transaction amount ciphertext, the second commitment random number ciphertext, and the second transaction amount ciphertext.

### Claim 18 (depends on 17)

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.

### Claim 19 (depends on 17)

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

### Claim 20 (depends on 17)

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.
