Disclosure of Invention
The embodiment of the application aims to provide a screen recording evidence obtaining method and system based on a block chain and electronic equipment, so that an evidence obtaining process is simplified, evidence obtaining cost is reduced, and reliability of evidence obtaining is guaranteed.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, a screen recording evidence obtaining method based on a block chain is provided, and the method includes:
responding to a calling request of a local screen recording intelligent contract of a block chain, and acquiring the local screen recording intelligent contract, wherein the local screen recording intelligent contract comprises a code for realizing a local screen recording process, and the local screen recording process at least comprises starting a screen recording function, executing a machine operation instruction, and finishing screen recording to generate a screen recording file;
executing a local screen recording process and broadcasting an execution event to a block chain cluster for consensus verification based on the local screen recording intelligent contract;
receiving a consensus result fed back by a consensus node of the block chain;
and when the fed-back consensus result meets the consensus condition, storing the hash information of the screen recording file into a block chain account book of the block chain.
In a second aspect, a blockchain system is provided, the system comprising:
the acquisition module is used for responding to a calling request of a local screen recording intelligent contract of a block chain, acquiring the local screen recording intelligent contract, wherein the local screen recording intelligent contract comprises a code for realizing a local screen recording process, and the local screen recording process at least comprises a screen recording starting function, a machine operation instruction executing function and a screen recording ending function so as to generate a screen recording file;
the execution module executes a local screen recording process and broadcasts an execution event to the block chain cluster for consensus verification based on the local screen recording intelligent contract;
the sending module broadcasts the execution event to the block chain cluster to carry out consensus verification;
the receiving module is used for receiving the consensus result fed back by the consensus node of the block chain;
and the storage module is used for storing the hash information of the screen recording file into a block chain account book of the block chain when the fed-back consensus result meets the consensus condition.
In a third aspect, an electronic device is provided, which includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
responding to a calling request of a local screen recording intelligent contract of a block chain, and acquiring the local screen recording intelligent contract, wherein the local screen recording intelligent contract comprises a code for realizing a local screen recording process, and the local screen recording process at least comprises starting a screen recording function, executing a machine operation instruction, and finishing screen recording to generate a screen recording file;
executing a local screen recording process and broadcasting an execution event to a block chain cluster for consensus verification based on the local screen recording intelligent contract;
receiving a consensus result fed back by a consensus node of the block chain;
and when the fed-back consensus result meets the consensus condition, storing the hash information of the screen recording file into a block chain account book of the block chain.
In a fourth aspect, a computer-readable storage medium is presented, the computer-readable storage medium storing one or more programs that, when executed by an electronic device that includes a plurality of application programs, cause the electronic device to:
responding to a calling request of a local screen recording intelligent contract of a block chain, and acquiring the local screen recording intelligent contract, wherein the local screen recording intelligent contract comprises a code for realizing a local screen recording process, and the local screen recording process at least comprises starting a screen recording function, executing a machine operation instruction, and finishing screen recording to generate a screen recording file;
executing a local screen recording process and broadcasting an execution event to a block chain cluster for consensus verification based on the local screen recording intelligent contract;
receiving a consensus result fed back by a consensus node of the block chain;
and when the fed-back consensus result meets the consensus condition, storing the hash information of the screen recording file into a block chain account book of the block chain.
As can be seen from the technical solutions provided in the embodiments of the present application, the embodiments of the present application have at least one of the following technical effects:
in the embodiment of the application, a local screen recording intelligent contract on a block chain is executed to start a screen recording function, a machine operation instruction is executed, the screen recording is finished, a screen recording file is finally generated, after a common identification node of the block chain realizes common identification on the execution of the local screen recording intelligent contract, hash information of the screen recording file is stored in the block chain, the characteristic that the block chain cannot be tampered is utilized, the reliability of the screen recording file as evidence can be realized without depending on notarization personnel, the evidence obtaining process is greatly simplified, and the evidence obtaining cost is reduced.
Detailed Description
The embodiment of the application provides a screen recording and evidence obtaining method and system based on a block chain and electronic equipment.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part 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.
Fig. 1 is a flowchart of a screen recording forensics method based on a block chain according to an embodiment of the present application. The method of fig. 1 may include:
s110, responding to a calling request of a local screen recording intelligent contract of the block chain, and acquiring the local screen recording intelligent contract, wherein the local screen recording intelligent contract comprises a code for realizing a local screen recording process.
The local screen recording process at least comprises the steps of starting a screen recording function, executing a machine operation instruction and finishing screen recording to generate a screen recording file.
It should be understood that in a blockchain system with intelligent contracts, two types of accounts are typically included, namely an Externally Owned Account (EOA) and a Contract Account (CA). In the embodiment of the application, the call request of the local screen-recording intelligent contract can be directly called by the EOA, or other intelligent contracts called by the EOA to be indirectly called. Of course, it should be understood that this local screen-recording smart contract is typically invoked by the EOA.
It should be understood that, in the embodiment of the present application, the uplink process of the local screen-recording intelligent contract may refer to the uplink process in the prior art, which is not limited in the embodiment of the present application.
It should be understood that the invocation request carries the identifier and parameters of the local screen-recording intelligent contract.
And S120, executing a local screen recording process and broadcasting an execution event to the block chain cluster for consensus verification based on the local screen recording intelligent contract.
It should be understood that, in the embodiment of the present application, the actions related to the local screen recording process, such as starting the screen recording function, executing the machine operation instruction, and ending the screen recording to generate the screen recording file, are all implemented by executing the local screen recording intelligent contract in the block chain.
It should be understood that when the screen recording function is started, in order to further provide confidence of evidence obtaining, a recording tool approved by the judicial authority can be called for screen recording. Of course, other recording tools may be used for recording, and this is not limited in this embodiment of the present application.
It should be understood that the specific implementation of executing the machine operation on the target device may refer to the prior art, and will not be described in detail.
In this embodiment of the application, when the blockchain executes the local screen-recording intelligent contract, an event for executing the local screen-recording intelligent contract is broadcast to other nodes in the blockchain cluster, so that the consensus node performs consensus verification on the execution of the local screen-recording intelligent contract.
The specific implementation of the execution of the intelligent contract verification by the consensus node may refer to a scheme in the prior art, or adopt a technical scheme improved after the application, which is not limited by the embodiment of the application, and the specific implementation does not affect the scheme of the embodiment of the application.
And S130, receiving the consensus result fed back by the consensus node of the block chain.
After the execution event of the local screen recording intelligent contract is broadcasted, the consensus node of the block chain can perform consensus verification on the execution of the local screen recording intelligent contract and feed back a consensus result. The block chain receives the consensus result fed back by the consensus node.
And S140, when the fed-back consensus result meets the consensus condition, storing the hash information of the screen recording file into a block chain account book of the block chain.
For the achievement of the consensus condition, reference is made to the prior art, which is not limited by the examples of the present application.
It should be understood that the hash information of the screen recording file refers to a hash value obtained by subjecting the screen recording file to an encryption hash function. A cryptographic HASH function, such as SHA-256HASH algorithm in Biguo, KECCAK-256HASH algorithm in EtherFang, and so on.
It should be understood that the hash information of the screen recording file in the embodiment of the present application may be a hash value obtained by performing a hash operation on the screen recording file once, or a hash value obtained by performing two or more hash operations.
In the embodiment of the application, a local screen recording intelligent contract on a block chain is executed to start a screen recording function, a machine operation instruction is executed, the screen recording is finished, a screen recording file is finally generated, after a common identification node of the block chain realizes common identification on the execution of the local screen recording intelligent contract, hash information of the screen recording file is stored in the block chain, the characteristic that the block chain cannot be tampered is utilized, the reliability of the screen recording file as evidence can be realized without depending on notarization personnel, the evidence obtaining process is greatly simplified, and the evidence obtaining cost is reduced.
The existing notarization process can be possible to tamper the notarization result after being purchased, and the technical scheme of the application reduces the possibility of tampering the screen recording file to be extremely low by means of the block chain, and basically does not have the possibility of tampering.
Optionally, in step S140, the hash information of the screen recording file is stored in a blockchain ledger of the blockchain, which may be specifically implemented as: and storing the hash information of the screen recording file and the identification of the local screen recording intelligent contract into a block chain account book of the block chain.
In the embodiment of the application, when the hash information of the screen recording file is stored, the hash information of the screen recording file and the identification of the local screen recording intelligent contract are stored in the block of the block chain as records, so that a forensics worker can clearly know which intelligent contract the screen recording file is recorded based on.
Optionally, in step S140, the hash information of the screen recording file is stored in a blockchain ledger of the blockchain, which may be specifically implemented as:
storing the hash information of the screen recording file and the related information of the screen recording file into a block chain account book of the block chain;
wherein the related information comprises one or more of the following combinations:
the name of the screen recording file;
the storage address of the screen recording file;
content introduction of the screen recording file;
and obtaining evidence user information corresponding to the screen recording file.
In the embodiment of the application, when the hash information of the screen recording file is stored, the hash information of the screen recording file and the related information of the screen recording file are stored in the block of the block chain as records, so that a forensics worker can clearly know the related information of the screen recording file.
Optionally, the local screen recording process further includes: and writing the timestamp information corresponding to the machine operation executed on the target equipment into the screen recording file.
In the embodiment of the application, timestamp information corresponding to machine operation executed on the target device is written into the screen recording file, so that evidence obtaining personnel can know the whole screen recording process based on the timestamp information corresponding to the machine operation, and the user is assisted in obtaining evidence.
It should be understood that in the embodiments of the present application, there may be a plurality of ways to implement the specific implementation of the local screen-recording smart contract.
Optionally, as an embodiment, the step S120 may be specifically implemented as:
and executing a local screen recording process in a trusted execution container of the block chain based on the local screen recording intelligent contract.
In the embodiment of the application, a local screen recording process can be executed in a trusted execution container of a block chain to solve the problems of unclean local environment and counterfeit recording, so as to further enhance the confidence degree of screen recording and forensics.
Further, the consensus node of the block chain is used for performing consensus authentication on the execution result of the local screen-recording intelligent contract in the trusted execution container.
And the consensus node on the blockchain performs consensus authentication on the execution result of the trusted execution container so as to achieve consensus on the execution of the intelligent contract.
Further, the consensus result comprises consistency authentication of the hash information of the screen recording file.
In the embodiment of the application, when the hash information of the screen recording file obtained by a plurality of common identification nodes on the block chain is the same, the common identification can be considered to be achieved, and further the subsequent storage operation can be performed.
Optionally, as another embodiment, the consensus nodes of the blockchain are configured to respectively execute the local screen-recording intelligent contracts and perform consensus authentication on screen-recording contents of the local screen-recording intelligent contracts.
In the embodiment of the application, the local screen recording intelligent contracts can be respectively executed through the consensus nodes to achieve consensus.
It should be understood that, for the schemes for executing the local screen recording intelligent contracts respectively, the hash information of the screen recording file is generally different, and at this time, whether the consensus is achieved can be determined through the consistency judgment of the screen recording contents. That is, the consensus result includes a consistency authentication of the screen recording content.
Optionally, the method further comprises: and returning a block identifier stored by the hash information of the screen recording file to a calling party of the local screen recording intelligent contract, wherein the block identifier is used for the calling party to establish a mapping relation between the screen recording file and block chain storage.
In the embodiment of the application, the block identifier for storing the hash information of the screen recording file is returned to the calling party, so that the calling party establishes the mapping relation between the screen recording file and the block chain storage, and the calling party can conveniently search the hash information of the screen recording file from the block chain when performing evidence collection.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 2, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 2, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads a corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a block chain system on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
responding to a calling request of a local screen recording intelligent contract of a block chain, and acquiring the local screen recording intelligent contract, wherein the local screen recording intelligent contract comprises a code for realizing a local screen recording process, and the local screen recording process at least comprises starting a screen recording function, executing a machine operation instruction, and finishing screen recording to generate a screen recording file;
executing a local screen recording process and broadcasting an execution event to a block chain cluster for consensus verification based on the local screen recording intelligent contract;
receiving a consensus result fed back by a consensus node of the block chain;
and when the fed-back consensus result meets the consensus condition, storing the hash information of the screen recording file into a block chain account book of the block chain.
The method performed by the blockchain system disclosed in the embodiment of fig. 1 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method in the embodiment shown in fig. 1, and specific implementation may refer to the embodiment shown in fig. 1, which is not described herein again.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Embodiments of the present application also provide a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to perform the method of the embodiment shown in fig. 1, and are specifically configured to:
responding to a calling request of a local screen recording intelligent contract of a block chain, and acquiring the local screen recording intelligent contract, wherein the local screen recording intelligent contract comprises a code for realizing a local screen recording process, and the local screen recording process at least comprises starting a screen recording function, executing a machine operation instruction, and finishing screen recording to generate a screen recording file;
executing a local screen recording process and broadcasting an execution event to a block chain cluster for consensus verification based on the local screen recording intelligent contract;
receiving a consensus result fed back by a consensus node of the block chain;
and when the fed-back consensus result meets the consensus condition, storing the hash information of the screen recording file into a block chain account book of the block chain.
Fig. 3 is a block chain system according to an embodiment of the present application. Referring to fig. 3, in one software implementation, the blockchain system may include:
the obtaining module 310 is configured to obtain a local screen recording intelligent contract in response to a call request of the local screen recording intelligent contract of a block chain, where the local screen recording intelligent contract includes a code for implementing a local screen recording process, and the local screen recording process at least includes starting a screen recording function, executing a machine operation instruction, and ending screen recording to generate a screen recording file;
the execution module 320 executes a local screen recording process and broadcasts an execution event to a block chain cluster for consensus verification based on the local screen recording intelligent contract;
a sending module 330, which broadcasts the execution event to the blockchain cluster for consensus verification;
a receiving module 340, configured to receive a consensus result fed back by a consensus node of a block chain;
the storage module 350 stores the hash information of the screen recording file into the block chain account book of the block chain when the fed-back consensus result meets the consensus condition.
In the embodiment of the application, a local screen recording intelligent contract on a block chain is executed to start a screen recording function, a machine operation instruction is executed, the screen recording is finished, a screen recording file is finally generated, after a common identification node of the block chain realizes common identification on the execution of the local screen recording intelligent contract, hash information of the screen recording file is stored in the block chain, the characteristic that the block chain cannot be tampered is utilized, the reliability of the screen recording file as evidence can be realized without depending on notarization personnel, the evidence obtaining process is greatly simplified, and the evidence obtaining cost is reduced.
Optionally, the storage module 350 is specifically configured to: and storing the hash information of the screen recording file and the identification of the local screen recording intelligent contract into a block chain account book of the block chain.
Optionally, the storage module 350 is specifically configured to: storing the hash information of the screen recording file and the related information of the screen recording file into a block chain account book of the block chain;
wherein the related information comprises one or more of the following combinations:
the name of the screen recording file;
the storage address of the screen recording file;
content introduction of the screen recording file;
and obtaining evidence user information corresponding to the screen recording file.
Optionally, the local screen recording process further includes:
and writing the timestamp information corresponding to the machine operation executed on the target equipment into the screen recording file.
Optionally, as an embodiment, the executing module 320 is specifically configured to: and executing a local screen recording process in a trusted execution container of the block chain based on the local screen recording intelligent contract.
Further, the consensus node of the block chain is used for performing consensus authentication on the execution result of the local screen-recording intelligent contract in the trusted execution container.
Further, the consensus result comprises consistency authentication of the hash information of the screen recording file.
Optionally, as another embodiment, the consensus nodes of the blockchain are configured to respectively execute the local screen-recording intelligent contracts and perform consensus authentication on screen-recording contents of the local screen-recording intelligent contracts.
Further, the consensus result comprises consistency authentication of the screen recording content.
Optionally, the blockchain system may further include a return module for:
and returning a block identifier stored by the hash information of the screen recording file to a calling party of the local screen recording intelligent contract, wherein the block identifier is used for the calling party to establish a mapping relation between the screen recording file and block chain storage.
Optionally, the invocation request carries an identifier and a parameter of the local screen recording intelligent contract.
The block chain system 300 may also perform the method of the embodiment shown in fig. 1, and the specific implementation may refer to the embodiment shown in fig. 1, which is not described herein again.
In short, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
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.
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 magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that 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 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.