Cross-asset trading within blockchain networks
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
exact text as granted — not AI-modified1 .- 20 . (canceled)
21 . A computer-implemented method for private cross-asset trading in a blockchain network, the method being executed by one or more processors and comprising:
generating, by a first node in the blockchain network and using Boneh-Goh-Nissim (BGN) encryption, ciphertexts based on a first value and a second value, the second value being determined based on the first value and an exchange rate provided by a second node in the blockchain network; transmitting, by the first node to the second node, the first value and the ciphertexts; receiving, by the first node and from the second node, a first evidence set comprising a set of data that can be used to verify the exchange rate in a zero-knowledge proof (ZKP) routine without revealing the exchange rate; generating, by the first node, a second evidence set comprising a set of data that can be used to verify, using the ZKP routine, that the 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; and transmitting, by the first node, 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 and the second transaction 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.
22 . The method 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 ciphertexts.
23 . The method 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.
24 . The method 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.
25 . The method 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.
26 . The method 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.
27 . The method 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.
28 . The method of claim 21 , further comprising receiving, by the first node, the exchange rate from the second node through a sub-chain channel of the blockchain network.
29 . The method of claim 21 , wherein at least one ciphertext of the ciphertexts is provided using Pedersen Commitment.
30 . The method of claim 21 , wherein the 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.
31 . The method of claim 21 , wherein the set of data of the second evidence set comprises a set of ciphertexts and a set of values, each value in the set of values being based on a hash of the set of ciphertexts.
32 . A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
generating, by a first node in a blockchain network and using Boneh-Goh-Nissim (BGN) encryption, ciphertexts based on a first value and a second value, the second value being determined based on the first value and an exchange rate provided by a second node in the blockchain network; transmitting, by the first node to the second node, the first value and the ciphertexts; receive, by the first node and from the second node, a first evidence set comprising a set of data that can be used to verify the exchange rate in a zero-knowledge proof (ZKP) routine without revealing the exchange rate; generating, by the first node, a second evidence set comprising a set of data that can be used to verify, using the ZKP routine, that the 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; and transmitting, by the first node, 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 and the second transaction 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.
33 . The non-transitory, computer-readable medium of claim 32 , 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 ciphertexts.
34 . The non-transitory, computer-readable medium of claim 32 , 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.
35 . The non-transitory, computer-readable medium of claim 32 , 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.
36 . The non-transitory, computer-readable medium of claim 35 , 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.
37 . The non-transitory, computer-readable medium of claim 35 , 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.
38 . The non-transitory, computer-readable medium of claim 32 , 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.
39 . The non-transitory, computer-readable medium of claim 32 , further encoded with instructions that are executable by the computer system and cause the computer system to receive, by the first node, the exchange rate from the second node through a sub-chain channel of the blockchain network.
40 . The non-transitory, computer-readable medium of claim 32 , wherein at least one ciphertext of the ciphertexts is provided using Pedersen Commitment.Join the waitlist — get patent alerts
Track US2021312429A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.