CN110135188A - A kind of electronics license storage method and device based on block chain - Google Patents

A kind of electronics license storage method and device based on block chain Download PDF

Info

Publication number
CN110135188A
CN110135188A CN201910348806.2A CN201910348806A CN110135188A CN 110135188 A CN110135188 A CN 110135188A CN 201910348806 A CN201910348806 A CN 201910348806A CN 110135188 A CN110135188 A CN 110135188A
Authority
CN
China
Prior art keywords
electronics license
module
sub
pictures
supergraph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910348806.2A
Other languages
Chinese (zh)
Inventor
钟勇
霍颖瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan University
Original Assignee
Foshan University
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 Foshan University filed Critical Foshan University
Priority to CN201910348806.2A priority Critical patent/CN110135188A/en
Publication of CN110135188A publication Critical patent/CN110135188A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of electronics license storage method and device based on block chain, method includes: the electronics license for distributing the first number and storing to needs;The electronics license stored will be needed to change into picture format, obtain supergraph piece;Supergraph piece is successively cut, N sub-pictures are obtained;The label number that first number and characterization cut sequence is associated with N sub-pictures respectively;Create N number of memory block;It is stored in what the N after association sub-pictures were distributed in N number of memory block;Wherein, N is natural number, N >=2.Device includes: distribution module, picture conversion module, cuts module, relating module, memory block creation module and memory module;Electronics license is broken the whole up into parts, by distributed storage mode, electronics license is effectively stored, avoid global storage and electronics license is caused to divulge a secret situation.The present invention can be used for computer field.

Description

A kind of electronics license storage method and device based on block chain
Technical field
The present invention relates to field of computer technology, in particular to a kind of electronics license storage method and dress based on block chain It sets.
Background technique
Block chain is a kind of database of decentralization, it includes the list for being referred to as block, there is sustainable growth And the record of marshalling.Each block includes a timestamp and one and previous block links: design block chain So that data can not distort, once recording, the data in a block will be irreversible.The design of block chain is a kind of guarantor Shield measure, such as (being applied to) distributed computing system highly fault tolerant.Block chain makes it possible to mix consistency.This makes block Chain be suitble to record event, title, medical records and other need to include the activity of data, identification management, transaction flow pipe Reason and source prove management.
The existing storage method for electronics license is generally stored in a database, but this storage side Formula, when database is captured by hacker, the information of electronics license is easy to be grasped by hacker, to cause the possibility divulged a secret.It gives User brings loss.
Summary of the invention
The object of the present invention is to provide the storage methods and device of a kind of electronics license, must be thought by the decentralization of block chain Want to store electronics license, improves the reliability of storage.
The solution that the present invention solves its technical problem is: a kind of electronics license storage method based on block chain, packet It includes: the electronics license that step 1, the first number of distribution are stored to needs;Step 2 will need the electronics license stored to change into picture Format obtains supergraph piece;Step 3 successively cuts supergraph piece, obtains N sub-pictures;Step 4, by first number and table The label number that sign cuts sequence is associated with N sub-pictures respectively;Step 5, the N number of memory block of creation;Step 6 will be associated with What N sub-pictures after finishing were distributed is stored in N number of memory block;Wherein, N is natural number, N >=2.
Further, in step 2, the format of supergraph piece is jpg.
It further, in step 3, include: to supergraph piece using rectangle template from a left side by the method that supergraph piece is cut It turns right and successively cuts.
Further, the length of the rectangle template is adapted with the width of supergraph piece, and the width of the rectangle template is 20-50 picture Vegetarian refreshments.
Further, the width of the rectangle template is 30 pixels.
Further, in step 4, the label number that the first number and characterization cut sequence is carried out with N sub-pictures respectively Associated method includes: to form character string with the label number that the first number and characterization cut sequence, with the character string to sub-pictures It is named, completes association.
It further, in step 6, further include that the N after association sub-pictures are compressed.
A kind of electronics license storage device based on block chain, comprising: distribution module, picture conversion module, cut module, Relating module, memory block creation module and memory module;The distribution module is used to distribute the electricity that the first number is stored to needs Sub- license;The picture conversion module is used to the electronics license for needing to store changing into picture format, obtains supergraph piece;The sanction Module is cut for successively cutting supergraph piece, obtains N sub-pictures;The relating module is used for the first number and characterization The label number for cutting sequence is associated with N sub-pictures respectively;The memory block creation module is for creating N number of memory block; The memory module is used for being stored in N sub-pictures distributions after association in N number of memory block;Wherein, N is nature Number, N >=2.
Further, electronics license storage device further includes compression module, and the compression module is used for the N after association Sub-pictures are opened to be compressed.
The beneficial effects of the present invention are: electronics license is broken the whole up into parts, by distributed storage mode, by electronics license It effectively stores, avoid global storage and electronics license is caused to divulge a secret situation.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described.Obviously, described attached drawing is a part of the embodiments of the present invention, rather than is all implemented Example, those skilled in the art without creative efforts, can also be obtained according to these attached drawings other designs Scheme and attached drawing.
Fig. 1 is the step flow chart of storage method;
Fig. 2 is the module frame chart of storage system.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear Chu is fully described by, to be completely understood by the purpose of the present invention, feature and effect.Obviously, described embodiment is this hair Bright a part of the embodiment, rather than whole embodiments, based on the embodiment of the present invention, those skilled in the art are not being paid Other embodiments obtained, belong to the scope of protection of the invention under the premise of creative work.In addition, be previously mentioned in text All connection/connection relationships not singly refer to that component directly connects, and referring to can be added deduct according to specific implementation situation by adding Few couple auxiliary, Lai Zucheng more preferably coupling structure.Each technical characteristic in the invention, in not conflicting conflict Under the premise of can be with combination of interactions.
Embodiment 1, with reference to Fig. 1, a kind of electronics license storage method based on block chain, comprising:
The electronics license that step 1, the first number of distribution are stored to needs;
Step 2 will need the electronics license stored to change into picture format, obtain supergraph piece;
Step 3 successively cuts supergraph piece, obtains N sub-pictures;
Step 4, the label number that the first number and characterization are cut to sequence are associated with N sub-pictures respectively;
Step 5, the N number of memory block of creation;
Step 6 is stored in what the N after association sub-pictures were distributed in N number of memory block;Wherein, N is natural number, N ≥2。
Specifically, the first number is for distinguishing different electronics licenses to needing to store the first number of electronics license distribution Identifier, first number can be a numeric string.In order to enable electronics license is unitized, so to the lattice of electronics license Formula is uniformly converted into picture format, obtains supergraph piece.Wherein, as optimization, the format of supergraph piece is jpg format, because of jpg lattice Formula has the characteristics that high-quality, compression ratio is high, therefore, the format of supergraph piece is changed into jpg format, is conducive to subsequent storage. Supergraph piece is cut, to obtain N sub-pictures, wherein by the method that supergraph piece is cut include: to utilize rectangular mold Plate successively cuts supergraph piece from left to right.Wherein, the length of rectangle template is adapted with the width of supergraph piece, the rectangle template Width is 20-50 pixel.Optimal, the width of rectangle template is 30 pixels.Supergraph piece is broken the whole up into parts in this way, Obtain N number of sub-pictures.Certainly, by the method for supergraph piece cut can also there are many kinds of, for example special-shaped sanction can be used The template cut carries out irregular cut to supergraph piece.
In step 4, the side label number that the first number and characterization cut sequence being associated with N sub-pictures respectively Method includes: to form character string with the label number that the first number and characterization cut sequence, is named with the character string to sub-pictures, Complete association.
When being cut from left to right to supergraph piece, the label number of first sub-pictures cut is " 1 ", is cut The label number of second obtained sub-pictures is " 2 ", and so on, i.e. the label number of N sub-pictures is " N ".At this point, by One number with label number forms character string to name corresponding sub-pictures, i.e., names in the form of " the first number+label number " Sub-pictures.For example, the naming method of first sub-pictures is " the first number+1 ".In this way, the pass of sub-pictures is completed Connection.
After association, so that it may be stored in what N number of sub-pictures were distributed in N number of memory block.Complete storing process.When So, in order to save memory space, after association, N number of sub-pictures can be compressed respectively, then by compressed son Picture storage.
The disclosure it is creative electronics license is converted into picture format, and by pictured whole being stored in not for zero cloth In same memory block.Electronics license is stored by the thought of distributed storage, global storage is avoided and electronics license is caused to divulge a secret Situation.
Wherein, using the first number of distribution as the unique identification of electronics license.It can number by first from storage Sub-pictures are searched out in block, electronics license is successively then reconstructed by the label number on sub-pictures, complete storage extraction process.
With reference to Fig. 2, a kind of electronics license storage device based on block chain, comprising: distribution module, picture conversion module, Cut module, relating module, memory block creation module and memory module.
Specifically, distribution module is to needing to store the first number of electronics license distribution, the first number is for distinguishing difference The identifier of electronics license, the first number can be a numeric string.In order to enable electronics license unitizes, picture modulus of conversion Block is converted into picture format to the uniform format of electronics license, obtains supergraph piece.Wherein, the format of supergraph piece is jpg format, because Have the characteristics that high-quality, compression ratio is high for jpg format, therefore, the format of supergraph piece is changed into jpg format, is conducive to below Storage.
It cuts module to cut supergraph piece, to obtain N sub-pictures, wherein cut module and carry out supergraph piece The method cut includes: successively to be cut from left to right using rectangle template to supergraph piece.Wherein, the length of rectangle template and supergraph piece Width be adapted, the width of the rectangle template is 20-50 pixel.Optimal, the width of rectangle template is 30 pixels. Supergraph piece is broken the whole up into parts in this way, obtains N number of sub-pictures.
The label number that first number and characterization cut sequence is associated with N sub-pictures by relating module respectively, wherein Associated method includes: to form character string with the label number that the first number and characterization cut sequence, with the character string to sub-pictures It is named, completes association.
When being cut from left to right to supergraph piece, the label number of first sub-pictures cut is " 1 ", is cut The label number of second obtained sub-pictures is " 2 ", and so on, i.e. the label number of N sub-pictures is " N ".At this point, by One number with label number forms character string to name corresponding sub-pictures, i.e., names in the form of " the first number+label number " Sub-pictures.For example, the naming method of first sub-pictures is " the first number+1 ".In this way, the pass of sub-pictures is completed Connection.
Memory block creation module is for creating N number of memory block;
Memory module is used for being stored in N sub-pictures distributions after association in N number of memory block;Wherein, N is certainly So number, N >=2.
Further, electronics license storage device further includes compression module, and the compression module is used for the N after association Sub-pictures are opened to be compressed.
A kind of electronics license storage device based on block chain can run on desktop PC, notebook, the palm Upper computer and cloud server etc. calculate in equipment.A kind of electronics license storage device based on block chain, can run Device may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that the example is only one kind The example of electronics license storage device based on block chain does not constitute the electronics license storage device to a kind of based on block chain Restriction, may include component more more or fewer than example, perhaps combine certain components or different components, such as institute Stating a kind of electronics license storage device based on block chain can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor is a kind of control centre of electronics license storage device running gear based on block chain, using each Kind of interface and a kind of entire electronics license storage device based on block chain of connection can running gear various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization A kind of various functions of the electronics license storage device based on block chain.The memory can mainly include storing program area and deposit Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast Playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio according to mobile phone Data, phone directory etc.) etc..In addition, memory may include high-speed random access memory, it can also include non-volatile memories Device, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatibility are solid State memory device.
Better embodiment of the invention is illustrated above, but the invention is not limited to the implementation Example, those skilled in the art can also make various equivalent modifications on the premise of without prejudice to spirit of the invention or replace It changes, these equivalent variation or replacement are all included in the scope defined by the claims of the present application.

Claims (9)

1. a kind of electronics license storage method based on block chain characterized by comprising
The electronics license that step 1, the first number of distribution are stored to needs;
Step 2 will need the electronics license stored to change into picture format, obtain supergraph piece;
Step 3 successively cuts supergraph piece, obtains N sub-pictures;
Step 4, the label number that the first number and characterization are cut to sequence are associated with N sub-pictures respectively;
Step 5, the N number of memory block of creation;
Step 6 is stored in what the N after association sub-pictures were distributed in N number of memory block;
Wherein, N is natural number, N >=2.
2. a kind of electronics license storage method based on block chain according to claim 1, which is characterized in that in step 2 In, the format of supergraph piece is jpg.
3. a kind of electronics license storage method based on block chain according to claim 1, which is characterized in that in step 3 In, it include: successively to be cut from left to right using rectangle template to supergraph piece by the method that supergraph piece is cut.
4. a kind of electronics license storage method based on block chain according to claim 3, which is characterized in that the rectangle The length of template is adapted with the width of supergraph piece, and the width of the rectangle template is 20-50 pixel.
5. a kind of electronics license storage method based on block chain according to claim 4, which is characterized in that the rectangle The width of template is 30 pixels.
6. a kind of electronics license storage method based on block chain according to claim 1, which is characterized in that in step 4 In, it include: to be compiled with first by the method that the label number that the first number and characterization cut sequence is associated with N sub-pictures respectively Number and characterization cut sequence label number composition character string, sub-pictures are named with the character string, complete association.
7. a kind of electronics license storage method based on block chain according to claim 1, which is characterized in that in step 6 In, it further include that the N after association sub-pictures are compressed.
8. a kind of electronics license storage device based on block chain characterized by comprising distribution module, picture conversion module, Cut module, relating module, memory block creation module and memory module;
The distribution module is used to distribute the electronics license that the first number is stored to needs;
The picture conversion module is used to the electronics license for needing to store changing into picture format, obtains supergraph piece;
The module that cuts obtains N sub-pictures for successively cutting supergraph piece;
The label number that the relating module is used to cut the first number and characterization sequence is associated with N sub-pictures respectively;
The memory block creation module is for creating N number of memory block;
The memory module is used for being stored in N sub-pictures distributions after association in N number of memory block;
Wherein, N is natural number, N >=2.
9. a kind of electronics license storage device based on block chain according to claim 8, which is characterized in that further include pressure Contracting module, the compression module are used to compress the N after association sub-pictures.
CN201910348806.2A 2019-04-28 2019-04-28 A kind of electronics license storage method and device based on block chain Pending CN110135188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910348806.2A CN110135188A (en) 2019-04-28 2019-04-28 A kind of electronics license storage method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910348806.2A CN110135188A (en) 2019-04-28 2019-04-28 A kind of electronics license storage method and device based on block chain

Publications (1)

Publication Number Publication Date
CN110135188A true CN110135188A (en) 2019-08-16

Family

ID=67575470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910348806.2A Pending CN110135188A (en) 2019-04-28 2019-04-28 A kind of electronics license storage method and device based on block chain

Country Status (1)

Country Link
CN (1) CN110135188A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160284317A1 (en) * 2015-03-24 2016-09-29 Xinyu Xingbang Information Industry Co., Ltd. Method, device and system for loading and displaying pictures
CN106997525A (en) * 2017-04-10 2017-08-01 山大地纬软件股份有限公司 Digital license system based on block chain technology
CN107194266A (en) * 2017-05-12 2017-09-22 江苏诺安科技有限公司 It is a kind of to verify the method whether papery license is tampered
DE202018002074U1 (en) * 2018-04-10 2018-06-08 Black Gold Coin, Inc. System for secure storage of electronic material
CN108763942A (en) * 2018-05-22 2018-11-06 山大地纬软件股份有限公司 Digital license based on block chain licenses device and its application method
CN109190329A (en) * 2018-08-14 2019-01-11 深圳市元征科技股份有限公司 Certificate information management method, system and block chain node device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160284317A1 (en) * 2015-03-24 2016-09-29 Xinyu Xingbang Information Industry Co., Ltd. Method, device and system for loading and displaying pictures
CN106997525A (en) * 2017-04-10 2017-08-01 山大地纬软件股份有限公司 Digital license system based on block chain technology
CN107194266A (en) * 2017-05-12 2017-09-22 江苏诺安科技有限公司 It is a kind of to verify the method whether papery license is tampered
DE202018002074U1 (en) * 2018-04-10 2018-06-08 Black Gold Coin, Inc. System for secure storage of electronic material
CN108763942A (en) * 2018-05-22 2018-11-06 山大地纬软件股份有限公司 Digital license based on block chain licenses device and its application method
CN109190329A (en) * 2018-08-14 2019-01-11 深圳市元征科技股份有限公司 Certificate information management method, system and block chain node device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张兆雷等: "一个基于区块链的电子证照管理服务模型", 《通信技术》 *
杨茜茜: "智慧社会背景下政务服务数据资源的档案化管理――基于电子证照应用管理的研究", 《浙江档案》 *

Similar Documents

Publication Publication Date Title
CN110489313B (en) Operation log recording method and device based on block chain and storage medium
WO2017028514A1 (en) Method and device for storing and reading data
CN101957865A (en) Data exchange and sharing technology among heterogeneous systems
CN106649164B (en) Hardware interface management method
CN113672627B (en) Method and device for constructing index of elastic search engine
WO2019056770A1 (en) Method and apparatus for data processing on basis of related transactions, and computer device
CN112182004B (en) Method, device, computer equipment and storage medium for checking data in real time
CN102272751A (en) Data integrity in a database environment through background synchronization
CN113392158A (en) Service data processing method and device and data center
CN109767098A (en) Processing method, device, computer equipment and the storage medium of product attribute
CN115544183A (en) Data visualization method and device, computer equipment and storage medium
CN112328592A (en) Data storage method, electronic device and computer readable storage medium
CN112307264A (en) Data query method and device, storage medium and electronic equipment
CN103246729A (en) Method and system for processing multi-media files of android mobile terminal
CN109542398B (en) Business system generation method and device and computer readable storage medium
WO2024094107A1 (en) Mobile number home operator querying method and apparatus, storage medium, and device
CN109271564A (en) Declaration form querying method and equipment
WO2022156087A1 (en) Data blood relationship establishing method and apparatus, computer device, and storage medium
CN107766549A (en) Text delet method and device, terminal installation and readable storage medium storing program for executing
CN108616603B (en) Method and system for synchronizing internal and external network data
CN110135188A (en) A kind of electronics license storage method and device based on block chain
CN113434489B (en) Real-time database online capacity expansion method, system, equipment and storage medium
CN113179294B (en) Schema unified access method based on intelligent contract
CN114297236A (en) Data blood relationship analysis method, terminal equipment and storage medium
CN113626516A (en) Data increment synchronization method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination