A blockchain-based portal website template configuration method, device and medium
By writing the basic configuration information and file stream of the portal website template onto the blockchain and executing smart contracts, the problem of template tampering is solved, the security and uniqueness of template data are achieved, and the credibility and efficiency of configuration are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2026-03-20
AI Technical Summary
Existing portal website templates are susceptible to being tampered with and used by others, making it impossible to guarantee security.
By deploying a blockchain, the basic configuration information and file stream of the portal website template are written into the blockchain, and the pre-written smart contract is executed to configure the portal website template, thus protecting the template data by leveraging the immutability and security of the blockchain.
It ensures the security and uniqueness of portal website template data, prevents illegal tampering and imitation, and improves the credibility and efficiency of website template configuration.
Smart Images

Figure CN112559932B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present specification relates to the technical field of computers, and particularly relates to a portal website template configuration method based on a block chain, equipment and a medium. BACKGROUND
[0002] In the Internet era, in addition to carrying ordinary information, the portal website pays more and more attention to user experience and good interactivity, so that the portal website can be unique, that is, more choices and exclusivity can be obtained with little investment. In the current situation, if you want to make changes, it will increase the investment of research and development cost. However, the portal website template developed by the research and development exists the problem of being randomly tampered with and used by others, and the security of the portal website template cannot be guaranteed. SUMMARY
[0003] One or more embodiments of the present specification provide a portal website template configuration method based on a block chain, equipment and a medium, to solve the technical problem that the portal website template developed by the research and development exists the problem of being randomly tampered with and used by others, and the security of the portal website template cannot be guaranteed.
[0004] To solve the above technical problems, one or more embodiments of the present specification are implemented as follows:
[0005] One or more embodiments of the present specification provide a portal website template configuration method based on a block chain, and the method comprises:
[0006] Deploying a block chain, and writing the basic configuration information of the portal website template and the file stream of the portal website template into the block chain;
[0007] According to the basic configuration information of the portal website template and the file stream of the portal website template, executing the portal website template smart contract written in advance to configure the portal website template.
[0008] Further, the basic configuration information of the portal website template comprises one or more of the number of blocks of the portal website template, the template name, the block style attribute, the block display layout, the block configuration time, the block effective time, the block preview link and the block HASH value.
[0009] Further, the basic configuration information of the portal website template further comprises attribute information of a display template, wherein the attribute information of the display template is a corresponding data table structure in a block basic attribute model of the portal website template.
[0010] Further, the corresponding data table structure in the block attribute model of the portal template block includes one or more of the block id, block sequence number, block size, block update rule, block attribute value, block text content, block rule, block creation time, block update time, and block invalidation time of the portal template.
[0011] Further, the file stream of the portal template is the corresponding data table structure in the file stream model of the portal template, wherein the corresponding data table structure in the file stream model of the portal template includes one or more of the encrypted stream id, encrypted stream serial number, encrypted stream type, encrypted stream size, encrypted stream file generation, file generation times, file generation time, encrypted stream random times, and update times of the portal template.
[0012] Further, before executing the pre-written portal template smart contract, the method further includes:
[0013] writing the update mechanism into the blockchain and executing the portal template smart contract according to the update mechanism.
[0014] Further, the update mechanism is the corresponding data table structure in the update mechanism configuration model of the portal template, wherein the corresponding data table structure in the update mechanism configuration model includes one or more of the update configuration times, update configuration rule, update configuration time, update configuration block, update configuration secret key, update configuration times, update configuration parsing time, update configuration parsing content, update configuration failure times, and update configuration log path of the portal template.
[0015] Further, before executing the pre-written portal template smart contract, the method further includes:
[0016] writing the portal website download mechanism into the blockchain and executing the portal template smart contract according to the portal website download mechanism, wherein the portal website download mechanism is to identify the data stream according to user access and download the portal website required to be accessed by the user.
[0017] One or more embodiments of the present specification provide a portal template configuration device based on a blockchain, the device comprising:
[0018] at least one processor; and
[0019] a memory in communication connection with the at least one processor; wherein
[0020] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0021] deploying a blockchain, and writing the basic configuration information of the portal website template and the file stream of the portal website template into the blockchain;
[0022] According to the basic configuration information of the portal website template and the file stream of the portal website template, a pre-written portal website template smart contract is executed to configure the portal website template.
[0023] One or more embodiments of the present specification provide a portal website template configuration medium based on a blockchain, which stores computer executable instructions, and the computer executable instructions are configured to:
[0024] deploying a blockchain, and writing the basic configuration information of the portal website template and the file stream of the portal website template into the blockchain;
[0025] According to the basic configuration information of the portal website template and the file stream of the portal website template, a pre-written portal website template smart contract is executed to configure the portal website template.
[0026] The above at least one technical solution adopted by one or more embodiments of the present specification can achieve the following beneficial effects: based on the technical characteristics of the blockchain, the portal website template data is saved by a distributed node, which can effectively prevent the template data from being illegally tampered with and copied. BRIEF DESCRIPTION OF DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the drawings needed in the embodiment or prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments described in the present specification, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.
[0028] Figure 1 A flowchart of a portal website template configuration method based on a blockchain provided by one or more embodiments of the present specification is shown in the figure;
[0029] Figure 2 Another flowchart of a portal website template configuration method based on a blockchain provided by one or more embodiments of the present specification is shown in the figure. DETAILED DESCRIPTION
[0030] In order for those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the specification will be clearly and completely described below in combination with the drawings in the specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments of the specification, all other embodiments obtained by those of ordinary skill in the art without creative labor should fall within the scope of protection of the present application.
[0031] The portal is understood in a broad sense as a Web application framework that integrates various application systems, data resources and Internet resources on an information management platform, and provides a unified user interface to users, and establishes information channels for enterprises to customers, enterprises to internal employees and enterprises to enterprises, so that enterprises can release various information stored in the enterprise. The portal is understood in a narrow sense as an application system that provides certain comprehensive Internet information resources and provides related information services. The portal initially provides search engines, directory services.
[0032] Figure 1 A flowchart of a blockchain-based portal template configuration method provided by one or more embodiments of the specification. The one or more embodiments of the specification can be executed by the execution unit of the portal template configuration system to execute the following steps, and the specific steps can include:
[0033] Step S101, deploy a blockchain, and write the basic configuration information of the portal template and the file stream of the portal template into the blockchain.
[0034] In one or more embodiments of the specification, the blockchain is a decentralized distributed storage technology, which has the characteristics of credibility, non-tamperability, security and privacy. These characteristics determine that it is particularly suitable for recording the trusted research and development management process. The data recorded on the blockchain is saved in distributed accounting nodes, and the data modification of a single node or a few nodes will not take effect, so that the data on the blockchain cannot be tampered with. Writing the basic configuration information of the portal template and the file stream of the portal template into the blockchain can ensure the security and non-tamperability of the portal template, and can well protect the rights and interests of the researchers.
[0035] In one or more embodiments of the specification, a default basic configuration of the portal template can be formulated according to the business data of the portal. Users can modify and improve based on the basic configuration, and can dynamically configure and respectively formulate the chain.
[0036] In one or more embodiments of the present specification, the basic configuration information of the portal template includes one or more of the number of blocks of the portal template, the template name, the block style attribute (color, font, etc.), the block display layout, the block configuration time, the block effective time, the block preview link, and the block HASH value.
[0037] The basic configuration information of the portal template further includes attribute information of a display template, wherein the attribute information of the display template is a corresponding data table structure and form page structure in a block basic attribute model of the portal template.
[0038] The corresponding data table structure and form page structure in the block basic attribute model of the portal template include one or more of the block id, the block serial number, the block size, the block update rule, the block attribute value, the block text content, the block rule, the block creation time, the block update time, and the block invalidation time of the portal template.
[0039] In one or more embodiments of the present specification, after the basic configuration of the portal template is completed, the portal template can be generated, and the generated content can be stored in a chain in the form of a blockchain asymmetric encryption stream or a symmetric encryption stream.
[0040] In one or more embodiments of the present specification, the file stream of the portal template is a corresponding data table structure and form page structure in a file stream model of the portal template, wherein the corresponding data table structure and form page structure in the file stream model of the portal template include one or more of the encryption stream id, the encryption stream serial number, the encryption stream type, the encryption stream size, whether the encryption stream generates a file, the number of generated files, the file generation time, the number of random encryption streams, and the number of updates of the portal template.
[0041] Step S102, according to the basic configuration information of the portal template and the file stream of the portal template, executing a pre-written portal template smart contract to configure the portal template.
[0042] In one or more embodiments of the present specification, writing data to the blockchain is achieved by deploying a portal template smart contract. The so-called smart contract is actually an automatically executable code program that contains endorsement strategies, endorsement logic, data interfaces, and other solutions to trust problems. It realizes the uniqueness, storage security of the portal template, and can use the blockchain HASH value to perform a random algorithm to generate different templates, achieving flexibility and novelty of the template.
[0043] Further, in one or more embodiments of the present specification, before executing the pre-written portal template smart contract, the method further includes:
[0044] The update mechanism is written into the blockchain, and the portal template smart contract is executed according to the update mechanism.
[0045] The update mechanism is a corresponding data table structure and form page structure in the update mechanism configuration model of the portal template, wherein the corresponding data table structure and form page structure in the update mechanism configuration model include one or more of the update configuration number, update configuration rule, update configuration time, update configuration panel, update configuration secret key, update configuration number, update configuration analysis time, update configuration analysis content, update configuration failure number and update configuration log path of the portal template.
[0046] Further, in one or more embodiments of the present specification, before executing the pre-written portal template smart contract, the method further comprises:
[0047] The portal website download mechanism is written into the blockchain, and the portal template smart contract is executed according to the portal website download mechanism, wherein the portal website download mechanism is to identify the data stream according to user access and download the portal website required by the user to access.
[0048] Need to be explained, in one or more embodiments of the present specification, when the portal website is started, the file stream is pulled from the blockchain and parsed to generate a template file, which is used for user access. The file stream accessed by the user each time is different, and the server will identify, update and judge the legality of the file stream.
[0049] One or more embodiments of the present specification develop a file stream encryption algorithm based on the technical characteristics of the blockchain, which is safer and more reliable. At the same time, one or more embodiments of the present specification based on the technical characteristics of the blockchain, the portal template data is saved by distributed nodes, which solves the possibility of illegal tampering and imitation of template data. In addition, one or more embodiments of the present specification provide all-round trusted data guarantee for portal template configuration, and comprehensively improve the high availability and efficiency of website template configuration.
[0050] In one or more embodiments of the present specification, there is another flowchart of the portal template configuration method based on the blockchain, see Figure 2 , shows another flowchart of the portal template configuration method based on the blockchain provided by one or more embodiments of the present specification, specifically as follows:
[0051] At the beginning, the developer sorts the portal template basic configuration, and performs data chaining operation on the sorted portal template basic configuration, uploads the portal template basic configuration to the blockchain. Then set the portal template encryption rule, and upload the portal template encryption rule to the blockchain. Then generate the portal template file stream, and upload the portal template file stream to the blockchain, wherein the portal template file stream can be generated based on the portal template encryption rule. Then set the portal template update mechanism, and upload the update mechanism to the blockchain. Users can configure the portal template according to the requirements, and can publish the portal after the configuration is completed.
[0052] One or more embodiments of the present specification provide a portal template configuration device based on a blockchain, and the device comprises:
[0053] at least one processor; and
[0054] a memory connected in communication with the at least one processor; wherein
[0055] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0056] deploy a blockchain, and write the basic configuration information of the portal template and the file stream of the portal template into the blockchain;
[0057] According to the basic configuration information of the portal template and the file stream of the portal template, execute the pre-written portal template smart contract to configure the portal template.
[0058] One or more embodiments of the present specification provide a portal template configuration medium based on a blockchain, and the medium stores computer executable instructions, and the computer executable instructions are set to:
[0059] deploy a blockchain, and write the basic configuration information of the portal template and the file stream of the portal template into the blockchain;
[0060] According to the basic configuration information of the portal template and the file stream of the portal template, execute the pre-written portal template smart contract to configure the portal template.
[0061] In the 1990s, it was quite obvious to distinguish whether an improvement in a technology was in hardware (e.g., improvement in circuit structures of diodes, transistors, switches, etc.) or in software (improvement in method flow). However, as technology has evolved, many improvements in method flow today can be considered as direct improvements in hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structures by programming the improved method flow into hardware circuits. Therefore, it cannot be said that an improvement in a method flow cannot be implemented by hardware entity modules. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. A digital system is "integrated" on a PLD by the designer programming it, rather than by asking a chip manufacturer to design and fabricate a custom integrated circuit chip. Moreover, instead of manually fabricating integrated circuit chips, this programming is now mostly implemented by "logic compiler" software, which is similar to software compilers used in program development, and the original code to be compiled is written in a specific programming language, which is called a hardware description language (HDL), and there are many such languages, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., and the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should be aware that, as long as the method flow is logically programmed in the above-mentioned hardware description languages and programmed into an integrated circuit, a hardware circuit implementing the logical method flow can be easily obtained.
[0062] The controller can be implemented in any suitable way, for example, the controller can take the form of a microprocessor or processor and a computer readable medium storing computer readable program code, such as 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 can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that, in addition to being implemented in pure computer readable program code, the controller can equally well be implemented to perform the same functions using logic gates, switches, an application specific integrated circuit, a programmable logic controller and an embedded microcontroller, etc. by means of a logical programming of the method steps. The controller can thus be considered as a hardware component, and the means comprised therein for performing the various functions can be considered as structures within the hardware component. Alternatively, the means for performing the various functions can even be considered as both a software module implementing the method and a structure within the hardware component.
[0063] The systems, apparatuses, modules or units illustrated by the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, 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.
[0064] For the sake of description, the above apparatuses are described in functional division and are described respectively. Of course, the functions of the units can be implemented in the same or multiple software and / or hardware when implementing the present specification.
[0065] Those skilled in the art will understand that the embodiments of the present specification can be provided as a method, a system or a computer program product. Therefore, the embodiments of the present specification can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0066] The specification is presented with reference to flow diagrams and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing element 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 flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product in a particular, it is understood that the method, apparatus and computer program product can include one or more additional steps, operations, or functions, and the method, apparatus and computer program product can include one or more other steps, operations, functions or combinations of steps, operations, or functions in Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product in a particular, it is understood that the method, apparatus and computer program product can include one or more additional steps, operations, or functions, and the method, apparatus and computer program product can include one or more other steps, operations, functions or combinations of steps, operations, or functions in
[0067] The computer program instructions can also be loaded into 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 flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product in a particular, it is understood that the method, apparatus and computer program product can include one or more additional steps, operations, or functions, and the method, apparatus and computer program product can include one or more other steps, operations, functions or combinations of steps, operations, or functions in Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product in a particular, it is understood that the method, apparatus and computer program product can include one or more additional steps, operations, or functions, and the method, apparatus and computer program product can include one or more other steps, operations, functions or combinations of steps, operations, or functions in
[0068] The computer program instructions can also be loaded into 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 flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product in a particular, it is understood that the method, apparatus and computer program product can include one or more additional steps, operations, or functions, and the method, apparatus and computer program product can include one or more other steps, operations, functions or combinations of steps, operations, or functions in Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product in a particular, it is understood that the method, apparatus and computer program product can include one or more additional steps, operations, or functions, and the method, apparatus and computer program product can include one or more other steps, operations, functions or combinations of steps, operations, or functions in
[0069] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0070] The memory can include non-persistent memory, random access memory (RAM), and / or non-volatile memory, etc. in the form of a computer-readable medium, such as read only memory (ROM) or flash memory. The memory is an example of computer-readable media.
[0071] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0072] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
[0073] The specification can be described in the general context of computer-executable instructions, such as program modules, executed by computers. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The specification can also be practiced in a distributed computing environment, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0074] Each embodiment in the specification is described in a progressive manner, and the same or similar parts between each embodiment can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for device, equipment, non-volatile computer storage medium embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0075] The above-described embodiments of the application have special structure and can achieve the desired results. Other embodiments can have different structures and achieve the same results. The purpose of the above-described embodiments is to illustrate the principles of the application and not to limit the scope of the application. The scope of the application is defined by the claims and their equivalents. Other embodiments are within the scope of the claims.
[0076] The above description is merely illustrative of the embodiments of the present application and is not intended to limit the scope of the present application. Various modifications can be made by those skilled in the art based upon the teachings disclosed herein. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present application shall fall within the scope of the claims of the present application.
Claims
1.A blockchain-based portal website template configuration method, characterized in that, The method comprises: Deploying a blockchain, and writing basic configuration information of a portal template and a file stream of the portal template into the blockchain; According to the basic configuration information of the portal template and the file stream of the portal template, executing a pre-written portal template smart contract to configure a portal template; The basic configuration information of the portal template comprises one or more of the following: the number of blocks of the portal template, the template name, the block style attribute, the block display layout, the block configuration time, the block effective time, the block preview link, and the block HASH value; The basic configuration information of the portal template further comprises attribute information of a display template, wherein the attribute information of the display template is a corresponding data table structure in a block basic attribute model of the portal template; The corresponding data table structure in the block basic attribute model of the portal template comprises one or more of the following: the block id of the portal template, the block serial number, the block size, the block update rule, the block attribute value, the block text content, the block rule, the block creation time, the block update time, and the block invalidation time; The file stream of the portal template is a corresponding data table structure in a file stream model of the portal template, wherein the corresponding data table structure in the file stream model of the portal template comprises one or more of the following: the encrypted stream id of the portal template, the encrypted stream serial number, the encrypted stream type, the encrypted stream size, whether the encrypted stream generates a file, the number of generated files, the file generation time, the number of random times of the encrypted stream, and the number of updates; Before the execution of the pre-written portal template smart contract, the method further comprises: Writing an update mechanism into the blockchain, and executing the portal template smart contract according to the update mechanism; the update mechanism is a corresponding data table structure in an update mechanism configuration model of the portal template, wherein the corresponding data table structure in the update mechanism configuration model comprises one or more of the following: the number of update configuration times of the portal template, the update configuration rule, the update configuration time, the update configuration block, the update configuration secret key, the number of update configuration times, the update configuration analysis time, the update configuration analysis content, the number of update configuration failure times, and the update configuration log path; Before the execution of the pre-written portal template smart contract, the method further comprises: Writing a portal website download mechanism into the blockchain, and executing the portal template smart contract according to the portal website download mechanism, wherein the portal website download mechanism is to identify the data stream according to user access, and download the portal website required to be accessed by the user; When the portal website is started, the file stream is pulled from the blockchain and parsed to generate a template file, which is used for user access; the file stream accessed by the user each time is different, the server identifies, updates and judges the legality of the file stream in a timely manner. 2.A blockchain-based portal website template configuration device, characterized by, The device comprises: at least one processor; and a memory connected in communication with the at least one processor; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Deploy a blockchain, and write the basic configuration information of the portal template and the file stream of the portal template into the blockchain; According to the basic configuration information of the portal template and the file stream of the portal template, execute the pre-written portal template smart contract to configure the portal template; The basic configuration information of the portal template includes one or more of the number of blocks of the portal template, the template name, the block style attribute, the block display layout, the block configuration time, the block effective time, the block preview link, and the block HASH value; The basic configuration information of the portal template further includes attribute information of a display template, wherein the attribute information of the display template is a corresponding data table structure in a block basic attribute model of the portal template; The corresponding data table structure in the block basic attribute model of the portal template includes one or more of the block id of the portal template, the block serial number, the block size, the block update rule, the block attribute value, the block text content, the block rule, the block creation time, the block update time, and the block invalidation time; The file stream of the portal template is a corresponding data table structure in a file stream model of the portal template, wherein the corresponding data table structure in the file stream model of the portal template includes one or more of the encrypted stream id of the portal template, the encrypted stream serial number, the encrypted stream type, the encrypted stream size, whether the encrypted stream generates a file, the number of generated files, the file generation time, the number of random times of the encrypted stream, and the number of updates; Before executing the pre-written portal template smart contract, further comprising: Write an update mechanism into the blockchain, and execute the portal template smart contract according to the update mechanism; the update mechanism is a corresponding data table structure in an update mechanism configuration model of the portal template, wherein the corresponding data table structure in the update mechanism configuration model includes one or more of the update configuration number of the portal template, the update configuration rule, the update configuration time, the update configuration block, the update configuration secret key, the update configuration number, the update configuration analysis time, the update configuration analysis content, the number of update configuration failures, and the update configuration log path; Before executing the pre-written portal template smart contract, further comprising: Write a portal website download mechanism into the blockchain, and execute the portal template smart contract according to the portal website download mechanism, wherein the portal website download mechanism is to identify the data stream according to user access, and download the portal website required to be accessed by the user; When the portal website is started, pull the file stream from the blockchain and parse to generate a template file, which is used for user access; the file stream accessed by the user each time is different, the server identifies, updates and judges the legality of the file stream in a timely manner. 3.A blockchain-based portal template configuration medium having stored computer executable instructions, characterized in that, The computer executable instructions are set to: Deploying a blockchain, and writing the basic configuration information of the portal template and the file stream of the portal template into the blockchain; According to the basic configuration information of the portal template and the file stream of the portal template, executing the pre-written portal template smart contract to configure the portal template; The basic configuration information of the portal template includes one or more of the following: the number of blocks of the portal template, the template name, the block style attribute, the block display layout, the block configuration time, the block effective time, the block preview link, and the block HASH value. The basic configuration information of the portal template also includes attribute information of the display template, wherein the attribute information of the display template is a corresponding data table structure in the block basic attribute model of the portal template. The corresponding data table structure in the block basic attribute model of the portal template includes one or more of the following: the block id of the portal template, the block serial number, the block size, the block update rule, the block attribute value, the block text content, the block rule, the block creation time, the block update time, and the block invalidation time. The file stream of the portal template is a corresponding data table structure in the file stream model of the portal template, wherein the corresponding data table structure in the file stream model of the portal template includes one or more of the following: the encrypted stream id of the portal template, the encrypted stream serial number, the encrypted stream type, the encrypted stream size, whether the encrypted stream generates a file, the number of generated files, the file generation time, the number of random times of the encrypted stream, and the number of updates. Before executing the pre-written portal template smart contract, the following steps are further included: Write an update mechanism into the blockchain, and execute the portal template smart contract according to the update mechanism; the update mechanism is a corresponding data table structure in the update mechanism configuration model of the portal template, wherein the corresponding data table structure in the update mechanism configuration model includes one or more of the following: the number of update configuration times of the portal template, the update configuration rule, the update configuration time, the update configuration block, the update configuration secret key, the number of update configuration times, the update configuration analysis time, the update configuration analysis content, the number of update configuration failure times, and the update configuration log path. Before executing the pre-written portal template smart contract, the following steps are further included: Write a portal website download mechanism into the blockchain, and execute the portal template smart contract according to the portal website download mechanism, wherein the portal website download mechanism is to identify the data stream according to user access and download the portal website required by the user to access; When the portal website is started, the file stream is pulled from the blockchain and parsed to generate a template file, which is used for user access; the file stream accessed by the user each time is different, and the server identifies, updates and judges the legality of the file stream in a timely manner.
Citation Information
Patent Citations
Website tamper-proof system and a method based on a block chain
CN109257340A