CN113342835B - Method, device, equipment and medium for modifying text to be checked based on blockchain - Google Patents

Method, device, equipment and medium for modifying text to be checked based on blockchain Download PDF

Info

Publication number
CN113342835B
CN113342835B CN202110693926.3A CN202110693926A CN113342835B CN 113342835 B CN113342835 B CN 113342835B CN 202110693926 A CN202110693926 A CN 202110693926A CN 113342835 B CN113342835 B CN 113342835B
Authority
CN
China
Prior art keywords
checked
text
node
blockchain
visual platform
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.)
Active
Application number
CN202110693926.3A
Other languages
Chinese (zh)
Other versions
CN113342835A (en
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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202110693926.3A priority Critical patent/CN113342835B/en
Publication of CN113342835A publication Critical patent/CN113342835A/en
Application granted granted Critical
Publication of CN113342835B publication Critical patent/CN113342835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/2358Change logging, detection, and notification
    • 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
    • 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)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, a device, equipment and a medium for modifying text to be checked based on a blockchain, wherein the method comprises the following steps: acquiring a text to be checked from a user node or a service node through a first blockchain node; establishing a visual platform; modifying the text to be checked according to the modification instruction; the change stream based on the mongoDB monitors the text to be checked and records the change position of the text to be checked; marking the change position of the text to be checked, and recording the mark into the text to be checked; and sending the modified text to be checked and the mark to each node constructing the visual platform in real time. The invention has the beneficial effects that: the method realizes the real-time modification of the text to be checked, and ensures the consistency of the text to be checked of the user, the business personnel and the manuscript checking personnel.

Description

Method, device, equipment and medium for modifying text to be checked based on blockchain
Technical Field
The present invention relates to the field of blockchain, and in particular, to a method, apparatus, device, and medium for modifying text to be checked based on blockchain.
Background
At present, the text to be checked mainly relates to three persons (users, operators and manuscripts), when the three persons modify the text to be checked, the three persons need to send the text to be checked back and forth for several times to keep the text to be checked of each person consistent, and the sending the text to be checked back and forth can cause the problems of overlong processing time, lower efficiency and the like, so that a method for modifying the text to be checked is needed.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a medium for modifying texts to be checked based on blockchain, which aim to solve the problems that the processing time is too long and the efficiency is low when the texts to be checked are sent back and forth.
The invention provides a method for modifying text to be checked based on a blockchain, which comprises the following steps:
acquiring a text to be checked from a user node or a service node through a first blockchain node; wherein the first blockchain node and the user node and the service node are nodes in the blockchain;
establishing a visual platform based on the first blockchain node, the user node and the service node; the visual platform stores the text to be checked, and is used for displaying the text to be checked to the first blockchain node, the user node and the service node in real time;
judging whether a modification instruction for modifying the text to be checked is received or not;
if the modification instruction is received, modifying the text to be checked according to the modification instruction;
the change stream based on the mongoDB monitors the text to be checked and records the change position of the text to be checked;
marking the change position of the text to be checked, and recording the mark into the text to be checked;
and sending the modified text to be checked and the mark to each node constructing the visual platform in real time.
The invention also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
The invention also provides a device for modifying the text to be checked based on the blockchain, which comprises:
the acquisition module is used for acquiring the text to be checked from the user node or the service node through the first blockchain node; wherein the first blockchain node and the user node and the service node are nodes in the blockchain;
the building module is used for building a visual platform based on the first blockchain node, the user node and the service node; the visual platform stores the text to be checked, and is used for displaying the text to be checked to the first blockchain node, the user node and the service node in real time;
the judging module is used for judging whether a modifying instruction for modifying the text to be checked is received or not;
the modification module is used for modifying the text to be checked according to the modification instruction if the modification instruction is received;
the monitoring module is used for monitoring the text to be checked based on the change stream of the mongoDB and recording the change position of the text to be checked;
the marking module is used for marking the change position of the text to be checked and recording the mark into the text to be checked;
and the sending module is used for sending the modified text to be checked and the mark to each node constructing the visual platform in real time.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the preceding claims.
The invention has the beneficial effects that: by establishing a blockchain, establishing a visual platform in the blockchain by a first blockchain node, a user node and a service node, receiving a modification instruction of each node on the platform on the visual platform, and transmitting the modified text to be checked to each node in real time, the real-time modification of the text to be checked is realized, and the consistency of the text to be checked of a user, a service person and a manuscript checking person is ensured.
Drawings
FIG. 1 is a flow diagram of a method for blockchain-based text modification to be checked in accordance with an embodiment of the present invention;
FIG. 2 is a block diagram of a block chain based apparatus for text modification to be checked in accordance with an embodiment of the present invention;
fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in the embodiments of the present invention, all directional indicators (such as up, down, left, right, front, and back) are merely used to explain the relative positional relationship, movement conditions, and the like between the components in a specific posture (as shown in the drawings), if the specific posture is changed, the directional indicators correspondingly change, and the connection may be a direct connection or an indirect connection.
The term "and/or" is herein merely an association relation describing an associated object, meaning that there may be three relations, e.g., a and B, may represent: a exists alone, A and B exist together, and B exists alone.
Furthermore, descriptions such as those referred to as "first," "second," and the like, are provided for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implying an order of magnitude of the indicated technical features in the present disclosure. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
Referring to fig. 1, the invention provides a method for modifying text to be checked based on a blockchain, which comprises the following steps:
s1: acquiring a text to be checked from a user node or a service node through a first blockchain node; wherein the first blockchain node and the user node and the service node are nodes in the blockchain;
s2: establishing a visual platform based on the first blockchain node, the user node and the service node; the visual platform stores the text to be checked, and is used for displaying the text to be checked to the first blockchain node, the user node and the service node in real time;
s3: judging whether a modification instruction for modifying the text to be checked is received or not;
s4: if the modification instruction is received, modifying the text to be checked according to the modification instruction;
s5: the change stream based on the mongoDB monitors the text to be checked and records the change position of the text to be checked;
s6: marking the change position of the text to be checked, and recording the mark into the text to be checked;
s7: and sending the modified text to be checked and the mark to each node constructing the visual platform in real time.
The text to be collated is obtained from the user node or service node by the first blockchain node as described in step S1 above. The blockchain is used for setting all users, operators and manuscript checking staff as blockchain nodes to build a blockchain network, and the first blockchain node is the blockchain node where the manuscript checking staff is located, namely, when the manuscript checking staff checks manuscripts, the text to be checked needs to be acquired through the blockchain network, and the text to be checked can be uploaded by the users or the operators. It should be noted that, under the condition that no special processing is performed by other nodes of the blockchain, the text to be checked is not obtained, only the transmission condition of the text to be checked is known, in addition, the first blockchain node is a blockchain node of any manuscript checking person, and after the text to be checked is obtained, the blockchain nodes of other manuscript checking persons cannot obtain the text to be checked.
And as described in the step S2, a visual platform is established based on the first blockchain node, the user node and the service node. Each node constructing the visual platform can modify the text to be checked in real time for each node in the visual platform. The location of the visual platform may be any one of a user node, a first blockchain node and a service node, or may be a temporary virtual blockchain node formed in a blockchain.
As described in the above step S3, it is determined whether a modification instruction for modifying the text to be checked is received. When confirming the text to be checked, whether a modification instruction of the text to be checked is received is needed to be judged, if the modification instruction is not received, the text to be checked can be considered to be qualified (or the text to be checked can be considered to be qualified after the confirmation information of each node is received), and after the text to be checked is qualified, a final text can be formed and uploaded to the system.
As described in step S4, if a modification instruction for modifying the text to be checked is received, modification may be performed according to the corresponding modification instruction. Specifically, each blockchain node constructing the visual platform can be directly modified in the visual platform, namely, a modification instruction is sent out at the corresponding blockchain node, and then the visual platform receives the modification instruction and carries out corresponding modification. Further, in order to prevent two blockchain nodes from modifying the text to be checked at the same time, the modification method can be set in the visual platform, and in a period of time, only one blockchain node has modification authority, and other blockchain nodes can modify the text to be checked after the modification is pushed out by the current blockchain node.
As described in the above steps S5-S6, labeling of the changing position of the text to be checked is achieved, so that each blockchain node constructing the visual platform is convenient for checking the modified text to be checked. The mongoDB is a high-performance, open-source and modeless document type NosQL database, has the advantages of high query speed, high concurrence and high capacity, can be used as a transmission architecture for transmitting the text to be checked, and the change stream is a characteristic of the mongoDB, can be used for supervising the text data change of the text to be checked, and of course can also be used for supervising the text to be checked by other application programs, and has a data pulling mode and an active data pushing mode, so that in a visual platform, each blockchain node can push and pull the text to be checked in the visual platform, thereby realizing real-time change and real-time push of the data, and the change stream also has the characteristic of recording the data change, so that the change position of the text to be checked can be recorded based on the characteristic, namely, the corresponding marking mode is not limited, such as thickening, changing, adjusting a font size, setting a font or a font color, and the like. Therefore, the variable position is marked, and each blockchain node in the visual platform can be visually checked.
And as shown in the step S7, the modified text to be checked and the mark are sent to each node of the visual platform in real time. In order to maintain consistency of texts to be checked of each blockchain node in the visual platform, the modified texts to be checked need to be sent in real time. Specifically, after a modification instruction is seen, the text to be checked is monitored through the change Stream of the mongoDB, once the text data of the text to be checked changes, the changed text to be checked is immediately sent to each node of the visual platform in real time, so that the real-time modification of the text to be checked is realized, and the consistency of the text to be checked of a user, a service person and a manuscript three party is ensured.
In one embodiment, after the step S7 of sending the modified text to be checked and the mark to each node constructing the visual platform in real time, the method further includes:
s801: judging whether acknowledgement information of the user node, the service node and the first block link point is received or not;
s802: and if the confirmation information is received, generating an electronic contract based on the modified text to be checked, and issuing the electronic contract to the visual platform.
As described in the above steps S801 to S802, automatic uploading of the text to be checked is achieved. When each block chain node in the visual platform confirms that the modified text to be checked is correct, namely, the confirmation information of the user node, the service node and the first block chain node is received, an electronic contract can be automatically generated, on one hand, the text to be checked is recorded, and on the other hand, a contract which can be uploaded to a system can be formed according to the text to be checked, so that the service contract can be signed quickly. It should be noted that, since the previous text to be checked is generally written based on the template, the formation mode of forming the corresponding electronic contract according to the text to be checked is the same, and only the corresponding service data is required to be acquired at the corresponding position of the text to be checked, and then the corresponding electronic contract is formed according to the corresponding service data.
In one embodiment, the step S1 of obtaining the text to be checked from the user node or the service node through the first blockchain node includes:
s101: constructing a sub-blockchain according to the user node, the service node and the first blockchain link point based on a sub-blockchain request sent by the user node or the service node to the first blockchain node;
s102: and acquiring the text to be checked from the user node or the service node based on the sub-block chain.
As described in the above steps S101-S102, the selection of the manuscript checking personnel by the user and the business personnel is realized, and the confidentiality of the text to be checked is ensured. The user and business personnel can select a manuscript checking personnel to check, namely, the user node or the business node sends a sub-blockchain request to a first blockchain link point to construct the sub-blockchain request, the transmission of the text to be checked can be carried out only in the sub-blockchain, but the transmission of the text to be checked can not be carried out if the text to be checked is not in the sub-blockchain, and then the text to be checked is acquired based on the sub-blockchain, so that other blockchain link points in the blockchain do not acquire the authority of the text to be checked, the confidentiality of the text to be checked is ensured, and in addition, when the user node and the business node send the sub-blockchain, the corresponding manuscript checking personnel can be selected to check, namely, the sending object of the sub-blockchain request is selected.
In one embodiment, after the step S2 of establishing a visual platform based on the first blockchain node, the user node, and the service node, the method further includes:
s301: judging whether the visual platform sends out data acquisition information or not;
s302: if the data acquisition information is sent out, analyzing the data information to obtain target data to be acquired;
s303: judging whether the target data is in a platform authority range of the visual platform for acquiring data;
s304: if the target data is within the platform authority range, sending the target data to the first blockchain node;
s305: and uploading the target data to the visual platform through the first blockchain node for display.
The acquisition of the target data is achieved as described in the above steps S301-S304. Specifically, in some embodiments, in order to explain the modification reason, or other reasons, to the client and/or the service end, the data in the database needs to be displayed in the visual platform, so that the service end and the client can agree to the modification at the first blockchain node, and therefore, the data acquisition information can be sent out to the blockchain through the visual platform, in some embodiments, the data acquisition information can also be sent out by the user node or the service node, and when the blockchain obtains the data acquisition information, the permission of the visual platform needs to be judged, and in particular, the platform permission should be jointly formed by the permissions of each node in the visual platform, and also can be obtained based on the text to be checked. In order to avoid the leakage of important data, only the data conforming to the platform authority can be uploaded to the visual platform, and related data description can be displayed in the visual platform while the data security in the database is ensured. It should be noted that, the first blockchain node may acquire any data, but may not upload the data at will.
In one embodiment, after the step S305 of uploading the target data to the visual platform for display by the first blockchain node, the method further includes:
s3061: monitoring the time length of sending the target data to the visual platform;
s3062: judging whether the duration exceeds a time preset value or not;
s3063: if yes, deleting the target data from the visual platform.
As described in the above steps S3061-S3063, the data management in the visual platform is implemented, the storage space in the visual platform is released, so that the whole blockchain can be optimized, that is, after the target data is acquired, the data is mainly for explanation, after the explanation, the meaning of the target data in the visual platform is not very great, and the storage space of the blockchain is occupied, so after the time preset value is elapsed, the target data can be considered to be redundant, and when the sent duration exceeds the time preset value, the target data can be deleted from the visual platform, and the storage space of the blockchain is released, so as to reduce the maintenance cost.
In one embodiment, before the step S102 of obtaining the text to be checked from the user node or the service node based on the sub-block chain, the method further includes:
s1101: acquiring a permission sub-requirement in the sub-block chain request;
s1102: establishing a data acquisition contract based on the rights sub-requirement and the rights of the first blockchain node;
s1103: the first blockchain node grants permission to acquire data from the blockchain corresponding database to the first blockchain node based on the data acquisition result.
As described in the above steps S1101-S1103, the authority setting for the data acquisition of the first blockchain is implemented, so that the first blockchain node does not acquire the data of other authorities in the database, thereby ensuring the security of the database. In this embodiment, only the auditor is allowed to obtain the data related to the permission sub-requirement, for example, the text to be audited is related to the pension insurance, and then the auditor is specified to obtain only the content related to the pension insurance in the database, specifically, a data obtaining contract is established, which is established with the permission sub-requirement and the permission of the auditor, and includes the data permission which can be obtained through the first blockchain node, that is, the data content in the database can be obtained, and only the data information related to the data permission can be obtained later, thereby ensuring the confidentiality of other data of the database.
In one embodiment, the modified text to be checked and the mark are sent in real time to each node S5 constructing the visual platform, including:
s511: and sending the modified text to be checked to each node constructing the visual platform based on websocket protocol.
As described in the above step S511, since the websocket protocol can maintain the connection between the client and the server, that is, the connection between the first blockchain node, the user node, and the service node, the text to be checked can be sent to each node constructing the visual platform in real time through the websocket protocol.
In one embodiment, before the step S1 of obtaining the text to be checked from the user node or the service node through the first blockchain node, the method further includes:
s001: acquiring user information U= (U) uploaded by the service node 1 ,u 2 ,…,u i ,…,u n ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein u is i ∈{0,1};
S002: extracting a p-dimensional vector U from the user information U p
S003: selecting a parameter s from the service nodes according to a preset mode, and according to a formula h=u p 2 (U pi∈[1,n] u i ) s Setting a hash value of a user node; wherein H is the hash value;
s004: and setting the user node for the user according to the hash value, and sending login information corresponding to the user node to the service node.
Establishing user nodes in the blockchain is accomplished as described in steps S001-S004 above. In order to avoid the system breakdown of the blockchain caused by excessive nodes of the blockchain, the preset blockchain only has a first blockchain node and service nodes, when a new user registers, the new user needs to register in the blockchain, and in order to avoid malicious registration of other people, the corresponding service nodes need to apply for the new user, so that the system of the blockchain is maintained.
In step S001, the user information may include other information of the user, such as age, sex, location area, etc., and in order to simplify the user information to facilitate registration, the user information is uploaded by the user information, where the user information only includes two representations of 0 and 1, for example, a boy label is 1, and a girl label is 0.
In step S002, p-dimensional vector U is extracted p The method of (a) may be to randomly select the user information, or extract the important information first to facilitate the subsequent labeling, and the important part of the user information may be marked as 1, while other non-important information is marked as 0, for example, whether the user is an important client, if yes, it is marked as 1, if not, it is marked as 0. Therefore, a part of the important information can be screened, that is, the dimension with the value of 1 is screened, and then the p-dimensional vector is selected from the selected dimension.
In step S003, for the hash value of the user node, a corresponding parameter S is also required to be selected from the service nodes, where the parameter S may be the hash value of the service node, or may be other parameters of other service nodes, so as to mark the user as a client corresponding to the service node, and of course, if migration of the service needs to occur later, only a label needs to be set for the user node, where the service node and the user node are not bound.
In step S004, a user node may be set in the blockchain for the user, after setting, the login information needs to be transferred to the service node so that the service node can acquire and transfer the login information to the user, and the user can log in the blockchain after receiving the login information, wherein the user can change the login information, and the changed login information can be sent to the service node or does not need to be sent to the service node.
Referring to fig. 2, the present invention also provides a device for text modification to be checked based on blockchain, comprising:
an obtaining module 10, configured to obtain, from a user node or a service node, a text to be checked through a first blockchain node; wherein the first blockchain node and the user node and the service node are nodes in the blockchain;
an establishing module 20, configured to establish a visual platform based on the first blockchain node, the user node, and the service node; the visual platform stores the text to be checked, and is used for displaying the text to be checked to the first blockchain node, the user node and the service node in real time;
a judging module 30, configured to judge whether a modification instruction for modifying the text to be checked is received;
a modifying module 40, configured to modify the text to be checked according to the modifying instruction if the modifying instruction is received;
a monitoring module 50, configured to monitor the text to be checked based on the change stream of the mongoDB, and record a change position of the text to be checked;
a marking module 60, configured to mark the varying position of the text to be checked, and record the mark into the text to be checked;
and the sending module 70 is used for sending the modified text to be checked and the mark to each node constructing the visual platform in real time.
The invention has the beneficial effects that: by establishing a blockchain, establishing a visual platform in the blockchain by a first blockchain node, a user node and a service node, receiving a modification instruction of each node on the platform on the visual platform, and transmitting the modified text to be checked to each node in real time, the real-time modification of the text to be checked is realized, and the consistency of the text to be checked of a user, a service person and a manuscript checking person is ensured.
In one embodiment, the apparatus for blockchain-based text modification to be checked further includes:
the confirmation information judging module is used for judging whether confirmation information of the user node, the service node and the first block link point is received or not;
and the issuing module is used for generating an electronic contract based on the modified text to be checked if the confirmation information is received, and issuing the electronic contract to the visual platform.
In one embodiment, the acquisition module 10 comprises:
a sub-blockchain request sub-module, configured to construct a sub-blockchain according to the user node, the service node, and the first blockchain link point based on a sub-blockchain request sent by the user node or the service node to the first blockchain node;
and the text to be checked is acquired from the user node or the service node based on the sub-block chain.
In one embodiment, the acquisition module 10 further comprises:
the permission sub-requirement acquisition sub-module is used for acquiring the permission sub-requirements in the sub-block chain request;
an acquisition contract establishment sub-module for establishing a data acquisition contract based on the rights sub-requirement and the rights of the first blockchain node;
and the giving sub-module is used for giving the right of acquiring the data from the corresponding database of the block chain to the first block chain node based on the data acquisition sum.
In one embodiment, the apparatus for blockchain-based text modification to be checked further includes:
the data acquisition information judging module is used for judging whether the first blockchain node sends out data acquisition information or not;
the data information analysis module is used for analyzing the data information to obtain target data to be acquired if the data acquisition information is sent out;
the permission judging module is used for judging whether the target data is in the platform permission range of the visual platform for acquiring the data;
the target data extraction module is used for extracting the target data and sending the target data to the first blockchain node if the target data is within the platform authority range;
and the target data display module is used for uploading the target data to the visual platform through the first blockchain node for display.
In one embodiment, the apparatus for blockchain-based text modification to be checked further includes:
the duration detection module is used for monitoring the duration of the target data sent to the visual platform;
the time length judging module is used for judging whether the time length exceeds a time preset value;
and the deleting module is used for deleting the target data from the visual platform if the target data are in the visual platform.
In one embodiment, the transmitting module 70 includes:
and the sending submodule is used for sending the modified text to be checked and the mark to each node constructing the visual platform based on websocket protocol.
In one embodiment, the blockchain-based device for text modification to be checked further includes:
a user information obtaining module, configured to obtain user information u= (U) uploaded by the service node 1 ,u 2 ,…,u i ,…,u n ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein u is i ∈{0,1};
A vector extraction module for extracting a p-dimensional vector U from the user information U p
A parameter selection module, configured to select a parameter s from the service nodes according to a preset manner, and according to a formula h=u p 2 (U pi∈[1,n] u i ) s Setting a hash value of a user node; wherein H is the hash value;
and the user node setting module is used for setting the user node for the user according to the hash value and sending login information corresponding to the user node to the service node.
Referring to fig. 3, a computer device is further provided in the embodiment of the present application, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store various electronic games and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, may implement the method for modifying text to be checked based on blockchain as described in any of the above embodiments.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device to which the present application is applied.
The embodiment of the application further provides a computer readable storage medium, on which a computer program is stored, where the computer program can implement the method for modifying text to be checked based on blockchain according to any of the above embodiments when executed by a processor.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by hardware associated with a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The blockchain underlying platform may include processing modules for user management, basic services, electronic contracts, operation monitoring, and the like. The user management module is responsible for identity information management of all blockchain participants, including maintenance of public and private key generation (account management), key management, maintenance of corresponding relation between the real identity of the user and the blockchain address (authority management) and the like, and under the condition of authorization, supervision and audit of transaction conditions of certain real identities, and provision of rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node devices, is used for verifying the validity of a service request, recording the service request on a storage after the effective request is identified, for a new service request, the basic service firstly analyzes interface adaptation and authenticates the interface adaptation, encrypts service information (identification management) through an identification algorithm, and transmits the encrypted service information to a shared account book (network communication) in a complete and consistent manner, and records and stores the service information; the electronic contract module is responsible for the registration and release of contracts, the contract triggering and the contract execution, a developer can define contract logic through a certain programming language, the contract logic is released to a blockchain (contract registration), and the key or other event triggering execution is called according to the logic of contract clauses to complete the contract logic, and meanwhile, the function of updating and logging off the contract is provided; the operation monitoring module is mainly responsible for deployment in the product release process, modification of configuration, contract setting, cloud adaptation and visual output of real-time states in product operation, for example: alarms, monitoring network conditions, monitoring node device health status, etc.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (6)

1. A method for blockchain-based text modification to be checked, comprising:
acquiring a text to be checked from a user node or a service node through a first blockchain node; wherein the first blockchain node and the user node and the service node are nodes in the blockchain;
establishing a visual platform based on the first blockchain node, the user node and the service node; the visual platform stores the text to be checked, and is used for displaying the text to be checked to the first blockchain node, the user node and the service node in real time;
judging whether a modification instruction for modifying the text to be checked is received or not;
if the modification instruction is received, modifying the text to be checked according to the modification instruction;
the change stream based on the mongoDB monitors the text to be checked and records the change position of the text to be checked;
marking the change position of the text to be checked, and recording the mark into the text to be checked;
the modified text to be checked and the mark are sent to each node constructing the visual platform in real time;
the step of obtaining the text to be checked from the user node or the service node through the first blockchain node comprises the following steps:
constructing a sub-blockchain according to the user node, the service node and the first blockchain link point based on a sub-blockchain request sent by the user node or the service node to the first blockchain node;
acquiring the text to be checked from the user node or the service node based on the sub-block chain;
before the step of obtaining the text to be checked from the user node or the service node based on the sub-block chain, the method further comprises:
acquiring a permission sub-requirement in the sub-block chain request;
establishing a data acquisition contract based on the rights sub-requirement and the rights of the first blockchain node;
the first blockchain node gives permission to acquire data from the blockchain corresponding database to the first blockchain node based on the data acquisition sum;
after the step of establishing the visual platform based on the first blockchain node, the user node and the service node, the method further comprises:
judging whether the first blockchain node sends out data acquisition information or not;
if the data acquisition information is sent out, analyzing the data information to obtain target data to be acquired;
judging whether the target data is in a platform authority range of the visual platform for acquiring data;
if the target data is within the platform authority range, extracting the target data and sending the target data to the first blockchain node;
uploading the target data to the visual platform through the first blockchain node for display;
the step of sending the modified text to be checked and the mark to each node constructing the visual platform in real time comprises the following steps:
and sending the modified text to be checked and the mark to each node constructing the visual platform based on websocket protocol.
2. The blockchain-based text modification to be checked method of claim 1, further comprising, after the step of transmitting the modified text to be checked and the mark to each node constructing the visual platform in real time:
judging whether acknowledgement information of the user node, the service node and the first block link point is received or not;
and if the confirmation information is received, generating an electronic contract based on the modified text to be checked, and issuing the electronic contract to the visual platform.
3. The blockchain-based method of text modification to be checked of claim 1, further comprising, after the step of uploading the target data to the visual platform for presentation by the first blockchain node:
monitoring the time length of sending the target data to the visual platform;
judging whether the duration exceeds a time preset value or not;
if yes, deleting the target data from the visual platform.
4. A blockchain-based apparatus for text modification to be checked for implementing the method of any of claims 1 to 3, the apparatus comprising:
the acquisition module is used for acquiring the text to be checked from the user node or the service node through the first blockchain node; wherein the first blockchain node and the user node and the service node are nodes in the blockchain;
the building module is used for building a visual platform based on the first blockchain node, the user node and the service node; the visual platform stores the text to be checked, and is used for displaying the text to be checked to the first blockchain node, the user node and the service node in real time;
the judging module is used for judging whether a modifying instruction for modifying the text to be checked is received or not;
the modification module is used for modifying the text to be checked according to the modification instruction if the modification instruction is received;
the monitoring module is used for monitoring the text to be checked based on the change stream of the mongoDB and recording the change position of the text to be checked;
the marking module is used for marking the change position of the text to be checked and recording the mark into the text to be checked;
and the sending module is used for sending the modified text to be checked and the mark to each node constructing the visual platform in real time.
5. 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 3 when the computer program is executed.
6. 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 3.
CN202110693926.3A 2021-06-22 2021-06-22 Method, device, equipment and medium for modifying text to be checked based on blockchain Active CN113342835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110693926.3A CN113342835B (en) 2021-06-22 2021-06-22 Method, device, equipment and medium for modifying text to be checked based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110693926.3A CN113342835B (en) 2021-06-22 2021-06-22 Method, device, equipment and medium for modifying text to be checked based on blockchain

Publications (2)

Publication Number Publication Date
CN113342835A CN113342835A (en) 2021-09-03
CN113342835B true CN113342835B (en) 2023-06-20

Family

ID=77477672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110693926.3A Active CN113342835B (en) 2021-06-22 2021-06-22 Method, device, equipment and medium for modifying text to be checked based on blockchain

Country Status (1)

Country Link
CN (1) CN113342835B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114417392B (en) * 2022-04-02 2022-06-10 湖南宸瀚科技有限公司 Multi-auditing system for block chain editing permission

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585766A (en) * 2020-04-29 2020-08-25 陈议尊 Public key coding method and system for block chain
WO2020233091A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Method and apparatus for service data rollback, computer device and storage medium
CN112965981A (en) * 2021-03-15 2021-06-15 中国平安财产保险股份有限公司 Data checking method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10942920B2 (en) * 2019-06-03 2021-03-09 Advanced New Technologies Co., Ltd. Service processing system and method based on blockchain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233091A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Method and apparatus for service data rollback, computer device and storage medium
CN111585766A (en) * 2020-04-29 2020-08-25 陈议尊 Public key coding method and system for block chain
CN112965981A (en) * 2021-03-15 2021-06-15 中国平安财产保险股份有限公司 Data checking method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113342835A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
JP7079805B2 (en) Time-limited secure access
EP1946481B1 (en) Method for generating an advanced electronic signature for an electronic document
CN105378649B (en) More permissions data safety and access
US20200334378A1 (en) Selectively verifying personal data
CN101919202B (en) Information distribution system and program for the same
CN110086608A (en) User authen method, device, computer equipment and computer readable storage medium
CN112187931A (en) Session management method, device, computer equipment and storage medium
CN110049016A (en) Data query method, apparatus, system, equipment and the storage medium of block chain
US20150149784A1 (en) Communication method utilizing fingerprint information authentication
EP3699791B1 (en) Access control with a mobile radio device
JP2019028805A5 (en)
CN108924109B (en) Data transmission method and device and processing equipment
CN107871081A (en) A kind of computer information safe system
CN110598474B (en) Block chain-based data acquisition method, system, device and storage medium
EP3172677A1 (en) Collection folders in a content management system
CN111241555A (en) Access method and device for simulating user login, computer equipment and storage medium
KR20190132120A (en) Simple login method and system using private domain name
US20110055895A1 (en) Shared scalable server to control confidential sensory event traffic among recordation terminals, analysis engines, and a storage farm coupled via a non-proprietary communication channel
CN113342835B (en) Method, device, equipment and medium for modifying text to be checked based on blockchain
CN107659579B (en) On-site certificate storing method and device and related certificate storing system
CN108833431A (en) A kind of method, apparatus, equipment and the storage medium of password resetting
KR20200097773A (en) Blockchain-based identity system
WO2024116838A1 (en) Information processing device, information processing system, program, and information processing method
DE102017121648B3 (en) METHOD FOR REGISTERING A USER AT A TERMINAL DEVICE
CN108064437A (en) Safely share content and method and system

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
GR01 Patent grant
GR01 Patent grant