CN112258203A - Block chain-based donation method, block chain node, device and storage medium - Google Patents

Block chain-based donation method, block chain node, device and storage medium Download PDF

Info

Publication number
CN112258203A
CN112258203A CN202011204969.2A CN202011204969A CN112258203A CN 112258203 A CN112258203 A CN 112258203A CN 202011204969 A CN202011204969 A CN 202011204969A CN 112258203 A CN112258203 A CN 112258203A
Authority
CN
China
Prior art keywords
donation
user
file
block
identity information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011204969.2A
Other languages
Chinese (zh)
Inventor
李思毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202011204969.2A priority Critical patent/CN112258203A/en
Publication of CN112258203A publication Critical patent/CN112258203A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Primary Health Care (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Human Resources & Organizations (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The application provides a donation method based on a block chain, a block chain node, equipment and a storage medium, wherein the method comprises the following steps: acquiring an update request of a donation file, wherein the update request comprises user identity information and donation update data; generating a current credit index of the user according to the donation files, the donation updating data and the user identity information; generating a new block of the donated file according to the donated file, the donated updating data, the user identity information and the credit index; the new block is added to the chain of blocks corresponding to the donated file. In the present application, each update of the same donated file adds a new block generated in its block chain, and each block in the block chain contains a credit index. The data of the behavior of donation at every time can be traced back and can not be modified, the credibility of updating the file donation at every time is evaluated through the credit index, and the authenticity of the data donated by the user is improved.

Description

Block chain-based donation method, block chain node, device and storage medium
Technical Field
The application belongs to the technical field of block chains, and particularly relates to a block chain-based donation method, a block chain node, equipment and a storage medium.
Background
In society today, more and more loved people or enterprises devote their love by donating property. For example, donations are made by some charity. Charitable organizations may consolidate data from loved ones or businesses, but lack effective supervision over the donation data. Some enterprises or individuals falsify donation data for purposes of tax reduction or image improvement.
The prior art is difficult to accurately judge the authenticity of donation data, the donation data is easy to be falsified, the public trust of the donation data is insufficient, and the healthy development of the social charity is not facilitated.
Disclosure of Invention
The application provides a donation method based on a block chain, a block chain node, equipment and a storage medium. The data of the behavior of donation at every time can be traced back and can not be modified, the credibility of updating the file donation at every time is evaluated through the credit index, and the authenticity of the data donated by the user is improved.
An embodiment of a first aspect of the present application provides a donation method based on a blockchain, including:
acquiring an update request of a donation file, wherein the update request comprises user identity information and donation update data;
generating a current credit index of the user according to the donation file, the donation updating data and the user identity information;
generating a new block of the donation archive according to the donation archive, the donation update data, the user identity information and the credit index;
adding the new block to the chain of blocks corresponding to the donation file.
In some embodiments of the present application, the generating a current credit index of a user according to the donation profile, the donation update data and the user identity information includes:
determining the value of a material credit investigation parameter according to the donation file and the donation updating data;
determining the value of a user credit investigation parameter according to the donation file, the donation updating data and the user identity information;
and calculating the current credit index of the user according to the value of the material credit investigation parameter, the weight corresponding to the material credit investigation parameter, the value of the user credit investigation parameter and the weight corresponding to the user credit investigation parameter.
In some embodiments of the present application, the determining a value of a material credit investigation parameter according to the donation archive and the donation update data includes:
determining the value of the urgency of the material according to the donation time included by the donation file and the donation updating data;
and determining the value of the material transfer difficulty and the value of the material quality according to the material information included in the donation files and the donation updating data.
In some embodiments of the present application, the determining a value of a user credit investigation parameter according to the donation profile, the donation update data, and the user identity information includes:
determining user donation expenditure and donation scale according to the donation files and the donation updating data;
determining the user operation condition and the user scale according to the user identity information;
determining the value of a payment credit investigation parameter according to the user donation payment and the user operation condition;
and determining the value of the scale credit investigation parameter according to the donation scale and the user scale.
In some embodiments of the present application, the generating a new chunk of the donation profile from the donation profile, the donation update data, the user identity information, and the credit index comprises:
performing hash operation on the donation file, the donation updating data, the user identity information and the credit index to obtain a hash value;
generating a block header according to the user identity information, the hash value and the current time;
and generating a block body corresponding to the block head according to the donation files and the donation updating data to obtain a new block corresponding to the donation files.
In some embodiments of the present application, the adding the new block to the chain of blocks corresponding to the donation profile includes:
sending the new block to other block chain nodes;
receiving the identity verification result corresponding to the new block returned by the other block link points;
determining the proportion of nodes passing the verification according to the identity verification result corresponding to the new block;
and if the node proportion is larger than a preset threshold value, adding the new block into a block chain corresponding to the local donation file.
In some embodiments of the present application, the obtaining the request for updating the donation file further includes:
obtaining a donation request of a user, wherein the donation request comprises donation data and user identity information;
generating an initial credit index of the user according to the donation data and the user identity information;
generating an initial block according to the donation data and the user identity information;
storing the initial block in respective blockchain nodes.
Embodiments of the second aspect of the present application provide a block link point comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an update request of a donation file, and the update request comprises user identity information and donation update data;
the credit index generation module is used for generating the current credit index of the user according to the donation file, the donation updating data and the user identity information;
a block generation module, configured to generate a new block of the donation file according to the donation file, the donation update data, the user identity information, and the credit index;
and the adding module is used for adding the new block into the block chain corresponding to the donation file.
Embodiments of the third aspect of the present application provide a computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions, which, when executed by the processor, cause the processor to perform the steps of the method of the first aspect described above.
Embodiments of the fourth aspect of the present application provide a storage medium storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of the first aspect described above.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
in the embodiment of the present application, when a donation file is updated, a current credit index is generated, a new block corresponding to the donation file is generated, and the new block is added to a block chain corresponding to the donation file. And creating a donation file for each donation action, wherein each donation action corresponds to a respective block chain, and each update of the same donation file adds a generated new block in the block chain, and each block in the block chain contains a credit index. Therefore, the data of the donation behaviors at each time can be traced and cannot be modified, the credibility of the update of the donation files at each time is evaluated through the credit index, and the authenticity of the donation data of the user is improved. The user updates the donation file every time, and the credibility of the user donation data is measured from multiple angles such as material urgency degree, material circulation difficulty, material quality, material condition donated by the user, self operation condition of the user and the like, so that the credit investigation condition donated by the user is more real and reliable.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a blockchain-based donation method according to an embodiment of the present application;
FIG. 2 illustrates a block link point configuration provided by an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an exemplary configuration of a computer device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a storage medium provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
Some embodiments of the present application provide a donation credit assessment system based on a blockchain, in which a user registers in the system first, and in the registration process, a blockchain link point corresponding to the user is created in the blockchain system, and the user is allocated with a private key and a public key through the blockchain link point. And the user sends the user identity information of the user to the block chain link point through the terminal, the block chain link point encrypts the user identity information, and the obtained identity information ciphertext is stored in the block chain link point. Wherein the user may be an individual or a business. The user identity information comprises the name, address, contact information, user operation condition, user scale and the like of the user.
The blockchain node also sets an initial credit index for the user, and the value of the initial credit index is a preset initial value, and the preset initial value can be 50 or 60. The credit index may range from 0 to 100. The credit index is stored in the user identity information.
After the user completes the registration process, the donation may be performed through the following operations of steps S1-S4, which specifically include:
step S1: a donation request of a user is obtained, wherein the donation request comprises donation data and user identity information.
When a user needs to donate, the user sends a donation request to the blockchain node through the terminal, wherein the donation request comprises the name of the user, donation data and the like. And the block chain node receives the donation request and acquires the user identity information corresponding to the user according to the name of the user.
The donation data comprises material information such as material type, material description, amount/valuation, whether to direct, direction description, donation time, donation circulation record and donation destination.
Step S2: and generating an initial credit index of the user according to the donation data and the user identity information.
And determining the value of the emergency degree of the material according to the donation time included in the donation data. The donation time can be specifically used as a value of the urgency of the material. Or calculating the time difference between the donation time and the preset deadline time of the charitable project corresponding to the donation data, and taking the time difference as the value of the emergency degree of the materials.
And determining the value of the material transfer difficulty according to the donation transfer record included in the donation data. The transfer duration included in the donation transfer record can be determined as the value of the material transfer difficulty. Alternatively, the transfer cost included in the donation transfer record may be determined as a value of the material transfer difficulty.
And determining the value of the quality of the goods according to the type, the description, the amount/the valuation and the like of the goods included in the donation data. The unit price and the quality guarantee period of the material are determined according to the type of the material, the description of the material and the amount/estimation value. And determining the quality value of the material according to the unit price and the quality guarantee period of the material.
Determining the donation expenditure and the donation scale of the user according to the donation data; determining the user operation condition and the user scale according to the user identity information; determining the value of a expenditure credit investigation parameter according to the user donation expenditure and the user operation condition; and determining the value of the scale credit investigation parameter according to the donation scale and the user scale.
In the embodiment of the application, weights corresponding to the emergency degree of the materials, the material transfer difficulty, the material quality, the expense credit investigation parameter and the scale credit investigation parameter are preset in the block chain nodes. After the values of the parameters are determined by the block chain nodes in the above mode, the weighted summation is carried out according to the values and corresponding weights of the parameters such as the emergency degree of materials, the difficulty of material circulation, the quality of the materials, the expense credit investigation parameters and the scale credit investigation parameters, and the current credit index of the user is obtained. And replacing the credit index stored in the user identity information with the credit index calculated in the step.
Step S3: an initial block is generated based on the donation data and the user identity information.
And generating a donation file according to the donation data and the user identity information, and creating an initial block corresponding to the donation file. The donation files include donation information such as donation type, donation description, amount/estimation, direction description, donation time, donation circulation record, donation destination, etc., as well as user identity information, timestamp, etc.
The block header of the initial block comprises basic information such as a private key, a public key, a signature, a hash value, encrypted user identity information, a timestamp and the like of a user. Wherein, the hash value is obtained by carrying out hash operation on the donation file. The signature is obtained by encrypting the node identification of the block chain link point, the user identity information and the like through a private key. The donor file is included in the block of the initial block.
Step S4: the initial blocks are stored in respective blockchain nodes.
The initial block corresponding to the present donation is created in the block chain in the manner described above, and then the donation file is updated each time, for example, the donated materials are increased, and the update can be performed through the following operations of steps 101-104, as shown in fig. 1, which specifically includes:
step 101: and acquiring an update request of the donation file, wherein the update request comprises user identity information and donation update data.
When a user modifies donation data of a certain time, the terminal sends an update request of the donation file, wherein the update request comprises the name of the user and the donation update data. And the block chain node receives the updating request and acquires the user identity information corresponding to the user according to the name of the user.
Step 102: and generating the current credit index of the user according to the donation files, the donation updating data and the user identity information.
The present application specifically generates the current credit index of the user through the following operations of steps S1021 to S1023, including:
step S1021: and determining the value of the material credit investigation parameter according to the donation file and the donation updating data.
The material credit investigation parameters can include material urgency, material circulation difficulty and material quality.
Specifically, the value of the urgency of the material is determined according to the donation time included in the donation archive and the donation update data. The donation time can be specifically used as a value of the urgency of the material. Or calculating the time difference between the donation time and the preset deadline time of the charitable project corresponding to the donation file, and taking the time difference as the value of the emergency degree of the materials.
And determining the value of the material transfer difficulty and the value of the material quality according to the material information included in the donation files and the donation updating data. Specifically, the value of the material transfer difficulty is determined according to the donation transfer record included in the material information. The circulation time included in the donation circulation record can be determined as the value of the material circulation difficulty. Alternatively, the transfer cost included in the donation transfer record may be determined as a value of the material transfer difficulty.
And determining the value of the quality of the material according to the type, the description, the amount/the estimation and the like of the material, which are included in the material information. The unit price and the quality guarantee period of the material are determined according to the type of the material, the description of the material and the amount/estimation value. And determining the quality value of the material according to the unit price and the quality guarantee period of the material.
Step S1022: and determining the value of the credit investigation parameter of the user according to the donation file, the donation updating data and the user identity information.
The user credit investigation parameters comprise expenditure credit investigation parameters and scale credit investigation parameters. Specifically, determining user donation expenditure and donation scale according to the donation files and donation update data; determining the user operation condition and the user scale according to the user identity information; determining the value of a payment credit investigation parameter according to the user donation payment and the user operation condition; and determining the value of the scale credit investigation parameter according to the donation scale and the user scale.
Step S1023: and calculating the current credit index of the user according to the value of the material credit investigation parameter, the weight corresponding to the material credit investigation parameter, the value of the user credit investigation parameter and the weight corresponding to the user credit investigation parameter.
The block chain nodes are preset with the weights corresponding to the emergency degree of the materials, the difficulty of material transfer, the quality of the materials, the credit investigation parameters of expenditure and the credit investigation parameters of scale. After the values of the parameters are determined by the block chain nodes in the above mode, the weighted summation is carried out according to the values and corresponding weights of the parameters such as the emergency degree of materials, the difficulty of material circulation, the quality of the materials, the expense credit investigation parameters and the scale credit investigation parameters, and the current credit index of the user is obtained. And replacing the credit index stored in the user identity information with the credit index calculated in the step.
Step 103: and generating a new block of the donated file according to the donated file, the donated updating data, the user identity information and the credit index.
Specifically, the new block is generated through the following steps S1031 to S1033, including:
step S1031: and carrying out Hash operation on the donation files, the donation updating data, the user identity information and the credit index to obtain a Hash value.
Step S1032: and generating a block header according to the user identity information, the hash value and the current time.
The block header of the initial block comprises basic information such as a private key, a public key, a signature, a hash value, encrypted user identity information, a timestamp and the like of a user. The signature is obtained by encrypting the node identification of the block chain link point, the user identity information and the like through a private key.
Step S1033: and generating a block body corresponding to the block head according to the donation files and the donation updating data to obtain a new block corresponding to the donation files.
Step 104: the new block is added to the chain of blocks corresponding to the donated file.
Each block chain node in the system stores a block chain corresponding to the donation file, and each block chain node periodically checks whether a new block appears in a block chain corresponding to the donation file in other block chain nodes except the block chain node itself, and if the new block appears, the new block is requested to be acquired from a block chain node point where the new block appears and verified.
After the block link node generates a new block through step 103, after the new block is added to the local block chain corresponding to the donation file, if a new block acquisition request sent by another block chain node is received, the new block is sent to another block chain node. And after receiving the new block, the other block chain nodes acquire the signature from the block head of the new block, decrypt the signature through the public key, perform identity verification according to the decrypted signature, and send an identity verification result to the block chain node.
And the block chain link point receives the identity verification result corresponding to the new block returned by other block chain link points. And determining the proportion of the nodes passing the verification according to the identity verification result corresponding to the new block. And if the node proportion is larger than the preset threshold value, adding the new block into a block chain corresponding to the local donation file. The preset threshold may be 50% or 60%, etc.
And determining the new block as a valid block only when the ratio of the verified nodes to all the block chain nodes reaches above a preset threshold, and regarding the updated archive data as valid trusted data.
In the embodiment of the present application, when a donation file is updated, a current credit index is generated, a new block corresponding to the donation file is generated, and the new block is added to a block chain corresponding to the donation file. And creating a donation file for each donation action, wherein each donation action corresponds to a respective block chain, and each update of the same donation file adds a generated new block in the block chain, and each block in the block chain contains a credit index. Therefore, the data of the donation behaviors at each time can be traced and cannot be modified, the credibility of the update of the donation files at each time is evaluated through the credit index, and the authenticity of the donation data of the user is improved. The user updates the donation file every time, and the credibility of the user donation data is measured from multiple angles such as material urgency degree, material circulation difficulty, material quality, material condition donated by the user, self operation condition of the user and the like, so that the credit investigation condition donated by the user is more real and reliable.
The present invention provides a block link point for performing the block chain-based donation method according to any one of the above embodiments, as shown in fig. 2, the block link point includes:
an obtaining module 201, configured to obtain an update request for a donation file, where the update request includes user identity information and donation update data;
a credit index generation module 202, configured to generate a current credit index of the user according to the donation archive, the donation update data, and the user identity information;
the block generation module 203 is configured to generate a new block of the donation file according to the donation file, the donation update data, the user identity information, and the credit index;
an adding module 204, configured to add the new block to the block chain corresponding to the donation file.
The credit index generation module 202 is configured to determine a value of a material credit investigation parameter according to the donation file and the donation update data; determining the value of a credit investigation parameter of the user according to the donation file, the donation updating data and the user identity information; and calculating the current credit index of the user according to the value of the material credit investigation parameter, the weight corresponding to the material credit investigation parameter, the value of the user credit investigation parameter and the weight corresponding to the user credit investigation parameter.
The credit index generation module 202 is configured to determine a value of the urgency of the material according to the donation time included in the donation file and the donation update data; and determining the value of the material transfer difficulty and the value of the material quality according to the material information included in the donation files and the donation updating data.
A credit index generation module 202, configured to determine a user donation expenditure and a donation scale according to the donation archive and the donation update data; determining the user operation condition and the user scale according to the user identity information; determining the value of a payment credit investigation parameter according to the user donation payment and the user operation condition; and determining the value of the scale credit investigation parameter according to the donation scale and the user scale.
The block generation module 203 is configured to perform a hash operation on the donation file, the donation update data, the user identity information, and the credit index to obtain a hash value; generating a block header according to the user identity information, the hash value and the current time; and generating a block body corresponding to the block head according to the donation files and the donation updating data to obtain a new block corresponding to the donation files.
An adding module 204, configured to send the new block to other block link nodes; receiving the identity verification result corresponding to the new block returned by the link points of other blocks; determining the proportion of the nodes passing the verification according to the identity verification result corresponding to the new block; and if the node proportion is larger than the preset threshold value, adding the new block into a block chain corresponding to the local donation file.
The block link point further comprises: the system comprises an initial block creating module, a data processing module and a data processing module, wherein the initial block creating module is used for acquiring a donation request of a user, and the donation request comprises donation data and user identity information; generating an initial credit index of the user according to the donation data and the user identity information; generating an initial block according to the donation data and the user identity information; the initial blocks are stored in respective blockchain nodes.
In the embodiment of the present application, when a donation file is updated, a current credit index is generated, a new block corresponding to the donation file is generated, and the new block is added to a block chain corresponding to the donation file. And creating a donation file for each donation action, wherein each donation action corresponds to a respective block chain, and each update of the same donation file adds a generated new block in the block chain, and each block in the block chain contains a credit index. Therefore, the data of the donation behaviors at each time can be traced and cannot be modified, the credibility of the update of the donation files at each time is evaluated through the credit index, and the authenticity of the donation data of the user is improved. The user updates the donation file every time, and the credibility of the user donation data is measured from multiple angles such as material urgency degree, material circulation difficulty, material quality, material condition donated by the user, self operation condition of the user and the like, so that the credit investigation condition donated by the user is more real and reliable.
The embodiment of the application provides a computer device, which can be a blockchain node. As shown in fig. 3, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can make the processor realize a block chain-based donation method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a blockchain-based donation method. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The computer device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: acquiring an update request of a donation file, wherein the update request comprises user identity information and donation update data; generating a current credit index of the user according to the donation files, the donation updating data and the user identity information; generating a new block of the donated file according to the donated file, the donated updating data, the user identity information and the credit index; the new block is added to the chain of blocks corresponding to the donated file.
The processor, when executing the computer program, may further perform the steps of: determining the value of a material credit investigation parameter according to the donation file and the donation updating data; determining the value of a credit investigation parameter of the user according to the donation file, the donation updating data and the user identity information; and calculating the current credit index of the user according to the value of the material credit investigation parameter, the weight corresponding to the material credit investigation parameter, the value of the user credit investigation parameter and the weight corresponding to the user credit investigation parameter.
The processor, when executing the computer program, may further perform the steps of: determining the value of the emergency degree of the material according to the donation time included by the donation file and the donation updating data; and determining the value of the material transfer difficulty and the value of the material quality according to the material information included in the donation files and the donation updating data.
The processor, when executing the computer program, may further perform the steps of: determining the user donation expenditure and the donation scale according to the donation files and the donation updating data; determining the user operation condition and the user scale according to the user identity information; determining the value of a payment credit investigation parameter according to the user donation payment and the user operation condition; and determining the value of the scale credit investigation parameter according to the donation scale and the user scale.
The processor, when executing the computer program, may further perform the steps of: performing hash operation on the donation files, the donation updating data, the user identity information and the credit index to obtain hash values; generating a block header according to the user identity information, the hash value and the current time; and generating a block body corresponding to the block head according to the donation files and the donation updating data to obtain a new block corresponding to the donation files.
The processor, when executing the computer program, may further perform the steps of: sending the new block to other block chain nodes; receiving the identity verification result corresponding to the new block returned by the link points of other blocks; determining the proportion of the nodes passing the verification according to the identity verification result corresponding to the new block; and if the node proportion is larger than the preset threshold value, adding the new block into a block chain corresponding to the local donation file.
The processor, when executing the computer program, may further perform the steps of: acquiring a donation request of a user, wherein the donation request comprises donation data and user identity information; generating an initial credit index of the user according to the donation data and the user identity information; generating an initial block according to the donation data and the user identity information; the initial blocks are stored in respective blockchain nodes.
Embodiments of the present application also provide a storage medium storing computer-readable instructions, as shown in fig. 4, which when executed by one or more processors, cause the one or more processors to perform the following steps: acquiring an update request of a donation file, wherein the update request comprises user identity information and donation update data; generating a current credit index of the user according to the donation files, the donation updating data and the user identity information; generating a new block of the donated file according to the donated file, the donated updating data, the user identity information and the credit index; the new block is added to the chain of blocks corresponding to the donated file.
The processor may further perform the steps of: determining the value of a material credit investigation parameter according to the donation file and the donation updating data; determining the value of a credit investigation parameter of the user according to the donation file, the donation updating data and the user identity information; and calculating the current credit index of the user according to the value of the material credit investigation parameter, the weight corresponding to the material credit investigation parameter, the value of the user credit investigation parameter and the weight corresponding to the user credit investigation parameter.
The processor may further perform the steps of: determining the value of the emergency degree of the material according to the donation time included by the donation file and the donation updating data; and determining the value of the material transfer difficulty and the value of the material quality according to the material information included in the donation files and the donation updating data.
The processor may further perform the steps of: determining the user donation expenditure and the donation scale according to the donation files and the donation updating data; determining the user operation condition and the user scale according to the user identity information; determining the value of a payment credit investigation parameter according to the user donation payment and the user operation condition; and determining the value of the scale credit investigation parameter according to the donation scale and the user scale.
The processor may further perform the steps of: performing hash operation on the donation files, the donation updating data, the user identity information and the credit index to obtain hash values; generating a block header according to the user identity information, the hash value and the current time; and generating a block body corresponding to the block head according to the donation files and the donation updating data to obtain a new block corresponding to the donation files.
The processor may further perform the steps of: sending the new block to other block chain nodes; receiving the identity verification result corresponding to the new block returned by the link points of other blocks; determining the proportion of the nodes passing the verification according to the identity verification result corresponding to the new block; and if the node proportion is larger than the preset threshold value, adding the new block into a block chain corresponding to the local donation file.
The processor may further perform the steps of: acquiring a donation request of a user, wherein the donation request comprises donation data and user identity information; generating an initial credit index of the user according to the donation data and the user identity information; generating an initial block according to the donation data and the user identity information; the initial blocks are stored in respective blockchain nodes.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A block chain-based donation method is characterized by comprising the following steps:
acquiring an update request of a donation file, wherein the update request comprises user identity information and donation update data;
generating a current credit index of the user according to the donation file, the donation updating data and the user identity information;
generating a new block of the donation archive according to the donation archive, the donation update data, the user identity information and the credit index;
adding the new block to the chain of blocks corresponding to the donation file.
2. The method of claim 1, wherein generating a current credit index for the user based on the donation profile, the donation update data, and the user identity information comprises:
determining the value of a material credit investigation parameter according to the donation file and the donation updating data;
determining the value of a user credit investigation parameter according to the donation file, the donation updating data and the user identity information;
and calculating the current credit index of the user according to the value of the material credit investigation parameter, the weight corresponding to the material credit investigation parameter, the value of the user credit investigation parameter and the weight corresponding to the user credit investigation parameter.
3. The method of claim 2, wherein determining a value of a material credit parameter based on the donation profile and the donation update data comprises:
determining the value of the urgency of the material according to the donation time included by the donation file and the donation updating data;
and determining the value of the material transfer difficulty and the value of the material quality according to the material information included in the donation files and the donation updating data.
4. The method of claim 2, wherein the determining a value of a user credit investigation parameter according to the donation profile, the donation update data and the user identity information comprises:
determining user donation expenditure and donation scale according to the donation files and the donation updating data;
determining the user operation condition and the user scale according to the user identity information;
determining the value of a payment credit investigation parameter according to the user donation payment and the user operation condition;
and determining the value of the scale credit investigation parameter according to the donation scale and the user scale.
5. The method of claim 1, wherein generating the new block of the donation profile based on the donation profile, the donation update data, the user identity information, and the credit index comprises:
performing hash operation on the donation file, the donation updating data, the user identity information and the credit index to obtain a hash value;
generating a block header according to the user identity information, the hash value and the current time;
and generating a block body corresponding to the block head according to the donation files and the donation updating data to obtain a new block corresponding to the donation files.
6. The method of claim 1, wherein the adding the new block to the chain of blocks corresponding to the donated archive comprises:
sending the new block to other block chain nodes;
receiving the identity verification result corresponding to the new block returned by the other block link points;
determining the proportion of nodes passing the verification according to the identity verification result corresponding to the new block;
and if the node proportion is larger than a preset threshold value, adding the new block into a block chain corresponding to the local donation file.
7. The method of any of claims 1-6, wherein the obtaining the request for updating the donated archive is preceded by:
obtaining a donation request of a user, wherein the donation request comprises donation data and user identity information;
generating an initial credit index of the user according to the donation data and the user identity information;
generating an initial block according to the donation data and the user identity information;
storing the initial block in respective blockchain nodes.
8. A block link point, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an update request of a donation file, and the update request comprises user identity information and donation update data;
the credit index generation module is used for generating the current credit index of the user according to the donation file, the donation updating data and the user identity information;
a block generation module, configured to generate a new block of the donation file according to the donation file, the donation update data, the user identity information, and the credit index;
and the adding module is used for adding the new block into the block chain corresponding to the donation file.
9. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the method of any of claims 1 to 7.
10. A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1 to 7.
CN202011204969.2A 2020-11-02 2020-11-02 Block chain-based donation method, block chain node, device and storage medium Pending CN112258203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011204969.2A CN112258203A (en) 2020-11-02 2020-11-02 Block chain-based donation method, block chain node, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011204969.2A CN112258203A (en) 2020-11-02 2020-11-02 Block chain-based donation method, block chain node, device and storage medium

Publications (1)

Publication Number Publication Date
CN112258203A true CN112258203A (en) 2021-01-22

Family

ID=74268542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011204969.2A Pending CN112258203A (en) 2020-11-02 2020-11-02 Block chain-based donation method, block chain node, device and storage medium

Country Status (1)

Country Link
CN (1) CN112258203A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242477A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 Charitable donation method, system and storage medium based on block chain
CN111008834A (en) * 2019-11-26 2020-04-14 山东爱城市网信息技术有限公司 Block chain-based charitable donation management method, equipment and medium
CN111553647A (en) * 2020-03-23 2020-08-18 白炳均 System and method for storing, coordinating and calling property and using property combined with fighting level

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242477A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 Charitable donation method, system and storage medium based on block chain
CN111008834A (en) * 2019-11-26 2020-04-14 山东爱城市网信息技术有限公司 Block chain-based charitable donation management method, equipment and medium
CN111553647A (en) * 2020-03-23 2020-08-18 白炳均 System and method for storing, coordinating and calling property and using property combined with fighting level

Similar Documents

Publication Publication Date Title
CN109547477B (en) Data processing method and device, medium and terminal thereof
CN110419053B (en) System and method for information protection
CN110599137B (en) Electronic bill data processing method and device and computer equipment
US20220044162A1 (en) Blockchain-based secure federated learning
JP6756041B2 (en) Information protection systems and methods
AU2016202841A1 (en) Device, method and system for virtual asset transactions
CN113505882B (en) Data processing method based on federal neural network model, related equipment and medium
US20190058580A1 (en) System and method for publication of private data using a blockchain network
CN113439415A (en) Workload attestation of blockchain applications
CN110633963A (en) Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment
EP3652885A1 (en) Secure token passing via blockchains
CN111767578A (en) Data inspection method, device and equipment
CN114175028B (en) Cryptographic pseudonym mapping method, computer system, computer program and computer-readable medium
US11270227B2 (en) Method for managing a machine learning model
CN113438134B (en) Request message processing method, device, server and medium
CN111090581A (en) Intelligent contract testing method and device, computer equipment and storage medium
CN111770198A (en) Information sharing method, device and equipment
CN112069526A (en) Block chain-based account attribute processing method and device and storage medium
CN113221153B (en) Graph neural network training method and device, computing equipment and storage medium
CN109858904A (en) Data processing method and device based on block chain
CN112054897A (en) Outsourcing Internet of things data for protecting privacy based on block chain and integrity verification method for backup of outsourcing Internet of things data
CN113950679A (en) Validating a measurement dataset using speaker consensus
CN112347516A (en) Asset certification method and device based on block chain
Leinweber et al. TEE-based distributed watchtowers for fraud protection in the lightning network
CN112702410B (en) Evaluation system, method and related equipment based on blockchain network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination