[go: up one dir, main page]

CN114358749A - A system and method for fast transaction of encrypted currency based on merchant alliance - Google Patents

A system and method for fast transaction of encrypted currency based on merchant alliance Download PDF

Info

Publication number
CN114358749A
CN114358749A CN202111529487.9A CN202111529487A CN114358749A CN 114358749 A CN114358749 A CN 114358749A CN 202111529487 A CN202111529487 A CN 202111529487A CN 114358749 A CN114358749 A CN 114358749A
Authority
CN
China
Prior art keywords
merchant
consumer
transaction
state
alliance
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.)
Granted
Application number
CN202111529487.9A
Other languages
Chinese (zh)
Other versions
CN114358749B (en
Inventor
陈晶
何琨
陈伟航
杜瑞颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN202111529487.9A priority Critical patent/CN114358749B/en
Publication of CN114358749A publication Critical patent/CN114358749A/en
Application granted granted Critical
Publication of CN114358749B publication Critical patent/CN114358749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a rapid transaction system and a rapid transaction method for cryptocurrency based on a merchant alliance. The data module provides a data structure foundation for the merchant alliance transaction method. The commercial tenant alliance module provides alliance establishing service for market managers and alliance joining service for commercial tenants. The chip transaction module uses a chip mechanism to provide daily transaction services for merchants and consumers. The flexible settlement module decouples the settlement of the merchant from the settlement of the consumer, and provides transaction settlement service for the merchant and the consumer. The state synchronization module provides a consumer chip information synchronization service for the merchant and helps the merchant to acquire the latest chip information. According to the invention, a new merchant alliance system is established, extra funds do not need to be paid by two transaction parties, the block chain transaction procedure fee in the transaction is reduced, and technical support is provided for the use of the cryptocurrency in the daily payment field.

Description

一种基于商户联盟的加密货币快速交易系统及方法A system and method for fast transaction of encrypted currency based on merchant alliance

技术领域technical field

本发明属于区块链技术领域,涉及一种加密货币交易系统及方法,具体涉及 一种基于商户联盟的加密货币快速交易系统及方法。The invention belongs to the technical field of block chain, relates to an encrypted currency transaction system and method, and in particular relates to a merchant alliance-based encrypted currency fast transaction system and method.

背景技术Background technique

基于区块链的加密货币在市场上具有极高的市值,截至2021年11月,加密 货币的总市值超过3万亿美元。其作为一种货币,天然可以在支付领域发挥作用, 支付巨头PayPal宣布允许用户使用加密货币向商户付款。戴尔、steam、特斯拉 也均接受比特币支付。但是,受限于区块链自身存在的问题,steam与特斯拉随 后宣布停止接受比特币作为支付方式。在日常生活中也几乎没有贸易市场接受加 密货币。Blockchain-based cryptocurrencies have extremely high market caps in the market, with a total market cap of over $3 trillion as of November 2021. As a currency, it can naturally play a role in the payment field. Payment giant PayPal announced that it will allow users to pay merchants with cryptocurrencies. Dell, steam, and Tesla also accept bitcoin payments. However, due to the problems of the blockchain itself, steam and Tesla subsequently announced that they would stop accepting bitcoin as a payment method. There are also few trading markets that accept cryptocurrencies in everyday life.

将加密货币的使用范围扩展到日常支付领域依旧困难重重,当前区块链存在以下局限性:Extending the use of cryptocurrencies to everyday payments is still difficult, and current blockchains have the following limitations:

支付确认的高延迟。High latency for payment confirmation.

高昂的手续费,也称区块链网络交易费用。区块链网络是由许多分布式节点共同维护的,他们负责打包交易并发送给邻近的网络节点,以此保证信息的公开透明。节点在打包交易并广播这些信息时会付出一定的资源,由此用户在进行交易时,每笔交易都会额外付出一定的交易手续费。High fees, also known as blockchain network transaction fees. The blockchain network is jointly maintained by many distributed nodes, who are responsible for packaging transactions and sending them to neighboring network nodes to ensure the openness and transparency of information. Nodes will pay a certain amount of resources when packaging transactions and broadcasting these information, so when users conduct transactions, each transaction will pay an additional transaction fee.

在实际支付场景下,商户需要在2秒内完成消费者支付确认。此外,由于日 常支付场景中存在的往往是高频小额交易,有时候会出现交易手续费高于交易金 额的情况,对于交易双方而言,过高成本的交易手续费显然是无法接受的,而现 有方案极少有对此进行处理优化。In the actual payment scenario, the merchant needs to complete the consumer payment confirmation within 2 seconds. In addition, since the daily payment scenarios are often high-frequency small-value transactions, sometimes the transaction fee is higher than the transaction amount. For both parties, the high-cost transaction fee is obviously unacceptable. However, there are very few existing solutions to deal with this optimization.

现有一些解决方案尝试将链上支付行为转移至链下,以此来解决支付确认的 高延迟问题。在状态通道中,交易双方事先支付交易押金费用,然后在链下进行 交易,更新双方状态,最后在链上汇总结算。但是由于状态通道的建立需要一定 的时间,如果想缩短支付确认时间,消费者必须提前与所有潜在的交易对象建立 状态通道,且在每个通道内都锁入押金,这无疑提高了加密货币在日常支付场景 中的使用门槛。Some existing solutions try to transfer the on-chain payment behavior to the off-chain to solve the problem of high latency of payment confirmation. In the state channel, both parties of the transaction pay the transaction deposit fee in advance, then conduct the transaction under the chain, update the state of both parties, and finally summarize and settle on the chain. However, since the establishment of the state channel takes a certain amount of time, if the consumer wants to shorten the payment confirmation time, the consumer must establish a state channel with all potential transaction objects in advance, and lock the deposit in each channel, which undoubtedly improves the cryptocurrency’s use in the market. The usage threshold in daily payment scenarios.

针对这一问题,文献提出了Snappy方案进行了一定的优化,该方案在商户 之间形成联盟,消费者只需要预先存入一定量的保证金,并在随后的交易中,确 保未上链交易总金额小于保证金即可,同时为了避免消费者与商户合谋,Snappy 要求商户也存入相同金额的保证金。但是在贸易市场中,消费者数量庞大,每位 商户都存在大量的资金被用作保证金,增加了商户的资金压力。In response to this problem, the literature proposes a certain optimization of the Snappy scheme. This scheme forms an alliance between merchants. Consumers only need to deposit a certain amount of security deposit in advance, and in subsequent transactions, ensure that the total amount of unlisted transactions is guaranteed. The amount is less than the deposit. At the same time, in order to prevent consumers from colluding with merchants, Snappy requires merchants to deposit the same amount of deposit. However, in the trade market, there are a large number of consumers, and each merchant has a large amount of funds used as a security deposit, which increases the financial pressure of the merchants.

综上所述,将加密货币应用于日常支付场景中需要满足以下要求:a)商户能 够在短时间内确认自己能够收到交易资金。b)商户与消费者均不需要准备额外资 金。c)尽可能降低交易手续费。In summary, the application of cryptocurrencies in daily payment scenarios needs to meet the following requirements: a) Merchants can confirm that they can receive transaction funds in a short period of time. b) Neither merchants nor consumers need to prepare additional funds. c) Reduce transaction fees as much as possible.

发明内容SUMMARY OF THE INVENTION

为了实现加密货币的快速交易,本发明提出了一种基于商户联盟的加密货币 快速交易系统及方法。In order to realize the fast transaction of encrypted currency, the present invention proposes a system and method for fast transaction of encrypted currency based on merchant alliance.

本发明的系统所采用的技术方案是:一种基于商户联盟的加密货币快速交易 系统,包括数据模块、商户联盟模块、筹码交易模块、灵活结算模块以及状态同 步模块;各模块具有特定的内容,执行对应的功能,共同提供加密货币快速交易 服务;The technical scheme adopted by the system of the present invention is: a fast transaction system of encrypted currency based on merchant alliance, comprising a data module, a merchant alliance module, a chip transaction module, a flexible settlement module and a state synchronization module; each module has specific content, Perform corresponding functions to jointly provide fast cryptocurrency transaction services;

所述数据模块,用于存储消费者状态数据与商户状态数据,所述消费者状态 数据包括消费者的当前交易情况、剩余资金情况,所述商户状态数据包括商户当 前可取出的资金量;所述消费者状态数据由消费者与商户共同更新维护,所述商 户状态数据由智能合约更新维护;The data module is used to store consumer status data and merchant status data, the consumer status data includes the current transaction status and remaining funds of the consumer, and the merchant status data includes the current amount of funds that the merchant can withdraw; The consumer status data is updated and maintained by the consumer and the merchant, and the merchant status data is updated and maintained by the smart contract;

所述商户联盟模块,用于为市场管理者以及商户提供联盟建立、加入服务, 在有加密货币交易需求的商户之间形成联盟关系,从而消费者只需要与联盟形成 状态通道,即可与联盟内的任意商户完成快速交易,缩短支付确认时间;The merchant alliance module is used to provide market managers and merchants with alliance establishment and joining services, and to form alliance relationships between merchants who have cryptocurrency transaction needs, so that consumers only need to form a status channel with the alliance, and then they can communicate with the alliance. Any merchant in the country can complete fast transactions and shorten payment confirmation time;

所述筹码交易模块,用于为商户以及消费者提供日常交易服务,该模块用筹 码代表消费者的资金交易情况,商户使用筹码判断消费者的剩余资金是否足够完 成本次交易,消费者不需要付出额外资金;The chip transaction module is used to provide daily transaction services for merchants and consumers. The module uses chips to represent consumers' capital transactions. The merchants use the chips to determine whether the remaining funds of the consumers are sufficient to complete the transaction. Consumers do not need to pay additional funds;

所述灵活结算模块,用于为商户以及消费者提供交易结算服务,该模块通过 将商户结算与消费者结算过程解耦,实现消费者和商户分开结算;为交易双方提 供更灵活的结算方式,减少区块链交易结算次数,从而降低区块链交易手续费;The flexible settlement module is used to provide transaction settlement services for merchants and consumers. The module realizes separate settlement between consumers and merchants by decoupling the settlement process of merchants and consumers. It provides more flexible settlement methods for both parties. Reduce the number of blockchain transaction settlements, thereby reducing blockchain transaction fees;

所述状态同步模块,用于为商户提供消费者筹码信息同步服务,包括交易时 状态同步信息和结算时状态同步信息,该模块帮助商户获取最新筹码信息,保证 商户能够根据最新筹码信息判断交易是否能够进行。The state synchronization module is used to provide the merchant with the consumer chip information synchronization service, including the transaction state synchronization information and the settlement state synchronization information, the module helps the merchant to obtain the latest chip information, and ensures that the merchant can judge whether the transaction is based on the latest chip information. able to proceed.

本发明的方法所采用的技术方案是:一种基于商户联盟的加密货币快速交易 方法,包括商户联盟构建、筹码交易、灵活结算及状态同步过程;The technical scheme adopted by the method of the present invention is: a method for fast transaction of encrypted currency based on merchant alliance, including the process of merchant alliance construction, chip transaction, flexible settlement and state synchronization;

所述商户联盟构建,具体实现包括以下步骤:The construction of the merchant alliance includes the following steps:

(1)市场管理者在加密货币快速交易系统中部署创建智能合约;(1) Market managers deploy and create smart contracts in the cryptocurrency fast trading system;

(2)智能合约随机创建公私钥,用于保证数据的可靠性;(2) The smart contract randomly creates public and private keys to ensure the reliability of the data;

(3)智能合约创建初始商户状态Sig,Sig代表智能合约签名;(3) The smart contract creates the initial merchant state Sig, and Sig represents the smart contract signature;

(4)商户向智能合约发送加入申请,同时附带商户签名与账户地址;(4) The merchant sends a joining application to the smart contract, accompanied by the merchant's signature and account address;

(5)智能合约验证签名后,更新商户状态(Sig,(pki,0)),以账户地址作为商 户标识符;其中,pki表示商户i的公钥,0表示商户i的可取出资金;(5) After the smart contract verifies the signature, update the merchant status (Sig,(pk i ,0)), and use the account address as the merchant identifier; where pk i represents the public key of the merchant i, and 0 represents the withdrawable funds of the merchant i ;

(6)智能合约将与该商户相关的商户状态签名后发送给对应商户,以作验 证。(6) The smart contract will sign the merchant status related to the merchant and send it to the corresponding merchant for verification.

本发明相比现有技术,其优点和积极效果主要体现在以下几个方面:Compared with the prior art, the advantages and positive effects of the present invention are mainly reflected in the following aspects:

(1)本发明设计了一种新型商户联盟方案,在有加密货币交易需求的商户 之间形成联盟,能够有效缩短支付确认时延。(1) The present invention designs a new type of merchant alliance scheme, which forms an alliance between merchants with cryptocurrency transaction requirements, which can effectively shorten the payment confirmation delay.

(2)本发明设计了一种筹码交易机制,使用筹码机制代替了现有的保证金 机制,使用户不再准备需要额外的资金,降低了加密货币在日常支付中的使用门 槛。(2) The present invention designs a chip transaction mechanism, using the chip mechanism to replace the existing margin mechanism, so that users no longer need to prepare additional funds, and lower the threshold for the use of encrypted currency in daily payments.

(3)本发明设计了一种灵活结算机制,将消费者结算与商户结算解耦,将 商户交易获取的资金暂存在智能合约中,仅在商户取出资金需求时,才完成商户 结算转账,从而减少区块链交易次数,降低区块链交易手续费。(3) The present invention designs a flexible settlement mechanism, which decouples consumer settlement from merchant settlement, temporarily stores the funds obtained from merchant transactions in the smart contract, and completes merchant settlement and transfer only when the merchant needs to withdraw funds. Reduce the number of blockchain transactions and reduce blockchain transaction fees.

附图说明Description of drawings

图1为本发明的系统原理图;Fig. 1 is the system principle diagram of the present invention;

图2为本发明的系统整体框架图;Fig. 2 is the overall frame diagram of the system of the present invention;

图3为本发明实施例中商户联盟方法流程图;3 is a flowchart of a merchant alliance method in an embodiment of the present invention;

图4为本发明实施例中筹码交易方法流程图;4 is a flowchart of a chip transaction method in an embodiment of the present invention;

图5为本发明实施例中灵活结算方法流程图;5 is a flowchart of a flexible settlement method in an embodiment of the present invention;

图6为本发明实施例中状态同步方法流程图。FIG. 6 is a flowchart of a state synchronization method in an embodiment of the present invention.

具体实施方式Detailed ways

为了便于本领域普遍技术人员的理解和实施本发明,下面结合附图及实施例 对本发明作为进一步的详细描述,应当理解,此处所描述的实施示例仅用于说明 和解释本发明,并不用于限定本发明。In order to facilitate the understanding and implementation of the present invention by those skilled in the art, the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the embodiments described herein are only used to illustrate and explain the present invention, not The invention is limited.

请见图1和图2,本发明提供的一种基于商户联盟的加密货币快速交易系统, 包括数据模块、商户联盟模块、筹码交易模块、灵活结算模块、状态同步模块; 数据模块用于为加密货币快速交易体系提供数据基础;商户联盟模块用于为市场 管理者与商户提供联盟建议以及加入服务;筹码交易模块用于为交易者提供加密 货币快速交易服务,在交易过程中使用消费者状态记录消费者的交易情况,商户 根据消费者状态来判断消费者的剩余资金是否足以支撑此次交易;灵活结算模块 用于为消费者与商户提供更便捷的结算服务,将消费者结算与商户结算解耦,将 商户交易获取的资金暂存在智能合约中,仅在商户取出资金需求时,才完成商户 结算转账,从而减少区块链交易次数,降低区块链交易手续费;状态同步模块用 于在商户之间、智能合约与用户之间同步消费者状态,在交易时同步最新消费者 状态,在结算时使智能合约获知最新消费者状态。Please refer to FIG. 1 and FIG. 2 , a merchant alliance-based fast transaction system for encrypted currency provided by the present invention includes a data module, a merchant alliance module, a chip transaction module, a flexible settlement module, and a state synchronization module; the data module is used for encryption The currency fast transaction system provides the data foundation; the merchant alliance module is used to provide alliance recommendations and joining services for market managers and merchants; the chip transaction module is used to provide traders with cryptocurrency fast transaction services, using consumer status records in the transaction process. The transaction status of consumers, the merchant judges whether the remaining funds of the consumer are enough to support the transaction according to the status of the consumer; the flexible settlement module is used to provide more convenient settlement services for consumers and merchants, and solve the settlement between consumers and merchants. Coupling, the funds obtained by merchant transactions are temporarily stored in the smart contract, and the merchant settlement transfer is completed only when the merchant needs to withdraw funds, thereby reducing the number of blockchain transactions and reducing the transaction fee of the blockchain; the state synchronization module is used in the The consumer status is synchronized between merchants, smart contracts and users, the latest consumer status is synchronized during transactions, and the smart contract is informed of the latest consumer status during settlement.

本实施例中,数据模块用于为商户联盟交易方法提供数据结构基础,定义了 方法中的数据格式,包括消费者状态与商户状态两种数据结构,为加密货币交易 方法提供了数据结构基础,用于记录各方交易状态,为交易、结算提供数据支撑。 其中,消费者状态记录该消费者的当前交易情况、剩余资金情况。商户在交易时 根据最新消费者状态判断该消费者的剩余资金是否足以支撑本次交易,智能合约 在结算时根据该消费者状态完成资金分配。消费者状态由消费者与商户共同更新 维护。消费者状态记录各商户当前可取出的资金量。商户状态由智能合约更新维 护。In this embodiment, the data module is used to provide a data structure basis for the merchant alliance transaction method, defines the data format in the method, including two data structures of consumer status and merchant status, and provides a data structure basis for the cryptocurrency transaction method, It is used to record the transaction status of all parties and provide data support for transactions and settlements. Among them, the consumer status records the current transaction situation and the remaining funds situation of the consumer. During the transaction, the merchant judges whether the consumer's remaining funds are sufficient to support the transaction based on the latest consumer status, and the smart contract completes the fund allocation based on the consumer's status during settlement. Consumer status is updated and maintained jointly by consumers and merchants. The consumer status records the current amount of funds that each merchant can withdraw. Merchant status is maintained by smart contract updates.

本发明提供的一种基于商户联盟的加密货币快速交易方法,包括商户联盟构 建、筹码交易、灵活结算及状态同步过程。The invention provides a method for fast transaction of encrypted currency based on merchant alliance, which includes the process of merchant alliance establishment, chip transaction, flexible settlement and state synchronization.

请见图3,本实施例中商户联盟构建,共n家商户,具体过程包括以下步骤:Referring to Figure 3, in this embodiment, the merchant alliance is constructed, with a total of n merchants, and the specific process includes the following steps:

步骤1:市场管理者在加密货币快速交易系统中部署创建智能合约;Step 1: Market managers deploy and create smart contracts in the cryptocurrency fast trading system;

本实施例采用的智能合约是一项现有的区块链技术,是写在区块链中的可执 行代码,可看作是一个可信的执行方。The smart contract used in this embodiment is an existing blockchain technology, which is executable code written in the blockchain, and can be regarded as a trusted executor.

步骤2:智能合约随机创建公私钥,用于保证数据的可靠性。Step 2: The smart contract randomly creates a public and private key to ensure the reliability of the data.

步骤3:智能合约创建初始商户状态(Sig),Sig代表智能合约签名。Step 3: The smart contract creates the initial merchant state (Sig), and Sig represents the smart contract signature.

步骤4:市场商户向智能合约发送加入申请,同时附带商户签名与账户地址。Step 4: The market merchant sends a joining application to the smart contract, along with the merchant's signature and account address.

步骤5:智能合约验证签名后,更新商户状态(Sig,(pki,0)),以账户地址作为 商户标识符;其中,pki表示商户i的公钥,0表示商户i的可取出资金。Step 5: After the smart contract verifies the signature, update the merchant status (Sig, (pk i , 0)), and use the account address as the merchant identifier; where pk i represents the public key of the merchant i, and 0 represents the withdrawable funds of the merchant i .

步骤6:智能合约将与该商户相关的商户状态签名后发送给对应商户,以作 验证。Step 6: The smart contract signs the merchant status related to the merchant and sends it to the corresponding merchant for verification.

请见图4,本实施例的筹码交易,具体过程包括以下步骤:Referring to Figure 4, the chip transaction in this embodiment, the specific process includes the following steps:

步骤1:消费者向智能合约发送签名并转入预计开销的资金V。Step 1: The consumer sends a signature to the smart contract and transfers the estimated spending funds V.

步骤2:智能合约创建对应初始消费者状态(Sig,V,0,…,0),表示该消费者剩 余资金为V,与其他商户的交易额均为0,并对初始消费者状态签名,以防恶意 用户假造消费者状态;Step 2: The smart contract creates the corresponding initial consumer state (Sig, V, 0, ..., 0), indicating that the consumer's remaining funds are V, and the transaction amount with other merchants is 0, and the initial consumer state is signed, To prevent malicious users from falsifying consumer status;

本实施例的筹码就是消费者状态。The chip in this embodiment is the consumer state.

步骤3:智能合约向商户同步该消费者状态。Step 3: The smart contract synchronizes the consumer status with the merchant.

步骤4:消费者向商户i付款Vj时,由消费者更新消费者状态,需要更新包 括消费者剩余金额、对应商户交易金额,更新后消费者状态为(Sig,V-Vj,0,…, Vj,…,0),并对消费者状态签名;Step 4: When the consumer pays V j to the merchant i, the consumer updates the status of the consumer, which needs to be updated including the remaining amount of the consumer and the transaction amount of the corresponding merchant. After the update, the status of the consumer is (Sig, VV j , 0, ..., V j , ..., 0), and sign the consumer state;

步骤5:商户验证最新消费者状态,判断消费者剩余金额的变动值与自己金 额的变动值是否相等,同时保证只有商户与消费者的资金发生了变动。Step 5: The merchant verifies the latest consumer status, determines whether the change in the remaining amount of the consumer is equal to the change in the amount of the consumer, and at the same time ensures that only the funds of the merchant and the consumer have changed.

请见图5,本实施例的状态同步,具体过程包括以下步骤:Please refer to Fig. 5, the state synchronization of this embodiment, the specific process includes the following steps:

步骤1:交易商户向其他商户广播消费者状态。Step 1: The transaction merchant broadcasts the consumer status to other merchants.

步骤2:其他商户对消费者状态进行验证。Step 2: Other merchants verify the consumer status.

步骤3:用户向智能合约发送最新消费者状态。Step 3: The user sends the latest consumer status to the smart contract.

步骤4:智能合约验证最新消费者状态。Step 4: The smart contract verifies the latest consumer status.

请见图6,本实施例的灵活结算,具体过程包括以下步骤:Referring to Figure 6, the flexible settlement in this embodiment, the specific process includes the following steps:

步骤1:消费者向智能合约发送结算申请。Step 1: The consumer sends a settlement application to the smart contract.

步骤2:智能合约进行结算时状态安全同步,依据多数原则判断消费者状态;Step 2: The status of the smart contract is securely synchronized during settlement, and the consumer status is judged according to the principle of majority;

本实施例中,依据多数原则,联盟中商户向智能合约发送消费者状态,由于 联盟中诚实商户占多数(此处为安全假设),智能合约能够得到正确的消费者状 态。In this embodiment, according to the principle of majority, the merchants in the alliance send the consumer status to the smart contract. Since the honest merchants in the alliance account for the majority (here is a security assumption), the smart contract can obtain the correct consumer status.

步骤3:智能合约将消费者剩余资金退还给消费者。Step 3: The smart contract returns the consumer's remaining funds to the consumer.

步骤4:智能合约根据消费者状态更新商户状态(Sig,(pk1,0),…,(pki,Vj),…,(pkn,0));Step 4: The smart contract updates the merchant state according to the consumer state (Sig, (pk 1 ,0),...,(pk i ,V j ),...,(pk n ,0));

步骤5:智能合约将新的商户状态发送给对应商户,用于确认。Step 5: The smart contract sends the new merchant status to the corresponding merchant for confirmation.

步骤6:商户向智能合约提出结算申请。Step 6: The merchant submits a settlement application to the smart contract.

步骤7:商户申请验证通过后,智能合约根据商户状态向商户转账。Step 7: After the merchant's application is verified, the smart contract transfers money to the merchant according to the merchant's status.

步骤8:智能合约更新商户状态(Sig,(pk1,0),…,(pkn,0))。Step 8: The smart contract updates the merchant status (Sig,(pk 1 ,0),…,(pk n ,0)).

本发明能够提供:The present invention can provide:

1.商户联盟方法:本方法将市场中有加密货币交易需求的商户连成联盟。 能够有效缩短支付确认时延。1. Merchant alliance method: This method connects merchants who have cryptocurrency transaction needs in the market into an alliance. It can effectively shorten the payment confirmation delay.

2.筹码交易方法:用于为交易者提供加密货币快速交易服务,在交易过程 中使用消费者状态记录消费者的交易情况,商户根据消费者状态来判断消费者的 剩余资金是否足以支撑此次交易。2. Chip transaction method: It is used to provide traders with fast cryptocurrency transaction services. During the transaction process, the consumer status is used to record the consumer's transaction status. The merchant judges whether the consumer's remaining funds are sufficient to support the transaction according to the consumer's status. trade.

3.灵活结算方法:用于为消费者与商户提供更便捷的结算服务,将消费者 结算与商户结算解耦,将商户交易获取的资金暂存在智能合约中,仅在商户取出 资金需求时,才完成商户结算转账,从而减少区块链交易次数,降低区块链交易 手续费。3. Flexible settlement method: It is used to provide more convenient settlement services for consumers and merchants, decouple consumer settlement from merchant settlement, and temporarily store funds obtained from merchant transactions in smart contracts. Only when merchants need to withdraw funds, Merchant settlement transfer is completed, thereby reducing the number of blockchain transactions and reducing blockchain transaction fees.

4.状态同步方法:用于在商户之间、智能合约与用户之间同步消费者状态, 在交易时同步最新消费者状态,在结算时使智能合约获知最新消费者状态。4. State synchronization method: It is used to synchronize consumer status between merchants, smart contracts and users, synchronize the latest consumer status during transactions, and let smart contracts know the latest consumer status during settlement.

应当理解的是,上述针对较佳实施例的描述较为详细,并不能因此而认为是 对本发明专利保护范围的限制,本领域的普通技术人员在本发明的启示下,在不 脱离本发明权利要求所保护的范围情况下,还可以做出替换或变形,均落入本发 明的保护范围之内,本发明的请求保护范围应以所附权利要求为准。It should be understood that the above description of the preferred embodiments is relatively detailed, and therefore should not be considered as a limitation on the protection scope of the patent of the present invention. In the case of the protection scope, substitutions or deformations can also be made, which all fall within the protection scope of the present invention, and the claimed protection scope of the present invention shall be subject to the appended claims.

Claims (5)

1. A rapid transaction system of cryptocurrency based on merchant alliance is characterized in that: the system comprises a data module, a merchant alliance module, a chip transaction module, a flexible settlement module and a state synchronization module;
the data module is used for storing consumer state data and merchant state data, the consumer state data comprises the current transaction condition and the remaining fund condition of the consumer, and the merchant state data comprises the amount of funds which can be taken out by the merchant at present; the consumer state data is updated and maintained by a consumer and a merchant together, and the merchant state data is updated and maintained by an intelligent contract;
the merchant alliance module is used for providing alliance establishing and adding services for market managers and merchants, forming alliance relations among merchants with encrypted currency transaction requirements, and enabling consumers to complete rapid transactions with any merchant in an alliance only by forming a state channel with the alliance;
the chip transaction module is used for providing transaction service for the merchant and the consumer, the chip represents the fund transaction condition of the consumer, the merchant uses the chip to judge whether the residual fund of the consumer is enough to complete the transaction, and the consumer does not need to pay extra fund;
the flexible settlement module is used for providing transaction settlement service for merchants and consumers, and the consumer and the merchants are separately settled by decoupling the merchant settlement and the consumer settlement process;
the state synchronization module is used for providing a consumer chip information synchronization service for the merchant, the consumer chip information synchronization service comprises state synchronization information during transaction and state synchronization information during settlement, the merchant acquires the latest chip information, and whether the transaction can be carried out or not is judged according to the latest chip information.
2. A rapid encrypted currency transaction method based on merchant alliance is characterized in that: the method comprises the processes of merchant alliance construction, chip transaction, flexible settlement and state synchronization;
the merchant alliance construction specifically comprises the following steps:
(1) a market manager deploys and creates an intelligent contract in the cryptocurrency rapid transaction system;
(2) the intelligent contract randomly creates a public key and a private key for ensuring the reliability of data;
(3) the intelligent contract creates an initial merchant state Sig, and the Sig represents an intelligent contract signature;
(4) a merchant sends a joining application to an intelligent contract, and is accompanied with a merchant signature and an account address;
(5) after the intelligent contract verifies the signature, the state of the merchant (Sig, (pk) is updatedi0)), the account address as the merchant identifier; wherein, pkiA public key representing the merchant i, 0 representing the extractable funds of the merchant i;
(6) the intelligent contract sends the merchant state signature related to the merchant to the corresponding merchant for verification.
3. The merchant alliance-based cryptocurrency fast transaction method according to claim 2, wherein the chip transaction is realized by the following steps:
(1) the consumer sends a signature to the intelligent contract and transfers the fund V with the predicted expense;
(2) the intelligent contract creates a corresponding initial consumer state (Sig, V,0, …,0) which represents that the residual fund of the consumer is V and the transaction amount with other merchants is 0, and signs the initial consumer state to prevent a malicious user from falsifying the consumer state; the consumer status is a chip;
(3) the intelligent contract synchronizes the consumer state to the merchant;
(4) payment V from consumer to merchant ijThen, the consumer updates the consumer state including the residual amount of the consumer and the transaction amount of the corresponding merchant, and the updated consumer state is (Sig, V-V)j,0,…,Vj…,0) and signs the consumer status;
(5) the merchant verifies the latest consumer state, judges whether the variation value of the residual amount of the consumer is equal to the variation value of the amount of the consumer, and simultaneously ensures that only the funds of the merchant and the consumer are changed.
4. The merchant alliance-based cryptocurrency fast transaction method as claimed in claim 2, wherein the state synchronization is implemented by the following steps:
(1) the transaction merchant broadcasts the consumer state to other merchants;
(2) other merchants verify the consumer status;
(3) the user sends the latest consumer state to the intelligent contract;
(4) the smart contract verifies the latest consumer status.
5. The merchant alliance-based cryptocurrency fast transaction method as claimed in claim 2, wherein the flexible settlement comprises the following steps:
(1) the consumer sends a settlement application to the intelligent contract;
(2) the state is safe and synchronous when the intelligent contract is settled, and the state of the consumer is judged according to a majority principle;
(3) the intelligent contract returns the residual funds of the consumer to the consumer;
(4) the intelligent contract updates the state of the merchant (Sig, (pk) according to the state of the consumer1,0),…,(pki,Vj),…,(pkn,0));
And 5: the intelligent contract sends the new merchant state to the corresponding merchant for confirmation;
step 6: the merchant makes settlement application to the intelligent contract;
and 7: after the merchant application and verification pass, the intelligent contract transfers accounts to the merchant according to the merchant state;
and 8: intelligent contract updating commercial tenant state (Sig, (pk)1,0),…,(pkn,0))。
CN202111529487.9A 2021-12-14 2021-12-14 A fast cryptocurrency transaction system and method based on merchant alliance Active CN114358749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111529487.9A CN114358749B (en) 2021-12-14 2021-12-14 A fast cryptocurrency transaction system and method based on merchant alliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111529487.9A CN114358749B (en) 2021-12-14 2021-12-14 A fast cryptocurrency transaction system and method based on merchant alliance

Publications (2)

Publication Number Publication Date
CN114358749A true CN114358749A (en) 2022-04-15
CN114358749B CN114358749B (en) 2025-02-14

Family

ID=81099252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111529487.9A Active CN114358749B (en) 2021-12-14 2021-12-14 A fast cryptocurrency transaction system and method based on merchant alliance

Country Status (1)

Country Link
CN (1) CN114358749B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150363770A1 (en) * 2014-06-16 2015-12-17 Bank Of America Corporation Cryptocurrency Transaction Payment System
US20190081789A1 (en) * 2017-09-13 2019-03-14 Vijay K. Madisetti Tokens or crypto currency using smart contracts and blockchains
US20190220856A1 (en) * 2018-01-12 2019-07-18 Xi Li Techniques for conducting transactions utilizing cryptocurrency
US20200364686A1 (en) * 2019-05-15 2020-11-19 Flowency, LLC. Method of executing conventional purchase transactions using cryptocurrency
CN112308547A (en) * 2020-09-16 2021-02-02 电子科技大学 Digital asset transaction method based on alliance chain
CN112465643A (en) * 2020-12-17 2021-03-09 赖源发 Settlement method on block chain
KR20210086832A (en) * 2019-12-30 2021-07-09 동국대학교 산학협력단 Method of providing transaction histories of cryptocurrency in real time
CN113537958A (en) * 2021-07-12 2021-10-22 北京极智数仓科技有限公司 Transaction method, system, medium and transaction system based on digital currency

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150363770A1 (en) * 2014-06-16 2015-12-17 Bank Of America Corporation Cryptocurrency Transaction Payment System
US20190081789A1 (en) * 2017-09-13 2019-03-14 Vijay K. Madisetti Tokens or crypto currency using smart contracts and blockchains
US20190220856A1 (en) * 2018-01-12 2019-07-18 Xi Li Techniques for conducting transactions utilizing cryptocurrency
US20200364686A1 (en) * 2019-05-15 2020-11-19 Flowency, LLC. Method of executing conventional purchase transactions using cryptocurrency
KR20210086832A (en) * 2019-12-30 2021-07-09 동국대학교 산학협력단 Method of providing transaction histories of cryptocurrency in real time
CN112308547A (en) * 2020-09-16 2021-02-02 电子科技大学 Digital asset transaction method based on alliance chain
CN112465643A (en) * 2020-12-17 2021-03-09 赖源发 Settlement method on block chain
CN113537958A (en) * 2021-07-12 2021-10-22 北京极智数仓科技有限公司 Transaction method, system, medium and transaction system based on digital currency

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈伟航等: "基于商户联盟的区块链快速交易方案", 武汉大学学报(理学版), 28 February 2023 (2023-02-28), pages 1 - 7 *

Also Published As

Publication number Publication date
CN114358749B (en) 2025-02-14

Similar Documents

Publication Publication Date Title
CN110458557B (en) Payment method, payment equipment and storage medium
US11321783B2 (en) Method and device for data processing based on blockchain
US10977632B2 (en) Electronic bill management method, apparatus, and storage medium
TWI640937B (en) Online payment method and equipment
CN113409143B (en) Asset transfer method and device based on blockchain, and electronic device
CN110659906B (en) Bill information processing method, related device and medium
JP5461992B2 (en) System and method for making payments
CN113421166B (en) Asset clearing method and device based on blockchain, and electronic equipment
CN108320228A (en) Transregional piece of chain transaction in assets method, platform, equipment and storage medium
CN110533405B (en) Cross-border mobile payment information processing method, device, system and storage medium
CN113421156B (en) Asset management method and device based on blockchain, and electronic equipment
KR20200016389A (en) Smart Contract Based Credit Network
CN109242483A (en) A kind of dual trading method and system based on centralization and decentralization
CN108229954B (en) A method and system for depositing coins based on a digital currency wallet
CN107392578B (en) Indirect payment method and system for digital currency
CN110223067B (en) An off-chain one-to-many payment method and system with decentralization characteristics
WO2022262527A1 (en) Digital currency-based payment method, platform, terminal, and payment system
KR101839346B1 (en) Cloud payment system
CN110417917B (en) Method, system, computer device and medium for ticket circulation
US11935065B2 (en) Systems and methods for implementing offline protocol in CBDC networks using collateral chain
KR102075956B1 (en) Method for paying based on blockchain and payment server using the same
WO2023201359A2 (en) Method, controller, and computer readable medium for detecting expiration of a unique cryptographic identifier on a distributed transfer network
CN110728523A (en) Transaction processing method, device, equipment and storage medium for electronic wallet
CN114358749A (en) A system and method for fast transaction of encrypted currency based on merchant alliance
CN109146478A (en) For operating the method, apparatus and medium of digital certificate in block chain network

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
GR01 Patent grant
GR01 Patent grant