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
- cross
- chain
- 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, and belongs to the technical field of blockchain. The method includes: a cross-chain points clearing smart contract is published on the trusted alliance chain, and the following steps are performed: receiving asset release information, assigning asset numbers, and synchronizing asset release information; receiving asset query requests, returning asset numbers; receiving asset purchase requests, Synchronize point transfer information; mark asset purchase request as purchase success; receive asset delivery verification request, if the status of corresponding asset purchase request is purchase success, then feedback to allow delivery; business system receives digital asset delivery request and sends it to cross-chain points clearing smart contract Asset delivery verification request, if the feedback that the delivery is allowed is received, a digital asset delivery transaction will be generated and packaged into the current block storage. The present invention realizes cross-chain transaction of digital assets through cross-chain points clearing smart contract, promotes cross-chain circulation of digital assets, and is easy to popularize and apply.
Description
技术领域technical field
本发明属于区块链技术领域,具体涉及一种基于跨可信联盟链的数字资产跨链交易方法。The invention belongs to the technical field of block chains, and in particular relates to a digital asset cross-chain transaction method based on a cross-trusted alliance chain.
背景技术Background technique
网络时代的网络会计、办公自动化、电子支付系统平台等使现行的生产方式具有了传统生产方式无法比拟的优越性。数字资产的特点为:价格昂贵、依附性强、互动性强、数量上无限及成本递减。数字资产的流通能够给用户带来经济效益。区块链是一种去中心化的分布式数据库系统,具有公开透明、不可篡改及可追溯的特点。能够为数据提供可信证明,有力支撑企业办公数据的固定,有助于纠纷责任认定和解决。目前已有大量机构、企业建立业务私有链或者参与行业联盟链。但不同企业或机构已建设的私有链或联盟链之间,缺少一种用于不同机构区块链之间数字资产交换的介质。在不同机构之间通过积分介质交换数字化资产,积分介质缺少生产来源。积分介质与数据资产的实际价值产生强绑定,存在积分炒作风险。因此需要研究新的用于数字资产跨链交易的技术。Network accounting, office automation, and electronic payment system platforms in the Internet age have given the current production methods incomparable advantages over traditional production methods. The characteristics of digital assets are: expensive, highly dependent, highly interactive, unlimited in quantity and decreasing in cost. The circulation of digital assets can bring economic benefits to users. Blockchain is a decentralized distributed database system with the characteristics of openness, transparency, immutability and traceability. It can provide credible evidence for data, strongly support the fixation of corporate office data, and help identify and resolve disputes. At present, a large number of institutions and enterprises have established business private chains or participated in industry alliance chains. However, there is a lack of a medium for the exchange of digital assets between blockchains of different institutions between the private chains or alliance chains that have been built by different enterprises or institutions. Digital assets are exchanged between different institutions through credit media, and credit media lacks production sources. There is a strong bond between the point medium and the actual value of the data asset, and there is a risk of point speculation. Therefore, it is necessary to study new technologies for cross-chain transactions of digital assets.
如中国专利CN111581251A,公开日2020年8月25日,公开了一种跨链交易的数字资产查询方法、装置及存储介质,其方法包括:接收数字资产查询请求,所述数字资产查询请求根据参与跨链交易的任一交易方通过智能合约发布;根据所述数字资产查询请求,向对应的数字资产授权方发送授权请求;当接收到授权信息,将所述授权信息发送给所述交易方,使得所述交易方根据授权信息查询相应的数字资产。其技术方案通过第三方区块链对数字资产进行统一存储与管理,实现了跨链数据资产的统一查询,满足不同用户对交易过程的不同数据查询需求。但其技术方案不能实现数字资产的跨链交易,且缺乏维护交易稳定的机制。因此如何克服现有技术的不足是目前区块链技术领域亟需解决的问题。For example, Chinese patent CN111581251A, published on August 25, 2020, discloses a digital asset query method, device, and storage medium for cross-chain transactions. The method includes: receiving a digital asset query request, and the digital asset query request is based on participation Any transaction party of the cross-chain transaction is released through the smart contract; according to the digital asset query request, an authorization request is sent to the corresponding digital asset authorizer; when the authorization information is received, the authorization information is sent to the transaction party, The transaction party is made to query corresponding digital assets according to the authorization information. Its technical solution performs unified storage and management of digital assets through a third-party blockchain, realizes unified query of cross-chain data assets, and meets different data query needs of different users for the transaction process. However, its technical solution cannot realize cross-chain transactions of digital assets, and lacks a mechanism to maintain transaction stability. Therefore, how to overcome the shortcomings of existing technologies is an urgent problem in the field of blockchain technology.
发明内容Contents of the invention
本发明的目的是为了解决现有技术的不足,提供一种基于跨可信联盟链的数字资产跨链交易方法。The purpose of the present invention is to solve the deficiencies of the prior art and provide a digital asset cross-chain transaction method based on cross-trusted alliance chains.
为实现上述目的,本发明采用的技术方案如下:To achieve the above object, the technical scheme adopted in the present invention is as follows:
基于跨可信联盟链的数字资产跨链交易方法,可信联盟链上发布有跨链积分清算智能合约,跨链积分清算智能合约与可信联盟链的业务系统连接,跨链积分清算智能合约执行以下步骤:Based on the cross-chain transaction method of digital assets across trusted alliance chains, there is a cross-chain points clearing smart contract issued on the trusted alliance chain, the cross-chain points clearing smart contract is connected with the business system of the trusted alliance chain, and the cross-chain points clearing smart contract Perform the following steps:
(1)接收业务系统发送的资产发布信息,并为资产分配资产编号;所述资产发布信息包括发布者身份标识、资产描述信息和积分售价;(1) Receive the asset release information sent by the business system, and assign an asset number to the asset; the asset release information includes the identity of the issuer, asset description information, and credit selling price;
(2)若干个跨链积分清算智能合约之间同步资产发布信息;(2) Synchronize asset release information between several cross-chain point clearing smart contracts;
(3)接收业务系统发送的资产查询请求,返回相应资产的资产编号;(3) Receive the asset query request sent by the business system, and return the asset number of the corresponding asset;
(4)接收业务系统发送的资产购买请求,跨链积分清算智能合约生成积分转账信息并为资产购买请求赋予购买请求编号;所述资产购买请求包括资产编号和购买者身份标识;所述积分转账信息为将积分售价相应的积分从购买者身份标识对应的账户转入发布者身份标识对应的账户;(4) Receiving the asset purchase request sent by the business system, the cross-chain point clearing smart contract generates point transfer information and assigns a purchase request number to the asset purchase request; the asset purchase request includes the asset number and the buyer's identity; the point transfer The information is to transfer the points corresponding to the selling price of the points from the account corresponding to the buyer's identity to the account corresponding to the publisher's identity;
(5)若干个跨链积分清算智能合约同步积分转账信息;(5) Several cross-chain point clearing smart contracts synchronize point transfer information;
(6)接收资产购买请求的跨链积分清算智能合约查询到积分转账信息已在若干个跨链积分清算智能合约同步后,将资产购买请求标记为购买成功;(6) After the cross-chain point clearing smart contract that receives the asset purchase request finds that the point transfer information has been synchronized by several cross-chain point clearing smart contracts, it marks the asset purchase request as a successful purchase;
(7)接收业务系统发送的资产交割验证请求,若资产购买请求编号对应的资产购买请求状态为购买成功,则向业务系统反馈允许交割,反之,则向业务系统反馈不允许交割;所述资产交割验证请求包括相应的资产购买请求编号;(7) Receive the asset delivery verification request sent by the business system. If the status of the asset purchase request corresponding to the asset purchase request number is purchase success, feedback to the business system that the delivery is allowed, otherwise, feedback to the business system that the delivery is not allowed; the assets The delivery verification request includes the corresponding asset purchase request number;
(8)业务系统接收数字资产交割请求,业务系统收到允许交割反馈后,向跨链积分清算智能合约发送资产交割验证请求,若收到允许交割的反馈,则生成数字资产交割交易并打包进当前区块存储,反之,则不做操作;所述数字资产交割请求包括资产编号和资产购买请求编号。(8) The business system receives the digital asset delivery request. After receiving the delivery permission feedback, the business system sends an asset delivery verification request to the cross-chain points clearing smart contract. If it receives the delivery permission feedback, it generates a digital asset delivery transaction and packs it into the The current block is stored, otherwise, no operation is performed; the digital asset delivery request includes the asset number and the asset purchase request number.
进一步,优选的是,所述跨链积分清算智能合约具有积分账户、积分表和通证账户;Further, it is preferred that the cross-chain credit clearing smart contract has a credit account, a credit table and a token account;
所述积分账户记录积分账户拥有的积分;the points account records points owned by the points account;
所述积分表记录区块链用户拥有的积分;The credit table records the credits owned by blockchain users;
所述跨链积分清算智能合约预置有结算账期,在结算账期前,所述跨链积分清算智能合约的通证账户收到区块链用户转入的通证时,由合约积分账户转出相应数量的积分给区块链用户并记录在积分表中,在结算账期内,所述跨链积分清算智能合约将区块链用户的积分,兑换为相应数量的通证,并转入区块链用户的账户中。The cross-chain point clearing smart contract is preset with a settlement account period. Before the settlement account period, when the token account of the cross-chain point liquidation smart contract receives the token transferred from the blockchain user, the contract point account Transfer the corresponding number of points to blockchain users and record them in the point table. During the settlement account period, the cross-chain points clearing smart contract converts the points of blockchain users into a corresponding number of tokens and transfers them to into the blockchain user's account.
进一步,优选的是,若干个所述跨链积分清算智能合约在结算账期结束后,投票确定下一个结算账期以及初始积分分配,在结算账期内,若干个所述跨链积分清算智能合约以约定的通证兑换价兑换积分,使兑换后跨链积分清算智能合约持有的积分与初始积分分配相符。Further, it is preferred that several of the cross-chain points clearing smart contracts vote to determine the next settlement account period and the initial point distribution after the settlement account period ends, and during the settlement account period, several of the cross-chain point clearing smart contracts The contract converts points at the agreed token exchange price, so that the points held by the cross-chain points clearing smart contract after conversion match the initial point distribution.
进一步,优选的是,在结算账期内,若干个所述跨链积分清算智能合约以初始积分分配的积分乘预设比率上缴税费,税费全部缴纳后,在若干个所述跨链积分清算智能合约之间平均分配。Further, it is preferred that during the settlement account period, several of the cross-chain points clearing smart contracts pay taxes by multiplying the points assigned by the initial points by a preset ratio. After all taxes and fees are paid, the cross-chain point Evenly distributed between liquidation smart contracts.
进一步,优选的是,在结算账期内,若干个所述跨链积分清算智能合约各自将全部资产购买请求打包并存储在相应的区块链,而后若干个所述跨链积分清算智能合约将积分清零。Further, it is preferred that during the settlement account period, several of the cross-chain points clearing smart contracts each package and store all asset purchase requests in the corresponding blockchain, and then several of the cross-chain point clearing smart contracts will Points cleared.
进一步,优选的是,投票确定初始积分分配的方法包括:Further, preferably, the method of voting to determine the initial distribution of points includes:
在结算账期结束后,若干个所述跨链积分清算智能合约将对应区块链用户的积分兑换为相应数量的通证,并将积分转入积分账户;After the settlement account period is over, several of the above-mentioned cross-chain points clearing smart contracts will convert the points of the corresponding blockchain users into a corresponding number of certificates, and transfer the points to the points account;
若干个所述跨链积分清算智能合约统计积分使用量,积分使用量最多的跨链积分清算智能合约作为投票发起者,投票发起者生成初始积分分配方案并发起投票;A number of said cross-chain point clearing smart contracts count point usage, and the cross-chain point clearing smart contract with the most point usage is the voting initiator, and the voting initiator generates an initial point distribution plan and initiates a vote;
若超过预设比例的跨链积分清算智能合约同意初始积分分配方案,则初始积分分配方案通过,按照初始积分分配方案进行初始积分分配。If the cross-chain point clearing smart contract exceeding the preset ratio agrees to the initial point distribution plan, the initial point distribution plan will be passed, and the initial point distribution will be carried out according to the initial point distribution plan.
进一步,优选的是,用于分配的积分总量固定,投票发起者生成初始积分分配方案的方法包括:Further, preferably, the total amount of points used for distribution is fixed, and the method for the voting initiator to generate an initial point distribution plan includes:
将积分总量按比例分为三部分,第一部分直接分配给投票发起者,第二部分由投票发起者生成分配方案,第三部分的积分量记为N,投票发起者接收其他所述跨链积分清算智能合约上报的申请量,计算申请量总和,计算每个跨链积分清算智能合约上报申请量占申请量总和的比重,所述比重作为对应的跨链积分清算智能合约的分配比例,将第三部分的积分量N与分配比例的乘积作为分配给相应的跨链积分清算智能合约的积分分配量,三部分的分配汇总作为初始积分分配方案。The total amount of points is divided into three parts in proportion, the first part is directly allocated to the voting initiator, the second part is generated by the voting initiator, and the third part is recorded as N, and the voting initiator receives other cross-chain Calculate the application amount reported by the point clearing smart contract, calculate the total amount of application, and calculate the proportion of the application amount reported by each cross-chain point clearing smart contract to the total application amount, and the proportion will be used as the distribution ratio of the corresponding cross-chain point clearing smart contract. The product of the third part of the point amount N and the distribution ratio is used as the point distribution amount allocated to the corresponding cross-chain point clearing smart contract, and the distribution summary of the three parts is used as the initial point distribution plan.
进一步,优选的是,约定通证兑换价的方法包括:Further, preferably, the method of agreeing on the exchange price of the certificate includes:
若干个跨链积分清算智能合约各自生成通证兑换价,随机生成混淆码,提取混淆码和兑换价的哈希值发送给投票发起者;Several cross-chain point clearing smart contracts each generate a token exchange price, randomly generate an obfuscation code, extract the obfuscation code and the hash value of the exchange price and send it to the voter;
投票发起者收到全部跨链积分清算智能合约发送的哈希值后,通知全部跨链积分清算智能合约公开通证兑换价及混淆码;After receiving the hash value sent by all the cross-chain point settlement smart contracts, the voting initiator notifies all the cross-chain point liquidation smart contracts to disclose the token exchange price and obfuscation code;
若干个跨链积分清算智能合约计算各自的初始积分与出价的乘积,并冻结相应数量的通证,在结算账期内解冻所述通证;Several cross-chain points liquidation smart contracts calculate the product of their initial points and bids, freeze the corresponding number of tokens, and unfreeze the tokens during the settlement account period;
投票发起者提取跨链积分清算智能合约公开的通证兑换价及混淆码的哈希值,与收到的哈希值比对验证;The voting initiator extracts the token exchange price and the hash value of the obfuscation code published by the cross-chain point clearing smart contract, and compares and verifies it with the received hash value;
若验证不一致,则判定本次约定通证兑换价不合法,重新执行约定通知兑换价方法,反之,则以初始积分为权重,计算全部通证兑换价的加权均值,作为约定的通证兑换价。If the verification is inconsistent, it will be determined that the agreed token exchange price is illegal, and the agreed exchange price method will be re-executed. Otherwise, the weighted average of all token exchange prices will be calculated with the initial points as the weight, as the agreed token exchange price .
进一步,优选的是,投票发起者计算允许出价区间;Further, preferably, the voting initiator calculates the allowed bid range;
所述允许出价区间为上一结算账期通证兑换价的k1倍至k2倍,k1和k2为预设系数,且满足k1<1<k2,低于上一结算账期通证兑换价的k1倍的出价视为上一结算账期通证兑换价的k1倍,高于上一结算账期通证兑换价的k2倍的出价视为上一结算账期通证兑换价的k2倍。The allowable bid range is k1 to k2 times the exchange price of the previous settlement account period. A bid of k1 times is regarded as k1 times of the token exchange price of the previous settlement period, and a bid higher than k2 times of the token exchange price of the previous settlement period is regarded as k2 times of the token exchange price of the previous settlement period.
本发明同时提供一种基于跨可信联盟链的数字资产跨链交易系统,用于执行上述基于跨可信联盟链的数字资产跨链交易方法,所述的系统包括若干个跨链网关和若干个跨链积分清算智能合约;所述跨链积分清算智能合约发布在业务区块链上,若干个所述跨链积分清算智能合约通过所述跨链网关建立连接,所述跨链积分清算智能合约执行以下步骤:The present invention also provides a digital asset cross-chain transaction system based on a cross-trusted alliance chain, which is used to implement the above-mentioned digital asset cross-chain transaction method based on a cross-trusted alliance chain. The system includes several cross-chain gateways and several A cross-chain point clearing smart contract; the cross-chain point clearing smart contract is published on the business block chain, and several cross-chain point clearing smart contracts are connected through the cross-chain gateway, and the cross-chain point clearing smart The contract performs the following steps:
(1)接收业务系统发送的资产发布信息,并为资产分配资产编号;所述资产发布信息包括发布者身份标识、资产描述信息和积分售价;(1) Receive the asset release information sent by the business system, and assign an asset number to the asset; the asset release information includes the identity of the issuer, asset description information, and credit selling price;
(2)若干个跨链积分清算智能合约之间同步资产发布信息;(2) Synchronize asset release information between several cross-chain point clearing smart contracts;
(3)接收业务系统发送的资产查询请求,返回相应资产的资产编号;(3) Receive the asset query request sent by the business system, and return the asset number of the corresponding asset;
(4)接收业务系统发送的资产购买请求,跨链积分清算智能合约生成积分转账信息并为资产购买请求赋予购买请求编号;所述资产购买请求包括资产编号和购买者身份标识;所述积分转账信息为将积分售价相应的积分从购买者身份标识对应的账户转入发布者身份标识对应的账户;(4) Receiving the asset purchase request sent by the business system, the cross-chain point clearing smart contract generates point transfer information and assigns a purchase request number to the asset purchase request; the asset purchase request includes the asset number and the buyer's identity; the point transfer The information is to transfer the points corresponding to the selling price of the points from the account corresponding to the buyer's identity to the account corresponding to the publisher's identity;
(5)若干个跨链积分清算智能合约同步积分转账信息;(5) Several cross-chain point clearing smart contracts synchronize point transfer information;
(6)接收资产购买请求的跨链积分清算智能合约查询到积分转账信息已在若干个跨链积分清算智能合约同步后,将资产购买请求标记为购买成功;(6) After the cross-chain point clearing smart contract that receives the asset purchase request finds that the point transfer information has been synchronized by several cross-chain point clearing smart contracts, it marks the asset purchase request as a successful purchase;
(7)接收业务系统发送的资产交割验证请求,若资产购买请求编号对应的资产购买请求状态为购买成功,则向业务系统反馈允许交割,反之,则向业务系统反馈不允许交割;所述资产交割验证请求包括相应的资产购买请求编号;(7) Receive the asset delivery verification request sent by the business system. If the status of the asset purchase request corresponding to the asset purchase request number is purchase success, feedback to the business system that the delivery is allowed, otherwise, feedback to the business system that the delivery is not allowed; the assets The delivery verification request includes the corresponding asset purchase request number;
(8)业务系统接收数字资产交割请求,业务系统收到允许交割反馈后,向跨链积分清算智能合约发送资产交割验证请求,若收到允许交割的反馈,则生成数字资产交割交易并打包进当前区块存储,反之,则不做操作;所述数字资产交割请求包括资产编号和资产购买请求编号。(8) The business system receives the digital asset delivery request. After receiving the delivery permission feedback, the business system sends an asset delivery verification request to the cross-chain points clearing smart contract. If it receives the delivery permission feedback, it generates a digital asset delivery transaction and packs it into the The current block is stored, otherwise, no operation is performed; the digital asset delivery request includes the asset number and the asset purchase request number.
本发明与现有技术相比,其有益效果为:Compared with the prior art, the present invention has the beneficial effects of:
通过跨链积分清算智能合约实现数字资产的跨链交易,完成跨链交易的发起和存证,促进数字资产的跨链流通;以积分作为价值中介,实现数字资产价值的计量,有助于促成数字资产交易;通过对积分周期性清算,实现积分价值的稳定,有助于实现数字资产价值的稳定;通过改进的初始积分分配和约定通证兑换价方案,有效抑制积分炒作,维持数字资产跨链交易稳定。Realize the cross-chain transaction of digital assets through the cross-chain points clearing smart contract, complete the initiation and deposit of cross-chain transactions, and promote the cross-chain circulation of digital assets; use points as a value intermediary to realize the measurement of digital asset value, which is helpful to promote Digital asset transactions; through the periodic liquidation of points, the stability of the value of points can be achieved, which helps to stabilize the value of digital assets; through the improved initial point distribution and the agreed exchange price scheme, the point speculation can be effectively restrained and the cross-border value of digital assets can be maintained. Chain transactions are stable.
附图说明Description of drawings
图1为本发明实施例数字资产跨链交易方法流程示意图。Fig. 1 is a schematic flow diagram of a digital asset cross-chain transaction method according to an embodiment of the present invention.
图2为本发明实施例投票确定初始积分分配方法流程示意图。Fig. 2 is a schematic flow chart of the method for voting to determine the initial points distribution according to the embodiment of the present invention.
图3为本发明实施例约定通证兑换价方法流程示意图。Fig. 3 is a schematic flow chart of a method for agreeing on a token exchange price according to an embodiment of the present invention.
图4为本发明实施例业务系统A用户购买业务系统B数字资产流程示意图。Fig. 4 is a schematic flow diagram of a user of business system A purchasing digital assets of business system B according to an embodiment of the present invention.
图5为本发明实施例数字资产跨链交易系统示意图。Fig. 5 is a schematic diagram of a digital asset cross-chain transaction system according to an embodiment of the present invention.
其中:10、跨链积分清算智能合约,20、业务系统。Among them: 10. Cross-chain point clearing smart contract, 20. Business system.
具体实施方式Detailed ways
下面结合实施例对本发明作进一步的详细描述。The present invention will be further described in detail below in conjunction with the examples.
本领域技术人员将会理解,下列实施例仅用于说明本发明,而不应视为限定本发明的范围。实施例中未注明具体技术或条件者,按照本领域内的文献所描述的技术或条件或者按照产品说明书进行。所用材料或设备未注明生产厂商者,均为可以通过购买获得的常规产品。Those skilled in the art will understand that the following examples are only for illustrating the present invention and should not be considered as limiting the scope of the present invention. If no specific technique or condition is indicated in the examples, it shall be carried out according to the technique or condition described in the literature in this field or according to the product specification. The materials or equipment used are not indicated by the manufacturer, and they are all conventional products that can be obtained through purchase.
基于跨可信联盟链的数字资产跨链交易方法,请参阅附图1,包括以下步骤:For the cross-chain transaction method of digital assets based on the cross-trusted alliance chain, please refer to Figure 1, including the following steps:
步骤A01)可信联盟链上发布有跨链积分清算智能合约10,跨链积分清算智能合约10与可信联盟链的业务系统20连接,跨链积分清算智能合约10执行以下步骤:Step A01) There is a cross-chain point clearing
步骤A02)接收业务系统20发送的资产发布信息,资产发布信息包括发布者身份标识、资产描述信息和积分售价,为资产分配资产编号,若干个跨链积分清算智能合约10之间同步资产发布信息;Step A02) Receive the asset release information sent by the
步骤A03)接收业务系统20发送的资产查询请求,返回相应资产的资产编号;Step A03) Receive the asset query request sent by the
步骤A04)接收业务系统20发送的资产购买请求,资产购买请求包括资产编号和购买者身份标识,跨链积分清算智能合约10生成积分转账信息并为资产购买请求赋予购买请求编号,积分转账信息为将积分售价相应的积分从购买者身份标识对应的账户转入发布者身份标识对应的账户,若干个跨链积分清算智能合约10同步积分转账信息;Step A04) Receive the asset purchase request sent by the
步骤A05)接收资产购买请求的跨链积分清算智能合约10查询到积分转账信息已在若干个跨链积分清算智能合约10同步后,将资产购买请求标记为购买成功;Step A05) After receiving the asset purchase request, the cross-chain points clearing
步骤A06)接收业务系统20发送的资产交割验证请求,资产交割验证请求包括相应的资产购买请求编号,若资产购买请求编号对应的资产购买请求状态为购买成功,则向业务系统20反馈允许交割,反之,则向业务系统20反馈不允许交割;Step A06) Receive the asset delivery verification request sent by the
步骤A07)业务系统20接收数字资产交割请求,数字资产交割请求包括资产编号和资产购买请求编号,业务系统20收到允许交割反馈后,向跨链积分清算智能合约10发送资产交割验证请求,若收到允许交割的反馈,则生成数字资产交割交易并打包进当前区块存储,反之,则不做操作。Step A07) The
跨链积分清算智能合约10具有积分账户、积分表和通证账户,积分账户记录积分账户拥有的积分,积分表记录区块链用户拥有的积分,跨链积分清算智能合约10预置有结算账期,在结算账期前,跨链积分清算智能合约10的通证账户收到区块链用户转入的通证时,由合约积分账户转出相应数量的积分给区块链用户并记录在积分表中,在结算账期内,跨链积分清算智能合约10将区块链用户的积分,兑换为相应数量的通证,并转入区块链用户的账户中。The cross-chain point clearing
若干个跨链积分清算智能合约10在结算账期结束后,投票确定下一个结算账期以及初始积分分配,在结算账期内,若干个跨链积分清算智能合约10以约定的通证兑换价兑换积分,使兑换后跨链积分清算智能合约10持有的积分与初始积分分配相符。Several cross-chain points clearing
在结算账期内,若干个跨链积分清算智能合约10以初始积分分配的积分乘预设比率上缴税费,税费全部缴纳后,在若干个跨链积分清算智能合约10之间平均分配。During the settlement account period, several cross-chain points clearing
在结算账期内,若干个跨链积分清算智能合约10各自将全部资产购买请求打包并存储在相应的区块链,而后若干个跨链积分清算智能合约10将积分清零。During the settlement account period, several cross-chain points clearing
请参阅附图2,投票确定初始积分分配的方法包括:Please refer to attached picture 2, the method of voting to determine the initial point distribution includes:
步骤B01)在结算账期结束后,若干个跨链积分清算智能合约10将对应区块链用户的积分兑换为相应数量的通证,并将积分转入积分账户;Step B01) After the settlement account period ends, several cross-chain point clearing
步骤B02)若干个跨链积分清算智能合约10统计积分使用量,积分使用量最多的跨链积分清算智能合约10作为投票发起者,投票发起者生成初始积分分配方案并发起投票;Step B02) A number of cross-chain point clearing
步骤B03)若超过预设比例的跨链积分清算智能合约10同意初始积分分配方案,则初始积分分配方案通过,按照初始积分分配方案进行初始积分分配。Step B03) If the cross-chain point clearing
用于分配的积分总量固定,投票发起者生成初始积分分配方案的方法包括:The total amount of points used for distribution is fixed, and the method for the voting initiator to generate the initial point distribution plan includes:
将积分总量按比例分为三部分,第一部分直接分配给投票发起者,第二部分由投票发起者生成分配方案,第三部分的积分量记为N,投票发起者接收其他跨链积分清算智能合约10上报的申请量,计算申请量总和,计算每个跨链积分清算智能合约10上报申请量占申请量总和的比重,比重作为对应的跨链积分清算智能合约的分配比例,将第三部分的积分量N与分配比例的乘积作为分配给相应的跨链积分清算智能合约10的积分分配量,三部分的分配汇总作为初始积分分配方案。The total amount of points is divided into three parts in proportion, the first part is directly allocated to the voting initiator, the second part is generated by the voting initiator, and the third part is recorded as N, and the voting initiator receives other cross-chain points for liquidation Calculate the application amount reported by
例如一次分配中,用于分配的积分总量为10000个,将10000个积分总量按比例分为三部分。第一部分1000个积分,第二部分5000个积分,第三部分4000个积分。For example, in one allocation, the total amount of points used for distribution is 10,000, and the total amount of 10,000 points is divided into three parts in proportion. 1000 points for the first part, 5000 points for the second part and 4000 points for the third part.
第一部分1000个积分直接分配给投票发起者。此时投票发起者直接得到了1000个积分。The first part of 1000 points is directly distributed to the voting initiators. At this time, the voting initiator directly got 1000 points.
第二部分5000个积分由投票发起者生成分配方案。假设参与数字资产跨链交易的参与方共有10个,即连同投票发起方在内,跨链积分清算智能合约共有十个。投票发起者将这5000个积分进行平均分配,即每个跨链积分清算智能合约均分到了500个。此时投票发起方共获得了1500个积分,其他参与方则获得500个积分。The second part of 5,000 points will be allocated by the voting initiator. Assume that there are 10 participants in the cross-chain transaction of digital assets, that is, including the voting initiator, there are ten cross-chain point clearing smart contracts. The voting initiators evenly distribute the 5,000 points, that is, each cross-chain point clearing smart contract is divided into 500 points. At this time, the initiator of the voting has obtained a total of 1,500 points, and other participants have obtained 500 points.
第三部分的积分量记为N,N=5000。每个跨链积分清算智能合约均上传了各自的申请量。假设前四个跨链积分清算智能合约上报的申请量均为500个,后六个跨链积分清算智能合约上报的申请量均为1000个。则申请量总和为8000个。前四个跨链积分清算智能合约的分配比例为500/8000=1/16。此时N*1/16=5000*1/16=312.5个积分,即前四个跨链积分清算智能合约能够分配获得312.5个积分。后六个跨链积分清算智能合约的分配比例为1000/8000=1/8。此时N*1/8=5000*1/8=625个积分,即前六个跨链积分清算智能合约能够分配获得625个积分。The integral amount of the third part is recorded as N, N=5000. Each cross-chain point clearing smart contract has uploaded its own application volume. Assume that the number of applications reported by the first four cross-chain point clearing smart contracts is 500, and the number of applications reported by the last six cross-chain point clearing smart contracts is 1,000. The total number of applications is 8000. The distribution ratio of the first four cross-chain point clearing smart contracts is 500/8000=1/16. At this time, N*1/16=5000*1/16=312.5 points, that is, the first four cross-chain point clearing smart contracts can allocate 312.5 points. The distribution ratio of the last six cross-chain point clearing smart contracts is 1000/8000=1/8. At this time, N*1/8=5000*1/8=625 points, that is, the first six cross-chain point clearing smart contracts can allocate 625 points.
请参阅附图3,约定通证兑换价的方法包括:Please refer to Attached Figure 3, the methods for agreeing on the exchange price of tokens include:
步骤C01)若干个跨链积分清算智能合约10各自生成通证兑换价,随机生成混淆码,提取混淆码和兑换价的哈希值发送给投票发起者;Step C01) A number of cross-chain point clearing
步骤C02)投票发起者收到全部跨链积分清算智能合约10发送的哈希值后,通知全部跨链积分清算智能合约10公开通证兑换价及混淆码;Step C02) After receiving the hash value sent by all the cross-chain point settlement
步骤C03)若干个跨链积分清算智能合约10计算各自的初始积分与出价的乘积,并冻结相应数量的通证,在结算账期内解冻通证;Step C03) A number of cross-chain points liquidation
步骤C04)投票发起者提取跨链积分清算智能合约10公开的通证兑换价及混淆码的哈希值,与收到的哈希值比对验证;Step C04) The voting initiator extracts the token exchange price and the hash value of the obfuscation code published by the cross-chain points clearing
步骤C05)若验证不一致,则判定本次约定通证兑换价不合法,重新执行约定通知兑换价方法,反之,则以初始积分为权重,计算全部通证兑换价的加权均值,作为约定的通证兑换价。Step C05) If the verification is inconsistent, it will be determined that the agreed token exchange price is illegal, and the agreed notification exchange price method will be re-executed; otherwise, the weighted average of all token exchange prices will be calculated with the initial points as the weight as the agreed token exchange price. certificate exchange price.
投票发起者计算允许出价区间,允许出价区间为上一结算账期通证兑换价的k1倍至k2倍,k1和k2为预设系数,且满足k1<1<k2,低于上一结算账期通证兑换价的k1倍的出价视为上一结算账期通证兑换价的k1倍,高于上一结算账期通证兑换价的k2倍的出价视为上一结算账期通证兑换价的k2倍。k1限定了出价的下限,k1的值推荐取值区间为[0.5,0.8],推荐值为0.5、0.6或0.8。k2限定了出价的上限,k2的值推荐取值区间为[1.2,1.6],推荐值为1.2、1.4或1.5。The voting initiator calculates the allowable bid range, which is k1 to k2 times the exchange price of the token in the previous settlement account period, k1 and k2 are preset coefficients, and satisfy k1<1<k2, which is lower than the previous settlement account A bid that is k1 times the exchange price of the current pass is regarded as k1 times the exchange price of the pass in the previous settlement account period, and a bid that is higher than k2 times the exchange price of the pass pass in the previous settlement account period is regarded as a pass in the previous settlement account period K2 times the exchange price. k1 defines the lower limit of the bid, the recommended value range of k1 is [0.5,0.8], and the recommended value is 0.5, 0.6 or 0.8. k2 defines the upper limit of the bid, the recommended value range of k2 is [1.2,1.6], and the recommended value is 1.2, 1.4 or 1.5.
这里假设业务系统A向业务系统B通过积分购买数字资产,流程如附图4所述。Here, it is assumed that business system A purchases digital assets from business system B through points, and the process is shown in Figure 4.
1、发布资产,业务系统B将数字资产简介信息、购买该数字资产需要的积分发送到业务系统B的跨链积分清算智能合约10。1. To publish assets, business system B sends the digital asset profile information and the points required to purchase the digital assets to the cross-chain points clearing
2、业务系统B的跨链积分清算智能合约10收到请求后,将数字资产信息同步到所有参与机构的跨链积分清算智能合约10中。2. After receiving the request, the cross-chain point clearing
3、业务系统A和机构C的跨链积分清算智能合约10记录业务系统B的数字资产。3. The
4、业务系统A的用户通过业务系统A的跨链积分清算智能合约10查询到需要的数字资产。4. Users of business system A query the required digital assets through the cross-chain points clearing
5、业务系统A的用户向跨链积分清算智能合约10A提交业务系统B的数字资产请求。5. The user of business system A submits the digital asset request of business system B to the cross-chain points clearing smart contract 10A.
6、通过跨链积分清算智能合约10将业务系统A的积分扣减、业务系统B的积分增加。6. Through the cross-chain points clearing
7、业务系统A的跨链积分清算智能合约10将业务系统A积分扣减、将业务系统B积分增加广播到所有参与机构的跨链积分清算智能合约10。7. The cross-chain points clearing
8、所有参与机构记录本次交易明细。8. All participating institutions record the transaction details.
9、各跨链积分清算智能合约10同步积分交易明细后,跨链积分清算智能合约10将A向业务系统A反馈购买成功。9. After each cross-chain point clearing
10、业务系统A的用户向业务系统B发送数字资产交割请求。10. The user of business system A sends a digital asset delivery request to business system B.
11、业务系统B向跨链积分清算智能合约10B核实积分交易。11. The business system B verifies the points transaction to the cross-chain points clearing smart contract 10B.
12、核实通过后,业务系统B将数字资产通过跨链技术交割给业务系统A。12. After the verification is passed, business system B will deliver the digital assets to business system A through cross-chain technology.
基于跨可信联盟链的数字资产跨链交易系统,用于执行如前述的基于跨可信联盟链的数字资产跨链交易方法,请参阅附图5,包括若干个跨链网关和若干个跨链积分清算智能合约10,跨链积分清算智能合约10发布在业务区块链上,若干个跨链积分清算智能合约10通过跨链网关建立连接,跨链积分清算智能合约10执行以下步骤:A digital asset cross-chain transaction system based on a cross-trusted alliance chain is used to implement the aforementioned cross-trusted alliance chain-based digital asset cross-chain transaction method, please refer to Figure 5, including several cross-chain gateways and several cross-chain Chain point clearing
接收业务系统20发送的资产发布信息,资产发布信息包括发布者身份标识、资产描述信息和积分售价,为资产分配资产编号,若干个跨链积分清算智能合约10之间同步资产发布信息;Receive the asset release information sent by the
接收业务系统20发送的资产查询请求,返回相应资产的资产编号;Receive the asset query request sent by the
接收业务系统20发送的资产购买请求,资产购买请求包括资产编号和购买者身份标识,跨链积分清算智能合约10生成积分转账信息并为资产购买请求赋予购买请求编号,积分转账信息为将积分售价相应的积分从购买者身份标识对应的账户转入发布者身份标识对应的账户,若干个跨链积分清算智能合约10同步积分转账信息;Receive the asset purchase request sent by the
接收资产购买请求的跨链积分清算智能合约10查询到积分转账信息已在若干个跨链积分清算智能合约10同步后,将资产购买请求标记为购买成功;The cross-chain point clearing
接收业务系统20发送的资产交割验证请求,资产交割验证请求包括相应的资产购买请求编号,若资产购买请求编号对应的资产购买请求状态为购买成功,则向业务系统20反馈允许交割,反之,则向业务系统20反馈不允许交割;Receive the asset delivery verification request sent by the
业务系统20接收数字资产交割请求,数字资产交割请求包括资产编号和资产购买请求编号,业务系统20收到允许交割反馈后,向跨链积分清算智能合约10发送资产交割验证请求,若收到允许交割的反馈,则生成数字资产交割交易并打包进当前区块存储,反之,则不做操作。The
以上显示和描述了本发明的基本原理、主要特征和本发明的优点。本行业的技术人员应该了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的只是说明本发明的原理,在不脱离本发明精神和范围的前提下,本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内。本发明要求保护范围由所附的权利要求书及其等效物界定。The basic principles, main features and advantages of the present invention have been shown and described above. Those skilled in the industry should understand that the present invention is not limited by the above-mentioned embodiments, and what described in the above-mentioned embodiments and the description only illustrates the principles of the present invention, and the present invention will also have other functions without departing from the spirit and scope of the present invention. Variations and improvements all fall within the scope of the claimed invention. The protection scope of the present invention is defined by the appended claims and their equivalents.
Claims (10)
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 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111899046A (en) * | 2020-07-03 | 2020-11-06 | 彭永强 | Digital rights benefit evidence and intelligent rights management method and system based on block chain technology |
CN112527913A (en) * | 2021-02-09 | 2021-03-19 | 北京全息智信科技有限公司 | Block chain cross-chain integral sharing method, device, electronic equipment and system |
CN113407640A (en) * | 2021-07-21 | 2021-09-17 | 杭州链网科技有限公司 | Multi-chain NFT (network File transfer) based chain crossing method and system |
-
2022
- 2022-11-17 CN CN202211438843.0A patent/CN115994824A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111899046A (en) * | 2020-07-03 | 2020-11-06 | 彭永强 | Digital rights benefit evidence and intelligent rights management method and system based on block chain technology |
CN112527913A (en) * | 2021-02-09 | 2021-03-19 | 北京全息智信科技有限公司 | Block chain cross-chain integral sharing method, device, electronic equipment and system |
CN113407640A (en) * | 2021-07-21 | 2021-09-17 | 杭州链网科技有限公司 | Multi-chain NFT (network File transfer) based chain crossing method and system |
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 |
---|---|---|
CN110163595B (en) | Prepaid consumption management method, system and storage medium based on block chain | |
US8626596B2 (en) | Online transaction method and system using a payment platform and a logistics company | |
CN111967860B (en) | Transaction system, method and node in transaction system | |
CN115994824A (en) | Cross-chain transaction method for digital asset based on cross-trusted alliance chain | |
JP6457391B2 (en) | Method and system for distributing data streams | |
CN1552045A (en) | payment device | |
US20060036530A1 (en) | Method and apparatus for facilitating micro energy derivatives transactions on a network system | |
CN109118102B (en) | Fair bidirectional combined cloud resource allocation method and system based on block chain | |
CN112017045A (en) | Digital asset off-site transaction system and method based on block chain | |
CN114358768A (en) | A NFT-based carbon emission trading method | |
CN110221919A (en) | Virtual resource allocation method and apparatus based on block chain | |
CN110503533A (en) | A multi-round auction method for heterogeneous spectrum based on blockchain | |
CN114266630A (en) | Blockchain-based e-commerce platform for Metaverse decentralization | |
CN114626922A (en) | Self-adaptive bidding multi-energy P2P trading platform based on block chain | |
CN108496195A (en) | Method and system for sealed bid auction | |
KR102329779B1 (en) | System for investing contents using crypto-currency based on blockchain and method thereof | |
CN113723952A (en) | Resource state information processing method and device and electronic equipment | |
JP2021099676A5 (en) | ||
CN110659992A (en) | Heavy metal transaction data processing method and device based on block chain | |
TW201013557A (en) | Online processing for offshore business transactions | |
CN114418630A (en) | Green certificate transaction pricing method based on smart contract | |
CN104599167A (en) | Knowledge trading system and method with knowledge service as center | |
CN108985591B (en) | A Risk Disposal Method of Agency Sales | |
CN116562997A (en) | Financial lease service system and method | |
JP2005135322A (en) | Settlement system, control tower and settlement method |
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 |