CN113220503B - Processing method and system of co-built code backup library based on block chain - Google Patents

Processing method and system of co-built code backup library based on block chain Download PDF

Info

Publication number
CN113220503B
CN113220503B CN202110543629.0A CN202110543629A CN113220503B CN 113220503 B CN113220503 B CN 113220503B CN 202110543629 A CN202110543629 A CN 202110543629A CN 113220503 B CN113220503 B CN 113220503B
Authority
CN
China
Prior art keywords
code
backup
hash value
segmented
modified
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
CN202110543629.0A
Other languages
Chinese (zh)
Other versions
CN113220503A (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.)
Bank of China Ltd
Original Assignee
Bank 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110543629.0A priority Critical patent/CN113220503B/en
Publication of CN113220503A publication Critical patent/CN113220503A/en
Application granted granted Critical
Publication of CN113220503B publication Critical patent/CN113220503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a processing method and a system of a co-built code backup library based on a block chain, and relates to the technical field of block chains, wherein the method comprises the following steps: deploying a co-built code backup library in a development environment; performing hash operation on the segmented backup codes to obtain hash values, and storing the hash values in a block chain; when a developer needs to change the backup code, a first hash value corresponding to the segmented backup code needing to be changed is taken out from the blockchain; extracting backup codes needing to be modified from the co-established code backup library according to the first hash value; after the developer modifies the code, generating a second hash value according to the modified segmented backup code; when the hash values are different, notifying the related nodes of the modified segmented backup codes in a broadcasting mode; and if the nodes exceeding a certain proportion agree to modify, covering the original segmented backup code with the modified segmented backup code, and covering the first hash value with the second hash value to serve as a new extracted password of the modified segmented backup code.

Description

Processing method and system of co-built code backup library based on block chain
Technical Field
The invention relates to the technical field of blockchains, in particular to a processing method and a processing system of a co-built code backup library based on blockchains.
Background
With the explosion of internet finance, online financial business has become a necessary place for various banks, and financial information technology has also been greatly developed. The information technology product is used as a financial information technology foundation support, and the safety of the information technology product is particularly important. The code is a basic skeleton of the financial information technology product, and the code safety is directly related to the product safety. In the daily code development, due to the bulkiness of most of the existing products, multiple development languages and multiple modules are involved, and multiple persons are involved in the development, and often due to misoperation, post change, code privacy change and the like of developers, code development information cannot be synchronized by multiple persons. Meanwhile, various problems caused by various illegal falsification, misoperation and the like of the backup code are also caused.
In view of the foregoing, a technical solution is needed to overcome the above-mentioned drawbacks, prevent the backup code from being illegally tampered, and enable developers to synchronously modify the backup code by multiple persons.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a processing method and a processing system of a co-built code backup library based on a block chain; the method and the system are characterized in that a co-built code backup library is deployed in a development environment, codes are segmented according to requirements, hash operation is carried out on segmented codes, the segmented codes are used as passwords of the codes of the co-built code backup library, and hash values are stored in a blockchain. When the code needs to be changed, a developer takes out the hash value corresponding to the code segment from the blockchain, uses the hash value to enter a co-built code backup library to obtain the code, generates a new hash value (temporary) after the code is modified, notifies other developers (nodes) related to the code segment in a broadcast mode when the monitoring module monitors that the hash value of the code segment changes, checks the modified code after the developer receives the new hash value (temporary), covers the original hash value with the new hash value (temporary) after more than 50% of nodes agree to modify, and simultaneously uses the new hash value as a backup library password of the modified code segment to complete the code segment modification.
In a first aspect of the embodiment of the present invention, a method for processing a co-built code backup library based on a blockchain is provided, where the method includes:
deploying a co-built code backup library in a development environment, wherein the co-built code backup library stores segmented backup codes;
carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in a co-established code backup library, and storing the hash values in a blockchain;
when a developer needs to change the backup code, a first hash value corresponding to the segmented backup code needing to be changed is taken out from the blockchain;
extracting backup codes needing to be modified from the co-established code backup library according to the first hash value;
after the developer modifies the code, generating a second hash value according to the modified segmented backup code;
monitoring the hash value of the modified segmented code, and notifying the related node of the modified segmented backup code in a broadcasting mode when the second hash value is different from the first hash value;
and if the nodes exceeding a certain proportion agree to modify, covering the original segmented backup code with the modified segmented backup code, and covering the first hash value with the second hash value to serve as a new extracted password of the modified segmented backup code.
Further, deploying the co-built code backup library in the development environment further comprises:
performing segmentation processing on backup codes in the co-established code backup library to obtain segmented backup codes;
and setting corresponding relevant nodes for the segmented backup codes, wherein each relevant node corresponds to at least one developer.
Further, extracting the backup code to be modified from the co-built code backup library according to the first hash value includes:
and verifying the first hash value, entering a co-built code backup library after verification is passed, and extracting a segmented backup code corresponding to the first hash value from the co-built code backup library.
Further, monitoring the hash value of the modified segment code, and when the second hash value is different from the first hash value, notifying the related node of the modified segment backup code in a broadcast manner, including:
and the developer of other related nodes except the developer of the modified code views the modified segmented backup code and feeds back instructions for agreeing to the modification or disagreeing to the modification.
Further, if the nodes exceeding a certain proportion agree to modify, the modified segment backup code is covered with the original segment backup code, and the second hash value is covered with the first hash value, so as to serve as a new extracted password of the modified segment backup code, which comprises the following steps:
if the relative node feedback agrees with the modified instruction, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
In a second aspect of the embodiment of the present invention, a processing system of a co-built code backup library based on a blockchain is provided, the system includes:
the deployment module is used for deploying a co-built code backup library in a development environment, wherein the co-built code backup library stores segmented backup codes;
the hash operation module is used for carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in the co-built code backup library, and storing the hash values in a block chain;
the hash value extraction module is used for extracting a first hash value corresponding to the segmented backup code to be changed from the blockchain when the developer needs to change the backup code;
the code extraction module is used for extracting the backup codes needing to be modified from the co-built code backup library according to the first hash value;
the hash operation module is further used for generating a second hash value according to the modified segmented backup code after the developer modifies the code;
the monitoring broadcast module is used for monitoring the hash value of the modified segmented code, and notifying the related node of the modified segmented backup code in a broadcast mode when the second hash value is different from the first hash value;
and the code coverage module is used for covering the original segmented backup code with the modified segmented backup code and covering the first hash value with the second hash value if the nodes exceeding a certain proportion agree to modify, and taking the modified segmented backup code as a new extracted password of the modified segmented backup code.
Further, the system further comprises:
the segmentation processing module is used for carrying out segmentation processing on the backup codes in the co-established code backup library to obtain segmented backup codes;
the node setting module is used for setting corresponding relevant nodes for the segmented backup codes, and each relevant node corresponds to at least one developer.
Further, the code extraction module is specifically configured to:
and verifying the first hash value, entering a co-built code backup library after verification is passed, and extracting a segmented backup code corresponding to the first hash value from the co-built code backup library.
Further, after the monitoring broadcast module informs the relevant nodes of the modified segmented backup codes in a broadcast manner, the method further comprises the following steps:
and the developer of other related nodes except the developer of the modified code views the modified segmented backup code and feeds back instructions for agreeing to the modification or disagreeing to the modification.
Further, the code coverage module is specifically configured to:
if the relative node feedback agrees with the modified instruction, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
In a third aspect of the embodiments of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements a method for processing a blockchain-based co-built code backup library when the computer program is executed.
In a fourth aspect of the embodiments of the present invention, a computer readable storage medium is provided, where a computer program is stored, where the computer program when executed by a processor implements a method for processing a blockchain-based co-built code backup library.
The invention provides a processing method and a processing system of a co-built code backup library based on a blockchain, wherein the co-built code backup library is deployed in a development environment, and segmented backup codes are stored in the co-built code backup library; carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in a co-established code backup library, and storing the hash values in a blockchain; when a developer needs to change the backup code, a first hash value corresponding to the segmented backup code needing to be changed is taken out from the blockchain; extracting backup codes needing to be modified from the co-established code backup library according to the first hash value; after the developer modifies the code, generating a second hash value according to the modified segmented backup code; monitoring the hash value of the modified segmented code, and notifying the related node of the modified segmented backup code in a broadcasting mode when the second hash value is different from the first hash value; if the nodes exceeding a certain proportion agree to modify, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating a method for processing a block chain based co-constructed code backup library according to an embodiment of the present invention.
FIG. 2 is a flowchart illustrating a method for processing a blockchain-based co-created code backup library according to an embodiment of the invention.
FIG. 3 is a block chain based processing system architecture diagram of a co-constructed code backup library according to an embodiment of the present invention.
FIG. 4 is a block chain based processing system architecture diagram of a co-built code backup library according to an embodiment of the present invention.
FIG. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are presented merely to enable those skilled in the art to better understand and practice the invention and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Those skilled in the art will appreciate that embodiments of the invention may be implemented as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, a processing method and a processing system of a co-built code backup library based on a block chain are provided, and the processing method and the processing system relate to the technical field of block chains; the invention ensures the code safety through the blockchain, and the newly modified code can be modified after being understood and agreed by a plurality of developers, thereby ensuring the integrity. In addition, for the possible code leakage risk of the blockchain, a leakage prevention method is adopted, and the source code is not directly connected into the chain, so that the confidentiality of the code is ensured.
The invention deploys a co-built code backup library in a development environment, segments codes according to requirements, carries out hash operation on the segmented codes, serves as a password of the segment codes of the co-built code backup library, and stores hash values in a blockchain. When the code needs to be changed, a developer takes out the hash value corresponding to the code segment from the blockchain, uses the hash value to enter a co-built code backup library to obtain the code, generates a new hash value (temporary) after the code is modified, notifies other developers (nodes) related to the code segment in a broadcast mode when the monitoring module monitors that the hash value of the code segment changes, checks the modified code after the developer receives the new hash value (temporary), covers the original hash value with the new hash value (temporary) after more than 50% of nodes agree to modify, and simultaneously uses the new hash value as a backup library password of the modified code segment to complete the code segment modification.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments thereof.
FIG. 1 is a flowchart illustrating a method for processing a block chain based co-constructed code backup library according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S101, deploying a co-built code backup library in a development environment, wherein the co-built code backup library stores segmented backup codes;
step S102, carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in a co-built code backup library, and storing the hash values in a block chain;
step S103, when a developer needs to change the backup code, a first hash value corresponding to the segmented backup code needing to be changed is taken out from the blockchain;
step S104, extracting the backup codes to be modified from the co-established code backup library according to the first hash value;
step S105, after the developer modifies the code, generating a second hash value according to the modified segmented backup code;
step S106, the hash value of the modified segmented code is monitored, and when the second hash value is different from the first hash value, the related node of the modified segmented backup code is notified in a broadcast mode; here, only the developer related to the segmented backup code receives the broadcast notification, but not all the developers are broadcast notification, so that the number of affected people can be reduced.
Step S107, if the nodes exceeding a certain proportion agree to modify, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
In order to more clearly explain the above processing method of the co-built code backup library based on the blockchain, a specific embodiment is described below.
FIG. 2 is a flowchart illustrating a method for processing a blockchain-based co-created code backup library according to an embodiment of the invention.
And S1, deploying a co-built code backup library in a development environment.
And S2, carrying out segmentation processing on the backup codes in the co-established code backup library to obtain segmented backup codes.
And S3, setting corresponding relevant nodes for the segmented backup codes, wherein each relevant node corresponds to at least one developer.
And the co-established code backup library stores segmented backup codes.
And S4, carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in the co-built code backup library, and storing the hash values in a block chain.
And S5, when the developer needs to change the backup code, the first hash value corresponding to the segmented backup code needing to be changed is taken out from the blockchain.
And S6, verifying the first hash value, entering a co-built code backup library after verification is passed, and extracting a segmented backup code corresponding to the first hash value from the co-built code backup library.
And S7, extracting the backup codes needing to be modified from the co-built code backup library according to the first hash value.
And S8, after the developer modifies the code, generating a second hash value according to the modified segmented backup code.
Step S9, the hash value of the modified segmented code is monitored, and when the second hash value is different from the first hash value, the related node of the modified segmented backup code is notified in a broadcasting mode;
step S10, the developer of other related nodes except the developer of the modified code views the modified segmented backup code and feeds back an instruction of agreeing to the modification or disagreeing to the modification.
For example, the relevant nodes of the segmented backup code are 6, developers of the modified code are removed, and developers of other 5 relevant nodes receive broadcast notification and view the modified code. Each relevant node may feed back either agreeing or disagreeing instructions.
Step S11, if the relative node feedback agrees to the modified instruction, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
It should be noted that although the operations of the method of the present invention are described in a particular order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the particular order or that all of the illustrated operations be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
Having described the method of an exemplary embodiment of the present invention, a description is next made of a processing system of a blockchain-based co-built code backup library of an exemplary embodiment of the present invention with reference to fig. 3 through 4.
The implementation of the processing system of the co-built code backup library based on the blockchain can be referred to the implementation of the method, and the repetition is omitted. The term "module" or "unit" as used below may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Based on the same inventive concept, the invention also provides a processing system of the co-built code backup library based on the block chain, as shown in fig. 3, the system comprises:
a deployment module 310, configured to deploy a co-built code backup library in a development environment, where the co-built code backup library stores segmented backup codes;
the hash operation module 320 is configured to perform hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, use the hash values as extraction passwords of each segment of backup codes in the co-built code backup library, and store the hash values in a blockchain;
the hash value extraction module 330 is configured to, when a developer needs to change the backup code, extract a first hash value corresponding to the segmented backup code that needs to be changed from the blockchain;
the code extraction module 340 is configured to extract, according to the first hash value, a backup code to be modified from the co-built code backup library;
the hash operation module 320 is further configured to generate a second hash value according to the modified segmented backup code after the developer modifies the code;
the monitoring broadcast module 350 is configured to monitor the hash value of the modified segment code, and notify the relevant node of the modified segment backup code by broadcasting when it is monitored that the second hash value is different from the first hash value;
the code overlay module 360 is configured to overlay the modified segment backup code with the original segment backup code and overlay the second hash value with the first hash value as a new extracted password of the modified segment backup code if the nodes exceeding a certain proportion agree to modify.
Further, referring to FIG. 4, a schematic diagram of a processing system architecture of a block chain based co-constructed code backup library according to an embodiment of the present invention is shown.
As shown in fig. 4, the system further includes:
the segmentation processing module 370 performs segmentation processing on the backup codes in the co-built code backup library to obtain segmented backup codes;
the node setting module 380 is configured to set corresponding relevant nodes for the segment backup code, where each relevant node corresponds to at least one developer.
In this embodiment, the code extraction module 340 is specifically configured to:
and verifying the first hash value, entering a co-built code backup library after verification is passed, and extracting a segmented backup code corresponding to the first hash value from the co-built code backup library.
Accordingly, after the monitoring broadcast module informs the relevant nodes of the modified segmented backup codes in a broadcast manner, the method further comprises the following steps:
and the developer of other related nodes except the developer of the modified code views the modified segmented backup code and feeds back instructions for agreeing to the modification or disagreeing to the modification.
In this embodiment, the code overlay module 360 is specifically configured to:
if the relative node feedback agrees with the modified instruction, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
It should be noted that while several modules of a blockchain-based co-built code backup library processing system are mentioned in the above detailed description, such partitioning is merely exemplary and not mandatory. Indeed, the features and functions of two or more modules described above may be embodied in one module in accordance with embodiments of the present invention. Conversely, the features and functions of one module described above may be further divided into a plurality of modules to be embodied.
Based on the foregoing inventive concept, as shown in fig. 5, the present invention further proposes a computer device 500, including a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and capable of running on the processor 520, where the processor 520 implements the foregoing method for processing a blockchain-based co-built code backup library when executing the computer program 530.
Based on the foregoing inventive concept, the present invention proposes a computer readable storage medium storing a computer program which, when executed by a processor, implements the foregoing method for processing a blockchain-based co-built code backup library.
The invention provides a processing method and a processing system of a co-built code backup library based on a blockchain, wherein the co-built code backup library is deployed in a development environment, and segmented backup codes are stored in the co-built code backup library; carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in a co-established code backup library, and storing the hash values in a blockchain; when a developer needs to change the backup code, a first hash value corresponding to the segmented backup code needing to be changed is taken out from the blockchain; extracting backup codes needing to be modified from the co-established code backup library according to the first hash value; after the developer modifies the code, generating a second hash value according to the modified segmented backup code; monitoring the hash value of the modified segmented code, and notifying the related node of the modified segmented backup code in a broadcasting mode when the second hash value is different from the first hash value; if the nodes exceeding a certain proportion agree to modify, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
It will be appreciated by those skilled in the art that 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 and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A processing method of a co-built code backup library based on a block chain is characterized by comprising the following steps:
deploying a co-built code backup library in a development environment, wherein the co-built code backup library stores segmented backup codes;
carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in a co-established code backup library, and storing the hash values in a blockchain;
when a developer needs to change the backup code, a first hash value corresponding to the segmented backup code needing to be changed is taken out from the blockchain;
extracting backup codes needing to be modified from the co-established code backup library according to the first hash value;
after the developer modifies the code, generating a second hash value according to the modified segmented backup code;
monitoring the hash value of the modified segmented code, and notifying the related node of the modified segmented backup code in a broadcasting mode when the second hash value is different from the first hash value;
if the nodes exceeding a certain proportion agree to modify, covering the original segmented backup code with the modified segmented backup code, and covering the first hash value with the second hash value to serve as a new extracted password of the modified segmented backup code;
the method for deploying the co-built code backup library in the development environment further comprises the following steps:
performing segmentation processing on backup codes in the co-established code backup library to obtain segmented backup codes;
and setting corresponding relevant nodes for the segmented backup codes, wherein each relevant node corresponds to at least one developer.
2. The method for processing the co-constructed code backup library based on the blockchain according to claim 1, wherein extracting the backup code to be modified from the co-constructed code backup library according to the first hash value comprises:
and verifying the first hash value, entering a co-built code backup library after verification is passed, and extracting a segmented backup code corresponding to the first hash value from the co-built code backup library.
3. The method for processing the blockchain-based co-constructed code backup library of claim 1, wherein monitoring the hash value of the modified segment code, and notifying the related node of the modified segment backup code by broadcasting when the second hash value is different from the first hash value is monitored, comprises:
and the developer of other related nodes except the developer of the modified code views the modified segmented backup code and feeds back instructions for agreeing to the modification or disagreeing to the modification.
4. The method for processing the blockchain-based co-constructed code backup library according to claim 3, wherein if more than a certain proportion of nodes agree to modify, the modified segmented backup code is overlaid on the original segmented backup code, and the second hash value is overlaid on the first hash value as a new extracted password of the modified segmented backup code, comprising:
if the relative node feedback agrees with the modified instruction, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
5. A processing system for a co-built code backup library based on a blockchain, the system comprising:
the deployment module is used for deploying a co-built code backup library in a development environment, wherein the co-built code backup library stores segmented backup codes;
the segmentation processing module is used for carrying out segmentation processing on the backup codes in the co-established code backup library to obtain segmented backup codes;
the node setting module is used for setting corresponding relevant nodes for the segmented backup codes, and each relevant node corresponds to at least one developer;
the hash operation module is used for carrying out hash operation on the segmented backup codes to obtain hash values of each segment of backup codes, taking the hash values as extraction passwords of each segment of backup codes in the co-built code backup library, and storing the hash values in a block chain;
the hash value extraction module is used for extracting a first hash value corresponding to the segmented backup code to be changed from the blockchain when the developer needs to change the backup code;
the code extraction module is used for extracting the backup codes needing to be modified from the co-built code backup library according to the first hash value;
the hash operation module is further used for generating a second hash value according to the modified segmented backup code after the developer modifies the code;
the monitoring broadcast module is used for monitoring the hash value of the modified segmented code, and notifying the related node of the modified segmented backup code in a broadcast mode when the second hash value is different from the first hash value;
and the code coverage module is used for covering the original segmented backup code with the modified segmented backup code and covering the first hash value with the second hash value if the nodes exceeding a certain proportion agree to modify, and taking the modified segmented backup code as a new extracted password of the modified segmented backup code.
6. The processing system of the co-constructed code backup library based on the blockchain of claim 5, wherein the code extraction module is specifically configured to:
and verifying the first hash value, entering a co-built code backup library after verification is passed, and extracting a segmented backup code corresponding to the first hash value from the co-built code backup library.
7. The processing system of the blockchain-based co-built code backup repository of claim 5, further comprising, after the monitoring broadcast module broadcasts the relevant nodes of the modified segmented backup code:
and the developer of other related nodes except the developer of the modified code views the modified segmented backup code and feeds back instructions for agreeing to the modification or disagreeing to the modification.
8. The processing system of a blockchain-based co-built code backup library of claim 7, wherein the code overlay module is specifically configured to:
if the relative node feedback agrees with the modified instruction, the modified segmented backup code is covered with the original segmented backup code, and the second hash value is covered with the first hash value to be used as a new extracted password of the modified segmented backup code.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 4 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 4.
CN202110543629.0A 2021-05-19 2021-05-19 Processing method and system of co-built code backup library based on block chain Active CN113220503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110543629.0A CN113220503B (en) 2021-05-19 2021-05-19 Processing method and system of co-built code backup library based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110543629.0A CN113220503B (en) 2021-05-19 2021-05-19 Processing method and system of co-built code backup library based on block chain

Publications (2)

Publication Number Publication Date
CN113220503A CN113220503A (en) 2021-08-06
CN113220503B true CN113220503B (en) 2024-04-16

Family

ID=77092918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110543629.0A Active CN113220503B (en) 2021-05-19 2021-05-19 Processing method and system of co-built code backup library based on block chain

Country Status (1)

Country Link
CN (1) CN113220503B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149316A (en) * 2019-04-22 2019-08-20 众安信息技术服务有限公司 A kind of dissemination method and device of block chain
CN110351363A (en) * 2019-07-12 2019-10-18 全链通有限公司 Data back up method, equipment and computer readable storage medium
WO2020259629A1 (en) * 2019-06-24 2020-12-30 深圳前海微众银行股份有限公司 Block chain-based data inspection method and apparatus
CN112182601A (en) * 2020-09-21 2021-01-05 中国科学院计算技术研究所 Domain name data storage method and system based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149316A (en) * 2019-04-22 2019-08-20 众安信息技术服务有限公司 A kind of dissemination method and device of block chain
WO2020259629A1 (en) * 2019-06-24 2020-12-30 深圳前海微众银行股份有限公司 Block chain-based data inspection method and apparatus
CN110351363A (en) * 2019-07-12 2019-10-18 全链通有限公司 Data back up method, equipment and computer readable storage medium
CN112182601A (en) * 2020-09-21 2021-01-05 中国科学院计算技术研究所 Domain name data storage method and system based on block chain

Also Published As

Publication number Publication date
CN113220503A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN105339890B (en) For running the frame of insincere code
Laprie Dependability: Basic concepts and terminology
US8225281B1 (en) Automated baseline deployment system
CN102099811B (en) A method and system for improvements in or relating to off-line virtual environments
EP1043659A2 (en) File signature check
CN105718762A (en) Basic input output system (BIOS) authentication method and apparatus
CN113220503B (en) Processing method and system of co-built code backup library based on block chain
CN105678118B (en) A kind of software version generation method and device containing digital certificate
CN112955889A (en) Safe starting device and method
CN111352835A (en) Intelligent contract testing method, device, equipment and storage medium
Olivieri et al. Ensuring determinism in blockchain software with GoLiSA: an industrial experience report
de Carné de Carnavalet et al. Challenges and implications of verifiable builds for security-critical open-source software
CN105812393A (en) Website protection device and method
CN110532783A (en) Data tamper resistant method, device, equipment and storage medium
CN116975792A (en) Data processing method, apparatus, computer device, storage medium, and program product
CN108228219B (en) Method and device for verifying BIOS validity during in-band refreshing of BIOS
CN111488306A (en) Attack and defense architecture system and construction method thereof
Yammanuru et al. Enabling enterprise blockchain appdev teams
CN113961292B (en) Security product generation method and device, electronic equipment and storage medium
EP3913486A1 (en) Closed loop monitoring based privileged access control
CN117411644B (en) Digital signature verification method and device, electronic equipment and storage medium
CN117034368B (en) Data integrity protection method, device, equipment and storage medium
CN111209002B (en) Development and deployment method for program package, server and computer readable storage medium
CN115758382A (en) Open source software detection method and device and electronic equipment
Hagerman et al. Security testing of an aerospace launch 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