CN111611597A - Block chain-based data access and write-in method, equipment and medium - Google Patents

Block chain-based data access and write-in method, equipment and medium Download PDF

Info

Publication number
CN111611597A
CN111611597A CN202010296517.5A CN202010296517A CN111611597A CN 111611597 A CN111611597 A CN 111611597A CN 202010296517 A CN202010296517 A CN 202010296517A CN 111611597 A CN111611597 A CN 111611597A
Authority
CN
China
Prior art keywords
data
intelligent contract
block
supervision
system intelligent
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
CN202010296517.5A
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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud 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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202010296517.5A priority Critical patent/CN111611597A/en
Publication of CN111611597A publication Critical patent/CN111611597A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The embodiment of the application discloses a data access and write-in method, equipment and a medium based on a block chain, which comprises the following steps: when an inquiry system intelligent contract of a supervision node receives requests for accessing data sent by other nodes, judging whether data and blocks where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and blocks where the illegal data are located; and if the supervision node judges that the data and the block where the data is located do not exist in the message loss list, allowing other nodes to access the data and the block where the data is located. According to the embodiment of the application, when the supervision node receives the requests for accessing the data sent by other nodes, whether the data and the block where the data is located exist is checked in the credit loss list, and only if the data and the block where the data is located do not exist in the credit loss list, the other nodes are allowed to access, so that the other nodes are prevented from accessing the bad information.

Description

Block chain-based data access and write-in method, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, device, and medium for accessing and writing data based on a block chain.
Background
The blockchain can help a user to establish a set of distributed reliable trust mechanism, and the user data is guaranteed to be difficult to be illegally tampered, publicly and transparently and traceably. Meanwhile, due to the anonymity of the block chain identity and the characteristic that data cannot be tampered, the block chain technology also becomes a criminal tool for spreading illegal information by lawbreakers. Therefore, there is a need for supervision of the block chain.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a medium for accessing and writing data based on a block chain, which are used to solve the problem in the prior art that a lawless person propagates illegal information through the block chain.
The embodiment of the application adopts the following technical scheme:
the embodiment of the application provides a data access method based on a block chain, which comprises the following steps:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
Further, if the supervision node determines that the data and the block where the data is located exist in the loss list, other nodes are prohibited from accessing the data and the block where the data is located.
Further, when the query system intelligent contract of the supervision node receives a request for accessing data sent by another node, whether the data and the block where the data is located exist in the loss list is judged according to the pre-written supervision system intelligent contract, and the method further includes:
the supervisory node integrating the supervisory system intelligence contract in the query system intelligence contract;
when the supervising node finds that illegal data exist in the block chain, the illegal data and the block where the illegal data are located are stored in the lost message list.
The embodiment of the present application further provides a data writing method based on a block chain, where the method includes:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
Further, if the supervision node judges that the public key exists in the loss list, the data is prohibited from being written into the block chain.
Further, when the verification system intelligent contract of the supervision node receives a request for writing data, the method obtains the public key of the data initiator according to the pre-written supervision system intelligent contract, and judges whether the public key exists in a loss list, and the method further includes:
the supervisory node integrating the supervisory system intelligence contract in the verification system intelligence contract;
and when the supervising node finds that illegal data exist in the block chain, storing the public key of the illegal data initiator into the lost message list.
An embodiment of the present application further provides a data access device based on a block chain, where the device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
An embodiment of the present application further provides a data access medium based on a block chain, in which computer-executable instructions are stored, where the computer-executable instructions are set to:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
An embodiment of the present application further provides a data writing device based on a block chain, where the device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
An embodiment of the present application further provides a data writing medium based on a block chain, in which computer-executable instructions are stored, where the computer-executable instructions are set to:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: according to the embodiment of the application, when the inquiry system intelligent contract of the supervision node receives the data access requests sent by other nodes, whether the data and the block where the data is located exist is checked in the credit loss list, and only if the data and the block where the data is located do not exist in the credit loss list, other nodes are allowed to access, so that other nodes are prevented from accessing bad information.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a data access method based on a block chain according to a first embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data access method based on a block chain according to a second embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a data writing method based on a block chain according to a third embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a data writing method based on a block chain according to a fourth embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a block chain-based data access method provided in an embodiment of this specification, and specifically includes:
step S101, the intelligent contract of the query system of the supervision node receives requests for accessing data sent by other nodes.
Step S102, the supervision node judges whether the data and the block where the data are located exist in the loss list according to a pre-written supervision system intelligent contract, if not, the step S103 is executed; if yes, go to step S104.
In step S102 of the embodiment of the present specification, the regulatory system intelligent contract is used to manage the loss list, where the loss list includes illegal data and blocks where the illegal data are located.
Step S103, allowing other nodes to access the data and the block where the data is located by the supervisory node.
Step S104, the supervisory node forbids other nodes to access the data and the block where the data is located.
It should be noted that the access data may also be query data.
According to the embodiment of the application, when the inquiry system intelligent contract of the supervision node receives the data access requests sent by other nodes, whether the data and the block where the data is located exist is checked in the credit loss list, and only if the data and the block where the data is located do not exist in the credit loss list, other nodes are allowed to access, so that other nodes are prevented from accessing bad information.
Correspondingly to the embodiment, fig. 2 is a schematic flow chart of a data access method based on a block chain provided in the second embodiment of this specification, and specifically includes:
step S201, the supervisory node integrates the supervisory system intelligent contract in the query system intelligent contract.
Step S202, when the supervising node finds that illegal data exist in the block chain, the illegal data and the block where the illegal data are located are stored in the lost message list.
Step S203, the query system intelligent contract of the supervision node receives the request of accessing data sent by other nodes.
Step S204, the supervision node judges whether the data and the block where the data is located exist in the loss list according to a pre-written supervision system intelligent contract, if not, step S205 is executed; if yes, go to step S206.
In step S204 of the embodiment of the present specification, the regulatory system intelligent contract is used to manage the loss list, where the loss list includes illegal data and blocks where the illegal data are located.
In step S205, the supervisory node allows other nodes to access the data and the block in which the data is located.
Step S206, the supervisory node prohibits other nodes from accessing the data and the block where the data is located.
It should be noted that the access data may also be query data.
According to the embodiment of the application, when the inquiry system intelligent contract of the supervision node receives the data access requests sent by other nodes, whether the data and the block where the data is located exist is checked in the credit loss list, and only if the data and the block where the data is located do not exist in the credit loss list, other nodes are allowed to access, so that other nodes are prevented from accessing bad information.
Corresponding to the second embodiment of the present specification, fig. 3 is a schematic flowchart of a data writing method based on a block chain according to the third embodiment of the present specification, which specifically includes:
step S301, the intelligent contract of the verification system of the supervision node receives a request for data writing.
Step S302, the supervision node obtains the public key of the data initiator according to the pre-written supervision system intelligent contract.
In step S302 of an embodiment of the present specification, the regulatory system smart contract is used to manage the loss of trust list, which includes the public keys of the illegal data initiators.
Step S303, the supervision node judges whether the public key exists in the lost message list, if not, the step S304 is executed; if yes, go to step S305.
Step S304, the supervisory node allows the data to be written into the blockchain.
Step S305, the supervisory node prohibits the data from being written into the block chain.
According to the embodiment of the application, when a request for writing data is received through an intelligent contract of a verification system of a supervision node, whether the public key of the data initiator exists or not is checked in a trust loss list, and the data is allowed to be written into a block chain only if the public key of the data initiator does not exist in the trust loss list, so that bad information is prevented from being written into the block chain.
Corresponding to the third embodiment of the present specification, fig. 4 is a schematic flowchart of a data writing method based on a block chain according to the fourth embodiment of the present specification, which specifically includes:
step S401, the supervision node integrates the supervision system intelligent contract in the verification system intelligent contract.
Step S402, when the supervising node finds that the block chain has illegal data, storing the public key of the illegal data initiator into the lost message list.
In step S403, the intelligent contract of the verification system of the supervisory node receives a request for data writing.
Step S404, the supervision node obtains the public key of the data initiator according to the pre-written supervision system intelligent contract.
In step S404 of the embodiment of the present specification, the regulatory system intelligent contract is used to manage the loss of trust list, which includes the public key of the illegal data initiator.
Step S405, the supervision node judges whether the public key exists in the lost message list, if not, the step S506 is executed; if yes, go to step S407.
Step S406, the supervisory node allows the data to be written into the blockchain.
Step S407, the supervisory node prohibits the data from being written into the block chain.
It should be noted that, in the embodiment of the present application, a supervision node is introduced, and the supervision node does not participate in transaction consensus of a block chain, and is mainly responsible for supervising all transactions in a block chain network, and performing supervision and verification on data on the block chain, a block where the data is located, and an identity (verification public key) of a data initiator;
it should be noted that the intelligent contract of the supervision system may be Admin-scc. The query system smart contract may be qscc (query system chain), and the query of data calls the smart contract. The verification System intelligence contract may be vscc (validator System Chaincode). The intelligent contracts are the existing intelligent contracts, and the application is only a scheme which can implement the embodiment of the specification.
According to the embodiment of the application, when a request for writing data is received through an intelligent contract of a verification system of a supervision node, whether the public key of the data initiator exists or not is checked in a trust loss list, and the data is allowed to be written into a block chain only if the public key of the data initiator does not exist in the trust loss list, so that bad information is prevented from being written into the block chain.
An embodiment of the present application further provides a data access device based on a block chain, where the device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
An embodiment of the present application further provides a data access medium based on a block chain, in which computer-executable instructions are stored, where the computer-executable instructions are set to:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
An embodiment of the present application further provides a data writing device based on a block chain, where the device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
An embodiment of the present application further provides a data writing medium based on a block chain, in which computer-executable instructions are stored, where the computer-executable instructions are set to:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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, embedded processor, 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for accessing data based on a blockchain, the method comprising:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
2. The blockchain-based data access method according to claim 1, wherein if the supervisory node determines that the data and the block in which the data is located exist in the loss list, other nodes are prohibited from accessing the data and the block in which the data is located.
3. The block chain-based data access method according to claim 1, wherein when the query system intelligent contract of the supervisory node receives a request for accessing data from another node, the method determines whether the data and the block where the data is located exist in the loss list according to a pre-written supervisory system intelligent contract, and further includes:
the supervisory node integrating the supervisory system intelligence contract in the query system intelligence contract;
when the supervising node finds that illegal data exist in the block chain, the illegal data and the block where the illegal data are located are stored in the lost message list.
4. A data writing method based on a block chain is characterized by comprising the following steps:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
5. The block chain-based data writing method according to claim 4, wherein the supervisory node prohibits the data from being written into the block chain if it determines that the public key exists in the loss list.
6. The block chain-based data writing method according to claim 4, wherein when the verification system intelligent contract of the supervisory node receives a request for data writing, the public key of the data initiator is obtained according to a pre-written supervisory system intelligent contract, and before determining whether the public key exists in a trusted list, the method further comprises:
the supervisory node integrating the supervisory system intelligence contract in the verification system intelligence contract;
and when the supervising node finds that illegal data exist in the block chain, storing the public key of the illegal data initiator into the lost message list.
7. A blockchain-based data access device, the device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
8. A blockchain-based data access medium having stored thereon computer-executable instructions configured to:
when an inquiry system intelligent contract of a supervision node receives a request for accessing data sent by other nodes, judging whether the data and a block where the data are located exist in a loss list according to a pre-written supervision system intelligent contract, wherein the supervision system intelligent contract is used for managing the loss list, and the loss list comprises illegal data and the block where the illegal data are located;
and if the supervision node judges that the data and the block where the data are located do not exist in the message loss list, allowing other nodes to access the data and the block where the data are located.
9. A block chain based data writing apparatus, characterized in that the apparatus comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
10. A blockchain-based data writing medium having stored thereon computer-executable instructions configured to:
when a verification system intelligent contract of a supervision node receives a data writing request, acquiring a public key of a data initiator according to a pre-written supervision system intelligent contract, and judging whether the public key exists in a loss list, wherein the supervision system intelligent contract is used for managing the loss list which comprises the public key of an illegal data initiator;
and if the supervision node judges that the public key does not exist in the lost message list, allowing the data to be written into a block chain.
CN202010296517.5A 2020-04-15 2020-04-15 Block chain-based data access and write-in method, equipment and medium Pending CN111611597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010296517.5A CN111611597A (en) 2020-04-15 2020-04-15 Block chain-based data access and write-in method, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010296517.5A CN111611597A (en) 2020-04-15 2020-04-15 Block chain-based data access and write-in method, equipment and medium

Publications (1)

Publication Number Publication Date
CN111611597A true CN111611597A (en) 2020-09-01

Family

ID=72198035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010296517.5A Pending CN111611597A (en) 2020-04-15 2020-04-15 Block chain-based data access and write-in method, equipment and medium

Country Status (1)

Country Link
CN (1) CN111611597A (en)

Similar Documents

Publication Publication Date Title
JP6675518B1 (en) Method and device for processing a service request
CN107450981B (en) Block chain consensus method and equipment
CN106899666B (en) Data processing method and device for service identification
CN113079200A (en) Data processing method, device and system
CN107578338B (en) Service publishing method, device and equipment
CN110781192B (en) Verification method, device and equipment of block chain data
CN111683039B (en) Authentication method, device and medium
CN110059023B (en) Method, system and equipment for refreshing cascade cache
CN116305298B (en) Method and device for managing computing power resources, storage medium and electronic equipment
CN114510296B (en) Applet storage calling method, device and equipment
CN111930343A (en) Method, device and medium for acquiring random number and generating random number
CN111651467A (en) Block chain link point interface issuing and calling method and device
CN110022351B (en) Service request processing method and device
CN111737304A (en) Processing method, device and equipment of block chain data
CN111611597A (en) Block chain-based data access and write-in method, equipment and medium
CN107239270B (en) Code processing method and device
CN113254163B (en) Processing method and device of block chain data
CN111640016A (en) Verification method, device, equipment and medium for private transaction
CN110245115B (en) File processing method, engine and system
CN111966709A (en) Data query method and device and electronic equipment
CN112286572A (en) Configuration method and device of business process
CN111641499A (en) Block chain-based private key restoration method, device, equipment and medium
CN114546524B (en) Application authority processing method and device
CN115344410B (en) Method and device for judging event execution sequence, storage medium and electronic equipment
CN117041980B (en) Network element management method and device, storage medium and electronic equipment

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