Fund processing method and device, storage medium and electronic equipment
By combining blockchain and smart contract technologies with multi-signature and digital RMB, the problems of wage arrears and lack of transparency in the power grid company's wage payment process have been solved, enabling timely, accurate, and fully traceable payments to wage recipients.
Patent Information
- Application Number
- CN202411046430.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-26
AI Technical Summary
Power grid companies or other project owners have problems with wage payment, such as wage arrears, lack of full-process supervision, and opaque payment methods, which has led to frequent cases of wage recipients fraudulently claiming, missing, or delaying their wages.
By employing blockchain technology and smart contracts, and utilizing multi-signature and digital RMB payment methods, the system automates and makes wage payments transparent for payees. The payee multi-signs the payroll form; once the signatures are aggregated and verified, the smart contract is triggered to process the peer-to-peer wage payment, and the payment process is recorded on the blockchain.
This has prevented wage recipients from fraudulently claiming, missing, or delaying their wages, standardized payment methods, and achieved transparency and automation in wage payments, thereby improving payment efficiency.
Smart Images

Figure CN119027250A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology or other related fields, and specifically, to a method and device for processing funds, a storage medium, and an electronic device. Background Art
[0002] At present, power grid companies or other project owners have the following problems in the payment and management of wages to wage recipients:
[0003] (1) Wage arrears. At present, some construction units have loopholes in fund management. For example, after a project is subcontracted multiple times after being general contracted, the wages of wage recipients cannot be paid on time. In addition, some construction units may also have wage arrears and refuse to pay wages to wage recipients for various reasons.
[0004] (2) Lack of supervision. There is a lack of full-process supervision of wage payments to wage recipients. Although some units have opened special accounts for wage recipients, there is still a lack of effective supervision from the source such as the wage recipients’ attendance, which can lead to wage recipients falsely claiming or missing wages.
[0005] (3) Irregular payment methods. Some construction companies may adopt irregular wage payment methods, such as cash payment or failure to provide wage slips, which results in an opaque wage payment process and difficulty in accountability.
[0006] With regard to the problem in the related art that the power grid company or other project owners pay wages to wage recipients in a poor manner, no effective solution has been proposed so far. Summary of the invention
[0007] The main purpose of this application is to provide a method and device for processing funds, a storage medium and an electronic device to solve the problem in the related art that the power grid company or other project owners pay wages to wage recipients in a poor manner.
[0008] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for handling funds is provided. The method comprises: obtaining signature information of each target object for signing a target form, obtaining multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; merging the multiple signature information to obtain a signature information set, and verifying the validity of the signature information set; if the signature information set is valid, issuing funds to each target object based on the target smart contract and the fund wallet, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object.
[0009] Further, if the funds wallet includes a funds wallet of a first institution and a funds wallet of a second institution, and the first institution is the superior institution of the second institution, then when the signature information set is valid, based on the target smart contract and the funds wallet, the funds are distributed to each target object, including: when the signature information set is valid, based on the target smart contract, the target funds in the funds wallet of the first institution are transferred to the funds wallet of the second institution; based on the target smart contract, according to the funds information to be distributed to each target object recorded in the target table, the target funds in the funds wallet of the second institution are transferred to the funds wallet of each target object.
[0010] Furthermore, the signature information of each target object signing the target form is obtained, and the multiple signature information is obtained, including: obtaining the parameter information of the attribute authorization center, and obtaining the key information corresponding to each target object based on the parameter information of the attribute authorization center to obtain a key set; obtaining the signature information of each target object performing multiple signatures on the target form based on the key in the key set to obtain the multiple signature information.
[0011] Furthermore, when the signature information set is valid, based on the target smart contract and the fund wallet, before distributing funds to each target object, the method also includes: obtaining template information corresponding to the smart contract used to distribute funds to each target object, and obtaining a target template; obtaining parameter rules of the smart contract used to distribute funds to each target object, and obtaining a target rule, wherein the target rule is used to indicate that funds are distributed to each target object when the signature information set is valid; generating the target smart contract based on the target template and the target rule, and deploying the target smart contract on the blockchain.
[0012] Furthermore, when the signature information set is valid, after issuing funds to each target object based on the target smart contract and the fund wallet, the method also includes: obtaining multiple target information, wherein the multiple target information at least includes attribute information of each target object, number information of the fund wallet of each target object, fund information issued to each target object and multiple signatures of each target object; aggregating the multiple target information to obtain plaintext data, and obtaining the access policy corresponding to the plaintext data; encrypting the plaintext data based on the access policy corresponding to the plaintext data to obtain a first ciphertext; encrypting the first ciphertext again to obtain a second ciphertext, and storing the second ciphertext in a cloud server; obtaining a storage address of the cloud server storing the second ciphertext, and storing the storage address in the blockchain.
[0013] Furthermore, after storing the storage address in the blockchain, the method also includes: obtaining from the blockchain the storage address of the cloud server storing the second ciphertext; obtaining from the cloud server according to the storage address; obtaining from the cloud server a first private key, and obtaining from an attribute authorization center a second private key; decrypting the second ciphertext based on the first private key and the second private key to obtain the first ciphertext; decrypting the first ciphertext according to the access policy to obtain the plaintext data.
[0014] Furthermore, according to the access policy, the first ciphertext is decrypted to obtain the plaintext data, including: according to the access policy, determining whether the target organization has the authority to access the plaintext data, wherein the target organization is the organization to be accessed with respect to the plaintext data; if the target organization does not have the authority to access the plaintext data, decrypting the first ciphertext to obtain the plaintext data is prohibited; if the target organization has the authority to access the plaintext data, decrypting the first ciphertext to obtain the plaintext data is performed.
[0015] Furthermore, after decrypting the first ciphertext according to the access strategy to obtain the plaintext data, the method also includes: obtaining the multiple target information from the plaintext data; and tracing the process of issuing funds to each target object based on the multiple target information obtained from the plaintext data.
[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a fund processing device is provided. The device includes: a first acquisition unit, used to acquire the signature information of each target object to sign the target form, and obtain multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; a first processing unit, used to merge the multiple signature information, obtain a signature information set, and verify the validity of the signature information set; a second processing unit, used to issue funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object.
[0017] Furthermore, if the funds wallet includes a funds wallet of a first institution and a funds wallet of a second institution, and the first institution is the superior institution of the second institution, then the second processing unit includes: a first processing module, used to transfer the target funds in the funds wallet of the first institution to the funds wallet of the second institution based on the target smart contract when the signature information set is valid; a second processing module, used to transfer the target funds in the funds wallet of the second institution to the funds wallet of each target object based on the target smart contract and in accordance with the funds information to be issued to each target object recorded in the target table.
[0018] Furthermore, the first acquisition unit includes: a first acquisition module, used to obtain parameter information of the attribute authorization center, and based on the parameter information of the attribute authorization center, obtain key information corresponding to each target object to obtain a key set; a second acquisition module, used to obtain signature information of each target object based on the key in the key set to perform multiple signatures on the target table to obtain the multiple signature information.
[0019] Furthermore, the device also includes: a second acquisition unit, which is used to obtain template information corresponding to the smart contract used to issue funds to each target object before issuing funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, and obtain a target template; a third acquisition unit, which is used to obtain parameter rules of the smart contract used to issue funds to each target object, and obtain a target rule, wherein the target rule is used to indicate that funds are issued to each target object when the signature information set is valid; a third processing unit, which is used to generate the target smart contract based on the target template and the target rule, and deploy the target smart contract on the blockchain.
[0020] Furthermore, the device also includes: a fourth acquisition unit, which is used to obtain multiple target information after issuing funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, wherein the multiple target information at least includes attribute information of each target object, number information of each target object's fund wallet, fund information issued to each target object and multiple signatures of each target object; a fourth processing unit, which is used to aggregate and process the multiple target information to obtain plaintext data and obtain the access policy corresponding to the plaintext data; a first encryption unit, which is used to encrypt the plaintext data based on the access policy corresponding to the plaintext data to obtain a first ciphertext; a second encryption unit, which is used to encrypt the first ciphertext again to obtain a second ciphertext, and store the second ciphertext in a cloud server; a fifth processing unit, which is used to obtain a storage address of the second ciphertext stored in the cloud server, and store the storage address in the blockchain.
[0021] Furthermore, the device also includes: a fifth acquisition unit, used to acquire, from the blockchain, a storage address storing the second ciphertext in the cloud server after storing the storage address in the blockchain; a sixth acquisition unit, used to acquire the second ciphertext from the cloud server based on the storage address; a seventh acquisition unit, used to acquire the first private key from the cloud server and acquire the second private key from the attribute authorization center; a first decryption unit, used to decrypt the second ciphertext based on the first private key and the second private key to obtain the first ciphertext; and a second decryption unit, used to decrypt the first ciphertext based on the access policy to obtain the plaintext data.
[0022] Furthermore, the second decryption unit includes: a first judgment module, used to judge whether the target organization has the authority to access the plaintext data based on the access policy, wherein the target organization is the organization to access the plaintext data; a third processing module, used to prohibit decryption of the first ciphertext to obtain the plaintext data if the target organization does not have the authority to access the plaintext data; and a first decryption module, used to decrypt the first ciphertext to obtain the plaintext data if the target organization has the authority to access the plaintext data.
[0023] Furthermore, the device also includes: an eighth acquisition unit, which is used to decrypt the first ciphertext according to the access strategy to obtain the plaintext data, and then obtain the multiple target information from the plaintext data; a sixth processing unit, which is used to trace the process of issuing funds to each target object based on the multiple target information obtained from the plaintext data.
[0024] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein the program executes any one of the above-mentioned methods for processing funds.
[0025] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, which includes one or more processors and a memory, and the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned methods for processing funds.
[0026] Through the present application, the following steps are adopted: obtaining signature information of each target object to sign a target form, and obtaining multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; merging the multiple signature information to obtain a signature information set, and verifying the validity of the signature information set; when the signature information set is valid, issuing funds to each target object based on the target smart contract and the fund wallet, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object, which solves the problem of poor effect of power grid companies or other project owners paying wages to wage recipients in related technologies. By obtaining the signature information of all wage recipients for multiple signatures on the wage payment form, collecting and aggregating the signatures of all wage recipients, and then verifying the aggregated signature and triggering the preset smart contract, the wages of the wage recipients are distributed point-to-point in the form of digital RMB. This can avoid the occurrence of wage fraud, missed wages, and arrears of wages for individual wage recipients. At the same time, the use of digital RMB to pay wage recipients can standardize the method of wage payment and avoid the opaque wage payment process, thereby improving the effect of power grid companies or other project owners paying wages to wage recipients. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0028] Figure 1 is a flow chart of a method for processing funds provided in accordance with an embodiment of the present application;
[0029] Figure 2 This is a flowchart of multiple signatures and attribute access control of the salary payment table for salary recipients in this embodiment;
[0030] Figure 3 It is a schematic diagram of realizing salary circulation and payment based on smart contracts in this embodiment;
[0031] Figure 4 is a schematic diagram of a fund processing device provided according to an embodiment of the present application;
[0032] Figure 5 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0033] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0037] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for processing funds according to an embodiment of the present application, such as Figure 1As shown, the method comprises the following steps:
[0038] Step S101, acquiring signature information of each target object signing a target form, and obtaining a plurality of signature information, wherein the target form is used to record the fund information to be issued to each target object.
[0039] For example, the above-mentioned target object can be a salary recipient, and the above-mentioned target form can be a salary payment table for the salary recipient compiled based on the attendance information of the salary recipient, and the salary payment table for the salary recipient (corresponding to the above-mentioned target table) can include each target object (i.e. each salary recipient)’s name, ID number, number of attendance days, salary standard, digital RMB wallet number and payable wages (corresponding to the above-mentioned fund information to be paid to each target object) and other information.
[0040] For example, all salary recipients can sign the salary payment form for salary recipients (corresponding to the above-mentioned target form) using multiple signatures, and then the system can obtain the signature of each salary recipient (corresponding to each of the above-mentioned target objects) on the salary payment form for salary recipients (corresponding to the above-mentioned target form).
[0041] Step S102: combine multiple signature information to obtain a signature information set, and verify the validity of the signature information set.
[0042] For example, after obtaining the signature of each wage recipient (corresponding to each target object mentioned above), the system can enable the subcontractor to collect and aggregate the signature of each wage recipient (corresponding to each target object mentioned above) to obtain an aggregate signature (corresponding to the above signature information set), and then the system can verify the validity of the aggregate signature (corresponding to the above signature information set) through the general contractor.
[0043] Step S103, when the signature information set is valid, funds are issued to each target object based on the target smart contract and the fund wallet, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object.
[0044] For example, by deploying a smart contract in advance on the blockchain (corresponding to the target smart contract mentioned above), it is possible to realize point-to-point targeted automatic payment of wages to wage recipients in the form of digital RMB.
[0045] For example, when the system recognizes that the general contractor has verified the multiple aggregate signatures collected by the subcontractor (corresponding to the above-mentioned signature information set) and has passed the verification, the system can automatically trigger the digital RMB salary recipient salary payment smart contract preset on the blockchain (corresponding to the above-mentioned target smart contract), and based on the smart contract rules (corresponding to the above-mentioned target smart contract), the salary of the salary recipient is distributed point-to-point in the form of digital RMB. That is, based on the smart contract rules (corresponding to the above-mentioned target smart contract), the salary of the salary recipient can be transferred from the digital RMB salary recipient salary special account wallet of the general contractor to the digital RMB salary recipient salary special account wallet of the subcontractor, and then the salary in the digital RMB salary recipient salary special account wallet of the subcontractor will be automatically transferred to the digital RMB wallets of multiple salary recipients according to the total amount of wages payable to multiple salary recipients (corresponding to the above-mentioned target objects) set in the smart contract rules (corresponding to the above-mentioned target smart contract), thereby completing the automatic targeted payment of the salary of the salary recipient.
[0046] Through the above steps S101 to S103, by obtaining the signature information of all wage recipients for multiple signatures on the wage payment form of the wage recipients, and collecting and aggregating the signatures of all wage recipients, and then verifying the aggregated signature and triggering the preset smart contract, the wage recipients' wages are distributed point-to-point in the form of digital RMB, thereby avoiding the occurrence of wage fraud, omissions and arrears of wages for individual wage recipients. At the same time, the use of digital RMB to pay the wages of wage recipients can standardize the wage payment method and avoid the opaque wage payment process, thereby improving the effect of power grid companies or other project owners paying wages to wage recipients.
[0047] Optionally, in the funds processing method provided in the embodiment of the present application, the signature information of each target object signing the target form is obtained, and the multiple signature information is obtained, including: obtaining the parameter information of the attribute authorization center, and based on the parameter information of the attribute authorization center, obtaining the key information corresponding to each target object to obtain a key set; obtaining the signature information of each target object for multiple signatures on the target form based on the key in the key set to obtain multiple signature information.
[0048] For example, the attribute authorization center mentioned above can be a trusted organization, which is mainly used to generate system parameters, system master keys and subcontracting unit private keys, and the attribute authorization center can be used to initialize the system's public parameters params and master key MSK.
[0049] For example, the multi-signature method of the wage payment form of the wage recipient enables n wage recipients to sign and confirm the same wage payment form (corresponding to the above-mentioned target form). The scheme can include subjects such as the message sender, message collector, message signer, signature verifier and attribute authorization center. In this embodiment, the subcontractor is the message sender and message collector, the n wage recipients are the message signers, and the general contractor is the signature verifier. The specific steps of the scheme are as follows:
[0050] ① System establishment
[0051] ParGen(1 λ )→params, this stage is performed by the attribute authorization center, and a single code of the security parameter λ is input, that is, 1 λ , output a set of general parameters params (corresponding to the above parameter information). Let p be a large prime number, G1, G2, G T is a group of order p, g1, g2 and g T They are G1, G2 and G T Generators, pairing mapping e:G1×G2→G T and the hash function H PK :G2→G1, H1:{0,1} * →{0,1} k and H2:{0,1} * →G1. The attribute authorization center outputs a set of system common parameters params=(1 λ ,G1,G2,e,k). In addition, G1 and G2 are two subgroups on the elliptic curve, and G T is a multiplicative subgroup in a finite field. The hash function converts a binary string of any length {0,1} * Mapped to a binary string of length k {0,1} k , that is, H:{0,1} * →{0,1} k .
[0052] ②Key generation
[0053] KeyGen(params)→(PK,SK), this stage is executed by n salary recipients, by inputting a set of common parameters params (corresponding to the above parameter information), and outputting a set of public and private key pairs (PK, SK) (corresponding to the above key set). n salary recipients randomly select x∈Z p , Z p represents the integer group of order p, and computes and π=H PK (y) x , set PK = (y,π) and SK = x, return (PK,SK).
[0054] ③Interactive Signature
[0055] Sign(params,SK,m,L)→σ, this stage is executed by n salary recipients, and inputs the general parameter params (corresponding to the above parameter information), the private key SK (corresponding to the above key set), the salary payment table m of the salary recipients to be signed (corresponding to the above target table), and the public key list L of all salary recipients participating in the signature = (PK1, PK2, PK3, ..., PK n )(corresponding to the above key set), after the interaction is completed, each salary recipient (corresponding to each target object mentioned above) outputs a multi-signature σ (corresponding to the above signature information).
[0056] The signature of the i-th salary recipient is carried out in two rounds:
[0057] First round: The i-th salary recipient is from {0,1} k Randomly select r i And broadcast r i ;
[0058] Second round: When wage recipient i receives r1, r2, …, r i-1 ,r i+1 ,…,r n When h1=H1(m,L,r1,…,r n ) and σ i =H2(m,h1) x And broadcast σ i ;
[0059] After the second round: the i-th signer will receive σ1,σ2,…,σ i-1 ,σ i+1 ,…,σ n And calculate Return σ←(σ agg ,h1).
[0060] In summary, by using multi-signature technology, it is possible to easily implement the steps of all salary recipients signing and confirming the salary payment form.
[0061] Optionally, in the fund processing method provided in the embodiment of the present application, when the signature information set is valid, based on the target smart contract and the fund wallet, before issuing funds to each target object, the method also includes: obtaining template information corresponding to the smart contract used to issue funds to each target object, and obtaining the target template; obtaining parameter rules of the smart contract used to issue funds to each target object, and obtaining the target rules, wherein the target rules are used to indicate that funds are issued to each target object when the signature information set is valid; generating a target smart contract based on the target template and the target rules, and deploying the target smart contract on the blockchain.
[0062] For example, you can first create a smart contract on the blockchain (corresponding to the target smart contract mentioned above), then deploy the created smart contract (corresponding to the target smart contract mentioned above) on the blockchain in advance, and pay the salary recipient's salary according to the smart contract (corresponding to the target smart contract mentioned above) deployed in advance on the blockchain.
[0063] For example, when creating a smart contract on the blockchain (corresponding to the target smart contract mentioned above), the system can enable the general contractor to select the wage recipient wage payment smart contract template (corresponding to the target template mentioned above) according to the business type on the smart contract service platform of the designated digital RMB operating agency, and create a wage recipient wage payment smart contract. The designated digital RMB operating agency obtains the wage recipient wage payment contract template (corresponding to the target template mentioned above) and passes it to the general contractor's financial cloud platform. The general contractor's financial cloud platform configures personalized parameters according to the wage recipient wage payment business attributes, and the wage recipient wage payment smart contract personalized parameter rules (corresponding to the target rules mentioned above) are set as follows: If the general contractor verifies that the wage recipient's multiple signatures are passed, the smart contract automatically executes the wage payment of the wage recipient; otherwise, the wage payment of the wage recipient is not executed.
[0064] After the contract rules (corresponding to the above-mentioned target rules) are set, the general contractor will pass the set smart contract personalized parameter rules (corresponding to the above-mentioned target rules) to the smart contract platform of the designated digital RMB operating institution. The smart contract platform of the designated digital RMB operating institution will generate a contract (corresponding to the above-mentioned target smart contract) according to demand and store the parameter contract (corresponding to the above-mentioned target smart contract).
[0065] To sum up, by deploying smart contracts on the blockchain, it is possible to realize point-to-point targeted automatic payment of salary recipients in the form of digital RMB.
[0066] Optionally, in the fund processing method provided in the embodiment of the present application, if the fund wallet includes the fund wallet of a first institution and the fund wallet of a second institution, and the first institution is the superior institution of the second institution, then when the signature information set is valid, based on the target smart contract and the fund wallet, the funds are distributed to each target object, including: when the signature information set is valid, based on the target smart contract, the target funds in the fund wallet of the first institution are transferred to the fund wallet of the second institution; based on the target smart contract, according to the fund information to be distributed to each target object recorded in the target table, the target funds in the fund wallet of the second institution are transferred to the fund wallet of each target object.
[0067] For example, the first institution mentioned above may be a general contractor, and the second institution mentioned above may be a subcontractor. For example, when the general contractor (corresponding to the first institution mentioned above) verifies the multiple aggregate signatures (corresponding to the signature information set mentioned above) collected by the subcontractor (corresponding to the second institution mentioned above) and passes the verification, the digital RMB wage recipient wage payment smart contract (corresponding to the target smart contract mentioned above) is triggered, and the digital RMB designated operating institution transfers the wage recipient's wages from the general contractor's digital RMB wage recipient's wage special account wallet (corresponding to the first institution's capital wallet) based on the smart contract rules (corresponding to the target smart contract mentioned above) to the subcontractor's digital RMB wage recipient's wage special account wallet (corresponding to the second institution's capital wallet), and finally transfers it to the wage recipient's digital RMB wallet (corresponding to the capital wallet of each target object mentioned above) based on the smart contract rules (corresponding to the target smart contract mentioned above).
[0068] Through the above solution, it can be achieved that the subcontracting unit only has query authority during the wage payment process of the wage recipient and cannot intercept or misappropriate the wage funds.
[0069] Optionally, in the fund processing method provided in the embodiment of the present application, when the signature information set is valid, after issuing funds to each target object based on the target smart contract and the fund wallet, the method also includes: obtaining multiple target information, wherein the multiple target information includes at least attribute information of each target object, number information of each target object's fund wallet, fund information issued to each target object and multiple signatures of each target object; aggregating the multiple target information to obtain plaintext data, and obtaining an access policy corresponding to the plaintext data; encrypting the plaintext data based on the access policy corresponding to the plaintext data to obtain a first ciphertext; encrypting the first ciphertext again to obtain a second ciphertext, and storing the second ciphertext in the cloud server; obtaining a storage address for storing the second ciphertext in the cloud server, and storing the storage address in the blockchain.
[0070] For example, the target information may be sensitive information such as the name, ID number, attendance days, wage standard, digital RMB wallet number, total wages payable, and multiple signatures of the wage recipient. For example, the above sensitive information may be aggregated to form plaintext data; then the plaintext data may be encrypted according to the access policy of the plaintext data to obtain the ciphertext CT0 (corresponding to the first ciphertext mentioned above), and the access policy may at least include the information of the institution with the authority to access the plaintext data; then the ciphertext CT0 (corresponding to the first ciphertext mentioned above) is stored in the cloud server, and the ciphertext CT0 (corresponding to the first ciphertext mentioned above) is encrypted again to obtain the final ciphertext CT1 (corresponding to the second ciphertext mentioned above), and then the final ciphertext CT1 (corresponding to the second ciphertext mentioned above) is stored in the cloud server; then the storage address of the final ciphertext CT1 (corresponding to the second ciphertext mentioned above) in the cloud server is determined, and the storage address of the final ciphertext CT1 (corresponding to the second ciphertext mentioned above) in the cloud server is stored in the blockchain.
[0071] Through the above scheme, multiple encryption of sensitive information of salary recipients can be achieved, thereby ensuring that the sensitive information of salary recipients is not leaked.
[0072] Optionally, in the method for processing funds provided in the embodiment of the present application, after storing the storage address in the blockchain, the method also includes: obtaining the storage address storing the second ciphertext in the cloud server from the blockchain; obtaining the second ciphertext from the cloud server based on the storage address; obtaining the first private key from the cloud server, and obtaining the second private key from the attribute authorization center; decrypting the second ciphertext based on the first private key and the second private key to obtain the first ciphertext; decrypting the first ciphertext based on the access policy to obtain plaintext data.
[0073] For example, when the general contractor (corresponding to the first institution mentioned above) and / or the human resources department wants to obtain the sensitive information of the salary recipient (corresponding to the target information mentioned above), they can first obtain the storage address of the ciphertext (corresponding to the second ciphertext mentioned above) in the cloud server from the blockchain; then, according to the storage address of the ciphertext (corresponding to the second ciphertext mentioned above) in the cloud server, obtain the ciphertext CT1 (corresponding to the second ciphertext mentioned above) from the cloud server; then, they can request to obtain the private key PK from the cloud server. cs (corresponding to the first private key mentioned above), and obtain the private key PK from the attribute authorization center d (corresponding to the second private key mentioned above); then according to the private key PK cs (corresponding to the first private key mentioned above) and private key PK dq(corresponding to the above-mentioned second private key) decrypts the ciphertext CT1 (corresponding to the above-mentioned second ciphertext) to obtain the ciphertext CT0 (corresponding to the above-mentioned first ciphertext); and then according to the access strategy of the plaintext data, decrypts the ciphertext CT0 (corresponding to the above-mentioned first ciphertext) to obtain the plaintext data.
[0074] Through the above scheme, the ciphertext of sensitive information of the salary recipient can be decrypted quickly and accurately.
[0075] Optionally, in the funds processing method provided in the embodiment of the present application, the first ciphertext is decrypted according to the access policy to obtain the plaintext data, including: judging whether the target institution has the authority to access the plaintext data according to the access policy, wherein the target institution is the institution to access the plaintext data; if the target institution does not have the authority to access the plaintext data, decrypting the first ciphertext to obtain the plaintext data is prohibited; if the target institution has the authority to access the plaintext data, the first ciphertext is decrypted to obtain the plaintext data.
[0076] For example, the target organization may be a general contractor (corresponding to the first organization) or a human resources department. For example, after the general contractor (corresponding to the first organization) or the human resources department decrypts the ciphertext CT1 (corresponding to the second ciphertext) and obtains the ciphertext CT0 (corresponding to the first ciphertext), it can determine whether the general contractor (corresponding to the first organization) or the human resources department (corresponding to the target organization) has the access right to access the sensitive information of the salary recipient (corresponding to the target information) according to the access policy of the sensitive information of the salary recipient (corresponding to the target information); if the general contractor (corresponding to the first organization) or the human resources department (corresponding to the target organization) does not have the access right to access the sensitive information of the salary recipient (corresponding to the target information), the general contractor (corresponding to the first organization) or the human resources department (corresponding to the target organization) can determine whether the general contractor (corresponding to the first organization) or the human resources department (corresponding to the target organization) has the access right to access the sensitive information of the salary recipient (corresponding to the target information). The above-mentioned target information) has no access rights, then the ciphertext CT0 (corresponding to the above-mentioned first ciphertext) cannot be decrypted at this time, and the general contractor (corresponding to the above-mentioned first institution) or the human resources department (corresponding to the above-mentioned target institution) cannot obtain the plaintext data; if the general contractor (corresponding to the above-mentioned first institution) or the human resources department (corresponding to the above-mentioned target institution) has the access rights to access the sensitive information of the salary recipient (corresponding to the above-mentioned target information), then the ciphertext CT0 (corresponding to the above-mentioned first ciphertext) can be decrypted, and the general contractor (corresponding to the above-mentioned first institution) or the human resources department (corresponding to the above-mentioned target institution) can obtain the plaintext data.
[0077] Through the above scheme, according to the access policy of sensitive information of salary recipients, departments with access rights can obtain sensitive information, thereby ensuring the security of sensitive information of salary recipients.
[0078] Optionally, in the fund processing method provided in the embodiment of the present application, after decrypting the first ciphertext according to the access strategy to obtain plaintext data, the method also includes: obtaining multiple target information from the plaintext data; based on the multiple target information obtained from the plaintext data, tracing the process of issuing funds to each target object.
[0079] For example, after obtaining the plaintext data, the general contractor (corresponding to the first institution mentioned above) or the human resources department (corresponding to the target institution mentioned above) can check the entire process of salary payment to the salary recipient based on the sensitive information of the salary recipient recorded in the plaintext data (corresponding to the multiple target information mentioned above), and trace the entire process of salary payment to the salary recipient.
[0080] Through the above solution, it is ensured that the general contractor and the human resources department have the right to review the entire process of salary payment to the salary recipients without leaking sensitive information, so that the entire process of salary payment to the salary recipients can be checked.
[0081] For example, the technical problems to be solved by this embodiment are as follows:
[0082] (1) Based on smart contract technology, the system automatically executes wage payment operations for wage recipients according to preset conditions. The system can automatically check the integrity and legality of transaction information, reduce errors that may occur in manual review, and improve the automation level of wage payment for wage recipients. At the same time, based on smart contract technology, it ensures the compliance and rationality of the use of wage recipients' special funds for wages, and prevents the funds from being abused or misappropriated.
[0083] (2) Based on the two-stage multi-signature technology, all wage recipients multi-sign the wage payment form, the subcontractors collect and aggregate the signatures, the general contractor verifies the aggregated signatures and triggers the preset smart contract before distributing the wages to the wage recipients in the form of digital RMB point-to-point, thereby avoiding the situation where wage recipients falsely claim or miss payment of wages, as well as the delay in payment of wages to individual wage recipients.
[0084] (3) The digital RMB supports point-to-point real-time transactions and zero transfer fees, eliminating the need for multiple intermediate links, reducing transaction costs and time in wage payment operations for wage recipients; utilizing the traceability of the digital RMB to ensure that the source and destination of funds are compliant, thus avoiding wage arrears.
[0085] (4) Based on the proxy re-encryption blockchain attribute access control technology, sensitive information such as the salary recipient's name, ID number, attendance days, salary standard, digital RMB wallet number, total salary payable, and multiple signatures of the salary recipient are securely shared in the cloud, ensuring that the sensitive information of the salary recipient is not leaked. The general contractor and the human resources and social security department have the right to view the entire process of salary payment for the salary recipient, so that the entire process of salary payment for the salary recipient can be checked.
[0086] For example, this embodiment includes the following contents:
[0087] (1) Preparation of the digital RMB payment environment. The construction unit, the general contractor (corresponding to the first institution mentioned above), the subcontractor (corresponding to the second institution mentioned above) and the wage recipient (corresponding to the target object mentioned above) shall open a digital RMB wallet (corresponding to the capital wallet mentioned above). The construction unit, the general contractor and the subcontractor shall open a digital RMB wage recipient special account wallet; the construction unit shall timely transfer the project funds in accordance with the contract signed with the general contractor, the project progress and the agreed payment method of the contract, and timely and fully transfer the labor costs in the form of digital RMB to the wage recipient special account wallet. The construction unit shall manually transfer the wage recipient's wages from the construction unit's digital RMB wage recipient special account wallet to the general contractor's digital RMB wage recipient special account wallet; the subcontractor shall assess the workload of the wage recipient on a monthly basis, and prepare a wage payment table for the wage recipient (corresponding to the target table mentioned above) based on the wage recipient's attendance information, and determine the payment list of the wage recipients to be paid.
[0088] (2) Multiple signatures of the wage recipient’s wage payment form and attribute access control based on proxy re-encryption. All wage recipients sign the wage payment form using multiple signatures. The subcontractors collect and aggregate the signatures of the wage recipients, and the general contractor verifies the validity of the aggregated signatures. To prevent the leakage of sensitive information (corresponding to the target information mentioned above) such as the wage recipient’s name, ID number, attendance days, wage standard, digital RMB wallet number, total wages payable, and multiple signatures of the wage recipient, a blockchain attribute access control scheme based on proxy re-encryption is proposed.
[0089] (3) Deployment of smart contracts (corresponding to the above-mentioned target smart contracts). The general contractor and the designated digital RMB operating institution complete the parameter rules of the digital RMB wage recipient wage payment smart contract (corresponding to the above-mentioned target rules) and complete the creation of the smart contract (corresponding to the above-mentioned target smart contract). The subcontractor, the general contractor and the designated digital RMB operating institution complete the signing of the digital RMB wage recipient wage payment smart contract and deploy the digital RMB wage recipient wage payment smart contract on the blockchain.
[0090] (4) Smart contracts realize wage circulation and payment. When the general contractor verifies the multiple aggregate signatures collected by the subcontractor (corresponding to the above-mentioned signature information set) and passes the verification, the digital RMB wage recipient wage payment smart contract (corresponding to the above-mentioned target smart contract) is triggered, and the digital RMB designated operating institution transfers the wage recipient's wages from the general contractor's digital RMB wage recipient wage special account wallet based on the smart contract rules (corresponding to the above-mentioned target smart contract) to the subcontractor's digital RMB wage recipient wage special account wallet, and finally transfers it to the wage recipient's digital RMB wallet based on the smart contract rules (corresponding to the above-mentioned target smart contract), thereby realizing that the subcontractor only has query authority during the wage payment process of the wage recipient and cannot intercept or misappropriate the wages.
[0091] Moreover, the beneficial effects of this embodiment are as follows:
[0092] (1) An innovative two-stage multi-signature technology is adopted. All wage recipients sign the wage payment form. The subcontractors collect and aggregate the signatures. The general contractor verifies the aggregated signatures before making wage payments to the wage recipients. This can prevent wage recipients from falsely claiming or missing wages, as well as delayed payment of wages to individual wage recipients.
[0093] (2) Innovatively adopt the form of digital RMB + smart contract to pay wages to wage recipients. By setting up smart contracts with conditions for targeted wage payment, the general contractor will automatically and specifically pay wages to wage recipients after verifying the validity of multiple signatures. Combined with the form of digital RMB, real-time wage payment and zero handling fees can be achieved.
[0094] (3) Innovatively adopt blockchain attribute access control technology based on proxy re-encryption to securely share sensitive information such as name, ID number, attendance days, wage standard, digital RMB wallet number, total wages payable, and multiple signatures of wage recipients in the cloud. This ensures that the general contractor and the human resources and social security department have the right to view the entire process of wage payment for the wage recipients without leaking sensitive information, so that the entire process of wage payment for the wage recipients can be checked.
[0095] For example, the specific detailed implementation scheme of this embodiment is as follows:
[0096] 1. Subjects involved
[0097] (1) Wage recipients (corresponding to the above-mentioned target objects): workers directly engaged in engineering construction, whose rights protection is the core of the arrears problem. With the application of digital RMB smart contracts and blockchain, wage recipients can receive more timely and accurate wage payments, reducing the risk of arrears. Wage recipients mainly check their monthly wages on their mobile phones and sign to confirm that they have received their wages.
[0098] (2) General contractor (corresponding to the first institution mentioned above): responsible for the actual construction work, signing a contract with the construction unit and completing the project as agreed. They may also subcontract part of the project to other subcontractors to meet project needs. The general contractor can supervise the real-name information of the labor personnel, attendance and salary payment confirmation information uploaded by the subcontractor.
[0099] (3) Subcontractor (corresponding to the second institution mentioned above): If there is a subcontract, the subcontractor is a third-party unit directly involved in the construction of the project. The general contractor assigns specific work tasks and pays corresponding remuneration. They need to perform their obligations in accordance with the contract and ensure the quality of the project. The subcontractor is responsible for entering the real-name information of the wage recipient, confirming the attendance information of the wage recipient, and compiling the wage payment form for the wage recipient. The wage payment form includes the wage recipient's name, ID number, number of days of attendance, wage standard, digital RMB wallet number, total wages payable, and other items.
[0100] (4) Construction unit: usually a power grid company or other project owner, responsible for initiating and supervising the implementation of the project and paying the relevant fees. They need to sign a contract with the general contractor to clarify details such as project requirements, schedule, payment method, etc.
[0101] (5) Human Resources and Social Security Department: responsible for supervising and inspecting the payment of wages to wage recipients, and investigating and handling cases of wage arrears to wage recipients. Based on blockchain technology, real-name information of wage recipients, wage payment and audit information can be traced and supervised.
[0102] (6) Designated digital RMB operating institutions: can be individual banks, and the designated digital RMB operating institutions will build an open smart contract platform to manage the creation, review, configuration, signing and execution of contract templates.
[0103] (7) Attribute Authorization Center: It is a trusted organization that mainly generates system parameters, system master keys, and subcontractor private keys. The Attribute Authorization Center will initialize the system's public parameters params and master key MSK.
[0104] (8) Cloud server: responsible for storing encrypted data of sensitive information such as the name of the wage recipient, ID number, number of days of attendance, wage standard, digital RMB wallet number, total wages payable, multiple signatures of the wage recipient, etc. provided by the subcontractor, and for distributing the storage location to the subcontractor’s account on the blockchain.
[0105] (9) Blockchain: A consortium chain composed of subcontractors, general contractors, human resources and social security departments, and designated digital RMB operating agencies. Subcontractors store keyword indexes of information such as the name of the wage recipient, ID number, number of days of attendance, wage standard, digital RMB wallet number, total wages payable, and multiple signatures of the wage recipient as transactions on a distributed ledger, using the Paxos consensus algorithm (an algorithm for achieving consistency in a distributed system) for on-chain storage.
[0106] 2. Business logic and technical implementation
[0107] (1) Preparation of digital RMB payment environment for salary recipients
[0108] ①Opening of a special account wallet for digital RMB salary recipients
[0109] The construction unit, general contractor and subcontractor shall respectively submit the original unit certification documents (such as business license), original ID cards of the person in charge and legal representative, unit seal and legal person seal and other materials at the counter of the designated digital RMB operating institution to open a digital RMB public wallet account, thereby obtaining the construction unit's digital RMB salary recipient special account wallet w1, the general contractor's digital RMB salary recipient special account wallet w2 and the subcontractor's digital RMB salary recipient special account wallet w3. The digital RMB salary recipient special account wallet of each unit can only be used for the payment of salaries to salary recipients.
[0110] The salary recipient provides the mobile phone number, real-name authentication and other information in the digital RMB application (APP) or designated operating institution to open a digital RMB personal wallet, thereby obtaining the digital RMB wallet number information of n salary recipients {f1, f2, f3, …, f n}.
[0111] ② Preparation for targeted payment of wages to wage recipients
[0112] The construction unit shall disburse the project funds in a timely manner in accordance with the contract signed with the general contractor, in accordance with the project progress and the payment method of the contract, and shall disburse the labor costs in a timely and full manner in the form of digital RMB to the wage recipient's special account wallet w1. The construction unit shall manually transfer the wage recipient's wages from the construction unit's digital RMB wage recipient's special account wallet w1 to the general contractor's digital RMB wage recipient's special account wallet w2.
[0113] The subcontracting unit assesses the workload of the wage recipients on a monthly basis and prepares a wage payment list for the wage recipients based on the wage recipients' attendance information. The wage payment list lists in detail each wage recipient's name, ID number, number of attendance days, wage standard, digital RMB wallet number, total wages payable and other items, and determines the payment list of wage recipients to be paid.
[0114] (2) Multiple signatures and attribute access control for salary recipient salary payment table
[0115] In order to avoid the occurrence of wage fraud, omissions and wage arrears of individual wage recipients, and to ensure that the human resources and social security department and the general contractor can trace the entire process of wage payment to wage recipients, this embodiment adopts a hybrid solution of two-stage broadcast multi-signature and blockchain attribute-based access control. For example, Figure 2 This is a flowchart of the multiple signatures and attribute access control of the salary payment table for salary recipients in this embodiment. Figure 2 As shown in the figure, the process of multi-signature and attribute access control of salary recipient salary payment table includes the following contents:
[0116] A. Multi-signature scheme for salary recipient salary payment form
[0117] The multi-signature method of the salary payment form of the salary recipient enables n salary recipients to sign and confirm the same salary payment form. The scheme includes subjects such as the message sender, message collector, message signer, signature verifier and attribute authorization center. In this embodiment, the subcontractor is the message sender and message collector, n salary recipients are message signers, and the general contractor is the signature verifier. The specific steps are as follows:
[0118] ① System establishment
[0119] ParGen(1 λ )→params, this stage is performed by the attribute authorization center, and a single code of the security parameter λ is input, that is, 1 λ , output a set of general parameters params (corresponding to the above parameter information). Let p be a large prime number, G1, G2, G T is a group of order p, g1, g2 and g TThey are G1, G2 and G T Generators, pairing mapping e:G1×G2→G T and the hash function H PK :G2→G1, H1:{0,1} * →{0,1} k and H2:{0,1} * →G1. The attribute authorization center outputs a set of system common parameters params=(1 λ ,G1,G2,e,k). (G1, G2 are two subgroups on the elliptic curve, and G T is a multiplicative subgroup in a finite field. The hash function converts a binary string of any length {0,1} * Mapped to a binary string of length k {0,1} k , that is, H:{0,1} * →{0,1} k ).
[0120] ②Key generation
[0121] KeyGen(params)→(PK,SK), this stage is executed by n salary recipients, by inputting a set of common parameters params (corresponding to the above parameter information), and outputting a set of public and private key pairs (PK, SK). p , Z p represents the integer group of order p, and computes and π=H PK (y) x , set PK = (y,π) and SK = x, return (PK,SK).
[0122] ③Interactive Signature
[0123] Sign(params,SK,m,L)→σ, this stage is executed by n salary recipients, and inputs the general parameter params (corresponding to the above parameter information), the private key SK, the salary payment table m of the salary recipients to be signed, and the public key list L of all salary recipients participating in the signature = (PK1, PK2, PK3, ..., PK n ), after the interaction is completed, each salary recipient outputs a multi-signature σ.
[0124] The signature of the i-th salary recipient is carried out in two rounds:
[0125] First round: The i-th salary recipient is from {0,1} k Randomly select r i And broadcast r i ;
[0126] Second round: When wage recipient i receives r1, r2, …, r i-1 ,r i+1 ,…,r n When h1=H1(m,L,r1,…,r n ) and σ i =H2(m,h1) x And broadcast σ i ;
[0127] After the second round: the i-th signer will receive σ1,σ2,…,σ i-1 ,σ i+1 ,…,σ n And calculate Return σ←(σ agg ,h1).
[0128] ④ Aggregate signature
[0129] KeyAgg(params,L)→PK agg This stage is performed by the subcontractor, and the general parameters params and the public key list L = (PK1, PK2, ..., PK n ), output the aggregate key PK agg If L contains any repeated public key or for any i, e(π i ,g2)≠e(H(y i ),y i ), output error, otherwise calculate Return PK agg .
[0130] ⑤Signature verification
[0131] Verify(params,PK agg ,m,σ)→ture or faulse, this stage is executed by the general contractor, input params, PK agg and the salary recipient salary payment table m and a multi-signature σ. If true is output, it means that the multi-signature is valid. Verify the equation e(σ agg ,g2)=e(H2(m,h1),PK agg ), if the equation passes, the signature is legal and the signature is accepted; otherwise, the signature is rejected.
[0132] B. Blockchain attribute access control scheme based on proxy re-encryption
[0133] In order to prevent sensitive information such as the salary recipient’s name, ID number, attendance days, salary standard, digital RMB wallet number, total salary payable, and multiple signatures of the salary recipient from being leaked in the cloud, and to securely share sensitive information with the general contractor and the human resources and social security department for full-process tracing of salary payment to the salary recipient, a blockchain attribute access control scheme based on proxy re-encryption is proposed. The scheme process is as follows:
[0134] ①System initialization
[0135] Setup(1 λ )→(params,MSK): During the system initialization phase, by inputting security parameters 1 λ , the attribute authorization center generates system parameters params and master key MSK.
[0136] ②Key generation
[0137] KeyGen(params,MSK,id,S)→(PK cs ,PK dq ): In the key generation phase, the subcontractor submits the system public parameters params, the master key MSK, the subcontractor id (Identification), and the general contractor and the human resources and social security department attribute set S to the attribute authorization center, and the attribute authorization center generates a decryption private key, which is composed of PK cs (corresponding to the first private key mentioned above) and PK dq (corresponding to the second private key mentioned above) are composed of two parts, which are respectively kept by the cloud server and the data query party (i.e. the general contractor or the human resources and social security department). The cloud server cannot decrypt the ciphertext alone.
[0138] ③Data encryption
[0139] Encrypt(params,M,A)→CT0: This stage is executed by the subcontractor. The subcontractor submits the public parameters params, plaintext data M and access policy A to the attribute authorization center, and outputs the initialization ciphertext CT0 (corresponding to the first ciphertext mentioned above). The initialization ciphertext CT0 is stored in the cloud server.
[0140] ④ Ciphertext re-encryption
[0141] ReEncrypt(params,CT0)→CT1, this stage is completed by the cloud server, by inputting the public parameter params to the cloud server, initializing the ciphertext CT0 (corresponding to the first ciphertext mentioned above), and outputting the final ciphertext CT1 (corresponding to the second ciphertext mentioned above).
[0142] ⑤Data upload
[0143] GST(id,addr,CT1,timetamp)→Tx storage :This stage is executed by the subcontractor, with the subcontractor id, the address addr returned by the cloud server, the final ciphertext CT1 (corresponding to the second ciphertext mentioned above) and the timestamp timestamp as input, and the output storage transaction Tx storage .
[0144] ⑥Data acquisition
[0145] GAT(IndexID,id,timestamp)→Tx access :This stage is executed by the general contractor or the human resources and social security department. By inputting the data index IndexID, the data query party (general contractor or human resources and social security department) id and timestamp timestamp, the output obtains the transaction Tx access .
[0146] ⑦Data decryption
[0147] Decrypt(S,CT1,PK cs ,PK dq )→M: The general contractor or human resources and social security department obtains the final ciphertext CT1 through the contract retrieval address and obtains the decryption private key PK through the request cs After that, the general contractor or the human resources and social security department uses its own private decryption key PK dq (corresponding to the second private key mentioned above) and the received decryption private key PK cs (corresponding to the first private key mentioned above) is decrypted. Only when the attribute S of the general contractor or the human resources and social security department meets the access policy A, the plaintext data M can be obtained.
[0148] (3) Smart contract (corresponding to the target smart contract mentioned above) deployment
[0149] A smart contract is a computer protocol that digitally facilitates, verifies, or enforces the negotiation or execution of a contract. Smart contracts allow for trusted transactions without a third party. Smart contracts are not just about digitizing traditional contracts. Their true meaning is to replace the endorsement and execution of traditional contracts with computer code. Once external conditions are met, smart contracts will be automatically executed and will be mandatory. Based on the programmability of the digital RMB, this embodiment deploys smart contracts on the blockchain to achieve point-to-point directional automatic payment of wages to wage recipients in the form of digital RMB.
[0150] ①Smart contract creation
[0151] The general contractor selects the wage recipient wage payment smart contract template (corresponding to the above target template) on the digital RMB designated operating institution smart contract service platform according to the business type, creates a wage recipient wage payment smart contract, and the digital RMB designated operating institution obtains the wage recipient wage payment contract template (corresponding to the above target template) and passes it to the general contractor's financial cloud platform. The general contractor's financial cloud platform configures personalized parameters according to the wage recipient wage payment business attributes. The wage recipient wage payment smart contract personalized parameter rules (corresponding to the above target rules) are set as follows:
[0152] The general contractor verifies the equation e(σ agg ,g2)=e(H2(m,h1),PK agg ), if the equation passes, that is, the general contractor verifies that the multiple signatures of the wage recipient have passed, the smart contract automatically executes the wage payment to the wage recipient; otherwise, the wage payment to the wage recipient will not be executed.
[0153] After the contract rules (corresponding to the above-mentioned target rules) are set, the general contractor will pass the set smart contract personalized parameter rules (corresponding to the above-mentioned target rules) to the smart contract platform of the designated digital RMB operating institution. The smart contract platform of the designated digital RMB operating institution will generate a contract (corresponding to the above-mentioned target smart contract) according to demand and store the parameter contract (corresponding to the above-mentioned target smart contract).
[0154] ②Smart contract signing
[0155] The general contractor, the subcontractor and the designated digital RMB operating institution sign a smart contract for wage payment of digital RMB wage recipients. The general contractor and the subcontractor select the created smart contract for wage payment of digital RMB wage recipients. The designated digital RMB operating institution downloads the contract and displays it according to the request. The general contractor and the subcontractor input the smart contract information for wage payment of digital RMB wage recipients to sign the contract. The designated digital RMB operating institution receives the signing instructions from the general contractor and the subcontractor, returns the signing result, and stores the smart contract information for wage payment of digital RMB wage recipients.
[0156] (4) Smart contracts enable wage transfer and payment
[0157] For example, this step triggers the digital RMB wage payment smart contract to realize the digital RMB wage payment. Figure 3 This is a schematic diagram of realizing salary circulation and payment based on smart contracts in this embodiment. Figure 3As shown in the figure, the salary recipient's salary is transferred from the general contractor's digital RMB salary recipient's salary special account wallet w2 to the subcontractor's digital RMB salary recipient's salary special account wallet w3 based on the smart contract rules, and finally transferred to the salary recipient's digital RMB wallet {f1,f2,f3,…,f n}, so that the subcontracting unit only has query rights during the wage payment process for the wage recipient and cannot intercept or misappropriate the wage funds.
[0158] ①Smart contract execution
[0159] When the wage recipient, subcontractor, and general contractor perform multiple signatures on the wage recipient's wage payment form, the general contractor selects the wage recipient's wage payment smart contract on the financial cloud platform and loads the smart contract to generate a payment request, which is then submitted to the designated digital RMB operating institution. The smart contract periodically checks whether the general contractor's signature verification has passed. That is, when the general contractor verifies equation e(σ agg ,g2)=e(H2(m,h1),PK agg ) is passed, the designated operating institution of the digital RMB executes the smart contract for salary payment to the salary recipient. After the designated operating institution of the digital RMB completes the processing, it returns the transaction results to the general contractor and subcontractor.
[0160] ②Digital RMB wallet transfer
[0161] When the digital RMB wage recipient smart contract is triggered, the designated digital RMB operating institution will automatically transfer the wages in the general contractor's digital RMB wage recipient's special account wallet w2 to the subcontractor's digital RMB wage recipient's special account wallet w3. At the same time, the designated digital RMB operating institution will automatically transfer the wages in the subcontractor's digital RMB wage recipient's special account wallet w3 to the n wage recipients' digital RMB wallets {f1,f2,f3,…,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f3,f10,f11,f23,f19,f24,f25,f31,f1 n}, complete the automatic targeted payment of salary to salary recipients.
[0162] In summary, the fund processing method provided in the embodiment of the present application obtains the signature information of each target object to sign the target form, and obtains multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; the multiple signature information are merged to obtain a signature information set, and the validity of the signature information set is verified; when the signature information set is valid, funds are issued to each target object based on the target smart contract and the fund wallet, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object, which solves the problem of poor effect of power grid companies or other project owners paying wages to wage recipients in related technologies. By obtaining the signature information of all wage recipients for multiple signatures on the wage payment form, collecting and aggregating the signatures of all wage recipients, and then verifying the aggregated signature and triggering the preset smart contract, the wages of the wage recipients are distributed point-to-point in the form of digital RMB. This can avoid the occurrence of wage fraud, missed wages, and arrears of wages for individual wage recipients. At the same time, the use of digital RMB to pay wage recipients can standardize the method of wage payment and avoid the opaque wage payment process, thereby improving the effect of power grid companies or other project owners paying wages to wage recipients.
[0163] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0164] The embodiment of the present application also provides a fund processing device. It should be noted that the fund processing device of the embodiment of the present application can be used to execute the fund processing method provided in the embodiment of the present application. The fund processing device provided in the embodiment of the present application is introduced below.
[0165] Figure 4 Schematic diagram of a fund processing device provided according to an embodiment of the present application. Figure 4 As shown, the device includes: a first acquisition unit 401, a first processing unit 402 and a second processing unit 403.
[0166] Specifically, the first acquisition unit 401 is used to acquire the signature information of each target object signing the target form, and obtain multiple signature information, wherein the target form is used to record the fund information to be issued to each target object;
[0167] The first processing unit 402 is used to perform confluence processing on multiple signature information to obtain a signature information set, and verify the validity of the signature information set;
[0168] The second processing unit 403 is used to distribute funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, wherein the fund wallet is used to distribute funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for distributing funds to each target object.
[0169] In summary, the fund processing device provided in the embodiment of the present application obtains the signature information of each target object signing the target form through the first acquisition unit 401, and obtains multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; the first processing unit 402 performs convergence processing on the multiple signature information to obtain a signature information set, and verifies the validity of the signature information set; the second processing unit 403 issues funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object, which solves the problem of poor effect of power grid companies or other project owners paying wages to wage recipients in related technologies. By obtaining the signature information of all wage recipients for multiple signatures on the wage payment form, collecting and aggregating the signatures of all wage recipients, and then verifying the aggregated signature and triggering the preset smart contract, the wages of the wage recipients are distributed point-to-point in the form of digital RMB. This can avoid the occurrence of wage fraud, missed wages, and arrears of wages for individual wage recipients. At the same time, the use of digital RMB to pay wage recipients can standardize the method of wage payment and avoid the opaque wage payment process, thereby improving the effect of power grid companies or other project owners paying wages to wage recipients.
[0170] Optionally, in the funds processing device provided in the embodiment of the present application, if the funds wallet includes the funds wallet of a first institution and the funds wallet of a second institution, and the first institution is the superior institution of the second institution, then the second processing unit includes: a first processing module, which is used to transfer the target funds in the funds wallet of the first institution to the funds wallet of the second institution based on the target smart contract when the signature information set is valid; a second processing module, which is used to transfer the target funds in the funds wallet of the second institution to the funds wallet of each target object based on the target smart contract and according to the funds information to be issued to each target object recorded in the target table.
[0171] Optionally, in the funds processing device provided in the embodiment of the present application, the first acquisition unit includes: a first acquisition module, used to obtain parameter information of the attribute authorization center, and based on the parameter information of the attribute authorization center, obtain key information corresponding to each target object to obtain a key set; a second acquisition module, used to obtain signature information of each target object based on the key in the key set to perform multiple signatures on the target table, and obtain multiple signature information.
[0172] Optionally, in the fund processing device provided in the embodiment of the present application, the device also includes: a second acquisition unit, used to obtain template information corresponding to the smart contract used to issue funds to each target object before issuing funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, and obtain the target template; a third acquisition unit, used to obtain parameter rules of the smart contract used to issue funds to each target object, and obtain the target rule, wherein the target rule is used to indicate that funds are issued to each target object when the signature information set is valid; a third processing unit, used to generate a target smart contract based on the target template and the target rule, and deploy the target smart contract on the blockchain.
[0173] Optionally, in the fund processing device provided in the embodiment of the present application, the device also includes: a fourth acquisition unit, which is used to obtain multiple target information after issuing funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, wherein the multiple target information at least includes attribute information of each target object, number information of each target object's fund wallet, fund information issued to each target object and multiple signatures of each target object; a fourth processing unit, which is used to aggregate and process the multiple target information to obtain plaintext data and obtain an access policy corresponding to the plaintext data; a first encryption unit, which is used to encrypt the plaintext data based on the access policy corresponding to the plaintext data to obtain a first ciphertext; a second encryption unit, which is used to encrypt the first ciphertext again to obtain a second ciphertext, and store the second ciphertext in a cloud server; a fifth processing unit, which is used to obtain a storage address of the second ciphertext stored in the cloud server, and store the storage address in the blockchain.
[0174] Optionally, in the fund processing device provided in the embodiment of the present application, the device also includes: a fifth acquisition unit, used to obtain, from the blockchain, a storage address storing the second ciphertext in the cloud server after storing the storage address in the blockchain; a sixth acquisition unit, used to obtain the second ciphertext from the cloud server based on the storage address; a seventh acquisition unit, used to obtain the first private key from the cloud server and obtain the second private key from the attribute authorization center; a first decryption unit, used to decrypt the second ciphertext based on the first private key and the second private key to obtain the first ciphertext; and a second decryption unit, used to decrypt the first ciphertext based on the access policy to obtain plaintext data.
[0175] Optionally, in the funds processing device provided in the embodiment of the present application, the second decryption unit includes: a first judgment module, used to judge whether the target institution has the authority to access the plaintext data based on the access policy, wherein the target institution is the institution to access the plaintext data; a third processing module, used to prohibit decryption of the first ciphertext to obtain the plaintext data if the target institution does not have the authority to access the plaintext data; and a first decryption module, used to decrypt the first ciphertext to obtain the plaintext data if the target institution has the authority to access the plaintext data.
[0176] Optionally, in the fund processing device provided in the embodiment of the present application, the device also includes: an eighth acquisition unit, which is used to decrypt the first ciphertext according to the access policy to obtain plaintext data, and then obtain multiple target information from the plaintext data; a sixth processing unit, which is used to trace the process of issuing funds to each target object based on the multiple target information obtained from the plaintext data.
[0177] The fund processing device includes a processor and a memory. The first acquisition unit 401, the first processing unit 402 and the second processing unit 403 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0178] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the effect of the power grid company or other project owners paying wages to wage recipients can be improved by adjusting kernel parameters.
[0179] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0180] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the fund processing method is implemented.
[0181] An embodiment of the present invention provides a processor, which is used to run a program, wherein the fund processing method is executed when the program is running.
[0182] like Figure 5 As shown, an embodiment of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining signature information of each target object for signing a target form, and obtaining multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; merging the multiple signature information to obtain a signature information set, and verifying the validity of the signature information set; when the signature information set is valid, issuing funds to each target object based on the target smart contract and the fund wallet, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object.
[0183] When the processor executes the program, the following steps are also implemented: If the funds wallet includes the funds wallet of the first institution and the funds wallet of the second institution, and the first institution is the superior institution of the second institution, then when the signature information set is valid, based on the target smart contract and the funds wallet, the funds are distributed to each target object, including: when the signature information set is valid, based on the target smart contract, the target funds in the funds wallet of the first institution are transferred to the funds wallet of the second institution; based on the target smart contract, according to the funds information to be distributed to each target object recorded in the target table, the target funds in the funds wallet of the second institution are transferred to the funds wallet of each target object.
[0184] When the processor executes the program, the following steps are also implemented: obtaining the signature information of each target object to sign the target form, and obtaining multiple signature information includes: obtaining the parameter information of the attribute authorization center, and based on the parameter information of the attribute authorization center, obtaining the key information corresponding to each target object to obtain a key set; obtaining the signature information of each target object to sign the target form based on the key in the key set to obtain multiple signature information.
[0185] When the processor executes the program, the following steps are also implemented: when the signature information set is valid, based on the target smart contract and the fund wallet, before distributing funds to each target object, it also includes: obtaining the template information corresponding to the smart contract used to distribute funds to each target object, and obtaining the target template; obtaining the parameter rules of the smart contract used to distribute funds to each target object, and obtaining the target rule, wherein the target rule is used to indicate that funds are distributed to each target object when the signature information set is valid; generating a target smart contract based on the target template and the target rule, and deploying the target smart contract on the blockchain.
[0186] When the processor executes the program, the following steps are also implemented: when the signature information set is valid, based on the target smart contract and the fund wallet, after issuing funds to each target object, it also includes: obtaining multiple target information, wherein the multiple target information at least includes the attribute information of each target object, the numbering information of the fund wallet of each target object, the fund information issued to each target object and the multiple signatures of each target object; aggregating the multiple target information to obtain plaintext data, and obtaining the access policy corresponding to the plaintext data; encrypting the plaintext data based on the access policy corresponding to the plaintext data to obtain a first ciphertext; encrypting the first ciphertext again to obtain a second ciphertext, and storing the second ciphertext in the cloud server; obtaining the storage address of the second ciphertext stored in the cloud server, and storing the storage address in the blockchain.
[0187] When the processor executes the program, the following steps are also implemented: after the storage address is stored in the blockchain, it also includes: obtaining the storage address of the second ciphertext stored in the cloud server from the blockchain; obtaining the second ciphertext from the cloud server based on the storage address; obtaining the first private key from the cloud server, and obtaining the second private key from the attribute authorization center; decrypting the second ciphertext based on the first private key and the second private key to obtain the first ciphertext; decrypting the first ciphertext based on the access policy to obtain plaintext data.
[0188] When the processor executes the program, the following steps are also implemented: based on the access policy, the first ciphertext is decrypted to obtain the plaintext data, including: based on the access policy, judging whether the target organization has the authority to access the plaintext data, wherein the target organization is the organization to access the plaintext data; if the target organization does not have the authority to access the plaintext data, decrypting the first ciphertext to obtain the plaintext data is prohibited; if the target organization has the authority to access the plaintext data, the first ciphertext is decrypted to obtain the plaintext data.
[0189] When the processor executes the program, the following steps are also implemented: after decrypting the first ciphertext according to the access strategy to obtain the plaintext data, it also includes: obtaining multiple target information from the plaintext data; based on the multiple target information obtained from the plaintext data, tracing the process of issuing funds to each target object.
[0190] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0191] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: obtaining signature information of each target object to sign a target table, and obtaining multiple signature information, wherein the target table is used to record the fund information to be issued to each target object; merging the multiple signature information to obtain a signature information set, and verifying the validity of the signature information set; when the signature information set is valid, issuing funds to each target object based on the target smart contract and the fund wallet, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object.
[0192] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: if the funds wallet includes the funds wallet of a first institution and the funds wallet of a second institution, and the first institution is the superior institution of the second institution, then when the signature information set is valid, based on the target smart contract and the funds wallet, the funds are issued to each target object, including: when the signature information set is valid, based on the target smart contract, the target funds in the funds wallet of the first institution are transferred to the funds wallet of the second institution; based on the target smart contract, according to the funds information to be issued to each target object recorded in the target table, the target funds in the funds wallet of the second institution are transferred to the funds wallet of each target object.
[0193] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: obtaining signature information of each target object to sign a target table, and obtaining multiple signature information including: obtaining parameter information of an attribute authorization center, and based on the parameter information of the attribute authorization center, obtaining key information corresponding to each target object to obtain a key set; obtaining signature information of each target object to perform multiple signatures on the target table based on the key in the key set, and obtaining multiple signature information.
[0194] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: when the signature information set is valid, based on the target smart contract and the fund wallet, before issuing funds to each target object, it also includes: obtaining the template information corresponding to the smart contract used to issue funds to each target object, and obtaining the target template; obtaining the parameter rules of the smart contract used to issue funds to each target object, and obtaining the target rules, wherein the target rules are used to indicate that funds are issued to each target object when the signature information set is valid; generating a target smart contract based on the target template and the target rules, and deploying the target smart contract on the blockchain.
[0195] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: when the signature information set is valid, based on the target smart contract and the fund wallet, after issuing funds to each target object, it also includes: obtaining multiple target information, wherein the multiple target information at least includes the attribute information of each target object, the numbering information of the fund wallet of each target object, the fund information issued to each target object and the multiple signatures of each target object; aggregating the multiple target information to obtain plaintext data, and obtaining the access policy corresponding to the plaintext data; encrypting the plaintext data based on the access policy corresponding to the plaintext data to obtain a first ciphertext; encrypting the first ciphertext again to obtain a second ciphertext, and storing the second ciphertext in the cloud server; obtaining the storage address of the second ciphertext stored in the cloud server, and storing the storage address in the blockchain.
[0196] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: after storing the storage address in the blockchain, it also includes: obtaining the storage address of the second ciphertext stored in the cloud server from the blockchain; obtaining the second ciphertext from the cloud server based on the storage address; obtaining the first private key from the cloud server, and obtaining the second private key from the attribute authorization center; decrypting the second ciphertext based on the first private key and the second private key to obtain the first ciphertext; decrypting the first ciphertext based on the access policy to obtain plaintext data.
[0197] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: decrypting the first ciphertext according to the access policy to obtain plaintext data includes: judging whether the target organization has the authority to access the plaintext data according to the access policy, wherein the target organization is the organization to access the plaintext data; if the target organization does not have the authority to access the plaintext data, decrypting the first ciphertext to obtain the plaintext data is prohibited; if the target organization has the authority to access the plaintext data, decrypting the first ciphertext to obtain the plaintext data is obtained.
[0198] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after decrypting the first ciphertext according to the access policy to obtain plaintext data, it also includes: obtaining multiple target information from the plaintext data; based on the multiple target information obtained from the plaintext data, tracing the process of issuing funds to each target object.
[0199] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0200] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0201] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0202] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0203] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0204] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0205] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0206] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0207] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0208] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for handling funds, characterized in that: include: Acquire signature information of each target object signing a target form, and obtain multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; Combining the multiple signature information to obtain a signature information set, and verifying the validity of the signature information set; When the signature information set is valid, funds are issued to each target object based on the target smart contract and the fund wallet, wherein the fund wallet is used to issue funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for issuing funds to each target object.
2. The method according to claim 1, characterized in that If the fund wallet includes a fund wallet of a first institution and a fund wallet of a second institution, and the first institution is a superior institution of the second institution, then if the signature information set is valid, based on the target smart contract and the fund wallet, issuing funds to each target object includes: If the signature information set is valid, based on the target smart contract, the target funds in the fund wallet of the first institution are transferred to the fund wallet of the second institution; Based on the target smart contract, the target funds in the fund wallet of the second institution are transferred to the fund wallet of each target object according to the fund information to be distributed to each target object recorded in the target table.
3. The method according to claim 1, characterized in that Obtain the signature information of each target object signing the target form, and obtain multiple signature information including: Obtain parameter information of the attribute authorization center, and obtain key information corresponding to each target object based on the parameter information of the attribute authorization center to obtain a key set; Acquire signature information of each target object performing multiple signatures on the target table based on the key in the key set to obtain the multiple signature information.
4. The method according to claim 1, characterized in that: When the signature information set is valid, based on the target smart contract and the fund wallet, before distributing funds to each target object, the method further includes: Obtain the template information corresponding to the smart contract used to issue funds to each target object, and obtain the target template; Acquire a parameter rule of a smart contract for issuing funds to each target object, and obtain a target rule, wherein the target rule is used to indicate that funds are issued to each target object when the signature information set is valid; The target smart contract is generated according to the target template and the target rule, and the target smart contract is deployed on the blockchain.
5. The method according to claim 1, characterized in that When the signature information set is valid, after distributing funds to each target object based on the target smart contract and the fund wallet, the method further includes: Acquire multiple target information, wherein the multiple target information includes at least attribute information of each target object, number information of each target object's fund wallet, fund information issued to each target object, and multiple signatures of each target object; Aggregate and process the multiple target information to obtain plaintext data, and obtain access policies corresponding to the plaintext data; Encrypting the plaintext data based on the access policy corresponding to the plaintext data to obtain a first ciphertext; Encrypting the first ciphertext again to obtain a second ciphertext, and storing the second ciphertext in a cloud server; Obtain a storage address in the cloud server where the second ciphertext is stored, and store the storage address in the blockchain.
6. The method according to claim 5, characterized in that After storing the storage address in the blockchain, the method further includes: Obtaining, from the blockchain, a storage address in the cloud server where the second ciphertext is stored; Obtaining the second ciphertext from the cloud server according to the storage address; Obtaining a first private key from the cloud server and obtaining a second private key from an attribute authorization center; Decrypting the second ciphertext based on the first private key and the second private key to obtain the first ciphertext; The first ciphertext is decrypted according to the access policy to obtain the plaintext data.
7. The method according to claim 6, characterized in that Decrypting the first ciphertext according to the access policy to obtain the plaintext data includes: According to the access policy, determining whether the target organization has the authority to access the plaintext data, wherein the target organization is the organization to access the plaintext data; If the target organization does not have the authority to access the plaintext data, decrypting the first ciphertext to obtain the plaintext data is prohibited; If the target organization has the authority to access the plaintext data, the first ciphertext is decrypted to obtain the plaintext data.
8. The method according to claim 6, characterized in that After decrypting the first ciphertext according to the access policy to obtain the plaintext data, the method further includes: Acquire the plurality of target information from the plaintext data; Based on the multiple target information obtained from the plaintext data, the process of issuing funds to each target object is traced back.
9. A fund processing device, characterized in that: include: A first acquisition unit is used to acquire signature information of each target object signing a target form to obtain multiple signature information, wherein the target form is used to record the fund information to be issued to each target object; A first processing unit, configured to perform confluence processing on the plurality of signature information to obtain a signature information set, and verify the validity of the signature information set; The second processing unit is used to distribute funds to each target object based on the target smart contract and the fund wallet when the signature information set is valid, wherein the fund wallet is used to distribute funds to each target object, and the target smart contract is a smart contract pre-deployed on the blockchain for distributing funds to each target object.
10. A computer-readable storage medium, characterized in that: The storage medium stores a program, wherein the program executes the fund processing method according to any one of claims 1 to 8.
11. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the funds processing method described in any one of claims 1 to 8.
