Asset transaction method, storage medium, and computer device
Abstract
In a transaction method, transaction information is obtained. The transaction information includes a type identifier and quantity of first assets, and a type identifier and quantity of second assets. Transaction records, corresponding to a transaction in a block, are stored upon verification of the transaction information. The transaction records include first and second transaction records. The first transaction record includes first input and output items corresponding to the first assets, and the first input and output items each includes the type identifier of the first assets. The second transaction record includes second input and output items corresponding to the second assets, and the second input and output items each includes the type identifier of the second assets. The block is broadcasted to other nodes in the blockchain network, and verification results are received. The block is added to a blockchain of a current node based on the verification results.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 38 · Forward citations: 0.
Claims (8 — 2 Independent, 6 Dependent)
- Claim 1Independent Claim
An asset transaction method for implementing a transaction of cryptocurrencies of different types on a single blockchain, comprising: receiving, by circuitry of a current node of a blockchain network, a first transaction request that includes a first type identifier and a first quantity of first cryptocurrency; receiving, by the circuitry of the current node, a second transaction request that includes a second type identifier of second cryptocurrency, the first type identifier and the second type identifier being different numbers that identify different asset types such that the transaction involves exchange of the cryptocurrencies of different types that include the first cryptocurrency and the second cryptocurrency; obtaining, by the circuitry of the current node, a transaction exchange rate between the first cryptocurrency and the second cryptocurrency according to the first type identifier of the first cryptocurrency and the second type identifier of the second cryptocurrency; det
- Claim 2Depends on #1
The method according to claim 1, wherein the recording the transaction record information comprises: determining the first input item according to the first source of the first cryptocurrency and the proof of expense of the first cryptocurrency; determining the first output item according to the first output account address corresponding to the first cryptocurrency, the first type identifier and the first quantity of the first cryptocurrency, and the first expense condition corresponding to the first output account address; recording the first input item and the first output item as the first transaction record in the new block of the current node in the blockchain network; determining the second input item according to the second source of the second cryptocurrency and the proof of expense of the second cryptocurrency; determining the second output item according to the second output account address corresponding to the second cryptocurrency, the second type identifier and the second
- Claim 3Depends on #1
The method according to claim 1, wherein the verifying the transaction information of the transaction comprises: verifying the first cryptocurrency according to the first source of the first cryptocurrency and the proof of expense of the first cryptocurrency; verifying the second cryptocurrency according to the second source of the second cryptocurrency and the proof of expense of the second cryptocurrency; and determining that the transaction information is successfully verified in a case that the first cryptocurrency and the second cryptocurrency are both successfully verified.
- Claim 4Depends on #3
The method according to claim 3, wherein the verifying the first cryptocurrency includes: searching for the first expense condition of the first cryptocurrency according to the first source of the first cryptocurrency; and verifying the first cryptocurrency according to the first expense condition of the first cryptocurrency and the proof of expense of the first cryptocurrency; and the verifying the second cryptocurrency includes: searching for the second expense condition of the second cryptocurrency according to the second source of the second cryptocurrency; and verifying the second cryptocurrency according to the second expense condition of the second cryptocurrency and the proof of expense of the second cryptocurrency.
- Claim 5Depends on #4
The method according to claim 4, wherein the verifying the first cryptocurrency includes: verifying the first signature according to the first public key information; and the verifying the second cryptocurrency includes: verifying the second signature according to the second public key information.
- Claim 6Depends on #1
The method according to claim 1, wherein the transaction exchange rate is obtained from contract information associated with two parties of the transaction, or a third-party server device.
- Claim 7Independent Claim
A processing apparatus of a current node of a blockchain network for implementing a transaction of cryptocurrencies of different types on a single blockchain, comprising: circuitry configured to: receive a first transaction request that includes a first type identifier and a first quantity of first cryptocurrency; receive a second transaction request that includes a second type identifier of second cryptocurrency, the first type identifier and the second type identifier being different numbers that identify different asset types such that the transaction involves exchange of the cryptocurrencies of different types that include the first cryptocurrency and the second cryptocurrency; obtain a transaction exchange rate between the first cryptocurrency and the second cryptocurrency according to the first type identifier of the first cryptocurrency and the second type identifier of the second cryptocurrency; determine a second quantity of the second cryptocurrency based on the first quantit
- Claim 8Depends on #7
The processing apparatus according to claim 7, wherein the circuitry is configured to: determine the first input item according to the first source of the first cryptocurrency and the proof of expense of the first cryptocurrency; determine the first output item according to the first output account address corresponding to the first cryptocurrency, the first type identifier and the first quantity of the first cryptocurrency, and the first expense condition corresponding to the first output account address; record the first input item and the first output item as the first transaction record in the new block of the current node in the blockchain network; determine the second input item according to the second source of the second cryptocurrency and the proof of expense of the second cryptocurrency; determine the second output item according to the second output account address corresponding to the second cryptocurrency, the second type identifier and the second quantity of the second cr
Technical Overview & Description
RELATED APPLICATION This application is a continuation of International Application No. PCT/CN2019/108412, filed on Sep. 27, 2019, which claims priority to Chinese Patent Application No. 201811145446.8, entitled “ ASSET TRANSACTION METHOD AND APPARATUS, STORAGE MEDIUM, AND COMPUTER DEVICE ” filed on Sep. 29, 2018. The entire disclosures of the prior applications are hereby incorporated by reference in their entirety. FIELD OF THE TECHNOLOGY This application relates to the field of computer technologies, including an asset transaction method, a storage medium, and a computer device. BACKGROUND The blockchain technology (BT for short), also referred to as the distributed ledger technology, is an Internet database technology. The BT is characterized by decentralization, openness and transparency, allowing everyone to participate in database records. The BT originally is the basic technology for implementing bitcoin transactions, and at present starts being applied to fields such as finance. Transaction information of only the same type of assets can be stored on the same blockchain, and a transaction between different types of assets cannot be implemented on the same blockchain. SUMMARY In a transaction method, transaction information is obtained. The transaction information includes a type identifier and quantity of first assets, and a type identifier and quantity of second assets. Transaction records, corresponding to a transaction in a block, are stored upon verification of the transaction information. The transaction records include first and second transaction records. The first transaction record includes first input and output items corresponding to the first assets, and the first input and output items each includes the type identifier of the first assets. The second transaction record includes second input and output items corresponding to the second assets, and the second input and output items each includes the type identifier of the second assets. The block
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (38)
Non-Patent Literature (8)
- Andreas M. Antonopoulos, Mastering Bitcoin, Dec. 2014, O'Reilly Media (Year: 2014).
- Satoshi Nakamoto, Bitcoin: A Peer-to-Peer Electronic Cash System, Oct. 31, 2008 (Year: 2008).
- Satoshi Nakamoto, Bitcoin: A Peer-to-Peer Electronic Cash System, Oct. 31, 2008, pp. 1-9 (Year: 2008).
- Andreas M. Antonopoulos, Mastering Bitcoin, Mar. 2014, O'Reilly Media, Inc., pp. 1-282 (Year: 2014).
- Chinese Office Action issued Jan. 26, 2021 in Chinese Application No. 201811145446.8 (with Concise Explanation of Relevance).
- Chinese Office Action issued Mar. 31, 2021 in Chinese Application No. 201910677654.0 (with Concise Explanation.
- International Search Report issued Jan. 2, 2020 in PCT Application No. PCT/CN2019/108412 (with English Translation).
- Written Opinion issued Jan. 2, 2020 in PCT Application No. PCT/CN2019/108412.