CN115994824A - Cross-chain transaction method for digital asset based on cross-trusted alliance chain - Google Patents
Cross-chain transaction method for digital asset based on cross-trusted alliance chain Download PDFInfo
- Publication number
- CN115994824A CN115994824A CN202211438843.0A CN202211438843A CN115994824A CN 115994824 A CN115994824 A CN 115994824A CN 202211438843 A CN202211438843 A CN 202211438843A CN 115994824 A CN115994824 A CN 115994824A
- Authority
- CN
- China
- Prior art keywords
- chain
- cross
- asset
- integral
- clearing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a digital asset cross-chain transaction method based on a cross-trusted alliance chain, belonging to the technical field of blockchains. The method comprises the following steps: the trusted alliance chain is issued with a cross-chain integrated clearing intelligent contract, and the following steps are executed: receiving asset release information, distributing asset numbers and synchronizing the asset release information; receiving an asset inquiry request and returning an asset number; receiving an asset purchase request and synchronizing point transfer information; the asset purchase request is marked as successful purchase; receiving an asset delivery verification request, and feeding back permission to deliver if the corresponding asset purchase request state is successful purchase; the business system receives the digital asset delivery request, sends an asset delivery verification request to the cross-chain integral clearing intelligent contract, and if feedback of delivery permission is received, generates digital asset delivery transaction and packages the digital asset delivery transaction into a current block for storage. The invention realizes the cross-chain transaction of the digital asset through the cross-chain integrated clearing intelligent contract, promotes the cross-chain circulation of the digital asset and is easy to popularize and apply.
Description
Technical Field
The invention belongs to the technical field of blockchains, and particularly relates to a digital asset cross-chain transaction method based on a cross-trusted alliance chain.
Background
Network accounting, office automation, electronic payment system platform and the like in the network era enable the existing production mode to have incomparable superiority with the traditional production mode. The digital asset is characterized by: high price, strong adherence, strong interactivity, unlimited quantity and decreasing cost. The circulation of digital assets can bring economic benefits to users. The blockchain is a decentralized distributed database system and has the characteristics of disclosure transparency, non-tampering and traceability. The method can provide credible evidence for the data, effectively support the fixation of enterprise office data, and facilitate dispute responsibility identification and resolution. There are a large number of organizations, enterprises, or participating in industry alliance chains that establish business private chains. But there is a lack of a medium for the exchange of digital assets between different enterprises or organizations' blockchains between private or federated chains that have been built. Digital assets are exchanged between different institutions through an integration medium that lacks a source of production. The actual value of the integration medium and the data asset create strong binding, and the risk of integration stir-frying exists. There is therefore a need to study new techniques for digital asset cross-chain transactions.
For example, chinese patent CN111581251a, publication date 2020, 8 and 25, discloses a method, device and storage medium for querying digital assets for cross-chain transaction, the method comprising: receiving a digital asset inquiry request, wherein the digital asset inquiry request is issued through an intelligent contract according to any transaction party participating in cross-chain transaction; sending an authorization request to a corresponding digital asset authorization party according to the digital asset inquiry request; and when the authorization information is received, transmitting the authorization information to the transaction party, so that the transaction party inquires the corresponding digital asset according to the authorization information. According to the technical scheme, the digital assets are uniformly stored and managed through the third-party blockchain, so that uniform query of the cross-chain data assets is realized, and different data query requirements of different users on the transaction process are met. However, the technical scheme cannot realize the cross-chain transaction of the digital asset and lacks a mechanism for maintaining the stability of the transaction. Therefore, how to overcome the defects of the prior art is a problem to be solved in the current blockchain technical field.
Disclosure of Invention
The invention aims to solve the defects of the prior art and provides a digital asset cross-chain transaction method based on a cross-trusted alliance chain.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
a digital asset cross-chain transaction method based on a cross-trusted alliance chain is characterized in that a cross-chain integral clearing intelligent contract is issued on the trusted alliance chain, the cross-chain integral clearing intelligent contract is connected with a business system of the trusted alliance chain, and the cross-chain integral clearing intelligent contract executes the following steps:
(1) Receiving asset release information sent by a business system, and distributing asset numbers for assets; the asset release information comprises a publisher identity, asset description information and an integral selling price;
(2) Synchronizing asset release information among a plurality of cross-chain integrated clearing intelligent contracts;
(3) Receiving an asset inquiry request sent by a business system, and returning an asset number of a corresponding asset;
(4) Receiving an asset purchase request sent by a business system, generating point transfer information by a cross-chain point clearing intelligent contract and giving a purchase request number to the asset purchase request; the asset purchase request comprises an asset number and a purchaser identity; the point transfer information is to transfer the point corresponding to the point selling price from the account corresponding to the buyer identity to the account corresponding to the publisher identity;
(5) The intelligent contract synchronous integral transfer information of the cross-chain integral clearing is calculated by a plurality of pieces;
(6) After receiving the cross-chain integral clearing intelligent contract inquiry of the asset purchase request and the integral transfer information is synchronized in a plurality of cross-chain integral clearing intelligent contracts, marking the asset purchase request as successful purchase;
(7) Receiving an asset delivery verification request sent by a service system, and if the asset purchase request state corresponding to the asset purchase request number is successful in purchase, feeding back permission to deliver to the service system, otherwise, feeding back non-permission to deliver to the service system; the asset delivery verification request includes a corresponding asset purchase request number;
(8) The business system receives the digital asset delivery request, and after receiving the delivery permission feedback, the business system sends an asset delivery verification request to the cross-chain integral clearing intelligent contract, if the delivery permission feedback is received, digital asset delivery transaction is generated and packed into the current block for storage, otherwise, no operation is performed; the digital asset delivery request includes an asset number and an asset purchase request number.
Further, it is preferred that the cross-chain loyalty clearing smart contract has a loyalty account, an integral table, and a clearance account;
the point account records the points owned by the point account;
the integral table records the integral owned by the blockchain user;
and before the settlement period, transferring corresponding quantity of points to the blockchain user by the contract point account when the general certificate account of the cross-chain integrated clearing intelligent contract receives the general certificate transferred by the blockchain user, and recording the corresponding quantity of points in an integral table, wherein in the settlement period, the cross-chain integrated clearing intelligent contract exchanges the points of the blockchain user into corresponding quantity of general certificates and transfers the corresponding quantity of general certificates into the account of the blockchain user.
Further, preferably, after the settlement period is finished, the plurality of intelligent contracts for clearing cross-chain points vote to determine the next settlement period and initial point allocation, and in the settlement period, the plurality of intelligent contracts for clearing cross-chain points exchange points with agreed through-card exchange prices, so that the points held by the intelligent contracts for clearing cross-chain points after exchange are consistent with the initial point allocation.
Further, preferably, during the settlement period, the plurality of inter-chain integral clearing intelligent contracts pay tax fee at a preset ratio by multiplying the integral distributed by the initial integral, and after the tax fee is paid completely, the tax fee is distributed among the plurality of inter-chain integral clearing intelligent contracts in an average manner.
Further, it is preferable that during the settlement period, a number of the cross-chain credit clearing smart contracts each package and store all asset purchase requests in the corresponding blockchain, and then a number of the cross-chain credit clearing smart contracts clear the credit.
Further, it is preferred that the method of voting to determine the initial point allocation comprises:
after the settlement account period is finished, the cross-chain point clearing intelligent contracts exchange the points of the corresponding blockchain users into corresponding number of pass certificates, and the points are transferred into the point accounts;
counting the integral use quantity by the plurality of intelligent contracts for cross-chain integral clearing, wherein the intelligent contract for cross-chain integral clearing with the largest integral use quantity is used as a voting initiator, and the voting initiator generates an initial integral allocation scheme and sends out votes;
and if the intelligent contract for the cross-chain integral clearance exceeding the preset proportion agrees with the initial integral allocation scheme, the initial integral allocation scheme passes, and initial integral allocation is carried out according to the initial integral allocation scheme.
Further, it is preferable that the total amount of points for allocation is fixed, and the method of generating the initial point allocation scheme by the voting sponsor includes:
dividing the total amount of the integral into three parts according to a proportion, wherein the first part is directly distributed to a voting initiator, the second part generates an allocation scheme by the voting initiator, the integral amount of the third part is recorded as N, the voting initiator receives the application amount reported by other intelligent contracts for clearing the integral across the chain, calculates the sum of the application amounts, calculates the proportion of the application amount to the sum of the application amounts reported by each intelligent contract for clearing the integral across the chain, the proportion is used as the allocation proportion of the corresponding intelligent contract for clearing the integral across the chain, the product of the integral amount N of the third part and the allocation proportion is used as the integral allocation amount distributed to the corresponding intelligent contract for clearing the integral across the chain, and the allocation sum of the three parts is used as the initial integral allocation scheme.
Further, preferably, the method for agreeing to pass the exchange price includes:
each of the plurality of cross-chain integral clearing intelligent contracts generates a pass exchange price, generates a confusion code randomly, extracts hash values of the confusion code and the exchange price and sends the hash values to a voting initiator;
after receiving the hash values sent by all the cross-chain integral clearing intelligent contracts, the voting sponsor informs all the cross-chain integral clearing intelligent contracts of public license exchange price and confusion codes;
calculating the products of initial points and bids of the intelligent contracts through a plurality of cross-chain integral clearing contracts, freezing the corresponding number of pass certificates, and thawing the pass certificates in a settlement period;
the voting sponsor extracts the hash value of the through certificate exchange price and the confusion code disclosed by the cross-chain integral clearing intelligent contract, and compares the hash value with the received hash value for verification;
if the verification is inconsistent, judging that the current agreed pass exchange price is illegal, and re-executing the agreed notification exchange price method, otherwise, calculating the weighted average of all pass exchange prices by taking initial points as weights, and taking the weighted average as the agreed pass exchange price.
Further, it is preferable that the voting initiator calculates an allowable bid interval;
the allowable bidding interval is k1 times to k2 times of the last accounting period through-certificate exchange price, k1 and k2 are preset coefficients, and the bid which is lower than k1 times of the last accounting period through-certificate exchange price is regarded as k1 times of the last accounting period through-certificate exchange price, and the bid which is higher than k2 times of the last accounting period through-certificate exchange price is regarded as k2 times of the last accounting period through-certificate exchange price.
The invention also provides a digital asset cross-chain transaction system based on the cross-trusted alliance chain, which is used for executing the digital asset cross-chain transaction method based on the cross-trusted alliance chain, wherein the system comprises a plurality of cross-chain gateways and a plurality of cross-chain integrated clearing intelligent contracts; the inter-chain integral clearing intelligent contracts are distributed on a business block chain, a plurality of the inter-chain integral clearing intelligent contracts are connected through the inter-chain gateway, and the inter-chain integral clearing intelligent contracts execute the following steps:
(1) Receiving asset release information sent by a business system, and distributing asset numbers for assets; the asset release information comprises a publisher identity, asset description information and an integral selling price;
(2) Synchronizing asset release information among a plurality of cross-chain integrated clearing intelligent contracts;
(3) Receiving an asset inquiry request sent by a business system, and returning an asset number of a corresponding asset;
(4) Receiving an asset purchase request sent by a business system, generating point transfer information by a cross-chain point clearing intelligent contract and giving a purchase request number to the asset purchase request; the asset purchase request comprises an asset number and a purchaser identity; the point transfer information is to transfer the point corresponding to the point selling price from the account corresponding to the buyer identity to the account corresponding to the publisher identity;
(5) The intelligent contract synchronous integral transfer information of the cross-chain integral clearing is calculated by a plurality of pieces;
(6) After receiving the cross-chain integral clearing intelligent contract inquiry of the asset purchase request and the integral transfer information is synchronized in a plurality of cross-chain integral clearing intelligent contracts, marking the asset purchase request as successful purchase;
(7) Receiving an asset delivery verification request sent by a service system, and if the asset purchase request state corresponding to the asset purchase request number is successful in purchase, feeding back permission to deliver to the service system, otherwise, feeding back non-permission to deliver to the service system; the asset delivery verification request includes a corresponding asset purchase request number;
(8) The business system receives the digital asset delivery request, and after receiving the delivery permission feedback, the business system sends an asset delivery verification request to the cross-chain integral clearing intelligent contract, if the delivery permission feedback is received, digital asset delivery transaction is generated and packed into the current block for storage, otherwise, no operation is performed; the digital asset delivery request includes an asset number and an asset purchase request number.
Compared with the prior art, the invention has the beneficial effects that:
the cross-chain transaction of the digital asset is realized through the cross-chain integrated clearing intelligent contract, the initiation and the evidence storage of the cross-chain transaction are completed, and the cross-chain circulation of the digital asset is promoted; taking the points as value intermediaries, realizing the metering of the value of the digital asset, and facilitating the transaction of the digital asset; the stability of the integral value is realized by periodically clearing the integral, which is beneficial to the stability of the digital asset value; the improved initial point distribution and the agreed evidence-passing exchange price scheme effectively inhibit point stir-frying and maintain the stability of the cross-chain transaction of the digital asset.
Drawings
FIG. 1 is a flow chart of a method for cross-chain trading of digital assets according to an embodiment of the invention.
Fig. 2 is a flowchart of a voting determination initial point allocation method according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart of a method for agreeing on the clearance exchange price according to an embodiment of the invention.
Fig. 4 is a schematic diagram of a process for purchasing a digital asset of a business system B by a user of a business system a according to an embodiment of the present invention.
FIG. 5 is a schematic diagram of a digital asset cross-chain transaction system according to an embodiment of the invention.
Wherein: 10. and (5) clearing intelligent contracts, 20 and business systems through chain integration.
Detailed Description
The present invention will be described in further detail with reference to examples.
It will be appreciated by those skilled in the art that the following examples are illustrative of the present invention and should not be construed as limiting the scope of the invention. The specific techniques or conditions are not identified in the examples and are performed according to techniques or conditions described in the literature in this field or according to the product specifications. The materials or equipment used are conventional products available from commercial sources, not identified to the manufacturer.
Referring to fig. 1, a method for trading digital assets across chains based on a chain of trusted alliances includes the following steps:
step A01) a cross-chain integral clearing intelligent contract 10 is issued on the trusted alliance chain, the cross-chain integral clearing intelligent contract 10 is connected with a service system 20 of the trusted alliance chain, and the cross-chain integral clearing intelligent contract 10 performs the following steps:
step A02) receiving asset release information sent by the business system 20, wherein the asset release information comprises a publisher identity, asset description information and an integral selling price, and allocating an asset number to an asset, and synchronizing the asset release information among a plurality of cross-chain integral clearing intelligent contracts 10;
step A03) receiving an asset inquiry request sent by the service system 20, and returning an asset number of the corresponding asset;
step A04) receiving an asset purchase request sent by a service system 20, wherein the asset purchase request comprises an asset number and a buyer identity, the cross-chain point clearing intelligent contract 10 generates point transfer information and endows the asset purchase request with a purchase request number, the point transfer information is obtained by transferring points corresponding to point selling prices from accounts corresponding to the buyer identity to accounts corresponding to the publisher identity, and the cross-chain point clearing intelligent contract 10 synchronizes the point transfer information;
step A05), after receiving the intelligent contract 10 inquiry of the cross-chain point clearance of the request of the purchase of the asset and inquiring the information of the point transfer and synchronizing in a plurality of intelligent contracts 10 of the cross-chain point clearance, mark the request of the purchase of the asset as the successful purchase;
step A06) receives an asset delivery verification request sent by the service system 20, wherein the asset delivery verification request comprises a corresponding asset purchase request number, if the asset purchase request state corresponding to the asset purchase request number is successful in purchase, the service system 20 is fed back with the permission to deliver, otherwise, the service system 20 is fed back with the non-permission to deliver;
step a 07) the business system 20 receives a digital asset delivery request, the digital asset delivery request includes an asset number and an asset purchase request number, after receiving the delivery permission feedback, the business system 20 sends an asset delivery verification request to the cross-chain integral clearing intelligent contract 10, if receiving the delivery permission feedback, generates a digital asset delivery transaction and packages the digital asset delivery transaction into a current block for storage, otherwise, does not operate.
The cross-chain integral clearing intelligent contract 10 is provided with an integral account, an integral table and a pass account, the integral account records the integral owned by the integral account, the integral table records the integral owned by the blockchain user, the cross-chain integral clearing intelligent contract 10 is preset with a settlement period, when the pass account of the cross-chain integral clearing intelligent contract 10 receives the pass of the blockchain user, the corresponding quantity of integral is transferred to the blockchain user by the contract integral account and recorded in the integral table, and the cross-chain integral clearing intelligent contract 10 exchanges the integral of the blockchain user into the corresponding quantity of pass and transfers the corresponding quantity of integral to the account of the blockchain user in the settlement period.
After the settlement period is finished, the intelligent contracts 10 for clearing the cross-chain points vote to determine the next settlement period and initial point allocation, and in the settlement period, the intelligent contracts 10 for clearing the cross-chain points exchange the points with agreed through certificate exchange prices, so that the points held by the intelligent contracts 10 for clearing the cross-chain points after the exchange are consistent with the initial point allocation.
In the settlement period, the plurality of cross-chain integral clearing intelligent contracts 10 pay tax fees according to the preset ratio of integral multiplication allocated by initial integral, and after the tax fees are paid completely, the tax fees are distributed among the plurality of cross-chain integral clearing intelligent contracts 10 evenly.
During the checkout period, the number of cross-chain credit clearing smart contracts 10 each package and store all asset purchase requests in the corresponding blockchain, and then the number of cross-chain credit clearing smart contracts 10 clears the credits.
Referring to fig. 2, a method for voting to determine an initial point allocation includes:
step B01), after the settlement period is finished, a plurality of cross-chain point clearing intelligent contracts 10 exchange the points of the corresponding blockchain users into corresponding number of pass certificates, and transfer the points into a point account;
step B02) counting the integral use amount of a plurality of intelligent contracts 10 for cross-chain integral clearing, wherein the intelligent contract 10 for cross-chain integral clearing with the largest integral use amount is used as a voting initiator, and the voting initiator generates an initial integral allocation scheme and transmits votes;
step B03), if the cross-chain integral clearing intelligent contract 10 exceeding the preset proportion agrees to the initial integral allocation scheme, the initial integral allocation scheme passes, and initial integral allocation is carried out according to the initial integral allocation scheme.
The method for the voting sponsor to generate the initial point allocation scheme comprises the following steps:
dividing the total amount of points into three parts according to a proportion, wherein the first part is directly distributed to a voting initiator, the second part generates an allocation scheme by the voting initiator, the integral amount of the third part is recorded as N, the voting initiator receives the application amounts reported by other intelligent contracts 10 for clearing the cross-chain points, calculates the sum of the application amounts, calculates the proportion of the application amounts reported by each intelligent contract 10 for clearing the cross-chain points to the sum of the application amounts, the proportion is used as the allocation proportion of the corresponding intelligent contract for clearing the cross-chain points, the product of the integral amount N of the third part and the allocation proportion is used as the integral allocation amount allocated to the corresponding intelligent contract 10 for clearing the cross-chain points, and the allocation sum of the three parts is used as the initial integral allocation scheme.
For example, in one allocation, the total amount of points for allocation is 10000, and 10000 total amounts of points are divided into three parts proportionally. The first part is 1000 integrals, the second part is 5000 integrals, and the third part is 4000 integrals.
The first 1000 points are assigned directly to the voting initiator. The voting initiator now gets 1000 points directly.
The second 5000 points are generated by the voting initiator as an allocation scheme. Assume that there are 10 parties involved in a digital asset cross-chain transaction, i.e., ten intelligent contracts for cross-chain credit clearing, along with the voting initiator. The voting sponsor equally distributes the 5000 points, i.e., 500 per cross-chain point clearing smart contract. The voting initiator obtains 1500 points in total, and the other participants obtain 500 points.
The integral of the third part is noted as N, n=5000. Each cross-chain integrated clearing smart contract has its own application amount uploaded. The application amount reported by the first four cross-chain integrated clearing intelligent contracts is 500, and the application amount reported by the last six cross-chain integrated clearing intelligent contracts is 1000. The sum of the application amounts is 8000. The distribution ratio of the first four cross-chain integral clearing smart contracts is 500/8000=1/16. At this time, n×1/16=5000×1/16=312.5 points, i.e., the first four cross-chain point clearing smart contracts can be allocated to obtain 312.5 points. The distribution ratio of the last six cross-chain integrated clearing smart contracts is 1000/8000=1/8. At this time, n×1/8=5000×1/8=625 points, i.e., the first six cross-chain point clearing smart contracts can be allocated to obtain 625 points.
Referring to fig. 3, the method for agreeing on the universal conversion price includes:
step C01) each of a plurality of cross-chain integral clearing intelligent contracts 10 generates a pass exchange price, generates a confusion code randomly, extracts hash values of the confusion code and the exchange price and sends the hash values to a voting initiator;
step C02) after receiving the hash value sent by all the cross-chain integral clearing intelligent contracts 10, the voting sponsor informs all the cross-chain integral clearing intelligent contracts 10 of the public license exchange price and the confusion code;
step C03), a plurality of cross-chain integral clearing intelligent contracts 10 calculate the products of initial integral and bid price, and freeze the corresponding number of pass certificates, and defrost the pass certificates in the settlement period;
step C04) the voting sponsor extracts the hash value of the through certificate exchange price and the confusion code disclosed by the cross-chain integral clearing intelligent contract 10, and compares and verifies the hash value with the received hash value;
and C05) if the verification is inconsistent, judging that the current agreed pass exchange price is illegal, and re-executing the agreed notification exchange price method, otherwise, calculating the weighted average of all the pass exchange prices by taking the initial points as weights, and taking the weighted average as the agreed pass exchange price.
The voting initiator calculates a permissible bid interval, the permissible bid interval is k1 times to k2 times of the last checkout period through-certificate exchange price, k1 and k2 are preset coefficients, a bid which is lower than k1 times of the last checkout period through-certificate exchange price is regarded as k1 times of the last checkout period through-certificate exchange price, and a bid which is higher than k2 times of the last checkout period through-certificate exchange price is regarded as k2 times of the last checkout period through-certificate exchange price. k1 defines a lower limit for bidding, and k1 is recommended to be 0.5, 0.6 or 0.8 in value interval [0.5,0.8 ]. k2 defines the upper limit of the bid, and k2 is recommended to take a value interval of [1.2,1.6], and the recommended value is 1.2, 1.4 or 1.5.
Suppose here that business system a purchases a digital asset from business system B by way of credit, the flow being as described in fig. 4.
1. The publishing asset, business system B sends digital asset profile information, the points needed to purchase the digital asset to business system B's cross-chain point clearing smart contract 10.
2. After receiving the request, the inter-chain credit clearing smart contract 10 of the business system B synchronizes the digital asset information into the inter-chain credit clearing smart contracts 10 of all participating institutions.
3. The cross-chain integrated clearing smart contract 10 for business system a and institution C records the digital assets of business system B.
4. The user of business system a queries the desired digital asset through the cross-chain integrated clearing smart contract 10 of business system a.
5. The user of business system a submits a digital asset request to business system B to cross-chain integrated clearing smart contract 10A.
6. The credit of business system a is deducted and the credit of business system B is increased by the cross-chain credit clearing intelligent contract 10.
7. The cross-chain credit clearing smart contract 10 of business system a deducts business system a credits and broadcasts business system B credits increases to all participating institutions.
8. All participating institutions record the transaction details.
9. After each inter-chain credit clearing smart contract 10 synchronizes the credit transaction details, the inter-chain credit clearing smart contract 10 feeds back a success of purchase to the business system a.
10. The user of business system a sends a digital asset delivery request to business system B.
11. Business system B verifies the credit transaction against cross-chain credit clearing smart contract 10B.
12. After verification passes, business system B communicates the digital asset to business system a via cross-chain technology.
A cross-chain transaction system for digital assets based on cross-trusted alliance chains for executing the cross-chain transaction method for digital assets based on cross-trusted alliance chains as described above, please refer to fig. 5, which includes a plurality of cross-chain gateways and a plurality of cross-chain integral clearing intelligent contracts 10, wherein the cross-chain integral clearing intelligent contracts 10 are distributed on a service blockchain, the plurality of cross-chain integral clearing intelligent contracts 10 establish connection through the cross-chain gateways, and the cross-chain integral clearing intelligent contracts 10 execute the following steps:
receiving asset release information sent by the service system 20, wherein the asset release information comprises a publisher identity, asset description information and an integral selling price, and allocating an asset number to an asset, and synchronizing the asset release information among a plurality of cross-chain integral clearing intelligent contracts 10;
receiving an asset inquiry request sent by the service system 20, and returning an asset number of the corresponding asset;
receiving an asset purchase request sent by the service system 20, wherein the asset purchase request comprises an asset number and a buyer identity, the cross-chain point clearing intelligent contract 10 generates point transfer information and endows the asset purchase request with a purchase request number, the point transfer information is obtained by transferring points corresponding to the point selling price from an account corresponding to the buyer identity to an account corresponding to the publisher identity, and the plurality of cross-chain point clearing intelligent contracts 10 synchronize the point transfer information;
after receiving the asset purchase request and inquiring the point transfer information by the cross-chain point clearing intelligent contracts 10, marking the asset purchase request as successful purchase after the plurality of cross-chain point clearing intelligent contracts 10 are synchronized;
receiving an asset delivery verification request sent by the service system 20, wherein the asset delivery verification request comprises a corresponding asset purchase request number, if the asset purchase request state corresponding to the asset purchase request number is that the purchase is successful, feeding back the allowable delivery to the service system 20, otherwise, feeding back the allowable delivery to the service system 20;
the business system 20 receives a digital asset delivery request, wherein the digital asset delivery request comprises an asset number and an asset purchase request number, and after receiving the delivery permission feedback, the business system 20 sends an asset delivery verification request to the cross-chain integral clearing intelligent contract 10, if receiving the delivery permission feedback, generates a digital asset delivery transaction and packages the digital asset delivery transaction into a current block for storage, otherwise, does not operate.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present invention, and various changes and modifications may be made without departing from the spirit and scope of the invention, which is defined in the appended claims. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (10)
1. The digital asset cross-chain transaction method based on the cross-trusted alliance chain is characterized in that a cross-chain integral clearing intelligent contract is issued on the trusted alliance chain, the cross-chain integral clearing intelligent contract is connected with a business system of the trusted alliance chain, and the cross-chain integral clearing intelligent contract executes the following steps:
(1) Receiving asset release information sent by a business system, and distributing asset numbers for assets; the asset release information comprises a publisher identity, asset description information and an integral selling price;
(2) Synchronizing asset release information among a plurality of cross-chain integrated clearing intelligent contracts;
(3) Receiving an asset inquiry request sent by a business system, and returning an asset number of a corresponding asset;
(4) Receiving an asset purchase request sent by a business system, generating point transfer information by a cross-chain point clearing intelligent contract and giving a purchase request number to the asset purchase request; the asset purchase request comprises an asset number and a purchaser identity; the point transfer information is to transfer the point corresponding to the point selling price from the account corresponding to the buyer identity to the account corresponding to the publisher identity;
(5) The intelligent contract synchronous integral transfer information of the cross-chain integral clearing is calculated by a plurality of pieces;
(6) After receiving the cross-chain integral clearing intelligent contract inquiry of the asset purchase request and the integral transfer information is synchronized in a plurality of cross-chain integral clearing intelligent contracts, marking the asset purchase request as successful purchase;
(7) Receiving an asset delivery verification request sent by a service system, and if the asset purchase request state corresponding to the asset purchase request number is successful in purchase, feeding back permission to deliver to the service system, otherwise, feeding back non-permission to deliver to the service system; the asset delivery verification request includes a corresponding asset purchase request number;
(8) The business system receives the digital asset delivery request, and after receiving the delivery permission feedback, the business system sends an asset delivery verification request to the cross-chain integral clearing intelligent contract, if the delivery permission feedback is received, digital asset delivery transaction is generated and packed into the current block for storage, otherwise, no operation is performed; the digital asset delivery request includes an asset number and an asset purchase request number.
2. The digital asset cross-chain transaction method based on cross-trusted coalition chains of claim 1, wherein: the cross-chain integral clearing intelligent contract is provided with an integral account, an integral table and a verification account;
the point account records the points owned by the point account;
the integral table records the integral owned by the blockchain user;
and before the settlement period, transferring corresponding quantity of points to the blockchain user by the contract point account when the general certificate account of the cross-chain integrated clearing intelligent contract receives the general certificate transferred by the blockchain user, and recording the corresponding quantity of points in an integral table, wherein in the settlement period, the cross-chain integrated clearing intelligent contract exchanges the points of the blockchain user into corresponding quantity of general certificates and transfers the corresponding quantity of general certificates into the account of the blockchain user.
3. The digital asset cross-chain transaction method based on cross-trusted coalition chains of claim 2, wherein:
and after the settlement period is finished, voting to determine the next settlement period and initial point distribution, and in the settlement period, exchanging the points by the agreed universal exchange price by the plurality of the intelligent contracts, so that the points held by the intelligent contracts after the exchange are consistent with the initial point distribution.
4. A digital asset cross-chain transaction method based on cross-trusted coalition chains as claimed in claim 3, characterized by:
and in the settlement period, the plurality of cross-chain integral clearing intelligent contracts pay tax fees according to the preset ratio of integral multiplication allocated by initial integral, and after the tax fees are paid completely, the tax fees are distributed among the plurality of cross-chain integral clearing intelligent contracts in an average way.
5. A digital asset cross-chain transaction method based on cross-trusted coalition chains as claimed in any one of claims 1 to 4, characterised by:
and during the settlement period, the cross-chain integral clearance intelligent contracts package and store all asset purchase requests in corresponding blockchains, and then clear the integral.
6. The digital asset cross-chain transaction method based on cross-trusted coalition chains of claim 3 or 4, characterized by:
the method for determining initial point allocation by voting comprises the following steps:
after the settlement account period is finished, the cross-chain point clearing intelligent contracts exchange the points of the corresponding blockchain users into corresponding number of pass certificates, and the points are transferred into the point accounts;
counting the integral use quantity by the plurality of intelligent contracts for cross-chain integral clearing, wherein the intelligent contract for cross-chain integral clearing with the largest integral use quantity is used as a voting initiator, and the voting initiator generates an initial integral allocation scheme and sends out votes;
and if the intelligent contract for the cross-chain integral clearance exceeding the preset proportion agrees with the initial integral allocation scheme, the initial integral allocation scheme passes, and initial integral allocation is carried out according to the initial integral allocation scheme.
7. The digital asset cross-chain transaction method based on cross-trusted coalition chain of claim 6, wherein:
the method for the voting sponsor to generate the initial point allocation scheme comprises the following steps:
dividing the total amount of the integral into three parts according to a proportion, wherein the first part is directly distributed to a voting initiator, the second part generates an allocation scheme by the voting initiator, the integral amount of the third part is recorded as N, the voting initiator receives the application amount reported by other intelligent contracts for clearing the integral across the chain, calculates the sum of the application amounts, calculates the proportion of the application amount to the sum of the application amounts reported by each intelligent contract for clearing the integral across the chain, the proportion is used as the allocation proportion of the corresponding intelligent contract for clearing the integral across the chain, the product of the integral amount N of the third part and the allocation proportion is used as the integral allocation amount distributed to the corresponding intelligent contract for clearing the integral across the chain, and the allocation sum of the three parts is used as the initial integral allocation scheme.
8. The digital asset cross-chain transaction method based on cross-trusted coalition chain of claim 6, wherein:
the method for agreeing to pass the evidence to exchange the price comprises the following steps:
each of the plurality of cross-chain integral clearing intelligent contracts generates a pass exchange price, generates a confusion code randomly, extracts hash values of the confusion code and the exchange price and sends the hash values to a voting initiator;
after receiving the hash values sent by all the cross-chain integral clearing intelligent contracts, the voting sponsor informs all the cross-chain integral clearing intelligent contracts of public license exchange price and confusion codes;
calculating the products of initial points and bids of the intelligent contracts through a plurality of cross-chain integral clearing contracts, freezing the corresponding number of pass certificates, and thawing the pass certificates in a settlement period;
the voting sponsor extracts the hash value of the through certificate exchange price and the confusion code disclosed by the cross-chain integral clearing intelligent contract, and compares the hash value with the received hash value for verification;
if the verification is inconsistent, judging that the current agreed pass exchange price is illegal, and re-executing the agreed notification exchange price method, otherwise, calculating the weighted average of all pass exchange prices by taking initial points as weights, and taking the weighted average as the agreed pass exchange price.
9. The digital asset cross-chain transaction method based on cross-trusted coalition chains of claim 8, wherein: the voting initiator calculates the allowed bid interval;
the allowable bidding interval is k1 times to k2 times of the last accounting period through-certificate exchange price, k1 and k2 are preset coefficients, and the bid which is lower than k1 times of the last accounting period through-certificate exchange price is regarded as k1 times of the last accounting period through-certificate exchange price, and the bid which is higher than k2 times of the last accounting period through-certificate exchange price is regarded as k2 times of the last accounting period through-certificate exchange price.
10. A digital asset cross-chain transaction system based on a cross-trusted coalition chain for performing the digital asset cross-chain transaction method based on a cross-trusted coalition chain as claimed in any one of claims 1 to 4, 7 to 9, characterized by:
the system comprises a plurality of cross-chain gateways and a plurality of cross-chain integrated clearing intelligent contracts; the inter-chain integral clearing intelligent contracts are distributed on a business block chain, a plurality of the inter-chain integral clearing intelligent contracts are connected through the inter-chain gateway, and the inter-chain integral clearing intelligent contracts execute the following steps:
(1) Receiving asset release information sent by a business system, and distributing asset numbers for assets; the asset release information comprises a publisher identity, asset description information and an integral selling price;
(2) Synchronizing asset release information among a plurality of cross-chain integrated clearing intelligent contracts;
(3) Receiving an asset inquiry request sent by a business system, and returning an asset number of a corresponding asset;
(4) Receiving an asset purchase request sent by a business system, generating point transfer information by a cross-chain point clearing intelligent contract and giving a purchase request number to the asset purchase request; the asset purchase request comprises an asset number and a purchaser identity; the point transfer information is to transfer the point corresponding to the point selling price from the account corresponding to the buyer identity to the account corresponding to the publisher identity;
(5) The intelligent contract synchronous integral transfer information of the cross-chain integral clearing is calculated by a plurality of pieces;
(6) After receiving the cross-chain integral clearing intelligent contract inquiry of the asset purchase request and the integral transfer information is synchronized in a plurality of cross-chain integral clearing intelligent contracts, marking the asset purchase request as successful purchase;
(7) Receiving an asset delivery verification request sent by a service system, and if the asset purchase request state corresponding to the asset purchase request number is successful in purchase, feeding back permission to deliver to the service system, otherwise, feeding back non-permission to deliver to the service system; the asset delivery verification request includes a corresponding asset purchase request number;
(8) The business system receives the digital asset delivery request, and after receiving the delivery permission feedback, the business system sends an asset delivery verification request to the cross-chain integral clearing intelligent contract, if the delivery permission feedback is received, digital asset delivery transaction is generated and packed into the current block for storage, otherwise, no operation is performed; the digital asset delivery request includes an asset number and an asset purchase request number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211438843.0A CN115994824A (en) | 2022-11-17 | 2022-11-17 | Cross-chain transaction method for digital asset based on cross-trusted alliance chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211438843.0A CN115994824A (en) | 2022-11-17 | 2022-11-17 | Cross-chain transaction method for digital asset based on cross-trusted alliance chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115994824A true CN115994824A (en) | 2023-04-21 |
Family
ID=85989589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211438843.0A Pending CN115994824A (en) | 2022-11-17 | 2022-11-17 | Cross-chain transaction method for digital asset based on cross-trusted alliance chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115994824A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117061089A (en) * | 2023-10-12 | 2023-11-14 | 腾讯科技(深圳)有限公司 | Voting management method, device, equipment and storage medium |
CN117710027A (en) * | 2024-02-06 | 2024-03-15 | 深圳市飞泉云数据服务有限公司 | Block chain-based point transaction settlement method, device, equipment and medium |
-
2022
- 2022-11-17 CN CN202211438843.0A patent/CN115994824A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117061089A (en) * | 2023-10-12 | 2023-11-14 | 腾讯科技(深圳)有限公司 | Voting management method, device, equipment and storage medium |
CN117061089B (en) * | 2023-10-12 | 2024-02-06 | 腾讯科技(深圳)有限公司 | Voting management method, device, equipment and storage medium |
CN117710027A (en) * | 2024-02-06 | 2024-03-15 | 深圳市飞泉云数据服务有限公司 | Block chain-based point transaction settlement method, device, equipment and medium |
CN117710027B (en) * | 2024-02-06 | 2024-05-28 | 深圳市飞泉云数据服务有限公司 | Block chain-based point transaction settlement method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115994824A (en) | Cross-chain transaction method for digital asset based on cross-trusted alliance chain | |
AU2009217450B2 (en) | Electronic purchasing method and apparatus for performing the same | |
KR20180119488A (en) | Method, flatform server and system for providing discount reserve point using cryptocurrency | |
US20140095381A1 (en) | Online transaction method and system using a payment platform and a logistics company | |
MXPA04005187A (en) | Method and apparatus for management, financing and supply in an integrated supply chain system. | |
JP6457391B2 (en) | Method and system for distributing data streams | |
CN101140650A (en) | Commodity transaction mode under information network surroundings | |
CN109118102B (en) | Fair bidirectional combined cloud resource allocation method and system based on block chain | |
JP2019191744A (en) | Fund solicitation system for activity fund | |
TW201807631A (en) | Goods exchange information processing method and apparatus | |
CN104574115A (en) | Network sale channel management method and system | |
KR102175778B1 (en) | Open market win-win operating system and method | |
KR102176918B1 (en) | Method for transacting value of spot commodity and system for thereof | |
CN104599167A (en) | Knowledge trading system and method with knowledge service as center | |
JP2004310469A (en) | Environmental contribution certification system, power producer side device, certificate issuer side device, environmental contribution certificate marketing device, environmental contribution certification method, distribution system of environmental contribution certification, environmental contribution certificate trading market server, distribution method of environmental contribution certification, and program of them | |
CN116562997A (en) | Financial lease service system and method | |
CN101663683A (en) | System and method for financial transaction | |
JP2005135322A (en) | Settlement system, control tower and settlement method | |
KR20010096333A (en) | System for Using Cyber Currencies in Real Commerce through Unifying the Currencies | |
CN112184330A (en) | Business (alliance) method, system and device | |
JP2021099676A5 (en) | ||
CN111242703A (en) | Recharge distribution system | |
KR20010097451A (en) | pre-sale system using internet | |
TWI723756B (en) | Virtual commodity auction method and system | |
KR20130082896A (en) | Credit card management system for providing groupwise service for each cumtomer groups |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |