WO2023078124A1 - Blockchain-based cross-border remittance - Google Patents

Blockchain-based cross-border remittance Download PDF

Info

Publication number
WO2023078124A1
WO2023078124A1 PCT/CN2022/127252 CN2022127252W WO2023078124A1 WO 2023078124 A1 WO2023078124 A1 WO 2023078124A1 CN 2022127252 W CN2022127252 W CN 2022127252W WO 2023078124 A1 WO2023078124 A1 WO 2023078124A1
Authority
WO
WIPO (PCT)
Prior art keywords
remittance
cross
border
smart contract
information
Prior art date
Application number
PCT/CN2022/127252
Other languages
French (fr)
Chinese (zh)
Inventor
韩喆
陈聪明
刘肖飞
Original Assignee
支付宝(杭州)信息技术有限公司
蚂蚁区块链科技(上海)有限公司
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 支付宝(杭州)信息技术有限公司, 蚂蚁区块链科技(上海)有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2023078124A1 publication Critical patent/WO2023078124A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/108Remote banking, e.g. home banking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/381Currency conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

Disclosed are a blockchain-based cross-border remittance method and apparatus, and an electronic device. In the present application, cross-chain communication is performed on the basis of a first smart contract deployed in a first blockchain and a second smart contract deployed in a second blockchain; account fund information stored in the second blockchain and related to a cross-border remittance service is obtained, and data verification is performed on the account fund information and remittance information stored in the first blockchain; a transaction state of the cross-border remittance service is updated and maintained according to the data verification result. On one hand, data consistency of cross-chain data related to the cross-border remittance service is ensured; on the other hand, a cross-border remittance participant can inquire and confirm the transaction state of the cross-border remittance service in real time on the basis of the decentralized architecture of the blockchain and the characteristic that data cannot be tampered, thereby improving the transparency and security of cross-border remittance.

Description

基于区块链的跨境汇款Blockchain-based cross-border remittance 技术领域technical field
本说明书一个或多个实施例涉及区块链技术领域,尤其涉及一种基于区块链的跨境汇款方法及装置、电子设备。One or more embodiments of this specification relate to the field of blockchain technology, and in particular to a blockchain-based cross-border remittance method, device, and electronic equipment.
背景技术Background technique
跨境汇款,是指用户在规定的汇款限额之内,向境外银行开户的收款账户进行汇款的业务。传统的跨境汇款主要基于SWIFT(society for worldwide interbank financial telecommunications,环球同业银行金融电信协会或环球银行间金融通信协会)系统建立汇款通道来实现。然而,基于SWIFT通道进行跨境汇款时,由于SWIFT系统涉及多个中间银行的银行间调拨和人工操作,所以导致跨境汇款的时效性差和手续费高,比如:一般需要2-5天跨境汇款才能到账,汇款涉及的每个中间环节都会收费。Cross-border remittance refers to the business in which the user remits money to the receiving account opened in an overseas bank within the prescribed remittance limit. Traditional cross-border remittances are mainly based on the SWIFT (society for worldwide interbank financial telecommunications, Society for Worldwide Interbank Financial Telecommunications or Society for Worldwide Interbank Financial Telecommunications) system to establish a remittance channel. However, when conducting cross-border remittances based on the SWIFT channel, since the SWIFT system involves inter-bank transfers and manual operations of multiple intermediary banks, the timeliness of cross-border remittances is poor and the handling fees are high. For example, it generally takes 2-5 days to cross-border The remittance can only arrive at the account, and every intermediate link involved in the remittance will be charged.
另外,针对跨境汇款的数额及频次都较少的消费者用户(C类用户),速汇公司虽然可以为其提供小时级到账的跨境汇款的速汇方案,但是该速汇方案依托于速汇公司自身的跨境汇款交易系统,而针对跨境汇款的数额及频次都较多且自己拥有跨境汇款交易系统的商业机构(B类机构),无法安全可信地依托于速汇公司的中心化的跨境汇款交易系统。In addition, for consumers whose cross-border remittance amount and frequency are relatively small (C-type users), although Money Transfer can provide them with hour-level cross-border Due to the company's own cross-border remittance transaction system, commercial organizations (type B institutions) that have a large amount and frequency of cross-border remittances and have their own cross-border remittance transaction systems cannot rely on Money Remittance safely and credibly. The company's centralized cross-border remittance transaction system.
区块链技术,也被称之为分布式账本技术,是一种由若干台计算设备共同参与“记账”,共同维护一份完整的分布式数据库的新兴技术。由于区块链技术具有去中心化、公开透明、每台计算设备可以参与数据库记录、并且各计算设备之间可以快速的进行数据同步的特性,使得区块链技术已在众多的领域中广泛的进行应用。Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices jointly participate in "bookkeeping" and jointly maintain a complete distributed database. Due to the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and fast data synchronization between computing devices, blockchain technology has been widely used in many fields. to apply.
发明内容Contents of the invention
本说明书提出一种基于区块链的跨境汇款方法,应用于基于第一区块链和第二区块链搭建的跨境汇款管理系统。其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与所述跨境汇款业务对应的汇款信息;所述方法包括:在确定所述交易状态指示跨境汇款参与方对所述汇款信息确认通过时,调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态;在所述划拨状态指示与所述账户资金信息对应的账户资金已划拨成功时, 进一步调用第一智能合约对所述账户资金信息和所述汇款信息进行数据核验,并基于数据核验结果更新所述交易状态,以使跨境汇款参与方在所述交易状态指示成功时,执行与汇款信息对应的跨境汇款。This manual proposes a blockchain-based cross-border remittance method, which is applied to a cross-border remittance management system based on the first blockchain and the second blockchain. Among them, the first smart contract for maintaining the transaction status of the cross-border remittance participants in the cross-border remittance business is deployed in the first block chain; the accounts for maintaining the cross-border remittance participants are deployed in the second block chain The second smart contract of the transfer status of the fund information; the first smart contract and the second smart contract are bound to each other for cross-chain communication; the remittance information corresponding to the cross-border remittance business is stored in the first block chain; The method includes: when it is determined that the transaction status indicates that the cross-border remittance participant has confirmed the remittance information, calling the query logic in the first smart contract to cross-chain call the second smart contract to query and obtain the account maintained by the second smart contract The transfer status of the fund information; when the transfer status indicates that the account funds corresponding to the account fund information have been transferred successfully, further call the first smart contract to perform data verification on the account fund information and the remittance information, and based on The data verification result updates the transaction status, so that the cross-border remittance participant executes the cross-border remittance corresponding to the remittance information when the transaction status indicates success.
可选的,所述跨境汇款参与方包括汇款发起方,所述方法还包括:接收汇款发起方发起的将所述汇款信息进行存证的存证请求;响应于所述存证请求,调用第一智能合约的存证逻辑将所述汇款信息存证在第一区块链中。Optionally, the cross-border remittance participant includes a remittance initiator, and the method further includes: receiving a certificate deposit request for depositing the remittance information initiated by the remittance initiator; in response to the certificate deposit request, calling The deposit logic of the first smart contract deposits the remittance information in the first block chain.
可选的,所述汇款信息包括汇款账号、汇款金额、汇款币种和收款账号;所述调用第一智能合约的存证逻辑将所述汇款信息存证在第一区块链中,包括:调用第一智能合约中的存证逻辑将汇款账号、汇款金额、汇款币种和收款账号保存在第一区块链中。Optionally, the remittance information includes remittance account number, remittance amount, remittance currency, and remittance account number; the deposit logic of calling the first smart contract stores the remittance information in the first block chain, including : Call the deposit logic in the first smart contract to save the remittance account number, remittance amount, remittance currency and collection account number in the first blockchain.
可选的,所述跨境汇款参与方还包括流动性提供方;所述方法还包括:流动性提供方从第一区块链获取所述汇款金额和所述汇款币种,以使流动性提供方基于所述汇款金额和所述汇款币种进行流动性计算,得到与所述汇款币种对应的汇率以及所述汇款金额在所述汇率下的第一汇款金额,将第一汇款金额更新至链上存证的所述汇款信息中。Optionally, the cross-border remittance participant also includes a liquidity provider; the method further includes: the liquidity provider obtains the remittance amount and the remittance currency from the first block chain, so that the liquidity The provider performs liquidity calculation based on the remittance amount and the remittance currency, obtains the exchange rate corresponding to the remittance currency and the first remittance amount of the remittance amount under the exchange rate, and updates the first remittance amount to the remittance information stored on the chain.
可选的,所述跨境汇款参与方还包括汇款接收方;所述方法还包括:汇款接收方从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以及将对所述汇款信息的确认结果存证于第一区块链中。Optionally, the cross-border remittance participant also includes a remittance receiver; the method further includes: the remittance receiver acquires the remittance information from the first block chain and confirms the acquired remittance information, and The confirmation result of the remittance information is stored in the first block chain.
可选的,所述跨境汇款参与方还包括收付款机构;所述方法还包括:收付款机构从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以及将对所述汇款信息的确认结果存证于第一区块链中。Optionally, the cross-border remittance participant also includes a collection and payment institution; the method further includes: the collection and payment institution obtains the remittance information from the first block chain and confirms the obtained remittance information, and sends The confirmation result of the remittance information is stored in the first block chain.
可选的,所述账户资金信息包括从跨境汇款参与方在第二区块链中存证的账户资金中划出的用于跨境汇款业务的划拨金额;所述调用第一智能合约对所述账户资金信息和所述汇款信息进行数据核验,包括:调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到所述划拨金额,并将所述划拨金额存证于第一区块链中;调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,并将基于数据核验结果存证于第一区块链中。Optionally, the account fund information includes the transfer amount for the cross-border remittance business transferred from the account funds deposited by the cross-border remittance participant in the second block chain; The data verification of the account fund information and the remittance information includes: calling the query logic in the first smart contract to cross-chain call the second smart contract to query the transfer amount, and deposit the transfer amount in the first In the block chain: call the verification logic in the first smart contract to perform data verification on the transfer amount and the first remittance amount, and store the result of the data verification in the first block chain.
可选的,所述调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,包括:调用第一智能合约中的验证逻辑核验所述划拨金额和第一汇款金额是否一致。Optionally, calling the verification logic in the first smart contract to verify the transfer amount and the first remittance amount includes: calling the verification logic in the first smart contract to verify the transfer amount and the first remittance amount Is it consistent.
可选的,所述划拨金额和第一汇款金额分别被对应的跨境汇款参与方基于同态加密算法执行了同态加密;所述调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,包括:调用第一智能合约中的验证逻辑核验同态加密后的所述划拨 金额和第一汇款金额是否一致。Optionally, the transfer amount and the first remittance amount are respectively subjected to homomorphic encryption by the corresponding cross-border remittance participants based on a homomorphic encryption algorithm; The data verification of the first remittance amount includes: calling the verification logic in the first smart contract to verify whether the transfer amount after homomorphic encryption is consistent with the first remittance amount.
可选的,所述基于数据核验结果更新所述交易状态,包括:在数据核验结果为通过时,将所述交易状态更新为成功;否则,将所述交易状态更新为失败。Optionally, the updating the transaction status based on the data verification result includes: updating the transaction status to successful when the data verification result is passed; otherwise, updating the transaction status to failure.
可选的,所述区块链为联盟链。Optionally, the blockchain is an alliance chain.
本说明书还提出一种基于区块链的跨境汇款装置;应用于基于第一区块链和第二区块链搭建的跨境汇款管理系统;其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与所述跨境汇款业务对应的汇款信息;所述装置包括:查询模块,在确定所述交易状态指示跨境汇款参与方对所述汇款信息确认通过时,调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态;汇款模块,在所述划拨状态指示与所述账户资金信息对应的账户资金已划拨成功时,进一步调用第一智能合约对所述账户资金信息和所述汇款信息进行数据核验,并基于数据核验结果更新所述交易状态,以使跨境汇款参与方在所述交易状态指示成功时,执行与汇款信息对应的跨境汇款。This specification also proposes a block chain-based cross-border remittance device; it is applied to a cross-border remittance management system based on the first block chain and the second block chain; wherein, the first block chain is deployed for The first smart contract that maintains the transaction status of the cross-border remittance participants to perform the cross-border remittance business; the second smart contract that is used to maintain the transfer status of the account fund information of the cross-border remittance participants is deployed in the second block chain; A smart contract and a second smart contract are bound to each other for cross-chain communication; the remittance information corresponding to the cross-border remittance business is stored in the first block chain; the device includes: a query module, after determining the transaction The state indicates that when the cross-border remittance participant confirms the remittance information, it calls the query logic in the first smart contract and calls the second smart contract across the chain to query and obtain the transfer status of the account fund information maintained by the second smart contract; the remittance module, When the transfer status indicates that the account funds corresponding to the account fund information have been transferred successfully, the first smart contract is further invoked to perform data verification on the account fund information and the remittance information, and update the The transaction status, so that the cross-border remittance participant executes the cross-border remittance corresponding to the remittance information when the transaction status indicates success.
可选的,所述跨境汇款参与方包括汇款发起方,所述装置还包括存证模块,所述存证模块:接收汇款发起方发起的将所述汇款信息进行存证的存证请求;响应于所述存证请求,调用第一智能合约的存证逻辑将所述汇款信息存证在第一区块链中。Optionally, the cross-border remittance participant includes a remittance initiator, and the device further includes a certificate depositing module, the certificate depositing module: receiving a certificate deposit request for depositing the remittance information initiated by the remittance initiator; In response to the certificate deposit request, call the certificate deposit logic of the first smart contract to deposit the remittance information in the first block chain.
可选的,所述汇款信息包括汇款账号、汇款金额、汇款币种和收款账号;所述存证模块进一步:调用第一智能合约中的存证逻辑将汇款账号、汇款金额、汇款币种和收款账号保存在第一区块链中。Optionally, the remittance information includes remittance account number, remittance amount, remittance currency, and remittance account; and the receiving account number are stored in the first blockchain.
可选的,所述跨境汇款参与方还包括流动性提供方;所述存证模块进一步:流动性提供方从第一区块链获取所述汇款金额和所述汇款币种,以使流动性提供方基于所述汇款金额和所述汇款币种进行流动性计算,得到与所述汇款币种对应的汇率以及所述汇款金额在所述汇率下的第一汇款金额,将第一汇款金额更新至链上存证的所述汇款信息中。Optionally, the cross-border remittance participant also includes a liquidity provider; the deposit certificate module further: the liquidity provider obtains the remittance amount and the remittance currency from the first block chain, so that the flow The sex provider performs liquidity calculation based on the remittance amount and the remittance currency, obtains the exchange rate corresponding to the remittance currency and the first remittance amount of the remittance amount under the exchange rate, and calculates the first remittance amount Update to the said remittance information stored on the chain.
可选的,所述跨境汇款参与方还包括汇款接收方;所述存证模块进一步:汇款接收方从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以及将对所述汇款信息的确认结果存证于第一区块链中。Optionally, the cross-border remittance participant also includes a remittance receiver; the certificate deposit module further: the remittance receiver acquires the remittance information from the first block chain and confirms the acquired remittance information, and The confirmation result of the remittance information is stored in the first block chain.
可选的,所述跨境汇款参与方还包括收付款机构;所述存证模块进一步:收付款机构从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以及将对所述汇款信息的确认结果存证于第一区块链中。Optionally, the participants in the cross-border remittance also include a collection and payment institution; the certificate depositing module further: the collection and payment institution obtains the remittance information from the first block chain and confirms the obtained remittance information, and The confirmation result of the remittance information is stored in the first block chain.
可选的,所述账户资金信息包括从跨境汇款参与方在第二区块链中存证的账户资金中划出的用于跨境汇款业务的划拨金额;所述汇款模块进一步:调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到所述划拨金额,并将所述划拨金额存证于第一区块链中;调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,并将基于数据核验结果存证于第一区块链中。Optionally, the account fund information includes the transfer amount for the cross-border remittance business transferred from the account fund deposited by the cross-border remittance participant in the second block chain; the remittance module further: calls the The query logic in a smart contract cross-chain calls the second smart contract to query the transfer amount, and stores the transfer amount in the first block chain; calls the verification logic in the first smart contract to verify the transfer amount The amount and the first remittance amount are subject to data verification, and will be stored in the first block chain based on the data verification results.
可选的,所述汇款模块进一步:调用第一智能合约中的验证逻辑核验所述划拨金额和第一汇款金额是否一致。Optionally, the remittance module further: calls the verification logic in the first smart contract to verify whether the transfer amount is consistent with the first remittance amount.
可选的,所述划拨金额和第一汇款金额分别被对应的跨境汇款参与方基于同态加密算法执行了同态加密;所述汇款模块进一步:调用第一智能合约中的验证逻辑核验同态加密后的所述划拨金额和第一汇款金额是否一致。Optionally, the transfer amount and the first remittance amount are respectively subjected to homomorphic encryption by corresponding cross-border remittance participants based on a homomorphic encryption algorithm; the remittance module further: calls the verification logic in the first smart contract to verify the same Whether the transfer amount after state encryption is consistent with the first remittance amount.
可选的,所述汇款模块进一步:在数据核验结果为通过时,将所述交易状态更新为成功;否则,将所述交易状态更新为失败。Optionally, the remittance module further: when the data verification result is passed, update the transaction status to success; otherwise, update the transaction status to failure.
可选的,所述区块链为联盟链。Optionally, the blockchain is an alliance chain.
本申请还提供一种电子设备,包括通信接口、处理器、存储器和总线,所述通信接口、所述处理器和所述存储器之间通过总线相互连接;所述存储器中存储机器可读指令,所述处理器通过调用所述机器可读指令,执行上述的方法。The present application also provides an electronic device, including a communication interface, a processor, a memory, and a bus, and the communication interface, the processor, and the memory are connected to each other through a bus; machine-readable instructions are stored in the memory, The processor executes the above-mentioned method by invoking the machine-readable instruction.
本申请还提供一种机器可读存储介质,所述机器可读存储介质存储有机器可读指令,所述机器可读指令在被处理器调用和执行时,实现上述方法。The present application also provides a machine-readable storage medium, where the machine-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by a processor, the above method is implemented.
在以上技术方案中,基于第一区块链中部署的第一智能合约与第二区块链中部署的第二智能合约进行跨链通信,获取与跨境汇款业务相关的第二区块链中存证的账户资金信息并与第一区块链中存证的汇款信息进行数据核验,以及根据数据核验结果对跨境汇款业务的交易状态进行更新维护。一方面,保证了与跨境汇款业务相关的跨链数据的数据一致性。另一方面,基于区块链的去中心化架构和数据不可篡改的特性,跨境汇款参与方可以实时查询和确认跨境汇款业务的交易状态,提高了跨境汇款的透明性和安全性。In the above technical solution, based on the cross-chain communication between the first smart contract deployed in the first blockchain and the second smart contract deployed in the second blockchain, the second blockchain related to the cross-border remittance business is obtained The account fund information of CDC and the remittance information stored in the first block chain are verified, and the transaction status of cross-border remittance business is updated and maintained according to the data verification results. On the one hand, the data consistency of cross-chain data related to cross-border remittance business is guaranteed. On the other hand, based on the decentralized architecture of the blockchain and the immutable characteristics of data, cross-border remittance participants can query and confirm the transaction status of cross-border remittance business in real time, which improves the transparency and security of cross-border remittance.
附图说明Description of drawings
图1是本说明书一实施例提供的一种基于智能合约进行跨境汇款的区块链的组网示意图;Figure 1 is a schematic diagram of a blockchain network for cross-border remittance based on smart contracts provided by an embodiment of this specification;
图2是本说明书一实施例提供的一种基于区块链的跨境汇款方法的流程图;Fig. 2 is a flowchart of a blockchain-based cross-border remittance method provided by an embodiment of this specification;
图3是本说明书一实施例提供的一种基于智能合约跨链通信进行跨境汇款的交互过程示意图;Fig. 3 is a schematic diagram of an interactive process for cross-border remittance based on smart contract cross-chain communication provided by an embodiment of this specification;
图4是本说明书一实施例提供的一种电子设备的结构示意图;Fig. 4 is a schematic structural diagram of an electronic device provided by an embodiment of this specification;
图5是本说明书一实施例提供的一种基于区块链的跨境汇款装置的框图。Fig. 5 is a block diagram of a blockchain-based cross-border remittance device provided by an embodiment of this specification.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. Implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatuses and methods consistent with aspects of one or more embodiments of the present specification as recited in the appended claims.
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or less steps than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; multiple steps described in this specification may also be combined into a single step in other embodiments describe.
请参考图1,图1是本说明书一实施例提供的一种基于智能合约进行跨境汇款的区块链的组网示意图。Please refer to Figure 1. Figure 1 is a schematic diagram of a blockchain network for cross-border remittance based on smart contracts provided by an embodiment of this specification.
如图1所示,该组网包括第一区块链、第二区块链、汇款发起方、流动性提供方、收付款机构、汇款接收方;其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与所述跨境汇款业务对应的汇款信息。在汇款发起方作为第二区块链的节点设备预先加入到第二区块链网络时,汇款发起方还可以作为第一区块链的节点设备加入到第一区块链网络,与作为第一区块链的节点设备的流动性提供方、收付款机构、汇款接收方,来共同维护第一区块链的区块链账本。As shown in Figure 1, the network includes the first block chain, the second block chain, the remittance initiator, the liquidity provider, the collection and payment institution, and the remittance receiver; The first smart contract for maintaining the transaction status of the cross-border remittance participants to perform the cross-border remittance business; the second smart contract for maintaining the transfer status of the account fund information of the cross-border remittance participants is deployed in the second block chain; The first smart contract and the second smart contract are bound to each other for cross-chain communication; the remittance information corresponding to the cross-border remittance business is stored in the first block chain. When the remittance initiator joins the second blockchain network in advance as a node device of the second blockchain, the remittance initiator can also join the first blockchain network as a node device of the first blockchain, and as the second blockchain network The liquidity provider, payment institution, and remittance receiver of the node equipment of a blockchain jointly maintain the blockchain ledger of the first blockchain.
当然,在实际应用中,在流动性提供方、收付款机构、汇款接收方已预先接入至各自对应的业务管理系统中的其它区块链时,流动性提供方、收付款机构、汇款接收方同时还可以作为第一区块链的节点设备加入到第一区块链网络。Of course, in practical applications, when the liquidity provider, collection and payment institution, and remittance receiver have been pre-connected to other blockchains in their corresponding business management systems, the liquidity provider, collection and payment institution, and remittance recipient At the same time, the party can also join the first blockchain network as a node device of the first blockchain.
需要说明的是,在实际应用中,汇款发起方、流动性提供方、收付款机构、汇款接收方,也可以不作为区块链的节点设备加入区块链,而是通过与区块链上的节点设备保持连接的方式接入区块链,在区块链持久化存储自身产生的数据。It should be noted that, in practical applications, the remittance initiator, liquidity provider, collection and payment institution, and remittance receiver may not join the blockchain as a node device of the blockchain, but may Node devices are connected to the blockchain in a way that keeps connected, and the data generated by itself is stored persistently in the blockchain.
在如图1所示的组网架构基础上,本说明书中,旨在提出一种基于不同区块链的多个智能合约进行跨链绑定通信,来保证与汇款相关的跨链数据一致性的跨境汇款技术方案。Based on the network architecture shown in Figure 1, this specification aims to propose a cross-chain binding communication based on multiple smart contracts of different blockchains to ensure cross-chain data consistency related to remittances Cross-border remittance technology solutions.
在实现时,跨境汇款管理系统基于第一区块链和第二区块链搭建;其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与跨境汇款业务对应的汇款信息。When implemented, the cross-border remittance management system is built based on the first block chain and the second block chain; among them, the first block chain is deployed to maintain the transaction status of cross-border remittance participants performing cross-border remittance business The first smart contract; the second smart contract is deployed in the second block chain to maintain the transfer status of the account fund information of the cross-border remittance participants; the first smart contract and the second smart contract are bound to each other for cross-chain communication ; The remittance information corresponding to the cross-border remittance business is stored in the first block chain.
进一步地,在确定交易状态指示跨境汇款参与方对汇款信息确认通过时,调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态。Further, when it is determined that the transaction status indicates that the cross-border remittance participant has confirmed the remittance information, call the query logic in the first smart contract to cross-chain call the second smart contract to query and obtain the transfer status of the account fund information maintained by the second smart contract .
进一步地,在划拨状态指示与账户资金信息对应的账户资金已划拨成功时,进一步调用第一智能合约对账户资金信息和汇款信息进行数据核验,并基于数据核验结果更新交易状态,以使各个跨境汇款参与方在交易状态指示成功时,执行与汇款信息对应的跨境汇款。Further, when the transfer state indicates that the account funds corresponding to the account fund information have been transferred successfully, the first smart contract is further invoked to perform data verification on the account fund information and remittance information, and update the transaction status based on the data verification results, so that each cross The cross-border remittance participant executes the cross-border remittance corresponding to the remittance information when the transaction status indicates success.
在以上技术方案中,基于第一区块链中部署的第一智能合约与第二区块链中部署的第二智能合约进行跨链通信,获取与跨境汇款业务相关的第二区块链中存证的账户资金信息并与第一区块链中存证的汇款信息进行数据核验,以及根据数据核验结果对跨境汇款业务的交易状态进行更新维护。一方面,保证了与跨境汇款业务相关的跨链数据的数据一致性。另一方面,基于区块链的去中心化架构和数据不可篡改的特性,跨境汇款参与方可以实时查询和确认跨境汇款业务的交易状态,提高了跨境汇款的透明性和安全性。In the above technical solution, based on the cross-chain communication between the first smart contract deployed in the first blockchain and the second smart contract deployed in the second blockchain, the second blockchain related to the cross-border remittance business is obtained The account fund information of CDC and the remittance information stored in the first block chain are verified, and the transaction status of cross-border remittance business is updated and maintained according to the data verification results. On the one hand, the data consistency of cross-chain data related to cross-border remittance business is guaranteed. On the other hand, based on the decentralized architecture of the blockchain and the immutable characteristics of data, cross-border remittance participants can query and confirm the transaction status of cross-border remittance business in real time, which improves the transparency and security of cross-border remittance.
下面通过具体实施例并结合具体的应用场景对本说明书进行描述。The specification is described below through specific embodiments and in combination with specific application scenarios.
请参见图2,图2是一示例性实施例提供的一种基于区块链的跨境汇款方法的流程图;该方法应用于基于第一区块链和第二区块链搭建的跨境汇款管理系统;其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与上述跨境汇款业务对应的汇款信息;上述方法执行以下步骤。Please refer to Figure 2, Figure 2 is a flow chart of a blockchain-based cross-border remittance method provided by an exemplary embodiment; Remittance management system; wherein, the first smart contract for maintaining the transaction status of cross-border remittance participants in the execution of cross-border remittance business is deployed in the first block chain; the second block chain is deployed for maintaining cross-border remittance The second smart contract of the transfer status of the account fund information of the participant; the first smart contract and the second smart contract are bound to each other for cross-chain communication; the first block chain stores the remittance corresponding to the above-mentioned cross-border remittance business information; the method described above performs the following steps.
步骤202、在确定上述交易状态指示跨境汇款参与方对上述汇款信息确认通过时,调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态。Step 202: When it is determined that the above-mentioned transaction status indicates that the cross-border remittance participant has confirmed the above-mentioned remittance information, call the query logic in the first smart contract to cross-chain call the second smart contract to query and obtain the account fund information maintained by the second smart contract Transfer status.
步骤204、在上述划拨状态指示与上述账户资金信息对应的账户资金已划拨成功时,进一步调用第一智能合约对上述账户资金信息和上述汇款信息进行数据核验,并基于数据核验结果更新上述交易状态,以使各个跨境汇款参与方在上述交易状态指示成功时, 执行与汇款信息对应的跨境汇款。Step 204: When the above-mentioned transfer status indicates that the account funds corresponding to the above-mentioned account fund information have been successfully transferred, further call the first smart contract to perform data verification on the above-mentioned account fund information and the above-mentioned remittance information, and update the above-mentioned transaction status based on the data verification results , so that each cross-border remittance participant executes the cross-border remittance corresponding to the remittance information when the above transaction status indicates success.
区块链一般被划分为三种类型:公有链(Public Blockchain),私有链(Private Blockchain)和联盟链(Consortium Blockchain)。此外,还可以有上述多种类型的结合,比如私有链+联盟链、联盟链+公有链等。Blockchains are generally divided into three types: Public Blockchain, Private Blockchain and Consortium Blockchain. In addition, there can be a combination of the above types, such as private chain + alliance chain, alliance chain + public chain, etc.
其中,去中心化程度最高的是公有链。公有链以比特币、以太坊为代表,加入公有链的参与者(也可称为区块链中的节点)可以读取链上的数据记录、参与交易、以及竞争新区块的记账权等。而且,各节点可自由加入或者退出网络,并进行相关操作。Among them, the public chain has the highest degree of decentralization. The public chain is represented by Bitcoin and Ethereum. Participants who join the public chain (also called nodes in the blockchain) can read the data records on the chain, participate in transactions, and compete for the bookkeeping rights of new blocks, etc. . Moreover, each node can freely join or exit the network and perform related operations.
私有链则相反,该网络的写入权限由某个组织或者机构控制,数据读取权限受组织规定。简单来说,私有链可以为一个弱中心化系统,其对节点具有严格限制且节点数量较少。这种类型的区块链更适合于特定机构内部使用。On the contrary, the private chain, the write permission of the network is controlled by an organization or institution, and the data read permission is regulated by the organization. In simple terms, a private chain can be a weakly centralized system with strict restrictions on nodes and a small number of nodes. This type of blockchain is more suitable for internal use by specific institutions.
联盟链则是介于公有链以及私有链之间的区块链,可实现“部分去中心化”。联盟链中各个节点通常有与之相对应的实体机构或者组织;节点通过授权加入网络并组成利益相关联盟,共同维护区块链运行。The alliance chain is a blockchain between the public chain and the private chain, which can realize "partial decentralization". Each node in the consortium chain usually has a corresponding entity or organization; nodes join the network through authorization and form an alliance of stakeholders to jointly maintain the operation of the blockchain.
在本说明书中,上述第一区块链,为部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的任何类型的区块链;其中,上述第一区块链的具体类型可以包括公有链、私有链、联盟链中的任意一种。In this specification, the above-mentioned first block chain is any type of block chain deployed to maintain the transaction status of cross-border remittance participants performing cross-border remittance business; wherein, the specific type of the above-mentioned first block chain It can include any one of public chain, private chain, and alliance chain.
例如,在实际应用中,上述第一区块链可以为联盟链。For example, in practical applications, the above-mentioned first blockchain may be an alliance chain.
在本说明书中,上述第二区块链,为部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约的任何类型的区块链;其中,上述第二区块链的具体类型可以包括公有链、私有链、联盟链中的任意一种。In this specification, the above-mentioned second block chain is any type of block chain that deploys the second smart contract for maintaining the transfer status of the account fund information of the cross-border remittance participants; wherein, the above-mentioned second block chain The specific type of chain can include any one of public chain, private chain, and alliance chain.
例如,在实际应用中,上述第二区块链可以为联盟链。For example, in practical applications, the above-mentioned second blockchain can be an alliance chain.
在本说明书中,上述跨境汇款参与方,是指执行跨境汇款业务的参与方。In this manual, the above-mentioned cross-border remittance participants refer to the participants that perform cross-border remittance business.
例如,在实际应用中,上述跨境汇款参与方具体可以包括发起汇款发起方、流动性提供方、收付款机构、汇款接收方。For example, in practical applications, the above-mentioned cross-border remittance participants may specifically include the initiator of the remittance, the liquidity provider, the collection and payment institution, and the remittance receiver.
在本说明书中,上述汇款发起方,可以包括位于境内的针对跨境汇款的数额及频次都较多且独立拥有资金管理系统的任何商业机构(B类机构)。In this manual, the above-mentioned remittance initiators may include any commercial institution (Type B institution) located in China that has a large amount and frequency of cross-border remittances and independently owns a fund management system.
例如,上述汇款发起方,具体可以为位于境内的且独立拥有资金管理系统的支付宝系统或其它第三方金融机构。For example, the above-mentioned initiator of the remittance may specifically be the Alipay system or other third-party financial institutions that are located in China and independently have a fund management system.
在本说明书中,上述收付款机构,可以包括位于境内或位于境外的支持跨境汇款的银行机构;其中,上述汇款发起方在上述收付款机构开通了用于发起跨境汇款的汇款账户。In this specification, the above-mentioned receiving and payment institutions may include domestic or overseas banking institutions that support cross-border remittances; wherein, the above-mentioned remittance initiator has opened a remittance account for initiating cross-border remittances at the above-mentioned receiving and payment institutions.
例如,上述收付款机构,具体可以为位于境内的支持跨境汇款的招商银行杭州分行,支付宝系统在该分行开通了用于发起跨境汇款的汇款账户。For example, the above-mentioned collection and payment institution may specifically be the Hangzhou branch of China Merchants Bank that supports cross-border remittance in China, and the Alipay system has opened a remittance account for initiating cross-border remittance at this branch.
又例如,上述收汇款机构,具体可以为位于境外的支持跨境汇款的花旗银行美国分行,支付宝系统在该分行开通了用于发起跨境汇款的汇款账户。As another example, the above-mentioned remittance institution may specifically be an overseas branch of Citibank USA that supports cross-border remittances, and the Alipay system has opened a remittance account for initiating cross-border remittances at this branch.
又例如,上述收汇款机构,具体可以包括位于境内的支持跨境汇款的招商银行杭州分行和位于境外的支持跨境汇款的花旗银行美国分行;招商银行杭州分行和花旗银行美国分行一起配合执行跨境汇款业务。As another example, the above-mentioned remittance institutions may specifically include China Merchants Bank Hangzhou Branch that supports cross-border remittances in China and Citibank US Branch that supports cross-border remittances located overseas; China Merchants Bank Hangzhou Branch and Citibank US Branch cooperate to implement cross-border remittances International remittance business.
在本说明书中,上述汇款接收方,可以包括位于境外的用于接收上述收付款机构的跨境汇款的任何类型的汇款接收方;其中,上述汇款接收方在收付款机构开通了用于接收跨境汇款的收款账户。In this specification, the above-mentioned remittance recipients may include any type of remittance recipients located overseas for receiving cross-border remittances from the above-mentioned collection and payment institutions; The receiving account for overseas remittances.
接着以上示例继续举例,上述汇款接收方,具体可以包括在花旗银行美国分行开通了收款账户的C类用户或B类机构。比如,以汇款接收方为B类机构为例,该汇款接收方具体可以为摩根大通银行美国分行。Continuing with the above example, the above-mentioned remittance recipients may specifically include C-type users or B-type institutions that have opened a collection account at the US branch of Citibank. For example, taking the remittance receiver as an example of a Class B institution, the remittance receiver may specifically be JPMorgan Chase Bank in the United States.
在本说明书中,上述流动性提供方,可以包括在跨境汇款业务过程中提供流动性服务的流动性提供商(Liquid Provider);其中,上述流动性提供商可以在上述汇款发起方经上述收付款机构向上述汇款接收方进行跨境汇款的过程中,提供资金调拨、垫付和货币兑换等流动性服务。In this manual, the aforementioned liquidity provider may include a liquidity provider (Liquid Provider) that provides liquidity services in the process of cross-border remittance business; In the process of cross-border remittance to the above-mentioned remittance recipients, the payment institution provides liquidity services such as fund transfer, advance payment and currency exchange.
接着以上示例继续举例,上述流动性提供商,具体可以包括花旗银行在境内开设的分支银行,比如:花旗银行杭州分行;其中,在支付宝系统向摩根大通银行进行跨境汇款过程中(支付宝系统将其在招商银行杭州分行开通的汇款账户中的汇款资金通过招商银行杭州分行及花旗银行美国分行汇入至摩根大通银行美国分行在花旗银行美国分行开通的收款账户)提供资金调拨、垫付和货币兑换等流动性服务。Continuing with the above example, the above-mentioned liquidity providers may specifically include branch banks opened by Citibank in China, such as: Citibank Hangzhou Branch; among them, in the process of cross-border remittance from the Alipay system to JPMorgan Chase Bank (the Alipay system will The remittance funds in the remittance account opened by China Merchants Bank Hangzhou Branch are remitted to the collection account opened by JPMorgan Chase Bank US Branch in Citibank US Branch through China Merchants Bank Hangzhou Branch and Citibank US Branch) to provide fund transfer, advance payment and currency Liquidity services such as exchange.
在本说明书中,上述跨境汇款参与方在接入上述第一区块链之前,还可以预先接入至上述第二区块链网络。In this specification, the above-mentioned cross-border remittance participants can also pre-connect to the above-mentioned second blockchain network before accessing the above-mentioned first blockchain.
以跨境汇款参与方为汇款发起方为例,请参见图1所示,汇款发起方在接入第一区块链之前,还可以预先接入至第二区块链中。Taking the cross-border remittance participant as the remittance initiator as an example, as shown in Figure 1, the remittance initiator can also be pre-connected to the second blockchain before accessing the first blockchain.
当然,在实际应用中,上述流动性提供方、上述收付款机构、上述汇款接收方在接入上述第一区块链之前,也预先接入至各自对应的业务管理系统中的其它区块链中,在本说明书中不作具体限定。Of course, in practical applications, the above-mentioned liquidity provider, the above-mentioned collection and payment institution, and the above-mentioned remittance receiver are also pre-connected to other blockchains in their respective business management systems before accessing the above-mentioned first blockchain. , which are not specifically limited in this specification.
需要说明的是,上述汇款发起方、上述流动性提供方、上述收付款机构和上述汇款接收方可以作为区块链(比如:上述第一区块链、上述第二区块链、其它区块链)的节 点设备加入到区块链网络中,来共同维护区块链账本。当然,在实际应用中,汇款发起方、收付款机构和汇款接收方,也可以不作为区块链的节点设备加入区块链,而是通过与区块链上的节点设备保持连接的方式接入区块链,在区块链持久化存储自身产生的数据。It should be noted that the above-mentioned remittance initiator, the above-mentioned liquidity provider, the above-mentioned collection and payment institution, and the above-mentioned remittance receiver can be used as blockchains (for example: the above-mentioned first blockchain, the above-mentioned second blockchain, other blockchains, etc.) Chain) node devices are added to the blockchain network to jointly maintain the blockchain ledger. Of course, in practical applications, the remittance initiator, payment institution, and remittance receiver may not join the blockchain as a node device of the blockchain, but connect with the node device on the blockchain. Enter the blockchain, and store the data generated by itself in the blockchain persistently.
在本说明书中,上述汇款信息,是指与跨境汇款业务对应的汇款信息。In this specification, the above-mentioned remittance information refers to the remittance information corresponding to the cross-border remittance business.
在示出的一种实施方式中,在上述跨境汇款参与方包括上述汇款发起方时,上述第一区块链可以接收上述汇款发起方发起的将上述汇款信息进行存证的存证请求;响应于上述存证请求,调用上述第一智能合约的存证逻辑将上述汇款信息存证在第一区块链中。In one embodiment shown, when the above-mentioned cross-border remittance participants include the above-mentioned remittance initiator, the above-mentioned first blockchain can receive a certificate deposit request initiated by the above-mentioned remittance initiator to deposit the above-mentioned remittance information; In response to the above certificate deposit request, call the certificate deposit logic of the above first smart contract to deposit the above remittance information in the first block chain.
接着以上示例,以汇款发起方为支付宝系统继续举例,第一区块链可以接收支付宝系统发起的将汇款信息进行存证的存证请求;响应于该存证请求,调用第一智能合约的存证逻辑将该汇款信息存证在第一区块链中。Continuing with the above example, taking the Alipay system as the remittance initiator to continue the example, the first block chain can receive the certificate deposit request initiated by the Alipay system to deposit the remittance information; in response to the certificate deposit request, call the depository of the first smart contract The evidence logic stores the remittance information in the first block chain.
在示出的一种实施方式中,上述汇款信息可以包括汇款账号、汇款金额、汇款币种和收款账号。In an illustrated embodiment, the above-mentioned remittance information may include a remittance account number, a remittance amount, a remittance currency, and a remittance account number.
例如,用户通过上述汇款发起方进行跨境汇款时,上述汇款发起方可以获取用户输入的汇款账号、汇款金额、汇款币种和收款账号等信确定为汇款信息进行保存。For example, when a user makes a cross-border remittance through the above-mentioned remittance initiator, the above-mentioned remittance initiator can obtain the information such as the remittance account number, remittance amount, remittance currency, and remittance account number entered by the user and determine it as remittance information for storage.
在本说明书中,进一步地,在调用第一智能合约的存证逻辑将上述汇款信息存证在第一区块链中的过程中,第一区块链可以调用第一智能合约的存证逻辑将汇款账号、汇款金额、汇款币种和收款账号存证在第一区块链中。In this specification, further, in the process of calling the deposit logic of the first smart contract to deposit the above remittance information in the first blockchain, the first blockchain can call the deposit logic of the first smart contract Store the remittance account number, remittance amount, remittance currency and receiving account number in the first blockchain.
当然,在实际应用中,上述汇款信息还可以包括用户的身份信息、联系信息等。Of course, in practical applications, the above remittance information may also include the user's identity information, contact information, and the like.
在示出的一种实施方式中,在上述跨境汇款参与方还包括上述流动性提供方时,上述流动性提供方可以从上述第一区块链获取上述汇款金额和上述汇款币种,以使流动性提供方基于上述汇款金额和上述汇款币种进行流动性计算,得到与上述汇款币种对应的汇率以及上述汇款金额在上述汇率下的第一汇款金额,将第一汇款金额更新至链上存证的上述汇款信息中。In one embodiment shown, when the above-mentioned cross-border remittance participants also include the above-mentioned liquidity provider, the above-mentioned liquidity provider can obtain the above-mentioned remittance amount and the above-mentioned remittance currency from the above-mentioned first block chain to Make the liquidity provider calculate the liquidity based on the above remittance amount and the above remittance currency, obtain the exchange rate corresponding to the above remittance currency and the first remittance amount of the above remittance amount under the above exchange rate, and update the first remittance amount to the chain In the above remittance information on the deposit certificate.
接着以上示例,以流动性提供方为花旗银行杭州分行继续举例,花旗银行杭州分行可以获取支付宝系统在第一区块链上存证的汇款金额(比如:1万)和汇款币种(比如:人民币),并该基于汇款金额和该汇款币种进行流动性计算,得到与该汇款币种对应的汇率(比如:人民币对其它币种的汇率;其中,该其它币种具体可以包括美元、欧元、日元等中的任一或多个组合)以及该汇款金额在该汇率下的第一汇款金额,将第一汇款金额更新至链上存证的汇款信息中。比如:以汇款金额为1万元人民币,人民币对美元汇率为0.15为例,则第一汇款金额为1500美元。Continuing with the above example, taking the liquidity provider as Citibank Hangzhou Branch to continue the example, Citibank Hangzhou Branch can obtain the remittance amount (for example: 10,000) and remittance currency (for example: RMB), and calculate the liquidity based on the remittance amount and the remittance currency, and obtain the exchange rate corresponding to the remittance currency (for example: the exchange rate of RMB against other currencies; where the other currencies can specifically include the US dollar, the euro , Japanese yen, etc.) and the first remittance amount of the remittance amount under the exchange rate, and update the first remittance amount to the remittance information of the on-chain deposit certificate. For example: if the remittance amount is 10,000 RMB and the exchange rate of RMB to USD is 0.15, the first remittance amount is 1,500 USD.
需要说明的是,在实际应用中,除了将第一汇款金额更新至链上存证的汇款信息外,还可以将与第一汇款金额对应的汇率更新至链上存证的汇款信息。It should be noted that in practical applications, in addition to updating the first remittance amount to the remittance information on the on-chain certificate, the exchange rate corresponding to the first remittance amount can also be updated to the on-chain remittance information on the certificate.
在本说明书中,在上述汇款信息存证在上述第一区块链后,上述跨境汇款参与方可以针对上述汇款信息进行确认。In this specification, after the above-mentioned remittance information is deposited in the above-mentioned first blockchain, the above-mentioned cross-border remittance participants can confirm the above-mentioned remittance information.
在示出的一种实施方式中,在上述跨境汇款参与方还包括上述汇款接收方时,上述汇款接收方可以从上述第一区块链获取上述汇款信息并对获取的上述汇款信息进行确认,以及将对上述汇款信息的确认结果存证于上述第一区块链中。In one embodiment shown, when the above-mentioned cross-border remittance participant also includes the above-mentioned remittance receiver, the above-mentioned remittance receiver can obtain the above-mentioned remittance information from the above-mentioned first block chain and confirm the above-mentioned remittance information obtained , and store the confirmation result of the above-mentioned remittance information in the above-mentioned first block chain.
接着以上示例,以汇款接收方为摩根大通银行美国分行继续举例,摩根大通银行美国分行可以从第一区块链获取汇款信息并对获取的汇款信息进行确认(比如可以包括针对汇款信息中的汇款账号、汇款金额、汇款币种、收款账号、第一汇款金额及其对应汇率进行合法性检查),以及将对该汇款信息的确认结果经持有的私钥签名后存证于上述第一区块链中。Continuing with the above example, taking the remittance receiver as JPMorgan Chase Bank US Branch to continue the example, JPMorgan Chase Bank US Branch can obtain the remittance information from the first blockchain and confirm the obtained remittance information (for example, it can include the remittance information in the remittance information Account number, remittance amount, remittance currency, receiving account number, the first remittance amount and its corresponding exchange rate for legality check), and the confirmation result of the remittance information will be signed by the private key held and stored in the above first in the blockchain.
在示出的一种实施方式中,在上述跨境汇款参与方还包括上述收付款机构时,上述收付款机构可以从上述第一区块链获取上述汇款信息并对获取的上述汇款信息进行确认,以及将对上述汇款信息的确认结果存证于第一区块链中。In one embodiment shown, when the above-mentioned cross-border remittance participants also include the above-mentioned collection and payment institution, the above-mentioned collection and payment institution can obtain the above-mentioned remittance information from the above-mentioned first block chain and confirm the obtained above-mentioned remittance information , and store the confirmation result of the above remittance information in the first block chain.
接着以上示例,以收付款机构包括招商银行杭州分行和花旗银行美国分行继续举例,招商银行杭州分行和花旗银行美国分行可以分别从第一区块链获取汇款信息并对获取的汇款信息进行分别确认(比如可以包括针对汇款信息中的汇款账号、汇款金额、汇款币种、收款账号、第一汇款金额及其对应汇率进行合法性检查),以及将对该汇款信息的确认结果经各自持有的私钥签名后存证于上述第一区块链中。Continuing with the above example, take the receiving and paying institutions including China Merchants Bank Hangzhou Branch and Citibank US Branch as an example. China Merchants Bank Hangzhou Branch and Citibank US Branch can respectively obtain remittance information from the first blockchain and confirm the obtained remittance information separately (For example, it may include checking the legitimacy of the remittance account number, remittance amount, remittance currency, receiving account number, first remittance amount and its corresponding exchange rate in the remittance information), and will confirm the remittance information through the respective After the private key signature is stored in the above-mentioned first block chain.
类似地,上述流动性提供方也可以从上述第一区块链获取上述汇款信息并对获取的上述汇款信息进行确认,以及将对上述汇款信息的确认结果存证于第一区块链中,这里不再赘述。Similarly, the above-mentioned liquidity provider can also obtain the above-mentioned remittance information from the above-mentioned first blockchain and confirm the above-mentioned remittance information obtained, and store the confirmation result of the above-mentioned remittance information in the first blockchain, I won't go into details here.
在本说明书中,上述第一区块链可以调用上述第一智能合约检查上述跨境汇款参与方在第一区块链中存证的针对上述汇款信息的确认结果,并基于该检查结果来确定维护跨境汇款参与方执行跨境汇款业务的交易状态。In this specification, the above-mentioned first block chain can call the above-mentioned first smart contract to check the confirmation results of the above-mentioned remittance information deposited by the above-mentioned cross-border remittance participants in the first block chain, and determine based on the check result Maintain the transaction status of cross-border remittance participants performing cross-border remittance business.
例如,在实际应用中,该交易状态可以指示所有跨境汇款参与方(比如:汇款发起方、流动性提供方、收付款机构、汇款接收方)对链上存证的汇款信息的确认结果都为通过,也可以指示部分跨境汇款参与方对链上存证的汇款信息的确认结果确认不通过。For example, in practical applications, the transaction status can indicate that all cross-border remittance participants (such as: remittance initiators, liquidity providers, collection and payment institutions, and remittance receivers) have confirmed the results of the remittance information deposited on the chain. In order to pass, some cross-border remittance participants can also be instructed to confirm that the confirmation result of the remittance information deposited on the chain fails.
在本说明书中,上述账户资金信息,可以包括基于上述第二区块链构建的资金管理系统中从上述跨境汇款参与方在第二区块链中存证的账户余额中划出的用于跨境汇款 业务的划拨金额;其中,上述划拨金额被存证于上述第二区块链中。In this specification, the above-mentioned account fund information may include the funds transferred from the account balance deposited by the above-mentioned cross-border remittance participants in the second blockchain in the fund management system based on the above-mentioned second blockchain. The transfer amount of the cross-border remittance business; wherein, the above-mentioned transfer amount is stored in the above-mentioned second block chain.
例如,以跨境汇款参与方为汇款发起方,汇款发起方为支付宝系统为例,账户资金信息具体可以包括基于第二区块链构建的资金管理系统中从支付宝系统在第二区块链中存证的账户余额N(比如:该账户余额为100万人民币)中划出的用于跨境汇款业务的划拨金额M(比如:该划拨金额为1万人民币),该划拨金额M被存证于第二区块链中。For example, taking the cross-border remittance participant as the remittance initiator, and the remittance initiator as the Alipay system as an example, the account fund information may specifically include information from the Alipay system in the second blockchain in the fund management system based on the second blockchain. The transfer amount M (for example: the transfer amount is 10,000 RMB) transferred from the account balance N (for example: the account balance is 1 million RMB) for cross-border remittance business, and the transfer amount M is deposited in the certificate in the second blockchain.
在本说明书中,上述划拨状态,用于表示与上述账户资金信息对应的账户资金是否被上述资金管理系统从在第二区块链中存证的账户余额中划出。In this specification, the above-mentioned transfer status is used to indicate whether the account funds corresponding to the above-mentioned account fund information are transferred from the account balance stored in the second blockchain by the above-mentioned fund management system.
接着以上示例继续举例,该划拨状态可以指示划拨金额M(比如为:1万人民币)从账户余额N(比如为:100万人民币)已划拨成功(此时账户余额N为(100万人民币-1万人民币=99万人民币),也可以指示划拨金额M从账户余额N未划拨成功(此时账户余额N为(100万人民币)。Continuing with the above example, the transfer status can indicate that the transfer amount M (for example: 10,000 RMB) has been successfully transferred from the account balance N (for example: 1 million RMB) (at this time, the account balance N is (1 million RMB-1 10,000 RMB=990,000 RMB), it may also indicate that the transfer amount M has not been successfully transferred from the account balance N (at this time, the account balance N is (1 million RMB).
在本说明书中,在确定上述交易状态指示上述跨境汇款参与方对链上存证的汇款信息的确认结果都为通过时,上述第一区块链可以调用上述第一智能合约中的查询逻辑跨链调用上述第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态。In this specification, when it is determined that the above-mentioned transaction status indicates that the above-mentioned cross-border remittance participants have all confirmed the remittance information stored on the chain as passed, the above-mentioned first blockchain can call the query logic in the above-mentioned first smart contract Cross-chain call the above second smart contract query to obtain the transfer status of the account fund information maintained by the second smart contract.
接着以上示例继续举例,在确定第一智能合约维护的交易状态指示所有跨境汇款参与方对链上存证的汇款信息的确认结果都为通过时,第一区块链可以调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态。Continuing with the above example, when it is determined that the transaction status maintained by the first smart contract indicates that all cross-border remittance participants have passed the confirmation results of the remittance information deposited on the chain, the first blockchain can call the first smart contract The query logic in cross-chain calls the second smart contract query to obtain the transfer status of the account fund information maintained by the second smart contract.
在本说明书中,在上述划拨状态指示与上述账户资金信息对应的账户资金已划拨成功时,上述第一区块链进一步调用上述第一智能合约对上述账户资金信息和上述汇款信息进行数据核验。In this specification, when the above-mentioned transfer status indicates that the account funds corresponding to the above-mentioned account fund information have been transferred successfully, the above-mentioned first blockchain further invokes the above-mentioned first smart contract to perform data verification on the above-mentioned account fund information and the above-mentioned remittance information.
在示出的一种实施方式中,在调用上述第一智能合约对上述账户资金信息和上述汇款信息进行数据核验的过程中,上述第一区块链通过调用上述第一智能合约中的查询逻辑跨链调用上述第二智能合约查询得到上述划拨金额,并将上述划拨金额存证于第一区块链中。In one embodiment shown, in the process of invoking the above-mentioned first smart contract to perform data verification on the above-mentioned account fund information and the above-mentioned remittance information, the above-mentioned first block chain calls the query logic in the above-mentioned first smart contract Cross-chain calls the above second smart contract to query to obtain the above transfer amount, and store the above transfer amount in the first block chain.
接着以上示例继续举例,第一区块链通过调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到划拨金额M(比如为:1万人民币或1500美元),并将该划拨金额存证于第一区块链中。Continuing with the above example, the first blockchain calls the query logic in the first smart contract to query the second smart contract across the chain to get the transfer amount M (for example: 10,000 RMB or 1,500 USD), and transfers the transfer amount Stored in the first blockchain.
在示出的一种实施方式中,在调用上述第一智能合约中的验证逻辑对上述划拨金额和第一汇款金额进行数据核验的过程中,上述第一区块链调用上述第一智能合约中的验 证逻辑核验上述划拨金额和第一汇款金额是否一致。In one embodiment shown, in the process of invoking the verification logic in the above-mentioned first smart contract to perform data verification on the above-mentioned transfer amount and the first remittance amount, the above-mentioned first block chain calls the above-mentioned first smart contract The verification logic checks whether the above transfer amount is consistent with the first remittance amount.
接着以上示例继续举例,第一区块链通过调用第一智能合约中的验证逻辑划拨金额M(比如为:1万人民币或1500美元),核验划拨金额M和第一汇款金额是否一致。Continuing with the above example, the first block chain transfers the amount M (for example: 10,000 RMB or 1,500 US dollars) by calling the verification logic in the first smart contract, and verifies whether the transferred amount M is consistent with the first remittance amount.
需要说明的是,在核验上述划拨金额和第一汇款金额是否一致的过程中,可以调用上述第一智能合约基于链上存证的与第一汇款金额对应的汇率将上述划拨金额和第一汇款金额转换为同一币种下的金额后,再比较转换为同一币种后的两者金额是否一致。It should be noted that in the process of verifying whether the above transfer amount is consistent with the first remittance amount, the above first smart contract can be called to convert the above transfer amount and the first remittance amount based on the exchange rate corresponding to the first remittance amount deposited on the chain. After the amount is converted to the amount in the same currency, compare whether the two amounts converted to the same currency are consistent.
在示出的一种实施方式中,上述划拨金额和第一汇款金额分别被对应的上述跨境汇款参与方基于同态加密算法执行了同态加密,在调用上述第一智能合约中的验证逻辑对上述划拨金额和第一汇款金额进行数据核验的过程中,上述第一区块链调用上述第一智能合约中的验证逻辑核验同态加密后的上述划拨金额和第一汇款金额是否一致。In one embodiment shown, the above-mentioned transfer amount and the first remittance amount are respectively subjected to homomorphic encryption by the above-mentioned cross-border remittance participants based on the homomorphic encryption algorithm, and the verification logic in the first smart contract is called In the process of data verification of the transfer amount and the first remittance amount, the first block chain invokes the verification logic in the first smart contract to verify whether the transfer amount after homomorphic encryption is consistent with the first remittance amount.
接着以上示例,以划拨金额被汇款发起方基于同态加密算法执行了同态加密,以及第一汇款金额被流动性提供方基于同态加密算法执行了同态加密继续举例,第一区块链可以调用第一智能合约中的验证逻辑核验同态加密后的划拨金额和第一汇款金额是否一致。Continuing with the above example, the remittance initiator performs homomorphic encryption based on the homomorphic encryption algorithm for the transfer amount, and the first remittance amount is executed by the liquidity provider based on the homomorphic encryption algorithm. Continuing the example, the first blockchain The verification logic in the first smart contract can be called to verify whether the transfer amount after homomorphic encryption is consistent with the first remittance amount.
需要说的是,由于上述划拨金额和第一汇款金额分别被对应的上述跨境汇款参与方基于同态加密算法执行了同态加密,由此可以保证即使是智能合约(第一智能合约、第二智能合约)本身也无法看到划拨金额和第一汇款金额分别对应的真实金额数值,但是可以智能合约却仍然可以针对同态加密后上述划拨金额和第一汇款金额的进行基于遵循代数运算法则的数据核验。What needs to be said is that since the above-mentioned transfer amount and the first remittance amount are respectively subjected to homomorphic encryption by the corresponding cross-border remittance participants based on the homomorphic encryption algorithm, it can be guaranteed that even smart contracts (the first smart contract, the second (2) smart contract) itself cannot see the real value of the transfer amount and the first remittance amount respectively, but the smart contract can still perform the above-mentioned transfer amount and the first remittance amount after homomorphic encryption based on following the algebraic algorithm data verification.
类似地,在上述汇款发起方将上述汇款信息提交至上述第一区块链中存证时,上述汇款发起方也可以基于同态加密算法将上述汇款信息进行同态加密后再提交至上述第一区块链保存。Similarly, when the above-mentioned remittance initiator submits the above-mentioned remittance information to the above-mentioned first blockchain for storage, the above-mentioned remittance initiator can also perform homomorphic encryption on the above-mentioned remittance information based on a homomorphic encryption algorithm and then submit it to the above-mentioned first block chain. A blockchain saves.
在本说明书中,在上述账户资金信息和上述汇款信息进行数据核验后,上述第一智能合约可以将数据核验结果存证于第一区块链中,并基于上述数据核验结果更新上述交易状态。In this specification, after the above-mentioned account fund information and the above-mentioned remittance information are verified, the above-mentioned first smart contract can store the data verification result in the first block chain, and update the above-mentioned transaction status based on the above-mentioned data verification result.
在示出的一种实施方式中,在数据核验结果为通过时,上述第一智能合约将上述交易状态更新为成功;否则,将上述交易状态更新为失败。In one embodiment shown, when the data verification result is passed, the first smart contract updates the transaction status to success; otherwise, updates the transaction status to failure.
接着以上示例继续举例,在数据核验结果为通过时,第一智能合约将维护的交易状态更新为成功;否则,维护的交易状态更新为失败。Continuing with the above example, when the data verification result is passed, the first smart contract updates the maintained transaction status to success; otherwise, the maintained transaction status is updated to fail.
在本说明书中,上述跨境汇款参与方可以获取上述第一智能合约维护的上述交易状态,并在上述交易状态指示成功时,执行与上述汇款信息对应的跨境汇款。In this specification, the above-mentioned cross-border remittance participant can obtain the above-mentioned transaction status maintained by the above-mentioned first smart contract, and execute the cross-border remittance corresponding to the above-mentioned remittance information when the above-mentioned transaction status indicates success.
接着以上示例,以收付款机构包括招商银行杭州分行和花旗银行美国分行,汇款发起方为支付宝系统,汇款接收方为摩根大通银行美国分行继续举例,在第一智能合约维护的交易状态指示成功时,招商银行杭州分行和花旗银行美国分行可以将与上述汇款进行对应的链下被冻结第一汇款金额的资金实质性划拨至摩根大通银行美国分行,以完成支付宝系统向摩根大通银行美国分行的跨境汇款。Continuing with the above example, the receiving and paying institutions include China Merchants Bank Hangzhou Branch and Citibank US Branch, the remittance initiator is the Alipay system, and the remittance receiver is JPMorgan Chase Bank US Branch. Continue the example, when the transaction status maintained by the first smart contract indicates success , China Merchants Bank Hangzhou Branch and Citibank US Branch can substantially transfer the frozen first remittance amount corresponding to the above-mentioned remittance to JPMorgan Chase Bank US Branch, so as to complete the transfer from the Alipay system to JPMorgan Chase Bank US Branch border remittance.
为了方便整体理解,请参考图3,图3是本说明书一实施例提供的一种基于智能合约跨链通信进行跨境汇款的交互过程示意图。For the convenience of overall understanding, please refer to Figure 3, which is a schematic diagram of an interactive process for cross-border remittance based on smart contract cross-chain communication provided by an embodiment of this specification.
图3中组网包括汇款发起方、流动性提供方、收付款机构、汇款接收方、部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约的第一区块链、部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约的第二区块链,与图1中的描述相同,这里不再赘述。The network in Figure 3 includes remittance initiators, liquidity providers, collection and payment institutions, remittance receivers, and the first area where the first smart contract for maintaining the transaction status of cross-border remittance participants performing cross-border remittance business is deployed The block chain and the second block chain deployed with the second smart contract for maintaining the transfer state of the account fund information of the cross-border remittance participants are the same as the description in Figure 1, and will not be repeated here.
如图3所示,汇款发起方、流动性提供方、收付款机构汇款接收方、第一智能合约、第二智能合约之间的交互过程,如下步骤所述:S300.第二智能合约中维护了与汇款信息对应的汇款发起方的账户资金信息和账户资金信息的划拨状态;S301.汇款发起方将汇款信息存证于第一区块链中;S302.流动性提供方基于汇款信息流动性计算第一汇款金额,并基于第一汇款金额更新汇款信息;S303.汇款发起方对链上存证的汇款信息进行确认;S304.流动性提供方对链上存证的汇款信息进行确认;S305.汇款接收方对链上存证的汇款信息进行确认;S306.收付款机构对链上存证的汇款信息进行确认;S307.在所有跨境汇款参与方对对链上存证的汇款信息确认通过时,第一智能合约跨链从第二智能合约获取账户资金信息和账户资金信息的划拨状态;S308.在划拨状态为已划拨成功时,核对账户资金信息和汇款信息,并更新交易状态;S309.在交易状态成功时执行与汇款信息对应的跨境汇款。As shown in Figure 3, the interaction process between the remittance initiator, liquidity provider, remittance recipient of the collection and payment institution, the first smart contract, and the second smart contract is described in the following steps: S300. The account fund information of the remittance initiator corresponding to the remittance information and the transfer status of the account fund information; S301. The remittance initiator stores the remittance information in the first block chain; S302. The liquidity provider Calculate the first remittance amount, and update the remittance information based on the first remittance amount; S303. The remittance initiator confirms the remittance information of the certificate deposited on the chain; S304. The liquidity provider confirms the remittance information of the certificate deposited on the chain; S305 .The remittance receiver confirms the remittance information stored on the chain; S306. The payment institution confirms the remittance information stored on the chain; S307. All cross-border remittance participants confirm the remittance information stored on the chain When passing, the first smart contract cross-chain obtains the account fund information and the transfer status of the account fund information from the second smart contract; S308. When the transfer status is successfully transferred, check the account fund information and remittance information, and update the transaction status; S309. Execute the cross-border remittance corresponding to the remittance information when the transaction status is successful.
通过以上实施例可见,基于第一区块链中部署的第一智能合约与第二区块链中部署的第二智能合约进行跨链通信,获取与跨境汇款业务相关的第二区块链中存证的账户资金信息并与第一区块链中存证的汇款信息进行数据核验,以及根据数据核验结果对跨境汇款业务的交易状态进行更新维护。一方面,保证了与跨境汇款业务相关的跨链数据的数据一致性。另一方面,基于区块链的去中心化架构和数据不可篡改的特性,跨境汇款参与方可以实时查询和确认跨境汇款业务的交易状态,提高了跨境汇款的透明性和安全性。It can be seen from the above embodiments that based on the cross-chain communication between the first smart contract deployed in the first blockchain and the second smart contract deployed in the second blockchain, the second blockchain related to the cross-border remittance business can be obtained. The account fund information of CDC and the remittance information stored in the first block chain are verified, and the transaction status of cross-border remittance business is updated and maintained according to the data verification results. On the one hand, the data consistency of cross-chain data related to cross-border remittance business is guaranteed. On the other hand, based on the decentralized architecture of the blockchain and the immutable characteristics of data, cross-border remittance participants can query and confirm the transaction status of cross-border remittance business in real time, which improves the transparency and security of cross-border remittance.
需要说明的是,在以上实施例中,以汇款发起方作为区块链的成员设备分别接入至第一区块链和第二区块链进行示例描述。在实际应用中,流动性提供方、收付款机构、 汇款接收方也可以在接入第一区块链之前,也预先接入至各自对应的业务管理系统中的其它区块链,并基于以上实施例描述的类似过程,实现与其它区块链与第一区块链之间的跨链数据的同步,来保证与跨境汇款业务相关的跨链数据的数据一致性。It should be noted that, in the above embodiments, the remittance initiator is used as a block chain member device to access the first block chain and the second block chain respectively for example description. In practical applications, liquidity providers, collection and payment institutions, and remittance receivers can also pre-connect to other blockchains in their corresponding business management systems before accessing the first blockchain, and based on the above The similar process described in the embodiment realizes the synchronization of cross-chain data between other blockchains and the first blockchain to ensure the data consistency of cross-chain data related to cross-border remittance business.
与上述方法实施例相对应,本说明书还提供了一种基于区块链的跨境汇款装置的实施例。Corresponding to the above method embodiments, this specification also provides an embodiment of a blockchain-based cross-border remittance device.
本说明书的基于区块链的分级存储装置的实施例可以应用在电子设备上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在电子设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。The embodiment of the blockchain-based hierarchical storage device in this specification can be applied to electronic equipment. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory for operation by the processor of the electronic device where it is located.
从硬件层面而言,如图4所示,为本说明书的基于区块链的跨境汇款装置所在电子设备的一种硬件结构图,除了图4所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的电子设备通常根据该电子设备的实际功能,还可以包括其他硬件,对此不再赘述。From the perspective of hardware, as shown in Figure 4, it is a hardware structure diagram of the electronic device where the blockchain-based cross-border remittance device in this manual is located, except for the processor, memory, network interface, and In addition to the non-volatile memory, the electronic device where the device in the embodiment is located usually may also include other hardware according to the actual function of the electronic device, which will not be repeated here.
图5是本说明书一示例性实施例示出的一种基于区块链的跨境汇款装置的框图。Fig. 5 is a block diagram of a blockchain-based cross-border remittance device shown in an exemplary embodiment of this specification.
请参考图5,基于区块链的跨境汇款装置50可以应用在前述图4所示的电子设备中;其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与所述跨境汇款业务对应的汇款信息;所述装置50包括:查询模块501,在确定所述交易状态指示跨境汇款参与方对所述汇款信息确认通过时,调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态;汇款模块502,在所述划拨状态指示与所述账户资金信息对应的账户资金已划拨成功时,进一步调用第一智能合约对所述账户资金信息和所述汇款信息进行数据核验,并基于数据核验结果更新所述交易状态,以使跨境汇款参与方在所述交易状态指示成功时,执行与汇款信息对应的跨境汇款。Please refer to Figure 5, the block chain-based cross-border remittance device 50 can be applied to the electronic device shown in Figure 4 above; wherein, the first block chain is deployed to maintain cross-border remittance participants to perform cross-border remittance The first smart contract for the transaction status of the business; the second smart contract for maintaining the transfer status of the account fund information of the cross-border remittance participants is deployed in the second block chain; the first smart contract and the second smart contract are bound to each other cross-chain communication; the remittance information corresponding to the cross-border remittance business is stored in the first block chain; the device 50 includes: a query module 501, which indicates that the cross-border remittance When the remittance information is confirmed, call the query logic in the first smart contract to cross-chain call the second smart contract to query and obtain the transfer status of the account fund information maintained by the second smart contract; the remittance module 502, when the transfer status indication and When the account funds corresponding to the account fund information have been transferred successfully, the first smart contract is further called to perform data verification on the account fund information and the remittance information, and the transaction status is updated based on the data verification results, so that cross-border The remittance participant executes the cross-border remittance corresponding to the remittance information when the transaction status indicates success.
在本实施例中,所述跨境汇款参与方包括汇款发起方,所述装置还包括存证模块,所述存证模块:接收汇款发起方发起的将所述汇款信息进行存证的存证请求;响应于所述存证请求,调用第一智能合约的存证逻辑将所述汇款信息存证在第一区块链中。In this embodiment, the cross-border remittance participant includes the remittance initiator, and the device further includes a certificate depositing module, the certificate depositing module: receiving a certificate depositing the remittance information initiated by the remittance initiator request; in response to the certificate deposit request, calling the certificate deposit logic of the first smart contract to deposit the remittance information in the first block chain.
在本实施例中,所述汇款信息包括汇款账号、汇款金额、汇款币种和收款账号;所述存证模块进一步:调用第一智能合约中的存证逻辑将汇款账号、汇款金额、汇款币种和收款账号保存在第一区块链中。In this embodiment, the remittance information includes remittance account number, remittance amount, remittance currency, and remittance account number; Currency and receiving account number are stored in the first blockchain.
在本实施例中,所述跨境汇款参与方还包括流动性提供方;所述存证模块进一步:流动性提供方从第一区块链获取所述汇款金额和所述汇款币种,以使流动性提供方基于所述汇款金额和所述汇款币种进行流动性计算,得到与所述汇款币种对应的汇率以及所述汇款金额在所述汇率下的第一汇款金额,将第一汇款金额更新至链上存证的所述汇款信息中。In this embodiment, the cross-border remittance participant also includes a liquidity provider; the deposit certificate module further: the liquidity provider obtains the remittance amount and the remittance currency from the first block chain to Make the liquidity provider perform liquidity calculation based on the remittance amount and the remittance currency, obtain the exchange rate corresponding to the remittance currency and the first remittance amount of the remittance amount under the exchange rate, and convert the first The remittance amount is updated to the remittance information in the certificate stored on the chain.
在本实施例中,所述跨境汇款参与方还包括汇款接收方;所述存证模块进一步:汇款接收方从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以及将对所述汇款信息的确认结果存证于第一区块链中。In this embodiment, the cross-border remittance participant also includes a remittance receiver; the certificate deposit module further: the remittance receiver acquires the remittance information from the first block chain and confirms the acquired remittance information , and store the confirmation result of the remittance information in the first block chain.
在本实施例中,所述跨境汇款参与方还包括收付款机构;所述存证模块进一步:收付款机构从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以及将对所述汇款信息的确认结果存证于第一区块链中。In this embodiment, the cross-border remittance participant also includes a collection and payment institution; the certificate deposit module further: the collection and payment institution obtains the remittance information from the first block chain and confirms the obtained remittance information , and store the confirmation result of the remittance information in the first block chain.
在本实施例中,所述账户资金信息包括从跨境汇款参与方在第二区块链中存证的账户资金中划出的用于跨境汇款业务的划拨金额;所述汇款模块502进一步:调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到所述划拨金额,并将所述划拨金额存证于第一区块链中;调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,并将基于数据核验结果存证于第一区块链中。In this embodiment, the account fund information includes the transfer amount used for the cross-border remittance business from the account funds deposited by the cross-border remittance participant in the second block chain; the remittance module 502 further : Call the query logic in the first smart contract to cross-chain call the second smart contract to query to get the transfer amount, and store the transfer amount in the first block chain; call the verification logic in the first smart contract to The transfer amount and the first remittance amount are subject to data verification, and will be stored in the first block chain based on the data verification results.
在本实施例中,所述汇款模块502进一步:调用第一智能合约中的验证逻辑核验所述划拨金额和第一汇款金额是否一致。In this embodiment, the remittance module 502 further: calls the verification logic in the first smart contract to check whether the transfer amount is consistent with the first remittance amount.
在本实施例中,所述划拨金额和第一汇款金额分别被对应的跨境汇款参与方基于同态加密算法执行了同态加密;所述汇款模块502进一步:调用第一智能合约中的验证逻辑核验同态加密后的所述划拨金额和第一汇款金额是否一致。In this embodiment, the transfer amount and the first remittance amount are respectively subjected to homomorphic encryption by corresponding cross-border remittance participants based on a homomorphic encryption algorithm; the remittance module 502 further: calls the verification in the first smart contract Logically check whether the transfer amount after homomorphic encryption is consistent with the first remittance amount.
在本实施例中,所述汇款模块502进一步:在数据核验结果为通过时,将所述交易状态更新为成功;否则,将所述交易状态更新为失败。In this embodiment, the remittance module 502 further: when the data verification result is passed, update the transaction status to success; otherwise, update the transaction status to failure.
在本实施例中,所述区块链为联盟链。In this embodiment, the block chain is an alliance chain.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules, or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer, which may take the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, e-mail device, game control device, etc. desktops, tablets, wearables, or any combination of these.
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer-readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.
在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。Terms used in one or more embodiments of the present specification are for the purpose of describing specific embodiments only, and are not intended to limit the one or more embodiments of the present specification. As used in one or more embodiments of this specification and the appended claims, the singular forms "a", "the", and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用 的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of one or more embodiments of this specification, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination".
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。The above descriptions are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. Within the spirit and principles of one or more embodiments of this specification, Any modification, equivalent replacement, improvement, etc. should be included in the scope of protection of one or more embodiments of this specification.

Claims (13)

  1. 一种基于区块链的跨境汇款方法,应用于基于第一区块链和第二区块链搭建的跨境汇款管理系统;其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与所述跨境汇款业务对应的汇款信息;所述方法包括:A blockchain-based cross-border remittance method, applied to a cross-border remittance management system based on the first blockchain and the second blockchain; wherein, the first blockchain is deployed to maintain cross-border remittance Participants execute the first smart contract of the transaction state of the cross-border remittance business; the second smart contract is deployed in the second block chain to maintain the transfer status of the account fund information of the cross-border remittance participant; the first smart contract and The second smart contract is bound to each other for cross-chain communication; the remittance information corresponding to the cross-border remittance business is stored in the first block chain; the method includes:
    在确定所述交易状态指示跨境汇款参与方对所述汇款信息确认通过时,调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态;When it is determined that the transaction status indicates that the cross-border remittance participant has confirmed the remittance information, call the query logic in the first smart contract to cross-chain call the second smart contract to query and obtain the transfer of the account fund information maintained by the second smart contract state;
    在所述划拨状态指示与所述账户资金信息对应的账户资金已划拨成功时,进一步调用第一智能合约对所述账户资金信息和所述汇款信息进行数据核验,并基于数据核验结果更新所述交易状态,以使跨境汇款参与方在所述交易状态指示成功时,执行与汇款信息对应的跨境汇款。When the transfer status indicates that the account funds corresponding to the account fund information have been transferred successfully, the first smart contract is further invoked to perform data verification on the account fund information and the remittance information, and update the The transaction status, so that the cross-border remittance participant executes the cross-border remittance corresponding to the remittance information when the transaction status indicates success.
  2. 根据权利要求1所述的方法,所述跨境汇款参与方包括汇款发起方,所述方法还包括:According to the method according to claim 1, the cross-border remittance participants include remittance initiators, and the method further includes:
    接收汇款发起方发起的将所述汇款信息进行存证的存证请求;响应于所述存证请求,调用第一智能合约的存证逻辑将所述汇款信息存证在第一区块链中。Receiving a certificate deposit request for depositing the remittance information initiated by the remittance initiator; in response to the certificate deposit request, calling the certificate deposit logic of the first smart contract to deposit the remittance information in the first block chain .
  3. 根据权利要求2所述的方法,所述汇款信息包括汇款账号、汇款金额、汇款币种和收款账号;According to the method according to claim 2, the remittance information includes remittance account number, remittance amount, remittance currency, and remittance account number;
    所述调用第一智能合约的存证逻辑将所述汇款信息存证在第一区块链中,包括:The deposit logic of calling the first smart contract stores the remittance information in the first block chain, including:
    调用第一智能合约中的存证逻辑将汇款账号、汇款金额、汇款币种和收款账号保存在第一区块链中。The deposit logic in the first smart contract is invoked to save the remittance account number, remittance amount, remittance currency and collection account number in the first blockchain.
  4. 根据权利要求3所述的方法,所述跨境汇款参与方还包括流动性提供方;所述方法还包括:According to the method according to claim 3, said cross-border remittance participants also include liquidity providers; said method also includes:
    流动性提供方从第一区块链获取所述汇款金额和所述汇款币种,以使流动性提供方基于所述汇款金额和所述汇款币种进行流动性计算,得到与所述汇款币种对应的汇率以及所述汇款金额在所述汇率下的第一汇款金额,将第一汇款金额更新至链上存证的所述汇款信息中。The liquidity provider obtains the remittance amount and the remittance currency from the first block chain, so that the liquidity provider performs liquidity calculation based on the remittance amount and the remittance currency, and obtains the remittance currency A corresponding exchange rate and the first remittance amount of the remittance amount under the exchange rate, and update the first remittance amount to the remittance information stored on the chain.
  5. 根据权利要求2所述的方法,所述跨境汇款参与方还包括汇款接收方;所述方法还包括:According to the method according to claim 2, said cross-border remittance participants also include remittance receivers; said method also includes:
    汇款接收方从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以 及将对所述汇款信息的确认结果存证于第一区块链中。The remittance receiver obtains the remittance information from the first block chain and confirms the obtained remittance information, and stores the confirmation result of the remittance information in the first block chain.
  6. 根据权利要求2所述的方法,所述跨境汇款参与方还包括收付款机构;所述方法还包括:According to the method according to claim 2, said cross-border remittance participants also include collection and payment institutions; said method also includes:
    收付款机构从第一区块链获取所述汇款信息并对获取的所述汇款信息进行确认,以及将对所述汇款信息的确认结果存证于第一区块链中。The collection and payment institution obtains the remittance information from the first block chain, confirms the obtained remittance information, and stores the confirmation result of the remittance information in the first block chain.
  7. 根据权利要求4所述的方法,所述账户资金信息包括从跨境汇款参与方在第二区块链中存证的账户资金中划出的用于跨境汇款业务的划拨金额;According to the method according to claim 4, the account fund information includes the transfer amount for the cross-border remittance business drawn from the account funds deposited by the cross-border remittance participant in the second block chain;
    所述调用第一智能合约对所述账户资金信息和所述汇款信息进行数据核验,包括:The calling of the first smart contract to perform data verification on the account fund information and the remittance information includes:
    调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到所述划拨金额,并将所述划拨金额存证于第一区块链中;Invoke the query logic in the first smart contract to cross-chain call the second smart contract to query the transfer amount, and store the transfer amount in the first block chain;
    调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,并将基于数据核验结果存证于第一区块链中。The verification logic in the first smart contract is invoked to perform data verification on the transferred amount and the first remittance amount, and the result of the data verification is stored in the first block chain.
  8. 根据权利要求7所述的方法,所述调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,包括:The method according to claim 7, said calling the verification logic in the first smart contract to perform data verification on the transfer amount and the first remittance amount, comprising:
    调用第一智能合约中的验证逻辑核验所述划拨金额和第一汇款金额是否一致。Call the verification logic in the first smart contract to verify whether the transfer amount is consistent with the first remittance amount.
  9. 根据权利要求8所述的方法,所述划拨金额和第一汇款金额分别被对应的跨境汇款参与方基于同态加密算法执行了同态加密;According to the method according to claim 8, the transfer amount and the first remittance amount are respectively subjected to homomorphic encryption by corresponding cross-border remittance participants based on a homomorphic encryption algorithm;
    所述调用第一智能合约中的验证逻辑对所述划拨金额和第一汇款金额进行数据核验,包括:The calling of the verification logic in the first smart contract performs data verification on the transfer amount and the first remittance amount, including:
    调用第一智能合约中的验证逻辑核验同态加密后的所述划拨金额和第一汇款金额是否一致。The verification logic in the first smart contract is invoked to verify whether the transfer amount after homomorphic encryption is consistent with the first remittance amount.
  10. 根据权利要求1所述的方法,所述基于数据核验结果更新所述交易状态,包括:The method according to claim 1, said updating said transaction status based on data verification results, comprising:
    在数据核验结果为通过时,将所述交易状态更新为成功;否则,将所述交易状态更新为失败。When the data verification result is passed, the transaction status is updated as successful; otherwise, the transaction status is updated as failure.
  11. 根据权利要求1所述的方法,所述区块链为联盟链。The method according to claim 1, the block chain is an alliance chain.
  12. 一种基于区块链的跨境汇款装置;应用于基于第一区块链和第二区块链搭建的跨境汇款管理系统;其中,第一区块链中部署了用于维护跨境汇款参与方执行跨境汇款业务的交易状态的第一智能合约;第二区块链中部署了用于维护跨境汇款参与方的账户资金信息的划拨状态的第二智能合约;第一智能合约与第二智能合约互相绑定进行跨链通信;第一区块链中存证了与所述跨境汇款业务对应的汇款信息;所述装置包括:A block chain-based cross-border remittance device; applied to a cross-border remittance management system based on the first block chain and the second block chain; wherein, the first block chain is deployed to maintain cross-border remittance Participants execute the first smart contract of the transaction state of the cross-border remittance business; the second smart contract is deployed in the second block chain to maintain the transfer status of the account fund information of the cross-border remittance participant; the first smart contract and The second smart contract is bound to each other for cross-chain communication; the remittance information corresponding to the cross-border remittance business is stored in the first block chain; the device includes:
    查询模块,在确定所述交易状态指示跨境汇款参与方对所述汇款信息确认通过时, 调用第一智能合约中的查询逻辑跨链调用第二智能合约查询得到第二智能合约维护的账户资金信息的划拨状态;The query module, when it is determined that the transaction status indicates that the cross-border remittance participant has confirmed the remittance information, calls the query logic in the first smart contract to cross-chain call the second smart contract to query and obtain the account funds maintained by the second smart contract the transfer status of the information;
    汇款模块,在所述划拨状态指示与所述账户资金信息对应的账户资金已划拨成功时,进一步调用第一智能合约对所述账户资金信息和所述汇款信息进行数据核验,并基于数据核验结果更新所述交易状态,以使跨境汇款参与方在所述交易状态指示成功时,执行与汇款信息对应的跨境汇款。The remittance module further invokes the first smart contract to perform data verification on the account fund information and the remittance information when the transfer status indicates that the account funds corresponding to the account fund information have been transferred successfully, and based on the data verification result The transaction status is updated, so that the cross-border remittance participant executes the cross-border remittance corresponding to the remittance information when the transaction status indicates success.
  13. 一种电子设备,包括:An electronic device comprising:
    处理器;用于存储处理器可执行指令的存储器;processor; memory for storing instructions executable by the processor;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-11中任一项所述的方法。Wherein, the processor implements the method according to any one of claims 1-11 by running the executable instruction.
PCT/CN2022/127252 2021-11-08 2022-10-25 Blockchain-based cross-border remittance WO2023078124A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111315898.8 2021-11-08
CN202111315898.8A CN114118988A (en) 2021-11-08 2021-11-08 Cross-border remittance method and device based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023078124A1 true WO2023078124A1 (en) 2023-05-11

Family

ID=80377566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/127252 WO2023078124A1 (en) 2021-11-08 2022-10-25 Blockchain-based cross-border remittance

Country Status (2)

Country Link
CN (1) CN114118988A (en)
WO (1) WO2023078124A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116797376A (en) * 2023-08-26 2023-09-22 杭州字节方舟科技有限公司 Asset management method, system, server and storage medium based on block chain
CN117132285A (en) * 2023-08-18 2023-11-28 上海蚂蚁创将信息技术有限公司 Wind control method, device, medium and computing equipment for transfer transaction

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114118988A (en) * 2021-11-08 2022-03-01 支付宝(杭州)信息技术有限公司 Cross-border remittance method and device based on block chain and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876363A (en) * 2018-04-18 2018-11-23 北京天德科技有限公司 A kind of cross-border supervision reporting system based on double-strand framework block chain
CN109767336A (en) * 2018-12-27 2019-05-17 福建省农村信用社联合社 It is a kind of based on block chain P2P financing platform fund bank deposit pipe management method
KR20190114536A (en) * 2018-03-30 2019-10-10 브이스트로 주식회사 System and method for advance remittance before shipment based on block chain
CN110609869A (en) * 2019-09-10 2019-12-24 连连银通电子支付有限公司 Block chain-based data storage method, related equipment and storage medium
CN112651724A (en) * 2020-04-28 2021-04-13 北京邮电大学 Cross-chain interaction method, device and system
CN112884470A (en) * 2021-03-31 2021-06-01 中国工商银行股份有限公司 Cross-border remittance information processing method and device based on block chain alliance chain
CN113220717A (en) * 2021-05-11 2021-08-06 支付宝(杭州)信息技术有限公司 Block chain-based data verification method and device and electronic equipment
CN113222599A (en) * 2021-05-11 2021-08-06 支付宝(杭州)信息技术有限公司 Block chain-based remittance method, device, equipment and storage medium
CN113409145A (en) * 2021-06-18 2021-09-17 支付宝(杭州)信息技术有限公司 Cross-block-chain transaction synchronization method and device
CN114118988A (en) * 2021-11-08 2022-03-01 支付宝(杭州)信息技术有限公司 Cross-border remittance method and device based on block chain and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190114536A (en) * 2018-03-30 2019-10-10 브이스트로 주식회사 System and method for advance remittance before shipment based on block chain
CN108876363A (en) * 2018-04-18 2018-11-23 北京天德科技有限公司 A kind of cross-border supervision reporting system based on double-strand framework block chain
CN109767336A (en) * 2018-12-27 2019-05-17 福建省农村信用社联合社 It is a kind of based on block chain P2P financing platform fund bank deposit pipe management method
CN110609869A (en) * 2019-09-10 2019-12-24 连连银通电子支付有限公司 Block chain-based data storage method, related equipment and storage medium
CN112651724A (en) * 2020-04-28 2021-04-13 北京邮电大学 Cross-chain interaction method, device and system
CN112884470A (en) * 2021-03-31 2021-06-01 中国工商银行股份有限公司 Cross-border remittance information processing method and device based on block chain alliance chain
CN113220717A (en) * 2021-05-11 2021-08-06 支付宝(杭州)信息技术有限公司 Block chain-based data verification method and device and electronic equipment
CN113222599A (en) * 2021-05-11 2021-08-06 支付宝(杭州)信息技术有限公司 Block chain-based remittance method, device, equipment and storage medium
CN113409145A (en) * 2021-06-18 2021-09-17 支付宝(杭州)信息技术有限公司 Cross-block-chain transaction synchronization method and device
CN114118988A (en) * 2021-11-08 2022-03-01 支付宝(杭州)信息技术有限公司 Cross-border remittance method and device based on block chain and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117132285A (en) * 2023-08-18 2023-11-28 上海蚂蚁创将信息技术有限公司 Wind control method, device, medium and computing equipment for transfer transaction
CN116797376A (en) * 2023-08-26 2023-09-22 杭州字节方舟科技有限公司 Asset management method, system, server and storage medium based on block chain
CN116797376B (en) * 2023-08-26 2023-12-01 杭州字节方舟科技有限公司 Asset management method, system, server and storage medium based on block chain

Also Published As

Publication number Publication date
CN114118988A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
TWI756498B (en) Fallback processing method and device for asset transfer, and electronic equipment
US11695578B2 (en) Systems and methods for storing and sharing transactional data using distributed computer systems
JP7112690B2 (en) Digital Wealth Management for Decentralized Transaction Consensus Network
WO2021042818A1 (en) Blockchain-based asset query method and apparatus, and electronic device
CN108364229B (en) Capital transfer method and device and electronic equipment
WO2023078124A1 (en) Blockchain-based cross-border remittance
TWI725355B (en) Fund circulation method and device, electronic equipment
WO2021042817A1 (en) Block chain-based default asset processing method, apparatus, and electronic device
TWI733063B (en) Asset transfer method and device, electronic equipment
US11669831B2 (en) Tokenized asset backed by government bonds and identity and risk scoring of associated token transactions
TWI699725B (en) Asset transfer method and device, electronic equipment
WO2021042809A1 (en) Asset purchase method and apparatus based on blockchain, and electronic device
US20210374853A1 (en) Atomically swapping ownership certificates
TW201926203A (en) Resource transfer and capital transfer method and apparatus
CN111612446A (en) Block chain balance adjusting method and device and electronic equipment
JP2020014193A (en) Computer network system for cryptographically protected token-based alternative management, and method of using the same
KR101936759B1 (en) Apparatus and Method for KYC using KYC blockchain
TW202016820A (en) Block-chain transaction method and device, and electronic device
TW202016819A (en) Block-chain transaction method and device and electronic device
WO2021042810A1 (en) Asset settlement method and apparatus employing blockchain, and electronic device
CN111738724B (en) Cross-border resource transfer authenticity auditing method and device, and electronic equipment
US20230385787A1 (en) Infrastructure for maintaining math-based currency accounts
JP6544695B2 (en) Virtual currency management program and method
WO2023078119A1 (en) Blockchain-based cross-border remittance
US11170351B1 (en) Systems and methods for identity verification of math-based currency account holders

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22889149

Country of ref document: EP

Kind code of ref document: A1