CN116245525A - Transaction data processing method, device and equipment of blockchain and storage medium - Google Patents

Transaction data processing method, device and equipment of blockchain and storage medium Download PDF

Info

Publication number
CN116245525A
CN116245525A CN202211704233.0A CN202211704233A CN116245525A CN 116245525 A CN116245525 A CN 116245525A CN 202211704233 A CN202211704233 A CN 202211704233A CN 116245525 A CN116245525 A CN 116245525A
Authority
CN
China
Prior art keywords
data
transaction
blockchain
blockchain transaction
user
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
CN202211704233.0A
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.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
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 China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202211704233.0A priority Critical patent/CN116245525A/en
Publication of CN116245525A publication Critical patent/CN116245525A/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a transaction data processing method, device and equipment of a blockchain and a storage medium, and relates to the technical field of blockchains. The method is applied to a server, wherein the server is any node in a blockchain, and the method comprises the following steps: responding to a blockchain transaction request sent by a user terminal of a first user, acquiring first blockchain transaction data of the first user, wherein the first blockchain transaction data comprises a plurality of transaction basic data; transmitting correction reminding information to the user terminal under the condition that at least one problem data exists in the transaction basic data, so as to remind the first user of correcting the at least one problem data based on the correction reminding information; under the condition that at least one piece of correction data sent by a user terminal is received, updating at least one piece of problem data in the first blockchain transaction data through the at least one piece of correction data to obtain updated second blockchain transaction data; the second blockchain transaction data is stored into the target transaction area.

Description

Transaction data processing method, device and equipment of blockchain and storage medium
Technical Field
The application belongs to the technical field of blockchains, and particularly relates to a blockchain transaction data processing method, device, equipment and storage medium.
Background
Blockchain technology, a decentralised protocol, enables secure storage of digital monetary transactions or other data. Transaction confirmation on the blockchain is completed by all nodes on the blockchain together, consistency is guaranteed by a consensus algorithm, a public account book is maintained on the blockchain, and the public account book is visible to any node on the storage block, so that information cannot be forged and tampered. However, the transaction data of the existing blockchain takes longer to analyze the transaction amount, so that the analysis efficiency of the blockchain transaction amount is lower.
Disclosure of Invention
The embodiment of the application provides a transaction data processing method, device and equipment of a blockchain and a storage medium, which can be used for improving analysis efficiency without calculating problem data when carrying out transaction analysis on blockchain transaction data in a transaction area.
In a first aspect, an embodiment of the present application provides a transaction data processing method of a blockchain, which is applied to a server, where the server is any node in the blockchain, and the method includes:
the method comprises the steps of responding to a blockchain transaction request sent by a user terminal of a first user, obtaining first blockchain transaction data of the first user, wherein the first blockchain transaction data comprises a plurality of transaction basic data, the blockchain transaction request is used for requesting transactions among a plurality of users, and the plurality of transaction basic data are data associated with transaction accounts of the plurality of users;
Transmitting correction reminding information to the user terminal under the condition that at least one problem data exists in the transaction basic data, so as to remind the first user of correcting the at least one problem data based on the correction reminding information;
under the condition that at least one piece of correction data sent by the user terminal is received, updating at least one piece of problem data in the first blockchain transaction data through the at least one piece of correction data to obtain updated second blockchain transaction data, wherein the at least one piece of correction data is data obtained after the first user corrects the at least one piece of problem data;
storing the second blockchain transaction data into a target transaction area, the target transaction area being associated with the transaction area of the first blockchain transaction data.
In a second aspect, an embodiment of the present application provides a transaction data processing apparatus of a blockchain, applied to a server, where the server is any node in the blockchain, and the apparatus includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to a blockchain transaction request sent by a user terminal of a first user to acquire first blockchain transaction data of the first user, the first blockchain transaction data comprises a plurality of transaction basic data, the blockchain transaction request is used for requesting transactions among a plurality of users, and the plurality of transaction basic data are data associated with transaction accounts of the plurality of users;
The first sending module is used for sending correction reminding information to the user terminal when at least one problem data exists in the transaction basic data, so as to remind the first user of correcting the at least one problem data based on the correction reminding information;
the updating module is used for updating at least one piece of problem data in the first blockchain transaction data through the at least one piece of correction data under the condition that the at least one piece of correction data sent by the user terminal is received, so as to obtain updated second blockchain transaction data, wherein the at least one piece of correction data is data obtained by correcting the at least one piece of problem data by the first user;
and the storage module is used for storing the second blockchain transaction data into a target transaction area, and the target transaction area is a transaction area associated with the first blockchain transaction data.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements a blockchain transaction data processing method as described in any of the above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a blockchain transaction data processing method as in any of the above.
In a fifth aspect, embodiments of the present application provide a computer program product, instructions in which, when executed by a processor of an electronic device, cause the electronic device to perform a blockchain transaction data processing method as in any of the above.
The method, the device, the equipment and the storage medium for processing the transaction data of the blockchain are applied to a server, the server is any node in the blockchain, the first blockchain transaction data of the first user can be obtained in response to a blockchain transaction request sent by a user terminal of the first user, the first user is reminded to correct at least one problem data under the condition that at least one problem data exists in a plurality of transaction basic data, updated second blockchain transaction data is obtained, and finally the second blockchain transaction data is stored in a target transaction area. Therefore, the blockchain transaction data with the problem data is not stored in the transaction area, and calculation of the problem data is not needed when the blockchain transaction data in the transaction area is subjected to transaction analysis, so that analysis efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is a flow chart of a transaction data processing method of a blockchain provided in an embodiment of the present application;
FIG. 2 is another flow chart of a transaction data processing method of a blockchain provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a block chain transaction data processing device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application are described in detail below to make the objects, technical solutions and advantages of the present application more apparent, and to further describe the present application in conjunction with the accompanying drawings and the detailed embodiments. It should be understood that the specific embodiments described herein are intended to be illustrative of the application and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Blockchain technology, a decentralised protocol, enables secure storage of digital monetary transactions or other data. Transaction confirmation on the blockchain is completed by all nodes on the blockchain together, consistency is guaranteed by a consensus algorithm, a public account book is maintained on the blockchain, and the public account book is visible to any node on the storage block, so that information cannot be forged and tampered. However, the transaction data of the existing blockchain takes longer to analyze the transaction amount, so that the analysis efficiency of the blockchain transaction amount is lower.
In order to solve the problems in the prior art, embodiments of the present application provide a method, an apparatus, a device, and a storage medium for processing transaction data of a blockchain. The following first describes a transaction data processing method of a blockchain provided in an embodiment of the present application.
Fig. 1 is a flow chart of a transaction data processing method of a blockchain according to an embodiment of the present application. As shown in fig. 1, a transaction data processing method of a blockchain is applied to a server, where the server is any node in the blockchain, and the method may include the following steps S101 to S104.
S101, responding to a blockchain transaction request sent by a user terminal of a first user, and acquiring first blockchain transaction data of the first user, wherein the first blockchain transaction data comprises a plurality of transaction basic data.
S102, when at least one problem data exists in the transaction basic data, correction reminding information is sent to the user terminal so as to remind the first user of correcting the at least one problem data based on the correction reminding information.
And S103, under the condition that at least one piece of correction data sent by the user terminal is received, updating at least one piece of problem data in the first blockchain transaction data through the at least one piece of correction data, and obtaining updated second blockchain transaction data.
S104, storing the second blockchain transaction data into the target transaction area.
The method for processing the transaction data of the blockchain is applied to a server, the server is any node in the blockchain, the first blockchain transaction data of the first user can be obtained in response to a blockchain transaction request sent by a user terminal of the first user, the first user is reminded to correct at least one problem data under the condition that at least one problem data exists in a plurality of transaction basic data, updated second blockchain transaction data is obtained, and finally the second blockchain transaction data is stored in a target transaction area. Therefore, the blockchain transaction data with the problem data is not stored in the transaction area, and calculation of the problem data is not needed when the blockchain transaction data in the transaction area is subjected to transaction analysis, so that analysis efficiency is improved.
A specific implementation of each of the above steps is described below.
In S101, the blockchain transaction request may be used to request transactions between multiple users. The blockchain transaction request may be used to request a normal transaction between two users, or may be used to request a mixed transaction between three or more users, for example, and the embodiments are not limited thereto and are not specifically limited thereto.
The plurality of transaction base data may be data associated with transaction accounts of a plurality of users. Illustratively, the transaction base data may be basic information including a user ID, a transaction occurrence chain account ID, a transaction contract name, and the like. Wherein the transaction contract name may point to a transaction area of the blockchain transaction data store.
The obtaining of the first blockchain transaction data of the first user may be that after any other node server in the blockchain receives the first blockchain transaction data of the first user, the first blockchain transaction data is synchronized to a target node server through a consensus algorithm, and the target server is the node server performing transaction processing in the blockchain.
In S102, the correction reminding information may be used to remind the first user to correct at least one problem data. Illustratively, the problem data is marked with a distinguishable color to alert the user to correct the data of the differently colored marked portion.
The problem data may include at least one of data file duplication, data skip writing, data format errors, and the like.
In some embodiments, S102 may specifically include:
in the case where there is at least one question data in the plurality of transaction base data, a review determination operation based on the question data input by the second user is received.
And sending correction reminding information to the user terminal under the condition that the rechecking operation indicates that the problem data is confirmed to be wrong.
The review determination operation described above may indicate that the problem data is confirmed as error-free or confirmed as error-free.
The second user is a user who performs a review confirmation operation on the problem data.
In the embodiment of the application, the problem data in the transaction basic data is manually checked, so that the correctness of the transaction basic data can be further improved 5, and the blockchain with the problem data cannot be crossed
The easy data is stored in the transaction area, so that the blockchain transaction analysis efficiency is improved.
In S103, the at least one correction data is corrected data of the at least one problem data by the first user.
The updating of the at least one problem data in the first blockchain transaction data by the at least 0 correction data is performed under the condition that the at least one correction data sent by the user terminal is received
The updated second blockchain transaction data may be correction data for receiving the problem data corrected by the first user at the user terminal, and updating the problem data corresponding to the first blockchain transaction data into the correction data, so as to obtain updated second blockchain transaction data.
In S104, the transaction area may be a storage area designated for blockchain transaction data.
5 the transaction area in which the target transaction area is associated with the first blockchain transaction data, illustratively,
in the transaction base data of the blockchain transaction data, a transaction contract name is included, the transaction area is associated with the transaction contract name, and the transaction contract name associated with the intelligent contract area is an intelligent contract, which is not limited to this, but may also include other contracts, and is not particularly limited herein.
0 as another implementation of the present application, to protect the interests of the user in blockchain transactions,
the first blockchain transaction data further includes transaction content data, wherein the transaction content data can be data of transaction contents among a plurality of users;
prior to S102, the method may further include:
searching whether preset keywords exist in transaction content data;
5 the step S102 may specifically include:
and sending correction reminding information to the user terminal under the condition that the transaction content data is determined to have no preset keyword and at least one problem data exists in the transaction basic data.
The preset keywords include keywords associated with illegal transactions, for example, may be fraud keywords published by public security networks, and the embodiment of the application is not limited thereto, but may also include other keywords associated with illegal transactions, which are not limited thereto, and are not particularly limited thereto.
In the embodiment of the application, whether the preset keyword exists is searched in the transaction content data, and further, under the condition that the preset keyword does not exist in the transaction content data and at least one problem data exists in a plurality of transaction basic data, correction reminding information is sent to the user terminal, so that benefits of users are protected in blockchain transactions.
In some embodiments, after searching whether the preset keyword exists in the transaction content data, the method may further include the following steps:
and under the condition that the transaction content data is determined to have the preset keywords, sending rejection information to the user terminal, wherein the rejection information characterizes that the first user blockchain transaction request is rejected, and prompting the transaction risk.
In the embodiment of the application, under the condition that the transaction content data is determined to have the preset keyword, the refusal information is sent to the user terminal, the first user is informed that the blockchain transaction request is refused, and the transaction is prompted to have illegal risks, so that the benefits of the user are protected in the blockchain transaction.
In some embodiments, to protect the security of the user transaction in the blockchain, before S104 above, it may further include:
encrypting the transaction content data to obtain encrypted transaction content data;
The step S104 may specifically include:
decrypting the encrypted transaction content data in the second blockchain transaction data to obtain transaction content data;
and storing the transaction basic data and the transaction content data in the second blockchain transaction data to a target transaction area.
The encrypting of the transaction content data may be, for example, encrypting the transaction content data by a cryptographic algorithm, which is not limited to this, but may also include encrypting processes such as an encryptor and a pluggable custom cryptographic algorithm.
The above-mentioned decrypting the encrypted transaction content data in the second blockchain transaction data, it should be noted that the decrypting process corresponds to the above-mentioned need of the encrypting process, thereby obtaining the transaction content data.
In the embodiment of the application, before the second blockchain transaction data is stored in the target transaction area, in order to prevent the leakage and the tampering of the transaction content, the transaction content data is encrypted, so that the security of the transaction data information of the user is protected.
As another implementation manner of the present application, to increase the speed of querying the blockchain transaction data in the transaction area, before S104 above, the method may further include:
Setting time stamp information for the second blockchain transaction data;
the step S104 may specifically include:
storing the second blockchain transaction data and the timestamp information of the second blockchain transaction data into a target transaction area, wherein the blockchain transaction data in the target transaction area are stored according to the sequence of the timestamp information.
The time stamp information may be information indicating a transaction time, and may be, for example, a data tuple in the form of { time stamp, transactions_count }, { time stamp, contact_name, count }, { time stamp, account_name, count }, or the like.
In the embodiment of the application, the second blockchain transaction data and the timestamp information of the second blockchain transaction data are stored in the target transaction area, and the blockchain transaction data in the target transaction area are stored according to the sequence of the timestamp information, so that the speed of inquiring the blockchain transaction data in the transaction area can be improved, and the data processing efficiency is improved.
In some embodiments, to improve the analysis efficiency of the blockchain transaction data, after storing the second blockchain transaction data and the timestamp information of the second blockchain transaction data in the target transaction area, the method may further include:
Receiving a transaction analysis request input by a third user, wherein the transaction analysis request is used for requesting to analyze blockchain transaction data of a preset time period;
in response to the transaction analysis request, determining, in the transaction area, blockchain transaction data for which the time stamp information satisfies a preset period of time as target blockchain transaction data;
and calculating the target blockchain transaction data to obtain a transaction analysis index.
The third user is a user requesting transaction analysis of transaction data in the blockchain.
The predetermined period of time may be a period of time specific to hours, minutes, and seconds.
The transaction analysis index comprises transaction throughput, account transaction frequency and other indexes. The transaction throughput may be the amount of blockchain transaction data successfully transmitted within a preset period of time. The account transaction frequency can be the number of times the account corresponding to the target blockchain transaction data completes the blockchain transaction in a preset time period.
In the embodiment of the application, based on the transaction analysis request, the blockchain transaction data of which the timestamp information meets the preset time period is screened in the transaction area, so that the calculation of the transaction analysis index is facilitated, and the analysis efficiency of the blockchain transaction data can be improved.
In order to facilitate understanding of the transaction data processing method of the blockchain in the embodiments of the present application, a practical application procedure of the transaction data processing method of the blockchain is described herein, which is specifically as follows:
as shown in fig. 2, an embodiment of the present invention provides a transaction data processing method of a blockchain, including the following steps S201 to S205:
s201, receiving a transaction data file. The content of each transaction data file (i.e., the blockchain transaction data) includes collation base data (i.e., the transaction base data) and transaction content data;
s202, transaction security detection and encryption. The transaction content data in the transaction data file is transmitted to the pre-detection module to detect fraud transaction information, wherein the pre-detection module can search the transaction content data through fraud keywords published by the public security network to check whether intentional fraud transactions exist, and then the pre-detection module rejects the fraud transaction information and encrypts normal transaction content. The verification basic data and the encrypted normal transaction content data in each transaction data file are sent to a file pre-analysis module.
S203, screening the problem data. The file pre-analysis module can analyze the checking basic data, and if the checking basic data has problem data, the file pre-analysis module can dye the data and send the data to the manual checking and rechecking module. The manual rechecking module receives the problematic transaction data file, can carry out manual judgment, check and check whether the basic data has problems, and if so, the basic data can be resent to the user side for re-writing application, and if not, the basic data can be directly sent to the distribution module.
S204, adding time stamp information. If the basic data is checked, the transaction data files are sent to the distribution module, and a piece of time stamp information is added to each transaction data file.
S205, classifying and storing transaction data files. The distribution module comprises a common transaction area, a mixed transaction area, a multi-signature transaction area and an intelligent contract area, the distribution module can receive and decrypt transmitted transaction data files, then the distribution module automatically analyzes a large number of transaction data files into types, the types are respectively stored in the common transaction area, the mixed transaction area, the multi-signature transaction area and the intelligent contract area, and then files in each area are ordered according to the time stamp information of the transaction data files from near to far.
In S201, the verification basic data includes basic information such as a person ID (i.e., user transaction account ID), a transaction occurrence chain account ID (i.e., transaction occurrence chain account ID), and a transaction contract name.
In S203, S204, or S205, the data derived from the timestamp information may be a data tuple in the form of { time stamp, transactions_count }, { time stamp, contact_name, count }, { time stamp, account_name, count }, or the like.
In S203, the problem data includes data file duplication, data skip writing, data format errors, and the like.
In S202, the encryption method includes encryption by a cryptographic algorithm, encryption by an encryptor, encryption by a pluggable custom cryptographic algorithm, and the like.
In S205, a transaction analysis index such as transaction throughput and account transaction frequency is stored using an object storage service or a file storage service. The common transaction is a transaction in which only two parties conduct data in a transaction data file; the mixed transaction is transaction of data of three parties and more in a transaction data file; the multi-signature transaction is a transaction with a multi-signature address in transaction content; the smart contract area is a transaction having smart contract terms in the transaction content.
In the embodiment of the application, the transaction data files are received, the content of each transaction data file comprises verification basic data and transaction content data, the transaction content data in the transaction data files are encrypted, the verification basic data and the encrypted transaction content data in each transaction data file are then sent to a file pre-analysis module, the file pre-analysis module can analyze the verification basic data, and if the verification basic data has problem data, the data are stained and sent to a manual auditing module; if the basic data is checked to be correct, each transaction data file is sent to the distribution module, and a piece of time stamp information is added to each transaction data file; when the manual auditing module receives the problematic transaction data file, the manual auditing module can judge whether the basic data has problems or not, if the basic data has problems, the basic data can be resent to the user side for re-writing application, if the basic data has problems, the basic data can be directly sent to the distribution module, a time stamp information is added to the transaction data file, the distribution module can receive and decrypt the sent transaction data file, and then the distribution module calculates the transaction throughput, account transaction frequency and other indexes of a plurality of time spans such as each second, each minute, each hour and the like of the transaction data file with the time stamp information in real time by utilizing the analysis capability of the time sequence data, so that the analysis of the data of the blockchain can be realized in real time, the data inquiring efficiency of the blockchain is greatly improved, and the data deriving process can encrypt the data information, thereby improving the safety of the data information.
Based on the transaction data processing method of the blockchain provided in the foregoing embodiment, correspondingly, the present application further provides a specific implementation manner of the transaction data processing device of the blockchain, please refer to the following embodiments.
As shown in fig. 3, the transaction data processing apparatus 300 of a blockchain provided in the embodiments of the present application is applied to a server, where the server is any node in the blockchain, and the apparatus 300 may include the following modules: an acquisition module 301, a first transmission module 302, an update module 303 and a storage module 304.
The acquiring module 301 is configured to respond to a blockchain transaction request sent by a user terminal of a first user, and acquire first blockchain transaction data of the first user, where the first blockchain transaction data includes a plurality of transaction base data, and the blockchain transaction request is used to request a transaction between a plurality of users, and the plurality of transaction base data is data associated with transaction accounts of the plurality of users.
The first sending module 302 is configured to send correction reminding information to the user terminal when at least one problem data exists in the plurality of transaction basic data, so as to remind the first user to correct the at least one problem data based on the correction reminding information.
And the updating module 303 is configured to update at least one problem data in the first blockchain transaction data with at least one correction data under the condition that at least one correction data sent by the user terminal is received, so as to obtain updated second blockchain transaction data, where the at least one correction data is data after the first user corrects the at least one problem data.
The storage module 304 is configured to store the second blockchain transaction data into a target transaction area, where the target transaction area is associated with the first blockchain transaction data.
The transaction data processing device of the blockchain is applied to a server, the server is any node in the blockchain, the first blockchain transaction data of a first user can be obtained in response to a blockchain transaction request sent by a user terminal of the first user, the first user is reminded to correct at least one problem data under the condition that at least one problem data exists in a plurality of transaction basic data, updated second blockchain transaction data is obtained, and finally the second blockchain transaction data is stored in a target transaction area. Therefore, the blockchain transaction data with the problem data is not stored in the transaction area, and calculation of the problem data is not needed when the blockchain transaction data in the transaction area is subjected to transaction analysis, so that analysis efficiency is improved.
In some embodiments, the first sending module 302 may specifically include:
the receiving unit is used for receiving a rechecking determination operation input by the second user based on the problem data under the condition that at least one problem data exists in the transaction basic data, wherein the rechecking determination operation indicates that the problem data is confirmed to be correct or confirmed to be incorrect;
and the sending unit is used for sending correction reminding information to the user terminal when the check determination operation indicates that the problem data is confirmed to be wrong.
As another implementation of the present application, to protect the interests of the users in the blockchain transaction, the first blockchain transaction data further includes transaction content data, which is data of transaction content between a plurality of users;
the apparatus 300 may further include:
the searching module is used for searching whether preset keywords exist in the transaction content data, wherein the preset keywords comprise keywords related to illegal transactions;
the first sending module 302 is further configured to send correction reminding information to the user terminal when it is determined that the transaction content data does not have the preset keyword and at least one problem data exists in the plurality of transaction base data.
In some embodiments, the apparatus 300 may further include:
the second sending module is used for sending rejection information to the user terminal under the condition that the fact that the transaction content data have preset keywords is determined, wherein the rejection information characterizes that the first user blockchain transaction request is rejected, and prompts transaction risks.
In some embodiments, the apparatus 300 may further include:
the encryption module is used for encrypting the transaction content data to obtain encrypted transaction content data;
the storage module 304 may specifically include:
the decryption unit is used for decrypting the encrypted transaction content data in the second blockchain transaction data to obtain the transaction content data;
and the storage unit is used for storing a plurality of transaction basic data and transaction content data in the second blockchain transaction data to the target transaction area.
As another implementation of the present application, in order to increase the speed of querying blockchain transaction data in the transaction area, the apparatus 300 may further include:
the setting module is used for setting time stamp information for the second blockchain transaction data;
the storage module 304 is further configured to store the second blockchain transaction data and timestamp information of the second blockchain transaction data in the target transaction area, where the blockchain transaction data is stored in the order of the timestamp information.
In some embodiments, to improve the efficiency of the analysis of the blockchain transaction data, the apparatus 300 may further include:
the receiving module is used for receiving a transaction analysis request input by a third user, wherein the transaction analysis request is used for requesting to analyze blockchain transaction data of a preset time period;
a determining module, configured to determine, in response to a transaction analysis request, blockchain transaction data whose timestamp information satisfies a preset period of time as target blockchain transaction data in a transaction area;
and the analysis module is used for analyzing the target blockchain transaction data and calculating to obtain a transaction analysis index.
Fig. 4 shows a schematic hardware structure of an electronic device according to an embodiment of the present application.
A processor 401 may be included in an electronic device as well as a memory 402 in which computer program instructions are stored.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. Memory 402 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid state memory.
In particular embodiments, memory 402 may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to methods in accordance with aspects of the present disclosure.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the transaction data processing method of any of the blockchain in the above embodiments.
In one example, the electronic device may also include a communication interface 403 and a bus 410. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiments of the present application.
Bus 410 includes hardware, software, or both, coupling components of the electronic device to one another. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
The electronic device can execute the transaction data processing method of the blockchain in the embodiment of the application, so that the transaction data processing method and the device of the blockchain are realized, which are described in connection with fig. 1 and 3.
In addition, in connection with the transaction data processing method of the blockchain in the above embodiment, the embodiment of the application may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a transaction data processing method for a blockchain in any of the above embodiments.
It should be clear that the present application is not limited to the particular arrangements and processes described above and illustrated in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be different from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, which are intended to be included in the scope of the present application.

Claims (10)

1. A method of processing transaction data for a blockchain, the method being applied to a server, the server being any node in the blockchain, the method comprising:
the method comprises the steps of responding to a blockchain transaction request sent by a user terminal of a first user, obtaining first blockchain transaction data of the first user, wherein the first blockchain transaction data comprises a plurality of transaction basic data, the blockchain transaction request is used for requesting transactions among a plurality of users, and the plurality of transaction basic data are data associated with transaction accounts of the plurality of users;
Transmitting correction reminding information to the user terminal under the condition that at least one problem data exists in the transaction basic data, so as to remind the first user of correcting the at least one problem data based on the correction reminding information;
under the condition that at least one piece of correction data sent by the user terminal is received, updating at least one piece of problem data in the first blockchain transaction data through the at least one piece of correction data to obtain updated second blockchain transaction data, wherein the at least one piece of correction data is data obtained after the first user corrects the at least one piece of problem data;
storing the second blockchain transaction data into a target transaction area, the target transaction area being associated with the transaction area of the first blockchain transaction data.
2. The method according to claim 1, wherein the sending correction reminding information to the user terminal in the case that at least one problem data exists in the plurality of transaction base data includes:
receiving a rechecking determination operation input by a second user based on the problem data under the condition that at least one problem data exists in the transaction basic data, wherein the rechecking determination operation indicates that the problem data is confirmed to be correct or is confirmed to be correct;
And sending correction reminding information to the user terminal under the condition that the rechecking determining operation indicates that the problem data is confirmed to be wrong.
3. The method of claim 1, wherein the first blockchain transaction data further includes transaction content data, the transaction content data being data of transaction content between the plurality of users;
and before sending the correction reminding information to the user terminal under the condition that at least one problem data exists in the transaction basic data, the method further comprises the following steps:
searching whether preset keywords exist in the transaction content data, wherein the preset keywords comprise keywords related to illegal transactions;
and sending correction reminding information to the user terminal under the condition that at least one problem data exists in the transaction basic data, wherein the correction reminding information comprises the following components:
and sending correction reminding information to the user terminal under the condition that the transaction content data is determined to have no preset keyword and at least one problem data exists in the transaction basic data.
4. A method according to claim 3, further comprising, after searching for the presence of a preset keyword in the transaction content data:
And under the condition that the transaction content data are determined to have the preset keywords, sending rejection information to the user terminal, wherein the rejection information characterizes that the blockchain transaction request of the first user is rejected, and prompting transaction risk.
5. The method of claim 3, further comprising, prior to said storing said second blockchain transaction data into a target transaction area:
encrypting the transaction content data to obtain encrypted transaction content data;
the storing the second blockchain transaction data into a target transaction area includes:
decrypting encrypted transaction content data in the second blockchain transaction data to obtain the transaction content data;
and storing a plurality of transaction base data and the transaction content data in the second blockchain transaction data to a target transaction area.
6. The method of claim 1, further comprising, prior to said storing said second blockchain transaction data into a target transaction area:
setting time stamp information for the second blockchain transaction data;
the storing the second blockchain transaction data into a target transaction area includes:
Storing the second blockchain transaction data and the timestamp information of the second blockchain transaction data into a target transaction area, wherein the blockchain transaction data in the target transaction area are stored according to the sequence of the timestamp information.
7. The method of claim 6, further comprising, after said storing the second blockchain transaction data and the timestamp information of the second blockchain transaction data into a target transaction area:
receiving a transaction analysis request input by a third user, wherein the transaction analysis request is used for requesting to analyze the blockchain transaction data of a preset time period;
in response to the transaction analysis request, determining, in the transaction area, blockchain transaction data for which the timestamp information satisfies the preset time period as target blockchain transaction data;
and calculating the target blockchain transaction data to obtain a transaction analysis index.
8. A transaction data processing device for a blockchain, the device being applied to a server, the server being any node in the blockchain, the device comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to a blockchain transaction request sent by a user terminal of a first user to acquire first blockchain transaction data of the first user, the first blockchain transaction data comprises a plurality of transaction basic data, the blockchain transaction request is used for requesting transactions among a plurality of users, and the plurality of transaction basic data are data associated with transaction accounts of the plurality of users;
The first sending module is used for sending correction reminding information to the user terminal when at least one problem data exists in the transaction basic data, so as to remind the first user of correcting the at least one problem data based on the correction reminding information;
the updating module is used for updating at least one piece of problem data in the first blockchain transaction data through the at least one piece of correction data under the condition that the at least one piece of correction data sent by the user terminal is received, so as to obtain updated second blockchain transaction data, wherein the at least one piece of correction data is data obtained by correcting the at least one piece of problem data by the first user;
and the storage module is used for storing the second blockchain transaction data into a target transaction area, and the target transaction area is a transaction area associated with the first blockchain transaction data.
9. An electronic device, the device comprising: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements a blockchain transaction data processing method as defined in any of claims 1-7.
10. A computer readable storage medium having stored thereon computer program instructions which when executed by a processor implement the blockchain transaction data processing method of any of claims 1-7.
CN202211704233.0A 2022-12-29 2022-12-29 Transaction data processing method, device and equipment of blockchain and storage medium Pending CN116245525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211704233.0A CN116245525A (en) 2022-12-29 2022-12-29 Transaction data processing method, device and equipment of blockchain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211704233.0A CN116245525A (en) 2022-12-29 2022-12-29 Transaction data processing method, device and equipment of blockchain and storage medium

Publications (1)

Publication Number Publication Date
CN116245525A true CN116245525A (en) 2023-06-09

Family

ID=86625218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211704233.0A Pending CN116245525A (en) 2022-12-29 2022-12-29 Transaction data processing method, device and equipment of blockchain and storage medium

Country Status (1)

Country Link
CN (1) CN116245525A (en)

Similar Documents

Publication Publication Date Title
CN107798541B (en) Monitoring method and system for online service
CN111339151B (en) Online examination method, device, equipment and computer storage medium
CN112084234A (en) Data acquisition method, apparatus, device and medium
CN109784918A (en) Information measure of supervision, device, equipment and storage medium based on block chain
CN116245525A (en) Transaction data processing method, device and equipment of blockchain and storage medium
CN115829572A (en) Cross-chain data interaction method, device, equipment, medium and product
CN109863494A (en) Data protection system
CN104424453A (en) System and method for verifying non-contact inductive label
CN114553586A (en) Data acquisition method, apparatus, device, medium, and program product
CN108848089B (en) Data encryption method and data transmission system
CN115906188A (en) Electronic signature file verification method, device and equipment and computer storage medium
CN112000713A (en) Data processing method, device, equipment and medium
CN110557363A (en) identity verification method, device and storage medium
CN115967522A (en) Data processing method, device, equipment and storage medium
CN110766407A (en) Transaction verification method, accounting node and medium based on block chain
CN110879882B (en) Method, apparatus, device and medium for confirming user information security
CN113992334B (en) Storage method and verification method and device of equipment side data and electronic equipment
CN115086065B (en) Block chain-based data synchronization method and device, electronic equipment and medium
CN110223089B (en) Credit identity card identification method, system and equipment
CN111193685B (en) Method, device, equipment and medium for verifying authenticity of log information
CN116028257A (en) Abnormal data detection method, device, electronic equipment and computer storage medium
CN117811816A (en) Information protection method, apparatus, device, medium and computer program product
CN115270166A (en) Data processing method, device, equipment and computer storage medium
CN116389067A (en) High-security data transmission method, system and computer readable storage medium
CN114549159A (en) Information configuration method, device, equipment, medium and product

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