Search

CN-122019664-A - Resource processing method, device, equipment, medium and product

CN122019664ACN 122019664 ACN122019664 ACN 122019664ACN-122019664-A

Abstract

The application relates to a resource processing method, a device, equipment, a medium and a product. Responding to a data query request initiated by a data demand party for a target service, acquiring an event ledger corresponding to the target service from a blockchain, calling a resource processing intelligent contract, processing real resource processing information in the event ledger to obtain a resource calculation result, and feeding back the resource calculation result to the data demand party, wherein the event ledger contains real resource processing information corresponding to at least one user service event for the target service. By adopting the method, the accuracy of financial data acquisition can be ensured.

Inventors

  • GAI QUN

Assignees

  • 湖南长银五八消费金融股份有限公司

Dates

Publication Date
20260512
Application Date
20260114

Claims (10)

  1. 1. A method of resource processing, the method comprising: responding to a data query request initiated by a data demand party to a target service, and acquiring an event account corresponding to the target service from a blockchain, wherein the event account comprises real resource processing information corresponding to at least one user service event aiming at the target service; and calling a resource processing intelligent contract, processing the real resource processing information in the event ledger to obtain a resource calculation result, and feeding back the resource calculation result to the data demand party.
  2. 2. The method according to claim 1, wherein, in the case that the event ledger contains at least two pieces of real resource processing information, the calling the resource processing intelligent contract processes the real resource processing information in the event ledger to obtain a resource calculation result, including: Sequencing the real resource processing information according to the generated time stamp of the real resource processing information to obtain a sequencing result; And calling a resource processing intelligent contract according to the sequencing result, and sequentially processing each real resource processing information to obtain a resource calculation result.
  3. 3. The method according to claim 2, wherein the calling the resource processing intelligent contract according to the sorting result sequentially processes each real resource processing information to obtain a resource calculation result, and includes: Determining parameters to be processed in each real resource processing information according to the data query request; And calling a resource processing function in the resource processing intelligent contract according to the sequencing result, and sequentially processing parameters to be processed in each piece of real resource processing information to obtain a resource calculation result.
  4. 4. The method of claim 1, wherein the obtaining the event ledger corresponding to the target service from a blockchain includes: acquiring a service state snapshot associated with the target service; And acquiring an event ledger corresponding to the target service from a blockchain according to the snapshot generation time of the service state snapshot, wherein real resource processing information contained in the event ledger is real resource processing information generated after the snapshot generation time.
  5. 5. The method of claim 4, wherein the calling the resource processing intelligent contract to process the real resource processing information in the event ledger to obtain the resource calculation result comprises: And calling a resource processing intelligent contract to process the real resource processing information in the business state snapshot and the event account book so as to obtain a resource calculation result.
  6. 6. The method according to any one of claims 1-5, further comprising: in response to an update event for a resource processing rule, the resource processing smart contract is updated according to resource processing logic in the update event.
  7. 7. A resource processing apparatus, the apparatus comprising: the system comprises an acquisition module, a block chain and a target service, wherein the acquisition module is used for responding to a data query request initiated by a data demand party on the target service and acquiring an event ledger corresponding to the target service from the block chain, wherein the event ledger comprises real resource processing information corresponding to at least one user service event of the target service; And the calculation module is used for calling a resource processing intelligent contract, processing the real resource processing information in the event account book to obtain a resource calculation result, and feeding back the resource calculation result to the data demand party.
  8. 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
  9. 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
  10. 10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.

Description

Resource processing method, device, equipment, medium and product Technical Field The present application relates to the field of blockchain technologies, and in particular, to a method, apparatus, device, medium, and product for processing resources, which can be applied to the financial field or other technical fields. Background With the continuous development of the financial field, in order to facilitate the audit party to supervise and audit the financial data in each financial platform, each financial platform can upload the processed financial data into the blockchain, and the audit party can directly acquire the required financial data in the blockchain. However, since the financial processing rules change frequently, the processed financial data is directly uploaded to the blockchain, and there is a problem of mismatch between the financial data and the financial processing rules, thereby reducing the accuracy of acquiring the financial data. Disclosure of Invention In view of the foregoing, it is desirable to provide a resource processing method, apparatus, device, medium, and product that can improve accuracy of acquiring financial data. In a first aspect, the present application provides a resource processing method, including: Responding to a data query request initiated by a data demand party to a target service, and acquiring an event account corresponding to the target service from a blockchain, wherein the event account contains real resource processing information corresponding to at least one user service event aiming at the target service; and calling a resource processing intelligent contract, processing real resource processing information in the event ledger to obtain a resource calculation result, and feeding back the resource calculation result to a data demand party. In one embodiment, when the event ledger contains at least two pieces of real resource processing information, invoking a resource processing intelligent contract to process the real resource processing information in the event ledger to obtain a resource calculation result, including: Sequencing the real resource processing information according to the generated time stamp of the real resource processing information to obtain a sequencing result; And calling the resource processing intelligent contract according to the sequencing result, and sequentially processing each real resource processing information to obtain a resource calculation result. In one embodiment, according to the sorting result, invoking the resource processing intelligent contract, and sequentially processing each real resource processing information to obtain a resource calculation result, including: determining parameters to be processed in each real resource processing information according to the data query request; and calling a resource processing function in the resource processing intelligent contract according to the sequencing result, and sequentially processing the parameters to be processed in each piece of real resource processing information to obtain a resource calculation result. In one embodiment, obtaining an event ledger corresponding to a target service from a blockchain includes: acquiring a service state snapshot associated with a target service; And acquiring an event ledger corresponding to the target service from the blockchain according to the snapshot generation time of the service state snapshot, wherein the real resource processing information contained in the event ledger is real resource processing information generated after the snapshot generation time. In one embodiment, invoking a resource processing intelligent contract to process real resource processing information in an event ledger to obtain a resource calculation result, including: And calling a resource processing intelligent contract to process the real resource processing information in the business state snapshot and the event account book, so as to obtain a resource calculation result. In one embodiment, the method further comprises: in response to an update event for the resource processing rule, the resource processing intelligent contract is updated according to the resource processing logic in the update event. In a second aspect, the present application also provides a resource processing device, including: The system comprises an acquisition module, a block chain and a target service, wherein the acquisition module is used for responding to a data query request initiated by a data demand party on the target service and acquiring an event account corresponding to the target service from the block chain, wherein the event account comprises real resource processing information corresponding to at least one user service event aiming at the target service; And the computing module is used for calling the resource processing intelligent contract, processing the real resource processing information in the event ledger to obtain a resource computing resu