# US 10,956,900 B2 · Cross-asset trading within blockchain networks

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

- Number: US 10,956,900 B2
- Document ID: US10956900B2
- Status: Granted
- Kind: B2
- Application number: 16/448,808
- Filed: 2019-06-21
- Published: 2019-10-10
- Granted: 2021-03-23
- Earliest claimed: 2019-01-31
- Assignees: Advanced New Technologies Co., Ltd.
- Applicants: Advanced New Technologies Co., Ltd.
- Inventors: Wenbin Zhang; Hao Lei; Lichun Li; Zhangjie Huang
- Web page: https://patentgrep.com/patent/US10956900B2

## CPC

- G06Q 20/36: using electronic wallets or electronic money safes
- G06F 16/1824: {implemented using Network-attached Storage [NAS] architecture (distributed or networked storage systems G06F3/067; protocols for distributed storage of data in a network H04L67/1097)}
- G06F 16/1834: {implemented based on peer-to-peer networks, e.g. gnutella (p2p communication protocols H04L67/104)}
- G06Q 20/065: {using e-cash}
- G06Q 20/0658: {e-cash managed locally}
- G06Q 20/10: specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q 20/223: {based on the use of peer-to-peer networks}
- G06Q 40/04: Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/30: Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- H04L 9/3218: {using proof of knowledge, e.g. Fiat-Shamir, GQ, Schnorr, ornon-interactive zero-knowledge proofs}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3247: {involving digital signatures}
- G06Q 2220/00: Business processing using cryptography
- H04L 2209/38
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- 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
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Implementations are directed to cross-asset trading in blockchain networks, and include a first node providing transaction information based on a first value, a second value, and an exchange rate of a second node, receiving, from the second node, a first evidence set, a first range proof, and a digital signature of the second node, and submitting the transaction for verification based on the first range proof, a second range proof, the first evidence set, a second evidence set, a digital signature of the first node, and the digital signature of the second node, the transaction being executed to decrease a balance of the first node by the first value, increase a first balance of the second node by the first value, decrease a second balance of the second node by the second value, and increase a balance of the third node by the second value.

## Claims

### Claim 1

A computer-implemented method for private cross-asset trading in a blockchain network, the method being executed by one or more processors and comprising:
receiving, by a first node in a blockchain network from a second node in the blockchain network via a sub-channel outside of the blockchain network, a private currency exchange rate;
generating, by the first node in the blockchain network and using Boneh-Goh-Nissim (BGN) encryption, first ciphertexts based on a first value and a second value, the second value being determined based on a product of the first value and the private currency exchange rate;
transmitting, by the first node to the second node via the sub-channel outside of the blockchain network, the first value and the first ciphertexts;
receiving, by the first node and from the second node via the sub-channel outside of the blockchain network, a first evidence set comprising a first set of data that includes evidence of the private currency exchange rate and evidence of the first ciphertexts;
verifying the private currency exchange rate in a zero-knowledge proof (ZKP) routine using the first evidence set comprising the first set of data without revealing the private currency exchange rate;
generating, by the first node, a second evidence set comprising a second set of data that includes second ciphertexts;
verifying, using the second evidence set comprising the second set of data and the ZKP routine, that the second ciphertexts are encrypted by a BGN public key of the first node;
defining, by the first node, a transaction comprising a first transaction between the first node and the second node for transfer of the first value from the first node to the second node, and a second transaction between the second node and a third node for transfer of the second value from the second node to the third node;
transmitting, by the first node via the blockchain network, the transaction to at least one consensus node of the blockchain network for verification and execution of the transaction, the transaction being verified based on the first evidence set and the second evidence set; and
in response to verifying the transaction, executing the first transaction between the first node and the second node to decrease a balance of the first node by the first value and increase a first balance of the second node by the first value, and executing the second transaction, based upon the private currency exchange rate, between the second node and the third node to decrease a second balance of the second node by the second value and increase a balance of the third node by the second value.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first evidence set is provided by the second node based on the first value, a pair of random numbers provided by the first node, and the first ciphertexts.

### Claim 3 (depends on 1)

The method of claim 1, wherein verifying the transaction by the at least one consensus node comprises verifying a digital signature of the first node and a digital signature of the second node.

### Claim 4 (depends on 1)

The method of claim 1, wherein verifying the transaction by the at least one consensus node comprises verifying a first range proof provided by the first node and a second range proof provided by the second node.

### Claim 5 (depends on 4)

The method of claim 4, wherein the first range proof comprises a ZKP to prove that the first value is greater than zero, and that the balance of the first node is greater than or equal to the first value.

### Claim 6 (depends on 4)

The method of claim 4, wherein the second range proof comprises a ZKP to prove that the second balance of the second node is greater than or equal to the second value.

### Claim 7 (depends on 1)

The method of claim 1, wherein the transaction further comprises a data set comprising a set of ciphertexts generated using BGN encryption, the data set being used to verify the transaction by the at least one consensus node.

### Claim 8 (depends on 1)

The method of claim 1, wherein at least one ciphertext of the first ciphertexts and the second ciphertexts is provided using Pedersen Commitment.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first set of data of the first evidence set comprises a first data value and a second data value, each of the first data value and the second data value being determined based on parameters used to generate a BGN public key of the second node.

### Claim 10 (depends on 1)

The method of claim 1, wherein the second set of data of the second evidence set comprises a set of the second ciphertexts and a set of values, each value in the set of values being based on a hash of the set of the second ciphertexts.

### Claim 11

A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
receiving, by a first node in a blockchain network from a second node in the blockchain network via a sub-channel outside of the blockchain network, a private currency exchange rate;
generating, by the first node in the blockchain network and using Boneh-Goh-Nissim (BGN) encryption, first ciphertexts based on a first value and a second value, the second value being determined based on a product of the first value and the private currency exchange rate;
transmitting, by the first node to the second node via the sub-channel outside of the blockchain network, the first value and the first ciphertexts;
receiving, by the first node and from the second node via the sub-channel outside of the blockchain network, a first evidence set comprising a first set of data that includes evidence of the private currency exchange rate and evidence of the first ciphertexts;
verifying the private currency exchange rate in a zero-knowledge proof (ZKP) routine using the first evidence set comprising the first set of data without revealing the private currency exchange rate;
generating, by the first node, a second evidence set comprising a second set of data that includes second ciphertexts;
verifying, using the second evidence set comprising the second set of data and the ZKP routine, that the second ciphertexts are encrypted by a BGN public key of the first node;
defining, by the first node, a transaction comprising a first transaction between the first node and the second node for transfer of the first value from the first node to the second node, and a second transaction between the second node and a third node for transfer of the second value from the second node to the third node;
transmitting, by the first node via the blockchain network, the transaction to at least one consensus node of the blockchain network for verification and execution of the transaction, the transaction being verified based on the first evidence set and the second evidence set; and
in response to verifying the transaction, executing the first transaction between the first node and the second node to decrease a balance of the first node by the first value and increase a first balance of the second node by the first value, and executing the second transaction, based upon the private currency exchange rate, between the second node and the third node to decrease a second balance of the second node by the second value and increase a balance of the third node by the second value.

### Claim 12 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein the first evidence set is provided by the second node based on the first value, a pair of random numbers provided by the first node, and the first ciphertexts.

### Claim 13 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein verifying the transaction by the at least one consensus node comprises verifying a digital signature of the first node and a digital signature of the second node.

### Claim 14 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein verifying the transaction by the at least one consensus node comprises verifying a first range proof provided by the first node and a second range proof provided by the second node.

### Claim 15 (depends on 14)

The non-transitory, computer-readable medium of claim 14, wherein the first range proof comprises a ZKP to prove that the first value is greater than zero, and that the balance of the first node is greater than or equal to the first value.

### Claim 16 (depends on 14)

The non-transitory, computer-readable medium of claim 14, wherein the second range proof comprises a ZKP to prove that the second balance of the second node is greater than or equal to the second value.

### Claim 17 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein the transaction further comprises a data set comprising a set of ciphertexts generated using BGN encryption, the data set being used to verify the transaction by the at least one consensus node.

### Claim 18 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein at least one ciphertext of the first ciphertexts and the second ciphertexts is provided using Pedersen Commitment.

### Claim 19 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein the first set of data of the first evidence set comprises a first data value and a second data value, each of the first data value and the second data value being determined based on parameters used to generate a BGN public key of the second node.

### Claim 20 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein the second set of data of the second evidence set comprises a set of the second ciphertexts and a set of values, each value in the set of values being based on a hash of the set of the second ciphertexts.

### Claim 21

A computer-implemented system, comprising:
one or more computers; and
one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:
receiving, by a first node in a blockchain network from a second node in the blockchain network via a sub-channel outside of the blockchain network, a private currency exchange rate;
generating, by the first node in the blockchain network and using Boneh-Goh-Nissim (BGN) encryption, first ciphertexts based on a first value and a second value, the second value being determined based on a product of the first value and the private currency exchange rate;
transmitting, by the first node to the second node via the sub-channel outside of the blockchain network, the first value and the first ciphertexts;
receiving, by the first node and from the second node via the sub-channel outside of the blockchain network, a first evidence set comprising a first set of data that includes evidence of the private currency exchange rate and evidence of the first ciphertexts;
verifying the private currency exchange rate in a zero-knowledge proof (ZKP) routine using the first evidence set comprising the first set of data without revealing the private currency exchange rate;
generating, by the first node, a second evidence set comprising a second set of data that includes second ciphertexts;
verifying, using the second evidence set comprising the second set of data and the ZKP routine, that the second ciphertexts are encrypted by a BGN public key of the first node;
defining, by the first node, a transaction comprising a first transaction between the first node and the second node for transfer of the first value from the first node to the second node, and a second transaction between the second node and a third node for transfer of the second value from the second node to the third node;
transmitting, by the first node via the blockchain network, the transaction to at least one consensus node of the blockchain network for verification and execution of the transaction, the transaction being verified based on the first evidence set and the second evidence set; and
in response to verifying the transaction, executing the first transaction between the first node and the second node to decrease a balance of the first node by the first value and increase a first balance of the second node by the first value, and executing the second transaction, based upon the private currency exchange rate, between the second node and the third node to decrease a second balance of the second node by the second value and increase a balance of the third node by the second value.

### Claim 22 (depends on 21)

The computer-implemented system of claim 21, wherein the first evidence set is provided by the second node based on the first value, a pair of random numbers provided by the first node, and the first ciphertexts.

### Claim 23 (depends on 21)

The computer-implemented system of claim 21, wherein verifying the transaction by the at least one consensus node comprises verifying a digital signature of the first node and a digital signature of the second node.

### Claim 24 (depends on 21)

The computer-implemented system of claim 21, wherein verifying the transaction by the at least one consensus node comprises verifying a first range proof provided by the first node and a second range proof provided by the second node.

### Claim 25 (depends on 24)

The computer-implemented system of claim 24, wherein the first range proof comprises a ZKP to prove that the first value is greater than zero, and that the balance of the first node is greater than or equal to the first value.

### Claim 26 (depends on 24)

The computer-implemented system of claim 24, wherein the second range proof comprises a ZKP to prove that the second balance of the second node is greater than or equal to the second value.

### Claim 27 (depends on 21)

The computer-implemented system of claim 21, wherein the transaction further comprises a data set comprising a set of ciphertexts generated using BGN encryption, the data set being used to verify the transaction by the at least one consensus node.
