A digital RMB payment method and device based on smart contract
The digital renminbi payment process is supervised through smart contract technology, which solves the problem of funds not being earmarked and being misappropriated at will in fiscal payment scenarios, and achieves precise investment of fiscal funds.
Patent Information
- Application Number
- CN202310531011.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-05-11
AI Technical Summary
In the existing fiscal payment scenario, the digital RMB payment process lacks supervision, resulting in the problem of funds not being truly 'dedicated for special purposes, and funds being misappropriated for other purposes at will', making it impossible to realize the precise investment of fiscal special funds.
Adopt a digital RMB payment method based on smart contracts. By obtaining the payment request sent by the payer client, determine the smart contract corresponding to the payer client, and match the smart contract in the payment request. If the matching result includes payment vouchers and digital RMB special items account, transfer the payment amount to the designated account within the payment time limit, and realize the supervision of the digital RMB special account.
This effectively avoids the situation where the funds are not truly earmarked and the funds are misappropriated for other purposes at will, thus achieving the precise investment of special fiscal funds.
Smart Images

Figure CN116757684B
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital RMB payment technology, and in particular to a digital RMB payment method, device and storage medium based on smart contracts. Background Art
[0002] As a sovereign digital currency that is expected to reshape the existing payment industry chain, the digital RMB has been widely used in various scenarios such as life services, retail consumption, catering services, transportation, education and medical care, smart people's livelihood, and government services.
[0003] Special fiscal funds refer to funds with designated purposes by public authorities. Therefore, special fiscal funds are required to be separately accounted for, and they must be used for specific purposes and cannot be used for other purposes. Among them, fiscal funds are wide-ranging and large in volume. During the pilot phase of the digital RMB, they are only used in some payment scenarios, and in the existing fiscal payment scenarios, there is no supervision of the digital RMB payment process, resulting in the situation where funds are not truly "special funds for specific purposes" and funds are arbitrarily misappropriated for other purposes, making it impossible to achieve the precise delivery of fiscal special funds to end users. Summary of the invention
[0004] This application provides a digital RMB payment method, device and storage medium based on smart contracts to solve the problems arising in the above-mentioned related technologies.
[0005] The first embodiment of the present application proposes a digital RMB payment method based on a smart contract, which is applied to a first client and includes:
[0006] Obtaining a payment request sent by a payer client, wherein the payment request includes a first smart contract signed between the payer client and a payee client, and the first smart contract includes a payment amount, a payment time limit, and payer client information;
[0007] Determine, according to the payer client information, a second smart contract corresponding to the payer client;
[0008] Matching the first smart contract in the received payment request with the second smart contract corresponding to the payer client to obtain a matching result;
[0009] If the matching result includes a payment voucher and a first digital RMB special account, the payment amount shall be transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the payee client in the first client.
[0010] The second embodiment of the present application proposes a digital RMB payment method based on a smart contract, which is applied to a second client, including:
[0011] Determine a second smart contract, wherein the second smart contract is used to limit the use of funds in a special fund account, and the special fund account is a fund account opened by the second client in the first client;
[0012] Send the second smart contract and the special fund account to the first client.
[0013] The third embodiment of the present application proposes a digital RMB payment method based on a smart contract, which is applied to a payer client, including:
[0014] A payment request is sent to the first client, wherein the payment request includes a first smart contract signed between the payer client and the payee client, and the first smart contract includes a payment amount, a payment time limit, and payer client information.
[0015] The fourth aspect of the present application proposes a digital RMB payment device based on a smart contract, which is applied to a first client and includes:
[0016] An acquisition module, configured to acquire a payment request sent by a payer client, wherein the payment request includes a first smart contract signed between the payer client and a payee client, wherein the first smart contract includes a payment amount, a payment time limit, and payer client information;
[0017] A determination module, used to determine the second smart contract corresponding to the payer client according to the payer client information;
[0018] A matching module, used to match the first smart contract in the received payment request with the second smart contract corresponding to the payer client to obtain a matching result;
[0019] A transaction module, used to transfer the payment amount from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit if the matching result includes a payment voucher and a first digital RMB special account, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the payee client in the first client.
[0020] The fifth aspect of the present application proposes a digital RMB payment device based on a smart contract, which is applied to a second client, including:
[0021] A determination module, configured to determine a second smart contract, wherein the second smart contract is configured to define a method for using funds in a special fund account, wherein the special fund account is a fund account opened by the second client at the first client;
[0022] A sending module is used to send the second smart contract and the special fund account to the first client.
[0023] The sixth embodiment of the present application proposes a digital RMB payment device based on a smart contract, which is applied to a payer client, including:
[0024] The sending module is used to send a payment request to the first client, wherein the payment request includes a first smart contract signed between the payer client and the payee client, and the first smart contract includes a payment amount, a payment time limit and payer client information.
[0025] The seventh aspect of the present application proposes a computer storage medium, wherein the computer storage medium stores computer executable instructions; after the computer executable instructions are executed by the processor, any method described in the first to third aspects above can be implemented.
[0026] The computer device proposed in the eighth aspect of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it can implement any method described in the first to third aspects above.
[0027] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0028] In the digital RMB payment method, device and storage medium based on smart contract proposed in this application, a payment request sent by the payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the payee client, and the first smart contract includes the payment amount, payment time limit and payee client information; according to the payee client information, the second smart contract corresponding to the payee client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payee client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the payee client in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0029] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0031] Figure 1 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application;
[0032] Figure 2 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application;
[0033] Figure 3 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application;
[0034] Figure 4 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application;
[0035] Figure 5 A schematic diagram of the structure of a digital RMB payment device based on a smart contract provided according to an embodiment of the present application;
[0036] Figure 6A schematic diagram of the structure of a digital RMB payment device based on a smart contract provided according to an embodiment of the present application;
[0037] Figure 7 This is a structural diagram of a digital RMB payment device based on a smart contract provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0039] The following describes the digital RMB payment method and device based on smart contracts in an embodiment of the present application with reference to the accompanying drawings.
[0040] Embodiment 1
[0041] Figure 1 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application, applied to a first client, such as Figure 1 As shown, it may include:
[0042] Step 101: Obtain a payment request sent by a payer client, wherein the payment request includes a first smart contract signed between the payer client and the payee client, and the first smart contract includes a payment amount, a payment time limit, and payer client information.
[0043] Among them, in the embodiment of the present application, the above-mentioned first client can be a bank client, the payer client can be an enterprise client, and the above-mentioned client to be paid can be a consumer client that the enterprise needs to pay the amount.
[0044] Furthermore, in an embodiment of the present application, the above-mentioned payer client information may include the registration information of the payer client (such as a registration number).
[0045] Furthermore, in an embodiment of the present application, if the payer client needs to make a purchase from the payee client, a first smart contract is signed with the payee client, and the payer client needs to send a payment request to the first client, and the payment request includes the first smart contract, so that the first client can supervise the payment process of the payer client.
[0046] Step 102: Determine the second smart contract corresponding to the payer client according to the payer client information.
[0047] In the embodiment of the present application, the first client stores the second smart contract corresponding to each payer client. Also, in the embodiment of the present application, the second smart contract is used to constrain the use of funds in the special fund account of the second client, and the second client can be a financial department client.
[0048] Also, in an embodiment of the present application, after the first client obtains the payment request of the payer client, it is necessary to determine the second smart contract corresponding to the payer client based on the payer client information, so as to subsequently determine whether the payment request of the payer client complies with the second smart contract, so as to supervise the special funds of the payer client.
[0049] Step 103: Match the first smart contract in the received payment request with the second smart contract corresponding to the payer client to obtain a matching result.
[0050] Among them, in an embodiment of the present application, after determining the second smart contract of the payer client, the first smart contract in the received payment request can be matched with the second smart contract corresponding to the payer client to determine whether the first smart contract of the payer client complies with the contract information in the second smart contract to determine whether to pay the payer client.
[0051] Furthermore, in an embodiment of the present application, the first smart contract may also include registration information and payment information of the client to be paid.
[0052] Specifically, in the embodiment of the present application, the method for matching the first smart contract in the received payment request with the second smart contract corresponding to the payer client to obtain a matching result may include the following steps:
[0053] Step 1031: Based on the registration information and payment information of the payee client in the first smart contract, determine whether the first smart contract complies with the contract information in the second smart contract;
[0054] In the embodiment of the present application, the payment information in the first smart contract may include the payment type; the contract information of the second smart contract may include the payer client information, at least one funding type, the budget amount corresponding to each funding type, and the budget execution time. At least one funding type may include travel expenses, conference fees, and intellectual property fees.
[0055] And, in the embodiment of the present application, the method for determining whether the first smart contract complies with the contract information in the second smart contract based on the registration information and payment information of the payee client in the first smart contract may include the following steps:
[0056] Step 1: Determine the business type of the client to be paid according to the registration information of the client to be paid in the first smart contract;
[0057] Step 2: Determine whether the business type of the client to be paid includes the payment type in the payment information;
[0058] For example, in an embodiment of the present application, assuming that the business type of the client to be paid is accommodation and catering, and the payment type is accommodation, then it is determined that the business type of the client to be paid includes the payment type; if the payment type is intellectual property consulting fee, then it is determined that the business type of the client to be paid does not include the payment type.
[0059] Step 3: If the business type of the client to be paid includes the payment type in the payment information, determine whether at least one funding type includes the payment type;
[0060] Among them, in the embodiment of the present application, if the business type of the client to be paid does not include the payment type in the payment information, it means that the business type of the client to be paid does not match the payment type, and it is determined that the first smart contract does not comply with the contract information in the second smart contract.
[0061] Furthermore, in an embodiment of the present application, if the business type of the client to be paid includes a payment type, it is determined whether at least one funding type includes a payment type.
[0062] For example, in an embodiment of the present application, assuming that the payment type is accommodation fees, at least one funding type may include travel expenses, conference fees, and intellectual property fees, then it is determined that at least one funding type includes the payment type.
[0063] Step 4: If at least one funding type includes a payment type, determine whether the payment amount is less than or equal to the budget amount of the funding type corresponding to the payment type;
[0064] Among them, in the embodiment of the present application, if at least one funding type does not include a payment type, it is determined that the first smart contract does not comply with the contract information in the second smart contract.
[0065] Step 5: If the payment amount is less than or equal to the budget amount of the funding type corresponding to the payment type, it is determined that the first smart contract complies with the contract information in the second smart contract.
[0066] Among them, in an embodiment of the present application, if the payment amount is greater than the budget amount of the funding type corresponding to the payment type, it is determined that the first smart contract does not comply with the contract information in the second smart contract.
[0067] Step 1032: If the first smart contract matches the contract information in the second smart contract, the payment voucher and the first digital RMB special account are obtained;
[0068] Among them, in the embodiment of the present application, the above-mentioned first digital RMB special account is a special account of the payment type corresponding to the funding type.
[0069] Furthermore, in an embodiment of the present application, if the first smart contract does not match the contract information in the second smart contract, the obtained matching result is invalid.
[0070] Step 1033: Obtain a matching result based on the payment voucher and the first digital RMB special account.
[0071] Among them, in an embodiment of the present application, the above matching results include payment credentials and the first digital RMB special account.
[0072] Step 104. If the matching result includes the payment voucher and the first digital RMB special account, the payment amount will be transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit.
[0073] Among them, in the embodiment of the present application, the above-mentioned second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the payer client in the first client.
[0074] Also, in an embodiment of the present application, if the matching result includes a payment voucher and a first digital RMB special account, the first client can transfer the payment amount from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit to complete the payment by the payer client to the payer client.
[0075] Furthermore, in an embodiment of the present application, if the matching result is invalid, indicating that the payment request of the payee client is unreasonable, the first client refuses to pay the corresponding payment amount to the payee client and sends a payment rejection request to the payee client.
[0076] In the digital RMB payment method based on smart contracts proposed in this application, a payment request sent by a payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the client to be paid, and the first smart contract includes a payment amount, a payment time limit and the payer client information; according to the payer client information, the second smart contract corresponding to the payer client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payer client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the client to be paid in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0077] Embodiment 2
[0078] Figure 2 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application, applied to a first client, such as Figure 2 As shown, it may include:
[0079] Step 201: Receive a second smart contract and a special fund account sent by a second client.
[0080] Among them, in the embodiment of the present application, the above-mentioned second smart contract is used to restrict the use of funds in the special fund account, and the special fund account is a fund account opened by the second client in the first client.
[0081] Step 202: parse the second smart contract to obtain the payer client information, at least one funding type, and the budget amount corresponding to each funding type in the second smart contract.
[0082] Among them, in the embodiment of the present application, each funding type has a corresponding budget amount.
[0083] Step 203: Store the second smart contract according to the payer client information.
[0084] Step 204: Based on at least one funding type, open a special account of the first digital RMB corresponding to each funding type, and transfer the budget amount corresponding to each funding type from the special fund account to the special account of the first digital RMB corresponding to each funding type.
[0085] Among them, in the embodiment of the present application, each funding type has a corresponding first digital RMB special account. For example, in the embodiment of the present application, the above funding type 1 corresponds to the first digital RMB special account 1, funding type 2 corresponds to the second digital RMB special account 2, and funding type 3 corresponds to the third digital RMB special account 3.
[0086] Step 205: Obtain a payment request sent by the payer client, wherein the payment request includes a first smart contract signed between the payer client and the payee client, and the first smart contract includes a payment amount, a payment time limit, and payer client information.
[0087] Step 206: Determine the second smart contract corresponding to the payer client according to the payer client information.
[0088] Step 207: Match the first smart contract in the received payment request with the second smart contract corresponding to the payer client to obtain a matching result.
[0089] Step 208. If the matching result includes the payment voucher and the first digital RMB special account, the payment amount will be transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit.
[0090] Among them, in the embodiment of the present application, the funds in the first digital RMB special account corresponding to each funding type are paid in the form of digital RMB to the relevant corresponding payer clients or payee clients, so that based on the blockchain-like, distributed ledger, unalterable, traceable and other characteristics of the digital RMB, the payment path, recipient, trajectory, time and amount of the digital RMB can be traced and tracked, thereby realizing the supervision of the funds.
[0091] For the relevant introduction of steps 205 to 208, reference may be made to the detailed introduction in the above embodiment, which will not be elaborated in detail in this embodiment.
[0092] In the digital RMB payment method based on smart contracts proposed in this application, a payment request sent by a payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the client to be paid, and the first smart contract includes a payment amount, a payment time limit and the payer client information; according to the payer client information, the second smart contract corresponding to the payer client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payer client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the client to be paid in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0093] Embodiment 3
[0094] Figure 3 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application, applied to a second client, such as Figure 3 As shown, it may include:
[0095] Step 301: Determine the second smart contract.
[0096] Among them, in the embodiment of the present application, the above-mentioned second smart contract is used to limit the use of funds in the special fund account, and the special fund account is a fund account opened by the second client in the first client.
[0097] And, in an embodiment of the present application, the second client can determine the second smart contract based on the approval information issued by the competent department. Among them, the second smart contract may include the payer client information, at least one funding type, the budget amount corresponding to each funding type, and the budget execution time. Among them, in an embodiment of the present application, the second smart contract can limit the use scenario, purpose, scope, and use time of the funds according to different funding situations, and at the same time, the funds that are not used up when the budget execution time expires will be automatically returned to the special fund account of the finance.
[0098] Step 302: Send the second smart contract and the special fund account to the first client.
[0099] Among them, in an embodiment of the present application, after the second client determines the second smart contract, the second smart contract and the special fund account are sent to the first client, so that the first client can parse the second smart contract, obtain the payer client information, at least one fund type and the budget amount corresponding to each fund type in the second smart contract, and store the second smart contract according to the payer client information, open a first digital RMB special account corresponding to each fund type according to at least one fund type, and transfer the budget amount corresponding to each fund type from the special fund account to the first digital RMB special account corresponding to each fund type, so as to supervise the first digital RMB special account corresponding to each fund type.
[0100] In the digital RMB payment method based on smart contracts proposed in this application, a payment request sent by a payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the client to be paid, and the first smart contract includes a payment amount, a payment time limit and the payer client information; according to the payer client information, the second smart contract corresponding to the payer client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payer client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the client to be paid in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0101] Embodiment 4
[0102] Figure 4 A flowchart of a digital RMB payment method based on a smart contract provided according to an embodiment of the present application, which is applied to a payer client, such as Figure 4 As shown, it may include:
[0103] Step 401: Send a payment request to a first client, wherein the payment request includes a first smart contract signed between a payer client and a client to be paid, and the first smart contract includes a payment amount, a payment time limit, and payer client information.
[0104] Furthermore, in an embodiment of the present application, before sending a payment request to the first client, the payer client may sign a first smart contract with the payee client so that the first client can make payment to the payee client based on the first smart contract.
[0105] Furthermore, in the embodiment of the present application, if the first client transfers the payment amount from the first digital RMB special account to the second digital RMB account within the payment time limit, the payer client needs to transfer the payment amount from the second digital RMB account to the third digital RMB account within the payment time limit to complete the payment process from the payer client to the client to be paid, thereby completing the first smart contract. Among them, the second digital RMB account is opened by the payer client on the first client, and the third digital RMB account is opened by the client to be paid on the first client.
[0106] Also, in an embodiment of the present application, if the first client transfers the payment amount from the first digital RMB special account to the second digital RMB account within the payment time limit, and the payer client fails to transfer the payment amount from the second digital RMB account to the third digital RMB account within the payment time limit, thereby failing to complete the payment process from the payer client to the client to be paid, and failing to complete the first smart contract, the behavior of the payer client can be monitored based on this, so as to monitor the payer client in a timely manner and avoid the situation of "arbitrary misappropriation of funds for other purposes".
[0107] In the digital RMB payment method based on smart contracts proposed in this application, a payment request sent by a payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the client to be paid, and the first smart contract includes a payment amount, a payment time limit and the payer client information; according to the payer client information, the second smart contract corresponding to the payer client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payer client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the client to be paid in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0108] Embodiment 5
[0109] Figure 5 This is a structural diagram of a digital RMB payment device based on a smart contract provided according to an embodiment of the present application, using a first client, such as Figure 5 As shown, it may include:
[0110] An acquisition module 501 is used to acquire a payment request sent by a payer client, wherein the payment request includes a first smart contract signed between the payer client and the payee client, wherein the first smart contract includes a payment amount, a payment time limit, and payer client information;
[0111] A determination module 502, configured to determine a second smart contract corresponding to the payer client according to the payer client information;
[0112] A matching module 503 is used to match the first smart contract in the received payment request with the second smart contract corresponding to the payer client to obtain a matching result;
[0113] Transaction module 504 is used to transfer the payment amount from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit if the matching result includes a payment voucher and a first digital RMB special account, wherein the second digital RMB account is opened by the payee client in the first client, and the third digital RMB account is opened by the payee client in the first client.
[0114] In the digital RMB payment device based on smart contracts proposed in this application, a payment request sent by a payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the client to be paid, and the first smart contract includes a payment amount, a payment time limit and the payer client information; according to the payer client information, the second smart contract corresponding to the payer client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payer client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the client to be paid in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0115] Embodiment 6
[0116] Figure 6A schematic diagram of the structure of a digital RMB payment device based on a smart contract provided according to an embodiment of the present application, using a second client, such as Figure 6 As shown, it may include:
[0117] A determination module 601 is used to determine a second smart contract, wherein the second smart contract is used to define the use of funds in a special fund account, and the special fund account is a fund account opened by the second client in the first client;
[0118] The sending module 602 is used to send the second smart contract and the special fund account to the first client.
[0119] In the digital RMB payment device based on smart contracts proposed in this application, a payment request sent by a payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the client to be paid, and the first smart contract includes a payment amount, a payment time limit and the payer client information; according to the payer client information, the second smart contract corresponding to the payer client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payer client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the client to be paid in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0120] Embodiment 7
[0121] Figure 7 This is a structural diagram of a digital RMB payment device based on a smart contract provided according to an embodiment of the present application, using a payer client, such as Figure 7 As shown, it may include:
[0122] The sending module 701 is used to send a payment request to the first client, wherein the payment request includes a first smart contract signed between the payer client and the payee client, wherein the first smart contract includes a payment amount, a payment time limit and payer client information.
[0123] In the digital RMB payment device based on smart contracts proposed in this application, a payment request sent by a payer client is obtained, wherein the payment request includes a first smart contract signed by the payer client and the client to be paid, and the first smart contract includes a payment amount, a payment time limit and the payer client information; according to the payer client information, the second smart contract corresponding to the payer client is determined; the first smart contract in the received payment request is matched with the second smart contract corresponding to the payer client to obtain a matching result; if the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to the second digital RMB account or the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the client to be paid in the first client. Therefore, this application can use the first smart contract and the second smart contract to supervise the payment process of the first digital RMB special account to avoid the situation that "the funds are not truly used for their intended purpose, and the funds are misappropriated for other purposes at will", thereby realizing the precise delivery of fiscal special funds.
[0124] In order to implement the above embodiments, the present disclosure also proposes a computer storage medium.
[0125] The computer storage medium provided in the embodiment of the present disclosure stores an executable program; after the executable program is executed by the processor, the following can be achieved: Figures 1 to 4 Any of the methods shown.
[0126] In order to implement the above embodiments, the present disclosure also provides a computer device.
[0127] The computer device provided in the embodiment of the present disclosure includes a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the program, the following can be achieved: Figures 1 to 4 Any of the methods shown.
[0128] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0129] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0130] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A digital RMB payment method based on smart contracts, It is characterized in that Applied to a first client, the first client is a bank client, and the digital RMB payment method includes: Obtaining a payment request sent by a payer client, wherein the payment request includes a first smart contract signed between the payer client and a client to be paid, wherein the first smart contract includes a payment amount, a payment time limit, payer client information, and registration information and payment information of the client to be paid, wherein the payer client is an enterprise client, and the client to be paid is a consumer client that the enterprise needs to pay; Determine, according to the payer client information, a second smart contract corresponding to the payer client, wherein the second smart contract is sent by the second client, and the second smart contract is used to limit the use of funds in the special fund account, and the special fund account is a fund account opened by the second client in the first client, wherein the second client is a finance department client; Based on the registration information and payment information of the client to be paid, determine whether the first smart contract complies with the contract information in the second smart contract. If the first smart contract complies with the contract information in the second smart contract, obtain the payment voucher and the first digital RMB special account, and obtain a matching result based on the payment voucher and the first digital RMB special account; If the matching result includes a payment voucher and a first digital RMB special account, the payment amount is transferred from the first digital RMB special account to a second digital RMB account or a third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the payee client in the first client; Based on the registration information and payment information of the client to be paid, determining whether the first smart contract complies with the contract information in the second smart contract includes: determining the business type of the client to be paid according to the registration information of the client to be paid in the first smart contract, determining whether the business type of the client to be paid includes the payment type in the payment information, if the business type of the client to be paid includes the payment type in the payment information, then determining whether at least one funding type includes a payment type, if the at least one funding type includes a payment type, then the first smart contract complies with the contract information in the second smart contract.
2. The method according to claim 1, It is characterized in that Before obtaining the payment request sent by the payer client, the method further includes: Receiving the second smart contract and the special fund account sent by the second client, wherein the second smart contract is used to constrain the use of funds in the special fund account, and the special fund account is a fund account opened by the second client in the first client; Parsing the second smart contract to obtain the payer client information, at least one funding type, and the budget amount corresponding to each funding type in the second smart contract; Storing the second smart contract according to the payer client information; According to the at least one funding type, a first digital RMB special account corresponding to each funding type is opened, and the budget amount corresponding to each funding type is transferred from the special fund account to the first digital RMB special account corresponding to each funding type.
3. A digital RMB payment method based on smart contracts, It is characterized in that Applied to a payer client, the payer client sends a payment request as claimed in claim 1 or 2 to a first client; The payment amount is transferred from the second digital RMB account to the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client on the first client, and the third digital RMB account is opened by the payee client on the first client.
4. A digital RMB payment device based on smart contracts, It is characterized in that Applied to a first client, the first client includes a bank client, and the digital RMB payment device includes: An acquisition module, used to acquire a payment request sent by a payer client, wherein the payment request includes a first smart contract signed between the payer client and a client to be paid, wherein the first smart contract includes a payment amount, a payment time limit, information of the payer client, and registration information and payment information of the client to be paid, wherein the payer client is an enterprise client, and the client to be paid is a consumer client that the enterprise needs to pay an amount of; A determination module, used to determine a second smart contract corresponding to the payer client according to the payer client information, wherein the second smart contract is sent by the second client, and the second smart contract is used to limit the use of funds in the special fund account, and the special fund account is a fund account opened by the second client in the first client, wherein the second client is a finance department client; A matching module, used to determine whether the first smart contract complies with the contract information in the second smart contract based on the registration information and payment information of the payee client, and if the first smart contract complies with the contract information in the second smart contract, obtain the payment voucher and the first digital RMB special account, and obtain a matching result based on the payment voucher and the first digital RMB special account; A transaction module, for transferring the payment amount from the first digital RMB special account to a second digital RMB account or a third digital RMB account within the payment time limit if the matching result includes a payment voucher and a first digital RMB special account, wherein the second digital RMB account is opened by the payer client in the first client, and the third digital RMB account is opened by the payee client in the first client; Based on the registration information and payment information of the client to be paid, determining whether the first smart contract complies with the contract information in the second smart contract includes: determining the business type of the client to be paid according to the registration information of the client to be paid in the first smart contract, determining whether the business type of the client to be paid includes the payment type in the payment information, if the business type of the client to be paid includes the payment type in the payment information, then determining whether at least one funding type includes a payment type, if the at least one funding type includes a payment type, then the first smart contract complies with the contract information in the second smart contract.
5. A digital RMB payment device based on smart contracts, It is characterized in that Applied to a payer client, the payer client sends a payment request as claimed in claim 1 or 2 to a first client; The payment amount is transferred from the second digital RMB account to the third digital RMB account within the payment time limit, wherein the second digital RMB account is opened by the payer client on the first client, and the third digital RMB account is opened by the payee client on the first client.
6. A computer storage medium, in, The computer storage medium stores computer executable instructions; after the computer executable instructions are executed by the processor, any method described in claims 1-3 can be implemented.
7. A computer device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 3 is implemented.
