CN109543459A - A kind of data deposit card method and apparatus - Google Patents
A kind of data deposit card method and apparatus Download PDFInfo
- Publication number
- CN109543459A CN109543459A CN201811399726.1A CN201811399726A CN109543459A CN 109543459 A CN109543459 A CN 109543459A CN 201811399726 A CN201811399726 A CN 201811399726A CN 109543459 A CN109543459 A CN 109543459A
- Authority
- CN
- China
- Prior art keywords
- chain
- data
- under
- block chain
- equipment
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the present invention discloses a kind of data and deposits card method and apparatus, it is related to information security field, can by transaction data carry out chain under and chain on multiple hash operation and data deposit card, thus while preventing from illegally distorting transaction data realize deposit demonstrate,prove data quick-searching.This method comprises: block chain node device reception chain is divided under the chain that preparation is sent and deposits card data;The first hash value that card data include transaction data and transaction data is wherein deposited under chain;And card data will be deposited under at least one chain received in predetermined amount of time and carry out hash operation, the 2nd hash value in predetermined amount of time is generated, and record corresponding time stamp T;Block chain node device will deposit card data and be packaged to generate block chain and deposit card data under at least one chain in time stamp T, the 2nd hash value, predetermined amount of time is locally stored, and is synchronized to other block chain node devices.The embodiment of the present invention is applied to communication system.
Description
Technical field
The embodiment of the present invention is related to information security field more particularly to a kind of data deposit card method and apparatus.
Background technique
Existing each storage platform (including computer room storage, cloud storage etc.) utilizes itself credit or authority, provides electronic evidence
The service such as deposit card, save from damage, witness.But in the case where economic interests drive, the electronic data of centralization storage, which exists, to be tampered, is deleted
The possibility removed.Also therefore, the electronic data administration of justice effect of centralization storage is not strong, is not recognized in multiple legal precedents judicial effective
Property.Block chain is the new application of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Mode is substantially the database of a decentralization, while being the Floor layer Technology of bit coin, is widely used and hands over security
Easily, the various fields such as e-commerce, intelligent contract, Internet of Things, social communication and file storage.But it is existing use block
Chain carries out the method that data deposit card and is difficult to that snap information is supported to retrieve.
Summary of the invention
The embodiment of the present invention provides a kind of data and deposits card method and apparatus, can by being carried out under chain to transaction data and
Card is deposited in multiple hash operation and data on chain, deposits the fast of card data to realize while preventing from illegally distorting transaction data
Speed retrieval.
In order to achieve the above objectives, the present invention adopts the following technical scheme:
In a first aspect, providing a kind of data deposits card method, this method comprises: block chain node device reception chain divides into preparation
Card data are deposited under the chain sent;The first hash value that card data include transaction data and transaction data, number of deals are wherein deposited under chain
T, both parties ID, transaction content are stabbed according to including exchange hour;Block chain node device by predetermined amount of time it is received at least
Card data are deposited under one chain and carry out hash operation, generate the 2nd hash value in predetermined amount of time, and record corresponding timestamp
T;Block chain node device will deposit card data and be packaged life under at least one chain in time stamp T, the 2nd hash value, predetermined amount of time
Card data are deposited at block chain to be locally stored, and are synchronized to other block chain node devices.
In the above-mentioned methods, block chain node is divided into chain received in predetermined amount of time under at least one chain that preparation is sent
It deposits card data and carries out hash operation, generate the 2nd hash value in predetermined amount of time, and record corresponding time stamp T;And by when
Between stab to deposit card data under T, the 2nd hash value, at least one chain in predetermined amount of time and be packaged to generate block chain and deposit card data and carry out
It is locally stored, and is synchronized to other block chain node devices.The present invention can be by carrying out under chain and on chain transaction data
Multiple hash operation and data deposit card, to realize the quick inspection for depositing card data while preventing from illegally distorting transaction data
Rope.
Optionally, described to be synchronized to other block chain node devices, later further include: the block chain node device receives
The acquisition block chain that verifying equipment is sent deposits card request of data;The block chain is deposited card number by the block chain node device
According to being sent to the verifying equipment, so as to the verifying equipment to deposited under the chain that equipment under the chain obtains card data with it is described
Block chain is deposited card data and is compared, and determines that card data are deposited under the chain deposits whether card data are modified with the block chain.
Second aspect provides a kind of data and deposits card method, this method comprises: equipment receives transaction data under chain;Wherein hand over
Easy data include exchange hour stamp t, both parties ID and transaction content;It is raw to carry out hash operation to transaction data for equipment under chain
At the first hash value of transaction data;Under chain equipment the first hash value and transaction data are packaged generate deposited under chain card data into
Row storage, and it is sent to block chain node device.
In the above-mentioned methods, under chain equipment by received transaction data;Carry out hash operation generates transaction data first
Hash value;Then card data will be deposited under the first hash value and transaction data packing generation chain to store, and is sent to block
Chain node device.The present invention can reduce by carrying out hash operation to transaction data and deposit the risk that card data are tampered under chain,
And it is provided for block chain node device and deposits card data under more safe and reliable chain.
Optionally, the first hash value and transaction data are packaged to generate and deposit card data under chain and store by equipment under chain,
And it is sent to block chain node device, later further include: equipment receives and deposits card data under the acquisition chain that verifying equipment is sent under chain
Request;Equipment will deposit card data and be sent to verifying equipment under chain under chain, so as to verify equipment to deposited under chain card data with from block
Chain node device obtain block chain deposit card data compare, determine deposited under chain card data and block chain deposit card data whether by
Change.
The third aspect, provides a kind of block chain node device, which includes:
Receiving unit is divided under the chain that preparation is sent for reception chain and deposits card data;It includes transaction that card data are wherein deposited under chain
First hash value of data and transaction data, transaction data include exchange hour stamp t, both parties ID, transaction content.
Processing unit carries out hash for will deposit card data under at least one received chain of receiving unit in predetermined amount of time
Operation generates the 2nd hash value in predetermined amount of time, and records corresponding time stamp T.
Processing unit is also used to that card number will be deposited under at least one chain in time stamp T, the 2nd hash value, predetermined amount of time
Card data are deposited according to packing generation block chain to be locally stored.
Transmission unit, the block chain for generating processing unit deposit card data and are synchronized to other block chain node devices.
Optionally, receiving unit is also used to receive the acquisition block chain that verifying equipment is sent and deposits card request of data.
Transmission unit is also used to deposit card request of data according to the received acquisition block chain of receiving unit for block chain and deposits card number
According to being sent to verifying equipment, so as to verify equipment to deposit card data under the chain that equipment obtains under chain and block chain deposit card data into
Row comparison determines that card data are deposited under chain deposits whether card data are modified with block chain.
It is to be appreciated that a kind of block chain node device of above-mentioned offer is for executing first aspect pair presented above
The method answered, therefore, the attainable beneficial effect of institute can refer to the corresponding method of first aspect above and in detail below reality
The beneficial effect of corresponding scheme in mode is applied, details are not described herein again.
Fourth aspect provides equipment under a kind of chain, and equipment includes: under the chain
Receiving unit, for receiving transaction data;Wherein transaction data include exchange hour stamp t, both parties ID and
Transaction content.
Processing unit, for carrying out the first of hash operation generation transaction data to the received transaction data of receiving unit
Hash value.
Processing unit, card data will be deposited under the first hash value and transaction data packing generation chain by, which being also used to, stores.
Transmission unit deposits card data under the chain for generating processing unit and is sent to block chain node device.
Optionally, receiving unit is also used to receive under the acquisition chain that verifying equipment is sent and deposits card request of data.
Transmission unit, be also used to according to deposited under the received acquisition chain of receiving unit card request of data will be deposited under chain card data hair
Send to verifying equipment, so as to verify equipment to deposited under chain card data with from block chain node device obtain block chain deposit card data
It compares, determines that depositing card data under chain deposits whether card data are modified with block chain.
It is to be appreciated that the chain of above-mentioned offer, which is divided into be ready for use on, executes the corresponding method of first aspect presented above,
Therefore, the attainable beneficial effect of institute can refer to right in the corresponding method of first aspect above and following detailed description
The beneficial effect for the scheme answered, details are not described herein again.
5th aspect, provides a kind of block chain node device, includes processor in the structure of the block chain node device
And memory, memory save the necessary program instruction of block chain node device and data, handle for coupling with processor
Device is for executing the program instruction stored in memory, so that the block chain node device executes method described in first aspect.
6th aspect, provides a kind of computer storage medium, is stored with computer program code in computer storage medium,
When computer program code is run on the block chain node device as described in terms of such as the 5th, so that block chain node device is held
The method of the above-mentioned first aspect of row.
7th aspect, provides a kind of computer program product, which stores above-mentioned computer software
Instruction, when computer software instructions are run on the block chain node device as described in terms of such as the 5th, so that block chain node
Equipment executes the program of the scheme as described in above-mentioned first aspect.
Eighth aspect provides equipment under a kind of chain, includes processor and memory, storage in the structure of equipment under the chain
Device saves the necessary program instruction of equipment and data under the chain, processor is for executing in memory for coupling with processor
The program instruction of storage, so that equipment executes method described in first aspect under the chain.
9th aspect, provides a kind of computer storage medium, is stored with computer program code in computer storage medium,
When computer program code is run in equipment under the chain as described in eighth aspect, so that equipment executes above-mentioned first party under chain
The method in face.
Tenth aspect, provides a kind of computer program product, which stores above-mentioned computer software
Instruction, when computer software instructions are run in equipment under the chain as described in eighth aspect, so that equipment executes as above under chain
State the program of scheme described in first aspect.
Detailed description of the invention
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the flow diagram that a kind of data that the embodiment of the present invention one provides deposit card method;
Fig. 2 is the flow diagram that a kind of data that the embodiment of the present invention two provides deposit card method;
Fig. 3 is a kind of structural schematic diagram for block chain node device that the embodiment of the present invention provides;
Fig. 4 is the structural schematic diagram of equipment under a kind of chain that the embodiment of the present invention provides;
Fig. 5 is the structural schematic diagram for another block chain node device that the embodiment of the present invention provides;
Fig. 6 is the structural schematic diagram for another block chain node device that the embodiment of the present invention provides;
Fig. 7 is the structural schematic diagram of equipment under another chain that the embodiment of the present invention provides;
Fig. 8 is the structural schematic diagram of equipment under another chain that the embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating
Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer
It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used
Such as " word is intended to that related notion is presented in specific ways.
It should also be noted that, in the embodiment of the present invention, " (English: of) ", " corresponding (English:
Corresponding, relevant) " it sometimes can be mixed with " corresponding (English: corresponding) ", it should be pointed out that
It is that, when not emphasizing its difference, meaning to be expressed is consistent.
For the ease of clearly describing the technical solution of the embodiment of the present invention, in an embodiment of the present invention, use " the
One ", the printed words such as " second " distinguish function and the essentially identical identical entry of effect or similar item, and those skilled in the art can
To understand that the printed words such as " first ", " second " are not to be defined to quantity and execution order.
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Application model is substantially the database of a decentralization, while being the Floor layer Technology of bit coin, is widely used and security
The various fields such as transaction, e-commerce, intelligent contract, Internet of Things, social communication and file storage.Existing patent of invention " one
Electronic evidence safety system and method for the kind based on block chain technology " a kind of electronic evidence based on block chain technology is mainly disclosed
Safety system and method, safety system include depositing card terminal and block chain network, and depositing card terminal includes Hash operation module and electricity
Sub- signature blocks.Electronic data is uploaded to and deposits card terminal, card terminal is deposited and Hash operation is carried out to the electronic data of upload, generate
The unique feature data of the former data of one section of regular length;Asymmetric encryption techniques are used again, and private key is carried out to the data of generation
Signature, and it is sent to block chain network;Block chain network is packaged into block to the data of upload after once knowing together, and synchronous
The each node being sent in network carries out distributed storage.Cun Zheng alliance is established with block chain technology, there is digitlization to add
The features such as close, centralization classification, anti-tamper, data zero are lost.The each node of block chain can be reserved for intact block chain data copy,
Common witness block chain state, it is possible to prevente effectively from centralization risk.But the problems of above-mentioned patent is due to needs
Electronic module for signing mane, therefore higher cost.In addition be difficult to deposit card data retrieve.
Embodiment one
Background and problem of the existing technology in view of the above technology, referring to Fig.1, the embodiment of the present invention provides a kind of number
According to depositing card method, this method comprises:
101, block chain node device reception chain, which is divided under the chain that preparation is sent, deposits card data;Card data are wherein deposited under chain includes
First hash value of transaction data and transaction data, transaction data include exchange hour stamp t, both parties ID, transaction content.
102, block chain node device will deposit card data and carry out hash fortune under at least one chain received in predetermined amount of time
It calculates, generates the 2nd hash value in predetermined amount of time, and record corresponding time stamp T.
103, block chain node device will deposit card under at least one chain in time stamp T, the 2nd hash value, predetermined amount of time
Data packing generation block chain is deposited card data and is locally stored, and is synchronized to other block chain node devices.
More preferably, referring to Fig.1, after step 103 further include:
S11, block chain node device receive the acquisition block chain that verifying equipment is sent and deposit card request of data.
Block chain is deposited card data and is sent to verifying equipment by S12, block chain node device, to verify equipment under chain
Card data are deposited under the chain that equipment obtains and block chain is deposited card data and compared, and determine that card data and block chain are deposited under chain deposits card number
According to whether being modified.
Illustratively, by block chain network can connect it is multiple deposit card terminal, save center, regulatory agency, notarial office from damage
Deng, this framework in the following, saving center from damage and that respectively deposits that card terminal all saves whole network deposits card record, deposits and save center from damage on demonstrate,proving
The only node of an equality.When deposit card terminal initiate once deposit card when, deposit card data area can be packaged into after once knowing together
Block, and it is synchronized to the storage of each Node distribution formula in network.Rather than inconocenter framework the same is transmitted to and saves center from damage.
In the above-mentioned methods, block chain node is divided into chain received in predetermined amount of time under at least one chain that preparation is sent
It deposits card data and carries out hash operation, generate the 2nd hash value in predetermined amount of time, and record corresponding time stamp T;And by when
Between stab to deposit card data under T, the 2nd hash value, at least one chain in predetermined amount of time and be packaged to generate block chain and deposit card data and carry out
It is locally stored, and is synchronized to other block chain node devices.The embodiment of the present invention can by transaction data carry out chain under and
Card is deposited in multiple hash operation and data on chain, deposits the fast of card data to realize while preventing from illegally distorting transaction data
Speed retrieval.
Embodiment two
Referring to Fig. 2, the embodiment of the present invention provides a kind of data and deposits card method, this method comprises:
201, equipment receives transaction data under chain;Wherein transaction data includes exchange hour stamp t, both parties ID and friendship
Easy content.
202, equipment carries out the first hash value that hash operation generates transaction data to transaction data under chain;Equipment will under chain
Card data are deposited under first hash value and transaction data packing generation chain to be stored, and are sent to block chain node device.
In addition, referring to Fig. 2, after step 202 further include:
Equipment receives and deposits card request of data under the acquisition chain that verifying equipment is sent under S21, chain.
Under S22, chain equipment will be deposited under chain card data be sent to verifying equipment, so as to verify equipment to deposited under chain card data with
The block chain obtained from block chain node device is deposited card data and is compared, and determines that card data and block chain are deposited under chain deposits card data
Whether it is modified.
In the above-mentioned methods, under chain equipment by received transaction data;Carry out hash operation generates transaction data first
Hash value;Then card data will be deposited under the first hash value and transaction data packing generation chain to store, and is sent to block
Chain node device.The embodiment of the present invention can deposit card data and be tampered by carrying out hash operation to transaction data under reduction chain
Risk, and provided for block chain node device and deposit card data under more safe and reliable chain.
Referring to Fig. 3, the embodiment of the present invention provides a kind of block chain node device 30, which includes:
Receiving unit 301 is divided under the chain that preparation is sent for reception chain and deposits card data;It includes handing over that card data are wherein deposited under chain
First hash value of easy data and transaction data, transaction data include exchange hour stamp t, both parties ID, transaction content.
Processing unit 302, for will be deposited under at least one received chain of receiving unit 301 in predetermined amount of time card data into
Row hash operation generates the 2nd hash value in predetermined amount of time, and records corresponding time stamp T.
Processing unit 302 is also used to that card will be deposited under at least one chain in time stamp T, the 2nd hash value, predetermined amount of time
Data packing generation block chain is deposited card data and is locally stored.
Transmission unit 303, the block chain for generating processing unit 302 deposit card data and are synchronized to other block chain nodes
Equipment.
In a kind of illustrative scheme, receiving unit 301 is also used to receive the acquisition block chain that verifying equipment is sent and deposits
Demonstrate,prove request of data.
Transmission unit 303 is also used to deposit card request of data according to the received acquisition block chain of receiving unit 301 for block chain
Deposit card data be sent to verifying equipment, so as to verify equipment under chain equipment obtain chain under deposit card data and block chain deposit card
Data compare, and determine that card data are deposited under chain deposits whether card data are modified with block chain.
Since the block chain node device in the embodiment of the present invention can be applied to implement to correspond in above method embodiment
Method therefore can be obtained technical effect see also method corresponding in above method embodiment, the present invention is implemented
Details are not described herein for example.
Referring to Fig. 4, the embodiment of the present invention provides equipment 40 under a kind of chain, and equipment 40 includes: under the chain
Receiving unit 401, for receiving transaction data;Wherein transaction data include exchange hour stamp t, both parties ID with
And transaction content.
Processing unit 402 generates transaction data for carrying out hash operation to the received transaction data of receiving unit 401
First hash value.
Processing unit 402, card data will be deposited under the first hash value and transaction data packing generation chain by, which being also used to, deposits
Storage.
Transmission unit 403 deposits card data under the chain for generating processing unit 402 and is sent to block chain node device.
Optionally, receiving unit 401 are also used to receive under the acquisition chain that verifying equipment is sent and deposit card request of data.
Transmission unit 403, be also used to according to deposited under the received acquisition chain of receiving unit 401 card request of data card will be deposited under chain
Data are sent to verifying equipment, deposit to verify equipment to card data are deposited under chain with the block chain obtained from block chain node device
Card data compare, and determine that card data are deposited under chain deposits whether card data are modified with block chain.
Since equipment can be applied to implement corresponding method in above method embodiment under the chain in the embodiment of the present invention,
Therefore, it can be obtained technical effect see also method corresponding in above method embodiment, the embodiment of the present invention is herein
It repeats no more.
Using integrated unit, Fig. 5 shows block chain node device involved in above-described embodiment
A kind of 30 possible structural schematic diagram.Block chain node device 30 includes: processing module 501, communication module 502 and storage mould
Block 503.Processing module 501 is for carrying out control management to the movement of block chain node device 30, for example, processing module 501 is used
Process 102,103, S12 in the support execution of block chain node device 30 Fig. 1.Communication module 502 is for supporting block chain link
The communication of point device 30 and other entities.Memory module 503 is used for the program code and data of memory block chain node device 30.
Wherein, processing module 501 can be processor or controller, such as can be central processing unit (central
Processing unit, CPU), general processor, digital signal processor (digital signal processor, DSP),
Specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array
It is (field programmable gate array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in present disclosure
Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places
Manage device combination, DSP and the combination of microprocessor etc..Communication module 502 can be transceiver, transmission circuit or communication interface
Deng.Memory module 503 can be memory.
When processing module 501 is processor as shown in FIG. 6, communication module 502 is the transceiver of Fig. 6, memory module 503
For Fig. 6 memory when, block chain node device 30 involved in the embodiment of the present application can be block chain link as described below
Point device 30.
Referring to shown in Fig. 6, which includes: processor 601, transceiver 602, memory 603 and total
Line 604.
Wherein, processor 601, transceiver 602, memory 603 are connected with each other by bus 604;Bus 604 can be outer
If component connection standard (peripheral component interconnect, PCI) bus or expanding the industrial standard structure
(extended industry standard architecture, EISA) bus etc..It is total that the bus can be divided into address
Line, data/address bus, control bus etc..Only to be indicated with a thick line in figure, it is not intended that an only bus convenient for indicating
Or a type of bus.
Processor 601 can be a general central processor (Central Processing Unit, CPU), micro process
Device, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) or one or more
A integrated circuit executed for controlling application scheme program.
Memory 603 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction
Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored
The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal
Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to
Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this.
Memory, which can be, to be individually present, and is connected by bus with processor.Memory can also be integrated with processor.
Wherein, memory 603 is used to store the application code for executing application scheme, and is controlled by processor 601
System executes.Transceiver 602 is used to receive the content of external equipment input, and processor 601 is used to execute to store in memory 603
Application code, to realize that data described in the embodiment of the present application one deposit card method.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant to execute suitable in the various embodiments of the application
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present application
Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the equipment of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it can be with
It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer
Program product includes one or more computer instructions.On computers load and execute computer program instructions when, all or
It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
Word user line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another
A web-site, computer, server or data center are transmitted.The computer readable storage medium can be computer
Any usable medium that can be accessed either includes the numbers such as one or more server, data centers that medium can be used to integrate
According to storage equipment.The usable medium can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (for example, DVD),
Or semiconductor medium (such as solid state hard disk (Solid State Disk, SSD)) etc..
The embodiment of the present invention also provides a kind of computer program product, which can be loaded directly into storage
In device, and contain software code, which is loaded into via computer and can be realized above-described embodiment after executing
One data deposit card method.
Using integrated unit, Fig. 7 shows one of equipment 40 under chain involved in above-described embodiment
The possible structural schematic diagram of kind.Equipment 40 includes: processing module 701, communication module 702 and memory module 703 under chain.Handle mould
Block 701 is for carrying out control management to the movement of equipment 40 under chain, for example, processing module 701 is for supporting that equipment 40 is held under chain
Process 202 in row Fig. 2, S22.Communication module 702 is used to support the communication of equipment 40 and other entities under chain.Memory module
703 program code and data for equipment 40 under storage chains.
Wherein, processing module 701 can be processor or controller, such as can be central processing unit (central
Processing unit, CPU), general processor, digital signal processor (digital signal processor, DSP),
Specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array
It is (field programmable gate array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in present disclosure
Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places
Manage device combination, DSP and the combination of microprocessor etc..Communication module 702 can be transceiver, transmission circuit or communication interface
Deng.Memory module 703 can be memory.
When processing module 701 is processor as shown in Figure 8, communication module 702 is the transceiver of Fig. 8, memory module 703
For Fig. 8 memory when, equipment 40 can be equipment 40 under chain as described below under chain involved in the embodiment of the present application.
Referring to shown in Fig. 8, equipment 40 includes: processor 801, transceiver 802, memory 803 and bus 804 under the chain.
Wherein, processor 801, transceiver 802, memory 803 are connected with each other by bus 804;Bus 804 can be outer
If component connection standard (peripheral component interconnect, PCI) bus or expanding the industrial standard structure
(extended industry standard architecture, EISA) bus etc..It is total that the bus can be divided into address
Line, data/address bus, control bus etc..Only to be indicated with a thick line in figure, it is not intended that an only bus convenient for indicating
Or a type of bus.
Processor 801 can be a general central processor (Central Processing Unit, CPU), micro process
Device, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) or one or more
A integrated circuit executed for controlling application scheme program.
Memory 803 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction
Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored
The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal
Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to
Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this.
Memory, which can be, to be individually present, and is connected by bus with processor.Memory can also be integrated with processor.
Wherein, memory 803 is used to store the application code for executing application scheme, and is controlled by processor 801
System executes.Transceiver 802 is used to receive the content of external equipment input, and processor 801 is used to execute to store in memory 803
Application code, to realize that data described in the embodiment of the present application two deposit card method.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant to execute suitable in the various embodiments of the application
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present application
Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the equipment of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it can be with
It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer
Program product includes one or more computer instructions.On computers load and execute computer program instructions when, all or
It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
Word user line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another
A web-site, computer, server or data center are transmitted.The computer readable storage medium can be computer
Any usable medium that can be accessed either includes the numbers such as one or more server, data centers that medium can be used to integrate
According to storage equipment.The usable medium can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (for example, DVD),
Or semiconductor medium (such as solid state hard disk (Solid State Disk, SSD)) etc..
The embodiment of the present invention also provides a kind of computer program product, which can be loaded directly into storage
In device, and contain software code, which is loaded into via computer and can be realized above-described embodiment after executing
Two data deposit card method.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
Claims (14)
1. a kind of data deposit card method, which is characterized in that the described method includes:
Block chain node device reception chain, which is divided under the chain that preparation is sent, deposits card data;It includes transaction that card data are wherein deposited under the chain
First hash value of data and the transaction data, the transaction data include exchange hour stamp t, both parties ID, transaction
Content;
The block chain node device will deposit card data and carry out hash operation under at least one chain received in predetermined amount of time, raw
At the 2nd hash value in the predetermined amount of time, and record corresponding time stamp T;
The block chain node device by described in the time stamp T, the 2nd hash value, the predetermined amount of time at least
Card data are deposited under one chain be packaged to generate block chain and deposit card data and be locally stored, and be synchronized to other block chain nodes and set
It is standby.
2. data according to claim 1 deposit card method, which is characterized in that described other block chain nodes that are synchronized to are set
It is standby, later further include:
The block chain node device receives the acquisition block chain that verifying equipment is sent and deposits card request of data;
The block chain is deposited card data and is sent to the verifying equipment by the block chain node device, so as to the verifying equipment
To under the chain equipment obtain chain under deposit card data and the block chain deposit demonstrate,prove data compare, determine and deposited under the chain
Card data deposit whether card data are modified with the block chain.
3. a kind of data deposit card method, which is characterized in that the described method includes:
Equipment receives transaction data under chain;Wherein the transaction data package includes in exchange hour stamp t, both parties ID and transaction
Hold;
Equipment carries out the first hash value that hash operation generates the transaction data to the transaction data under the chain;
Equipment will be deposited card data under the first hash value and transaction data packing generation chain and be stored under the chain, concurrently
It send to the block chain node device.
4. data according to claim 3 deposit card method, which is characterized in that equipment is by the first hash value under the chain
And deposit card data under transaction data packing generation chain and stored, and be sent to the block chain node device, it also wraps later
It includes:
Equipment receives and deposits card request of data under the acquisition chain that verifying equipment is sent under the chain;
Equipment will deposit card data and be sent to the verifying equipment under the chain under the chain, so that the verifying equipment under chain to depositing
Card data are deposited card data with the block chain obtained from the block chain node device and are compared, and determine and deposit card data under the chain
Deposit whether card data are modified with the block chain.
5. a kind of block chain node device, which is characterized in that the described method includes:
Receiving unit is divided under the chain that preparation is sent for reception chain and deposits card data;It includes transaction that card data are wherein deposited under the chain
First hash value of data and the transaction data, the transaction data include exchange hour stamp t, both parties ID, transaction
Content;
Processing unit carries out hash for will deposit card data under at least one received chain of receiving unit described in predetermined amount of time
Operation generates the 2nd hash value in the predetermined amount of time, and records corresponding time stamp T;
The processing unit, be also used to by described in the time stamp T, the 2nd hash value, the predetermined amount of time extremely
Card data are deposited under a few chain be packaged to generate block chain and deposit card data be locally stored;
The transmission unit, the block chain for generating the processing unit deposit card data and are synchronized to other block chain links
Point device.
6. block chain node device according to claim 5 characterized by comprising
The receiving unit is also used to receive the acquisition block chain that verifying equipment is sent and deposits card request of data;
The transmission unit, being also used to deposit card request of data according to the received acquisition block chain of the receiving unit will be described
Block chain deposits card data and is sent to the verifying equipment, so that the verifying equipment is deposited under the chain that equipment under the chain obtains
Card data and the block chain are deposited card data and are compared, and determine to deposit card data and the block chain under the chain and deposit and demonstrate,prove data and be
It is no to be modified.
7. equipment under a kind of chain, which is characterized in that the described method includes:
Receiving unit, for receiving transaction data;Wherein the transaction data package include exchange hour stamp t, both parties ID and
Transaction content;
Processing unit carries out hash operation for the transaction data received to the receiving unit and generates the transaction data
The first hash value;
The processing unit, card data will be deposited under the first hash value and transaction data packing generation chain by, which being also used to, deposits
Storage;
The transmission unit deposits card data under the chain for generating the processing unit and is sent to the block chain node
Equipment.
8. equipment under chain according to claim 7 characterized by comprising
The receiving unit is also used to receive under the acquisition chain that verifying equipment is sent and deposits card request of data;
The transmission unit is also used to deposit card request of data under the chain for institute according to the receiving unit received described obtain
It states and deposits card data under chain and be sent to the verifying equipment, so that the verifying equipment is to depositing card data and from the block chain under chain
The block chain that node device obtains is deposited card data and is compared, and determines that card data and the block chain are deposited under the chain deposits card data
Whether it is modified.
9. a kind of block chain node device, which is characterized in that include processor and depositing in the structure of the block chain node device
Reservoir, the memory save the necessary program instruction sum number of the block chain node device for coupling with the processor
According to the processor is for executing the program instruction stored in the memory, so that the block chain node device executes such as
The described in any item data of claim 1-2 deposit card method.
10. a kind of computer storage medium, which is characterized in that be stored with computer program generation in the computer storage medium
Code, when the computer program code is run on block chain node device as claimed in claim 9, so that the block
Chain node device is executed as the described in any item data of claim 1-2 deposit card method.
11. a kind of computer program product, which is characterized in that the computer program product stores computer software instructions,
When the computer software instructions are run on block chain node device as claimed in claim 9, so that the block chain
Node device is executed as the described in any item data of claim 1-2 deposit card method.
12. equipment under a kind of chain, which is characterized in that described to deposit including processor and memory in the structure of equipment under the chain
For coupling with the processor, the memory is used to save the necessary program instruction of equipment and data under the chain reservoir,
The processor is for executing the program instruction stored in the memory, so that equipment executes such as claim 3- under the chain
4 described in any item data deposit card method.
13. a kind of computer storage medium, which is characterized in that be stored with computer program generation in the computer storage medium
Code, when the computer program code is run in equipment under chain as claimed in claim 12, so that equipment under the chain
It executes as the described in any item data of claim 3-4 deposit card method.
14. a kind of computer program product, which is characterized in that the computer program product stores computer software instructions,
When the computer software instructions are run in equipment under chain as claimed in claim 12, so that equipment executes under the chain
As the described in any item data of claim 3-4 deposit card method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811399726.1A CN109543459A (en) | 2018-11-22 | 2018-11-22 | A kind of data deposit card method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811399726.1A CN109543459A (en) | 2018-11-22 | 2018-11-22 | A kind of data deposit card method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109543459A true CN109543459A (en) | 2019-03-29 |
Family
ID=65850215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811399726.1A Pending CN109543459A (en) | 2018-11-22 | 2018-11-22 | A kind of data deposit card method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109543459A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020951A (en) * | 2019-04-10 | 2019-07-16 | 北京筑龙信息技术有限责任公司 | A kind of transaction data authentication method, apparatus and storage medium based on block chain |
CN110046521A (en) * | 2019-04-24 | 2019-07-23 | 成都派沃特科技股份有限公司 | Decentralization method for secret protection |
CN111105277A (en) * | 2019-12-25 | 2020-05-05 | 中国银联股份有限公司 | Block chain state change transaction tracing method and device |
CN111415162A (en) * | 2020-04-29 | 2020-07-14 | 陈议尊 | Transaction method and system based on block chain public chain |
CN112231763A (en) * | 2020-09-11 | 2021-01-15 | 深圳华工能源技术有限公司 | Energy-saving data authentication method for energy-saving equipment of power distribution and utilization system based on block chain technology |
CN112417466A (en) * | 2020-10-12 | 2021-02-26 | 江苏数予科技有限公司 | Block chain-based electronic archive file evidence storage and verification method and system |
CN114491668A (en) * | 2022-01-24 | 2022-05-13 | 杭州数钮科技有限公司 | Data tampering detection method, system, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105790954A (en) * | 2016-03-02 | 2016-07-20 | 布比(北京)网络技术有限公司 | Method and system for constructing electronic evidence |
CN107888375A (en) * | 2017-11-08 | 2018-04-06 | 深圳市携网科技有限公司 | A kind of electronic evidence safety system and method based on block chain technology |
CN108629038A (en) * | 2018-05-11 | 2018-10-09 | 北京奇虎科技有限公司 | Webpage based on block chain deposits card method and system |
-
2018
- 2018-11-22 CN CN201811399726.1A patent/CN109543459A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105790954A (en) * | 2016-03-02 | 2016-07-20 | 布比(北京)网络技术有限公司 | Method and system for constructing electronic evidence |
CN107888375A (en) * | 2017-11-08 | 2018-04-06 | 深圳市携网科技有限公司 | A kind of electronic evidence safety system and method based on block chain technology |
CN108629038A (en) * | 2018-05-11 | 2018-10-09 | 北京奇虎科技有限公司 | Webpage based on block chain deposits card method and system |
Non-Patent Citations (1)
Title |
---|
侯义斌等: "基于区块链的电子证据系统架构模型", 《计算机科学》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020951A (en) * | 2019-04-10 | 2019-07-16 | 北京筑龙信息技术有限责任公司 | A kind of transaction data authentication method, apparatus and storage medium based on block chain |
CN110046521A (en) * | 2019-04-24 | 2019-07-23 | 成都派沃特科技股份有限公司 | Decentralization method for secret protection |
CN111105277A (en) * | 2019-12-25 | 2020-05-05 | 中国银联股份有限公司 | Block chain state change transaction tracing method and device |
CN111415162A (en) * | 2020-04-29 | 2020-07-14 | 陈议尊 | Transaction method and system based on block chain public chain |
CN112231763A (en) * | 2020-09-11 | 2021-01-15 | 深圳华工能源技术有限公司 | Energy-saving data authentication method for energy-saving equipment of power distribution and utilization system based on block chain technology |
CN112417466A (en) * | 2020-10-12 | 2021-02-26 | 江苏数予科技有限公司 | Block chain-based electronic archive file evidence storage and verification method and system |
CN114491668A (en) * | 2022-01-24 | 2022-05-13 | 杭州数钮科技有限公司 | Data tampering detection method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109543459A (en) | A kind of data deposit card method and apparatus | |
CN113222752B (en) | Block chain based data processing system, method, computing device and storage medium | |
CN109993647B (en) | Tax collection system based on blockchain and processing method | |
CN108829350A (en) | Data migration method and device based on block chain | |
CN109409122A (en) | File memory method and its electronic equipment, storage medium | |
CN106100902A (en) | High in the clouds index monitoring method and apparatus | |
JP7479393B2 (en) | SYSTEM AND METHOD FOR A VIRTUAL DISTRIBUTED LEDGER NETWORK | |
CN108900464A (en) | Electronic device, data processing method and computer storage medium based on block chain | |
CN109241772A (en) | Invoice block chained record method, apparatus, block chain gateway server and medium | |
CN110011978A (en) | A kind of method and system of modification block chain network configuration | |
CN111339141B (en) | Data transmission method, block chain node equipment and medium | |
TW202046212A (en) | Blockchain-based leasing method and apparatus | |
CN110930152B (en) | Data processing method based on block chain and related equipment | |
TW202036418A (en) | Block chain-based method and device for taxi operation | |
CN115270193B (en) | Data file secure sharing method and device based on block chain and collaborative synchronization | |
CN109918384A (en) | A kind of method of data synchronization and its equipment, storage medium, electronic equipment | |
CN111274597B (en) | Data processing method and device | |
CN114418570B (en) | Method and device for processing non-homogeneous pass based on blockchain | |
CN112699136B (en) | Cross-link certificate storage method and related device | |
CN112217639B (en) | Data encryption sharing method and device, electronic equipment and computer storage medium | |
Zhao | [Retracted] Design of Optimal Scheduling Model for Emergency Medical Supplies by Blockchain Technology | |
CN101517540B (en) | Method and system for resource-based event typing in a rules system | |
CN109359477A (en) | A kind of data encryption, data verification method and its system | |
Bhashini et al. | An End-to-End secured Blockchain framework for Internet of Things based smart Healthcare | |
CN114491581A (en) | Enterprise electronic card package platform for credible business service |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |
|
RJ01 | Rejection of invention patent application after publication |