CN108646983A - The treating method and apparatus of storage service data on block chain - Google Patents
The treating method and apparatus of storage service data on block chain Download PDFInfo
- Publication number
- CN108646983A CN108646983A CN201810434004.9A CN201810434004A CN108646983A CN 108646983 A CN108646983 A CN 108646983A CN 201810434004 A CN201810434004 A CN 201810434004A CN 108646983 A CN108646983 A CN 108646983A
- Authority
- CN
- China
- Prior art keywords
- block chain
- target data
- data
- target
- chain network
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/56—Financial cryptography, e.g. electronic payment or e-cash
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a kind for the treatment of method and apparatus of the storage service data on block chain.Wherein, this method includes:Business datum is obtained, and defines the type of transaction of business datum;Based on construction method corresponding with type of transaction, the target data to be uploaded to block chain network is built according to business datum;It will be in target data storage to the block chain of corresponding node in block chain network.The present invention solves in the prior art, since the data recorded on block chain only have transaction data not have business datum, in the case that business datum is tampered, and the technical issues of being unable to ensure information security.
Description
Technical field
The present invention relates to internet arenas, in particular to a kind of processing side of the storage service data on block chain
Method and device.
Background technology
In technical field of Internet information, some business datums usually can all pass through the data inventory of a central server
Storage, once but central server is under attack, data probably will be tampered or lose, caused by lose will
It is inestimable.Bit coin proposes block chain technology in order to solve this problem, and still, bit coin is only by economics concept
In transaction data be written with block chain, block chain is not recorded but for some functional business datums.Therefore needle
To this present situation, need to develop a kind of method that block chain is written in functional data.
In for the above-mentioned prior art, since the data recorded on block chain only have transaction data not have business datum, when
In the case that business datum is tampered, the problem of being unable to ensure information security, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind for the treatment of method and apparatus of the storage service data on block chain, at least to solve
Certainly in the prior art, since the data recorded on block chain only have transaction data not have business datum, when business datum is tampered
In the case of, the technical issues of being unable to ensure information security.
One side according to the ... of the embodiment of the present invention provides a kind of processing method of business datum, including:Acquisition business
Data, and define the type of transaction of business datum;Based on construction method corresponding with type of transaction, waited for according to business datum structure
It is uploaded to the target data of block chain network;It will be in target data storage to the block chain of corresponding node in block chain network.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of processing unit of business datum, including:It obtains single
Member for obtaining business datum, and defines the type of transaction of business datum;Construction unit, for based on corresponding with type of transaction
Construction method, the target data to be uploaded to block chain network is built according to business datum;Storage unit is used for number of targets
According in storage to the block chain of corresponding node in block chain network.
In embodiments of the present invention, by obtaining business datum, and the type of transaction of business datum is defined;Based on transaction
The corresponding construction method of type builds the target data to be uploaded to block chain network according to business datum;Target data is deposited
It stores up on the block chain of corresponding node in block chain network, has reached and stored business datum to block chain to prevent business datum
The purpose being tampered, to realize improve business datum safety technique effect, and then solve in the prior art, by
Only have transaction data there is no business datum in the data recorded on block chain, it, can not be true in the case that business datum is tampered
The technical issues of protecting information security.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of process flow figure of storage service data on block chain according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of process flow of storage service data optionally on block chain according to the ... of the embodiment of the present invention
Figure;
Fig. 3 is a kind of optional method flow diagram for generating block chain data according to the ... of the embodiment of the present invention;
Fig. 4 is a kind of method flow diagram that business datum being written optionally on block chain according to the ... of the embodiment of the present invention;
And
Fig. 5 is a kind of processing unit schematic diagram of storage service data on block chain according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive
Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product
Or the other steps or unit that equipment is intrinsic.
According to embodiments of the present invention, a kind of processing method embodiment of the storage service data on block chain is provided, is needed
It is noted that step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions
Middle execution, although also, logical order is shown in flow charts, and it in some cases, can be with different from herein
Sequence executes shown or described step.
Fig. 1 is a kind of process flow figure of storage service data on block chain according to the ... of the embodiment of the present invention, such as
Shown in Fig. 1, this method comprises the following steps:
Step S102 obtains business datum, and defines the type of transaction of business datum.
Specifically, above-mentioned business datum can be some functional business datums with transaction association, including but not limited to
Electricity data, user data (for example, registration, login, access, ballot etc.).These business datums can be extended to a kind of transaction,
It is recorded on block chain.Above-mentioned type of transaction can be the affiliated type merchandised of pre-defined business datum, i.e., different industry
Business data, calculate and method of commerce may be all different, thus, after getting business datum, at least to obtain the business
The type of transaction of data, to determine calculating or trading rules or the method for business datum according to the type of transaction.
In a kind of optional embodiment, functional business datum can be stored to database, and fixed in configuration file
The type of transaction of adopted business datum.
Step S104 is based on construction method corresponding with type of transaction, is built according to business datum to be uploaded to block chain
The target data of network.
Specifically, after determining the type of the business datum according to the business datum got, the transaction class can be based on
The corresponding construction method of type builds the corresponding target data to be uploaded to block chain network according to the business datum.
As a kind of optional embodiment, business datum can be designed according to the type of transaction defined in configuration file
Transaction flow specifically builds shared transaction data, while calling the method for corresponding class to locate according to different type transaction
Business datum is managed, it, can be according to functional requirement, calling function when building target data to be uploaded to block chain network
Property service class building method build business transaction data, and functional business datum and main flow data are built into number of targets
According to.
Step S106, will be in target data storage to the block chain of corresponding node in block chain network.
Specifically, after S104 through the above steps builds the target data to be uploaded to block chain network, by number of targets
According in storage to the block chain of corresponding node in block chain network.
From the foregoing, it will be observed that in the above embodiments of the present application, after getting the business datum of any one business, based on
The corresponding construction method of this kind of type of transaction builds the number of targets to be uploaded to block chain network according to the business datum got
According to, and by the storage to the block chain of corresponding node in block chain network of the target data of structure, reached and deposited business datum
The purpose that block chain is stored up to prevent business datum to be tampered, to realize the technology effect for the safety for improving business datum
Fruit, and then solve in the prior art, since the data recorded on block chain only have transaction data not have business datum, work as business
In the case that data are tampered, the technical issues of being unable to ensure information security.
It should be noted that in order to ensure the accuracy of the data stored on block chain, by be uploaded to block link network
When the target data of network uploads to block chain network, as a kind of optional example, as shown in Fig. 2, may include as follows
Step:
Step S202 generates identification information of the target data in block chain network;
Step S204 is based on identification information, is verified to the legitimacy of target data;
Step S206 will be corresponding in target data storage to block chain network in the case where verification target data is legal
On the block chain of node.
Optionally, target data is generated in the identification information of block chain network, may include steps of:According to number of targets
According to generating corresponding cryptographic Hash;According to cryptographic Hash, identification information of the target data in block chain network is generated.
Optionally, according to target data, corresponding cryptographic Hash is generated, including:Target data is encrypted, is obtained
Encrypted data, wherein encryption includes at least one following:Using key encryption, addition digital signature;According to encryption
Data afterwards generate corresponding cryptographic Hash.
Optionally, according to cryptographic Hash, identification information of the target data in block chain network is generated, may include:It will breathe out
Uncommon value is converted to corresponding hexadecimal values, believes hexadecimal values as mark of the target data in block chain network
Breath.
Optionally, according to cryptographic Hash, before generating identification information of the target data in block chain network, the above method
Can also include:Cryptographic Hash is encrypted, wherein encryption includes at least one following:Using key encryption, add
Add digital signature.
In a kind of optional embodiment, above-mentioned identification information can be the corresponding transaction id of target data, to target data
It stabs, sign between addition and corresponding transaction id is generated based on hash algorithm, specifically, as an alternative embodiment, can
To obtain current time, and exchange hour stamp is recorded, the encryption/decryption module Crypto modules for introducing Node.js are encrypted, and lead to
Ed25519 component signature certifications are crossed, and simple cryptographic Hash is generated by sha256 hash algorithms to the target data after signature.It can
Selection of land can also sign to above-mentioned cryptographic Hash plus key using signature algorithm Ed25519.It further, can also be right
The cryptographic Hash of generation is encrypted again, and to encrypted cryptographic Hash (binary number) carry out multi-system (for example, 16 into
System) processing, generate corresponding transaction id.
Optionally, as a kind of optional embodiment, it is based on identification information, the legitimacy of target data is verified,
It may include steps of:Business verification is carried out to target data;In the case where target data is verified by business, based on mark
Know information, the legitimacy of target data is verified.
Specifically, when the legitimacy to target data is verified, not only will to the transaction id of target data, signature,
The information such as timestamp are verified, and also to be verified to the service logic of target data, for example, when business datum is electricity number
It needs to verify whether electricity data meets electricity computation rule etc. in the case of.
Optionally, in the case where target data is verified by business, it is based on identification information, to the legitimacy of target data
It is verified, may include:In the case where target data is verified by business, it is based on identification information, judges target block chain
It is upper to whether there is target data;In the case where target data is not present on target block chain, it is based on identification information, to number of targets
According to legitimacy verified.
Wherein, as an alternative embodiment, by target data storage to the area of corresponding node in block chain network
On block chain, it may include steps of:If target data is documented on target block chain, other in block chain network save
Target data is synchronized on corresponding block chain by point;If target data is not documented on target block chain, target area
The node of block chain broadcasts target data to other nodes in block chain network, wherein passes through any one node verification
Target data is stored on corresponding block chain.
Specifically, after carrying out legitimate verification to target data, not by the target data of block chain network node confirmation
It needs to be broadcasted by P2P networks, may time zone be recorded after verification by any one node after being broadcasted
Block chain;If target data is written to block by some node of block chain network, other nodes will be by this area
Block synchronizes (including transaction), is then verified, and solve bifurcation problem.It is synchronized using block chain technology, waits for it
It is inserted into oneself block chain database after his node verification success.
Embodiment as one preferred, Fig. 3 are a kind of optional generation block chain data according to the ... of the embodiment of the present invention
Method flow diagram as shown in figure 3, after building the target data to be uploaded to block chain network can be to be uploaded to area
The target data of block chain adds timestamp, and the target data after addition timestamp is encrypted, and generates corresponding cryptographic Hash,
Then the key pair cryptographic Hash addition digital signature that business side provides is used, and ten are carried out to the target data for adding digital signature
Senary processing, obtains the identification information (for example, transaction id) of target data, block chain is uploaded to be based on the identification information
Network.
Embodiment as one preferred, Fig. 4 are that one kind according to the ... of the embodiment of the present invention is optionally written on block chain
The method flow diagram of business datum, as shown in figure 4, including the following steps:
(1) configuration file is created, type of transaction, including but not limited to function sexual transaction and money transfer transactions are defined;
(2) establishment or acquisition certain functional business datum storages are merchandised in structure below to database
It is inquired when data;
(3) user data, including user password (private key), the data such as address are imported;
(4) common data of the user data structure transaction of front, the digital signature for later step and verification are utilized
Etc. functions use.
(5) after upper step, by judging that type of transaction calls the correlation method of respective transaction type to build business datum.
(6) data that upper two step is built are combined into a complete transaction data.
(7) it signs to transaction, to prevent data to be tampered in communication process, illustrates write ammeter data herein
Enter to transaction the inside and goes.
(8) a series of processing such as hash are done to transaction, a transaction id is generated, so as to subsequent verification.
(9) transaction is further handled (for example, to processing such as the rounding up of electricity data, roundings according to demand
Operation).
(10) legitimacy for verifying transaction again prevents from generating illegal data in processing procedure.
(11) whether authentication functionality business datum is tampered again, prevents from changing in processing procedure.
(12) judge that transaction whether there is, if it is present, subsequent processing will not be done.
(13) if transaction is not present, by information such as signature, the timestamps of verification transaction.
(14) another thread of system just will produce a block every 16 seconds at this time, and can will be unidentified
The block that transaction write-in finally generates.
(15) if transaction also future is written into time, transaction will be gone out by p2p Web broadcasts, thus be realized
Distributed storage loss of data or is tampered after preventing individual node from being attacked.
(16) it may be recorded into block chain after verification by any one node after being broadcasted.
(17) if transaction is written to block, other nodes, which will synchronize this block, (including to be handed over
Easily), it is then verified, and solves bifurcation problem.
(18) block and transaction are saved in local data base after being verified.
By the above embodiments of the present application, when each the whole network upgrades, some work(can be increased newly in bottom according to demand
Energy sexual transaction type, compared to intelligent contract, the parsing of the method is relatively easy, and management cost is cheap, and specific aim is stronger.
According to embodiments of the present invention, a kind of processing for realizing the above-mentioned storage service data on block chain is additionally provided
The device embodiment of method, Fig. 5 are a kind of processing units of storage service data on block chain according to the ... of the embodiment of the present invention
Schematic diagram, as shown in figure 5, the device includes:Acquiring unit 501, construction unit 503 and storage unit 505.
Wherein, acquiring unit 501 for obtaining business datum, and define the type of transaction of business datum;
Construction unit 503, it is to be uploaded extremely according to business datum structure for being based on construction method corresponding with type of transaction
The target data of block chain network;
Storage unit 505, for target data to be stored to the block chain to corresponding node in block chain network.
Herein it should be noted that above-mentioned acquiring unit 501, construction unit 503 and storage unit 505 correspond to method reality
Apply the step S102 to S106 in example, the example and application scenarios that above-mentioned module and corresponding step are realized are identical but unlimited
In above method embodiment disclosure of that.It should be noted that above-mentioned module can be such as a part of of device
It is executed in the computer system of a group of computer-executable instructions.
From the foregoing, it will be observed that in the above embodiments of the present application, in the industry for getting any one business by acquiring unit 501
After data of being engaged in, construction method corresponding with this kind of type of transaction is based on by construction unit 503, according to the business datum got
The target data to be uploaded to block chain network is built, and is stored the target data of structure to block by storage unit 505
In chain network on the block chain of corresponding node, reaches and stored business datum to block chain to prevent business datum to be tampered
Purpose to realize the technique effect for the safety for improving business datum, and then solves in the prior art, due to block chain
The data of upper record only have transaction data not have business datum, in the case that business datum is tampered, are unable to ensure information peace
Full technical problem.
In a kind of optional example, said memory cells may include:Generation module, for generating target data in area
Identification information in block chain network;Authentication module verifies the legitimacy of target data for being based on identification information;It deposits
Module is stored up, in the case where verification target data is legal, target data to be stored to corresponding node in block chain network
On block chain.
Optionally, above-mentioned generation module may include:First generates submodule, for according to target data, generating and corresponding to
Cryptographic Hash;Second generates submodule, for according to cryptographic Hash, generating identification information of the target data in block chain network.
Optionally, above-mentioned first generation submodule is additionally operable to that target data is encrypted, and obtains encrypted number
According to, and according to encrypted data, generating corresponding cryptographic Hash, wherein encryption includes at least one following:Using key
Encryption, addition digital signature.
Optionally, above-mentioned second generation submodule is additionally operable to cryptographic Hash being converted to corresponding hexadecimal values, by ten
Identification information of the senary numerical value as target data in block chain network.
In a kind of optional embodiment, above-mentioned apparatus can also include:Encrypting module, for place to be encrypted to cryptographic Hash
Reason, wherein encryption includes at least one following:Using key encryption, addition digital signature.
In a kind of optional embodiment, above-mentioned authentication module is additionally operable to carry out business verification to target data, and in target
In the case that data are verified by business, it is based on identification information, the legitimacy of target data is verified.
In a kind of optional embodiment, above-mentioned authentication module is additionally operable in the case where target data is verified by business,
Based on identification information, judge to whether there is target data on target block chain, and target data is not present on target block chain
In the case of, it is based on identification information, the legitimacy of target data is verified.
In a kind of optional embodiment, said memory cells include:Synchronization module, if be documented in for target data
On target block chain, then target data is synchronized on corresponding block chain by other nodes in block chain network;Propagation module is used
If be not documented on target block chain in target data, the node of target block chain broadcasts target data to block chain
Other nodes on network, wherein be stored on corresponding block chain by the target data of any one node verification.
According to embodiments of the present invention, a kind of storage medium is additionally provided, storage medium includes the program of storage, wherein journey
Sequence execute the optional of any one of above method embodiment or preferably on block chain storage service data processing side
Method.
According to embodiments of the present invention, a kind of processor is additionally provided, which is characterized in that processor is used to run program,
In, the optional of any one of above method embodiment or preferably the storage service number on block chain are executed when program is run
According to processing method.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, Ke Yiwei
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of processing method of the storage service data on block chain, which is characterized in that including:
Business datum is obtained, and defines the type of transaction of the business datum;
Based on construction method corresponding with the type of transaction, built according to the business datum to be uploaded to block chain network
Target data;
It will be in target data storage to the block chain of corresponding node in block chain network.
2. according to the method described in claim 1, it is characterized in that, by corresponding in target data storage to block chain network
On the block chain of node, including:
Generate identification information of the target data in the block chain network;
Based on the identification information, the legitimacy of the target data is verified;
In the case where the verification target data is legal, by target data storage to corresponding node in block chain network
On block chain.
3. according to the method described in claim 2, it is characterized in that, generate the target data the block chain network mark
Know information, including:
According to the target data, corresponding cryptographic Hash is generated;
According to the cryptographic Hash, identification information of the target data in the block chain network is generated.
4. according to the method described in claim 3, it is characterized in that, according to the target data, corresponding cryptographic Hash is generated, is wrapped
It includes:
The target data is encrypted, encrypted data are obtained, wherein the encryption include it is following at least
One of:Using key encryption, addition digital signature;
According to the encrypted data, corresponding cryptographic Hash is generated.
5. according to the method described in claim 3, it is characterized in that, according to the cryptographic Hash, the target data is generated in institute
The identification information in block chain network is stated, including:
The cryptographic Hash is converted into corresponding hexadecimal values, is existed the hexadecimal values as the target data
Identification information in the block chain network.
6. according to the method described in claim 5, it is characterized in that, according to the cryptographic Hash, generates the target data and exist
Before identification information in the block chain network, the method further includes:
The cryptographic Hash is encrypted, wherein the encryption includes at least one following:Encrypted using key,
Add digital signature.
7. according to the method described in claim 2, it is characterized in that, being based on the identification information, the conjunction to the target data
Method is verified, including:
Business verification is carried out to the target data;
In the case where the target data is verified by business, it is based on the identification information, to the legal of the target data
Property is verified.
8. according to the method described in claim 2, it is characterized in that, in the case where the target data is verified by business,
Based on the identification information, the legitimacy of the target data is verified, including:
In the case where the target data is verified by business, be based on the identification information, judge on target block chain whether
There are the target datas;
In the case where the target data is not present on the target block chain, it is based on the identification information, to the target
The legitimacy of data is verified.
9. according to the method described in claim 8, it is characterized in that, by corresponding in target data storage to block chain network
On the block chain of node, including:
If the target data is documented on the target block chain, other nodes will be described in the block chain network
Target data is synchronized on corresponding block chain;
If the target data is not documented on the target block chain, the node of the target block chain is by the mesh
Mark other nodes in data broadcasting to the block chain network, wherein pass through the target data quilt of any one node verification
It stores on corresponding block chain.
10. a kind of processing unit of the storage service data on block chain, which is characterized in that including:
Acquiring unit for obtaining business datum, and defines the type of transaction of the business datum;
Construction unit is built to be uploaded for being based on construction method corresponding with the type of transaction according to the business datum
To the target data of block chain network;
Storage unit, for the target data to be stored to the block chain to corresponding node in block chain network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810434004.9A CN108646983B (en) | 2018-05-08 | 2018-05-08 | Processing method and device for storing service data on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810434004.9A CN108646983B (en) | 2018-05-08 | 2018-05-08 | Processing method and device for storing service data on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108646983A true CN108646983A (en) | 2018-10-12 |
CN108646983B CN108646983B (en) | 2021-04-06 |
Family
ID=63749431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810434004.9A Active CN108646983B (en) | 2018-05-08 | 2018-05-08 | Processing method and device for storing service data on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108646983B (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109509095A (en) * | 2018-11-14 | 2019-03-22 | 成都皓图智能科技有限责任公司 | A kind of video active identification method of combination block chain |
CN109587238A (en) * | 2018-12-03 | 2019-04-05 | 百度在线网络技术(北京)有限公司 | The data processing of block chain and synchronous method, device, equipment and storage medium |
CN109743198A (en) * | 2018-12-25 | 2019-05-10 | 中链科技有限公司 | Intelligent block network establishing method and system |
CN109766727A (en) * | 2018-12-25 | 2019-05-17 | 中链科技有限公司 | Intelligent block network establishing method and system |
CN109902494A (en) * | 2019-01-24 | 2019-06-18 | 北京融链科技有限公司 | Data encryption storage method, device and document storage system |
CN110011800A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of block chain method for reading data and device |
CN110009334A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of building Mei Keer tree, simple payment verification method and device |
CN110493268A (en) * | 2019-09-24 | 2019-11-22 | 腾讯科技(深圳)有限公司 | A kind of data processing method and device based on block chain network |
CN111078700A (en) * | 2019-12-13 | 2020-04-28 | 山东众阳健康科技集团有限公司 | Data synchronization method and system based on block chain |
CN111259413A (en) * | 2020-01-10 | 2020-06-09 | 上海旺链信息科技有限公司 | Data management method and device based on block chain |
CN111311832A (en) * | 2020-03-04 | 2020-06-19 | 长春市万易科技有限公司 | Gas payment method based on block chain |
CN111339203A (en) * | 2020-02-28 | 2020-06-26 | 北京金和网络股份有限公司 | Block chain data acquisition method, device and system |
WO2019228572A3 (en) * | 2019-09-12 | 2020-07-09 | Alibaba Group Holding Limited | Log-structured storage systems |
CN111429134A (en) * | 2018-12-21 | 2020-07-17 | 北京京东尚科信息技术有限公司 | Data transaction method and device based on block chain |
CN111478948A (en) * | 2020-03-20 | 2020-07-31 | 深圳市芯链科技有限公司 | Block chain access method, Internet of things equipment and storage medium |
CN111783134A (en) * | 2019-01-31 | 2020-10-16 | 阿里巴巴集团控股有限公司 | Method and device for hiding transaction written into block chain |
CN112102081A (en) * | 2020-08-19 | 2020-12-18 | 小米数字科技有限公司 | Method and device for generating block chain, readable storage medium and block chain network |
CN112311881A (en) * | 2020-10-30 | 2021-02-02 | 中国联合网络通信集团有限公司 | Visible optical network sharing method based on block chain and visible optical network equipment |
CN112434040A (en) * | 2020-11-30 | 2021-03-02 | 泰康保险集团股份有限公司 | Data storage method, data acquisition method, device, system and equipment |
CN112513853A (en) * | 2018-12-11 | 2021-03-16 | 松下电器(美国)知识产权公司 | Data management method, data management system, and program |
WO2021196741A1 (en) * | 2020-04-01 | 2021-10-07 | 杭州溪塔科技有限公司 | Management method and device for system configuration independent of smart contract on blockchain |
US11423015B2 (en) | 2019-09-12 | 2022-08-23 | Advanced New Technologies Co., Ltd. | Log-structured storage systems |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160012424A1 (en) * | 2014-07-11 | 2016-01-14 | Ribbit.me! USA Inc. | Distributed ledger protocol to incentivize transactional and non-transactional commerce |
CN107025559A (en) * | 2017-01-26 | 2017-08-08 | 阿里巴巴集团控股有限公司 | A kind of method for processing business and device |
CN107124278A (en) * | 2017-03-30 | 2017-09-01 | 腾讯科技(深圳)有限公司 | Method for processing business, device and data-sharing systems |
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
CN107315786A (en) * | 2017-06-12 | 2017-11-03 | 腾讯科技(深圳)有限公司 | Business datum storage method and device |
CN107332835A (en) * | 2017-06-26 | 2017-11-07 | 深圳前海华深安信物联技术有限公司 | The creation method of block chain in a kind of warehouse receipt system |
CN107395557A (en) * | 2017-03-28 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of processing method and processing device of service request |
CN107403379A (en) * | 2017-08-07 | 2017-11-28 | 质数智慧科技(成都)有限公司 | A kind of data processing method, device and block chain Core distribution formula system |
CN107562775A (en) * | 2017-07-14 | 2018-01-09 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
CN107657509A (en) * | 2017-09-19 | 2018-02-02 | 前海云链科技(深圳)有限公司 | A kind of reference method and device based on block chain |
US20180089641A1 (en) * | 2016-09-27 | 2018-03-29 | The Toronto-Dominion Bank | Processing network architecture with companion database |
-
2018
- 2018-05-08 CN CN201810434004.9A patent/CN108646983B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160012424A1 (en) * | 2014-07-11 | 2016-01-14 | Ribbit.me! USA Inc. | Distributed ledger protocol to incentivize transactional and non-transactional commerce |
US20180089641A1 (en) * | 2016-09-27 | 2018-03-29 | The Toronto-Dominion Bank | Processing network architecture with companion database |
CN107025559A (en) * | 2017-01-26 | 2017-08-08 | 阿里巴巴集团控股有限公司 | A kind of method for processing business and device |
CN107395557A (en) * | 2017-03-28 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of processing method and processing device of service request |
CN107124278A (en) * | 2017-03-30 | 2017-09-01 | 腾讯科技(深圳)有限公司 | Method for processing business, device and data-sharing systems |
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
CN107315786A (en) * | 2017-06-12 | 2017-11-03 | 腾讯科技(深圳)有限公司 | Business datum storage method and device |
CN107332835A (en) * | 2017-06-26 | 2017-11-07 | 深圳前海华深安信物联技术有限公司 | The creation method of block chain in a kind of warehouse receipt system |
CN107562775A (en) * | 2017-07-14 | 2018-01-09 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
CN107403379A (en) * | 2017-08-07 | 2017-11-28 | 质数智慧科技(成都)有限公司 | A kind of data processing method, device and block chain Core distribution formula system |
CN107657509A (en) * | 2017-09-19 | 2018-02-02 | 前海云链科技(深圳)有限公司 | A kind of reference method and device based on block chain |
Non-Patent Citations (2)
Title |
---|
钟玮: ""区块链技术在会计中的应用展望"", 《会计之友》 * |
闵旭蓉: ""基于区块链技术的电子证照共享平台设计"", 《指挥信息系统与技术》 * |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110011800A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of block chain method for reading data and device |
CN110009334A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of building Mei Keer tree, simple payment verification method and device |
US11108547B2 (en) | 2018-11-07 | 2021-08-31 | Advanced New Technologies Co., Ltd. | Methods and apparatuses for reading blockchain data |
CN109509095A (en) * | 2018-11-14 | 2019-03-22 | 成都皓图智能科技有限责任公司 | A kind of video active identification method of combination block chain |
CN109509095B (en) * | 2018-11-14 | 2023-05-02 | 成都皓图智能科技有限责任公司 | Video active identification method combined with block chain |
CN109587238A (en) * | 2018-12-03 | 2019-04-05 | 百度在线网络技术(北京)有限公司 | The data processing of block chain and synchronous method, device, equipment and storage medium |
CN109587238B (en) * | 2018-12-03 | 2021-08-03 | 百度在线网络技术(北京)有限公司 | Data processing and synchronizing method, device, equipment and storage medium of block chain |
CN112513853A (en) * | 2018-12-11 | 2021-03-16 | 松下电器(美国)知识产权公司 | Data management method, data management system, and program |
CN111429134A (en) * | 2018-12-21 | 2020-07-17 | 北京京东尚科信息技术有限公司 | Data transaction method and device based on block chain |
CN109743198A (en) * | 2018-12-25 | 2019-05-10 | 中链科技有限公司 | Intelligent block network establishing method and system |
CN109766727A (en) * | 2018-12-25 | 2019-05-17 | 中链科技有限公司 | Intelligent block network establishing method and system |
CN109902494A (en) * | 2019-01-24 | 2019-06-18 | 北京融链科技有限公司 | Data encryption storage method, device and document storage system |
CN111783134B (en) * | 2019-01-31 | 2024-04-16 | 创新先进技术有限公司 | Method and device for hiding transaction written into blockchain |
CN111783134A (en) * | 2019-01-31 | 2020-10-16 | 阿里巴巴集团控股有限公司 | Method and device for hiding transaction written into block chain |
WO2019228572A3 (en) * | 2019-09-12 | 2020-07-09 | Alibaba Group Holding Limited | Log-structured storage systems |
US11423015B2 (en) | 2019-09-12 | 2022-08-23 | Advanced New Technologies Co., Ltd. | Log-structured storage systems |
US10789215B1 (en) | 2019-09-12 | 2020-09-29 | Alibaba Group Holding Limited | Log-structured storage systems |
CN110493268A (en) * | 2019-09-24 | 2019-11-22 | 腾讯科技(深圳)有限公司 | A kind of data processing method and device based on block chain network |
CN110493268B (en) * | 2019-09-24 | 2022-06-24 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain network and storage medium |
CN111078700A (en) * | 2019-12-13 | 2020-04-28 | 山东众阳健康科技集团有限公司 | Data synchronization method and system based on block chain |
CN111259413A (en) * | 2020-01-10 | 2020-06-09 | 上海旺链信息科技有限公司 | Data management method and device based on block chain |
CN111339203A (en) * | 2020-02-28 | 2020-06-26 | 北京金和网络股份有限公司 | Block chain data acquisition method, device and system |
CN111311832A (en) * | 2020-03-04 | 2020-06-19 | 长春市万易科技有限公司 | Gas payment method based on block chain |
CN111478948A (en) * | 2020-03-20 | 2020-07-31 | 深圳市芯链科技有限公司 | Block chain access method, Internet of things equipment and storage medium |
CN111478948B (en) * | 2020-03-20 | 2023-02-17 | 深圳市芯链科技有限公司 | Block chain access method, internet of things equipment and storage medium |
WO2021196741A1 (en) * | 2020-04-01 | 2021-10-07 | 杭州溪塔科技有限公司 | Management method and device for system configuration independent of smart contract on blockchain |
CN112102081A (en) * | 2020-08-19 | 2020-12-18 | 小米数字科技有限公司 | Method and device for generating block chain, readable storage medium and block chain network |
CN112102081B (en) * | 2020-08-19 | 2024-04-09 | 天星数科科技有限公司 | Method, device, readable storage medium and blockchain network for generating blockchain |
CN112311881A (en) * | 2020-10-30 | 2021-02-02 | 中国联合网络通信集团有限公司 | Visible optical network sharing method based on block chain and visible optical network equipment |
CN112434040B (en) * | 2020-11-30 | 2023-09-22 | 泰康保险集团股份有限公司 | Data storage method, data acquisition method, device, system and equipment |
CN112434040A (en) * | 2020-11-30 | 2021-03-02 | 泰康保险集团股份有限公司 | Data storage method, data acquisition method, device, system and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108646983B (en) | 2021-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108646983A (en) | The treating method and apparatus of storage service data on block chain | |
CN111914027B (en) | Block chain transaction keyword searchable encryption method and system | |
CN111737724B (en) | Data processing method and device, intelligent equipment and storage medium | |
CN109819443B (en) | Registration authentication method, device and system based on block chain | |
CN109409122B (en) | File storage method, electronic device and storage medium | |
CN107742212B (en) | Asset verification method, device and system based on block chain | |
CN107181599A (en) | The storage of route location data confidentiality and sharing method based on block chain | |
CN109902494A (en) | Data encryption storage method, device and document storage system | |
CN108600227A (en) | A kind of medical data sharing method and device based on block chain | |
CN110096903B (en) | Asset verification method based on block chain and block chain network system | |
CN107171785A (en) | A kind of digital copyright management method based on block chain technology | |
CN107395360A (en) | The method that a kind of historical relic and art work numeral based on block chain technology deposit card | |
CN109472164A (en) | The verification method and its network and electronic equipment of contract dataset | |
Panda et al. | Bitcoin and blockchain: history and current applications | |
CN108734028A (en) | Data managing method, block chain node based on block chain and storage medium | |
CN111815321A (en) | Transaction proposal processing method, device, system, storage medium and electronic device | |
CN111460482B (en) | Block chain-based number shaking method and device | |
CN110601855B (en) | Root certificate management method and device, electronic equipment and storage medium | |
CN112540926A (en) | Resource allocation fairness federal learning method based on block chain | |
CN112069550B (en) | Electronic contract evidence-storing system based on intelligent contract mode | |
CN110020541A (en) | A kind of the reputation evaluation method and system of the secret protection based on block chain | |
CN109558742A (en) | A kind of effectiveness of information detection method and device based on block chain | |
CN110737915B (en) | Anti-quantum-computation anonymous identity recognition method and system based on implicit certificate | |
CN106886722A (en) | Big data information processing method and device | |
CN113469716A (en) | Product tracing method and system based on block chain and identification analysis |
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 |