CN110288477A - A kind of block chain transaction data processing method and relevant device - Google Patents
A kind of block chain transaction data processing method and relevant device Download PDFInfo
- Publication number
- CN110288477A CN110288477A CN201910562109.7A CN201910562109A CN110288477A CN 110288477 A CN110288477 A CN 110288477A CN 201910562109 A CN201910562109 A CN 201910562109A CN 110288477 A CN110288477 A CN 110288477A
- Authority
- CN
- China
- Prior art keywords
- information
- transaction
- check
- node equipment
- obtains
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 39
- 238000012545 processing Methods 0.000 claims abstract description 39
- 238000012795 verification Methods 0.000 claims description 15
- 238000007906 compression Methods 0.000 claims description 8
- 230000006835 compression Effects 0.000 claims description 7
- 230000006837 decompression Effects 0.000 claims description 7
- 238000005457 optimization Methods 0.000 abstract description 6
- 230000008569 process Effects 0.000 description 13
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000012360 testing method Methods 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 4
- 235000013399 edible fruits Nutrition 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000002085 persistent effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000013144 data compression Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- 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)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Economics (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application discloses a kind of block chain transaction data processing method and its relevant device, for realizing the amount of storage for reducing block catenary system, saves network bandwidth.The embodiment of the present application method includes: that first node equipment obtains structure of deal body information, and the structure of deal body information includes Transaction Information and check information;The structure of deal body information is compressed, target data is obtained;The target data is uploaded into broadcast to block catenary system.Therefore, use compressed target data as the processing mode of optimization transaction data, reduce size of data, to reduce the amount of storage of block catenary system, save network bandwidth.
Description
Technical field
This application involves block chain technology more particularly to a kind of block chain transaction data processing methods and relevant device.
Background technique
Block chain technology is that algorithm of knowing together with storing data, using distributed node is verified using block linked data structure
Guarantee the safety of data transmission and access with more new data, in the way of cryptography, using by automatized script generation to generate
The intelligent contract of code composition programs the completely new distributed basis framework and calculation of one kind with operation data.
In existing block catenary system, transaction initiates node for the processing of every transaction, fills according to the input of user
After structure of deal body relevant field, all data in structure of deal body is directly placed into trading pit, miner is waited to be packaged.
However, making the data for safeguarding block catenary system in this way, each miner is caused to need to safeguard a large amount of transaction
Data waste a large amount of memory spaces, and by taking famous ether mill as an example, the data volume in ether mill has reached TB rank, if
One new miner is added, and needs to synchronize all data, in existing network, inefficiency first.
Summary of the invention
The embodiment of the present application provides a kind of block chain transaction data processing method and its relevant device, for realizing reduction
The amount of storage of block catenary system saves network bandwidth.
First aspect provides a kind of block chain transaction data processing method in the embodiment of the present application, is applied to first node
Equipment, the first node equipment are a node in block catenary system, which comprises
Structure of deal body information is obtained, the structure of deal body information includes Transaction Information and check information;
The structure of deal body information is compressed, target data is obtained;
The target data is uploaded into broadcast into block catenary system so that the second node equipment get it is described
Target data simultaneously decompresses after obtaining structure of deal body information the target data, according to the check information to described
Transaction Information carries out legitimacy verifies, obtains check results.
Optionally, the acquisition structure of deal body information specifically includes:
Transaction Information is obtained, the Transaction Information includes transaction content and signing messages;
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains the check information;
The structure of deal body information is generated according to the Transaction Information and the check information.
Optionally, described that operation is carried out to the serialization information using Message Digest 5, obtain the check information
Include:
Operation is carried out to the serialization information using Message Digest 5, obtains initial check information, the initial school
The length for testing information is 32 bytes;
Intercepting the data that length in the initial check information is target length byte is the check information, the target
Length is the integer greater than 0 less than 32.
The embodiment of the present application second aspect provides a kind of block chain transaction data processing method, sets applied to second node
It is standby, which comprises
The target data that the first node equipment is sent is obtained in the block catenary system;
The target data is decompressed, structure of deal body information is obtained, the structure of deal body information includes transaction
Information and check information;
Legitimacy verifies are carried out to the Transaction Information according to the check information, obtain check results.
Optionally, described that legitimacy verifies are carried out to the Transaction Information according to the check information, obtain check results
It specifically includes:
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains target information;
Legitimacy verifies are carried out to the check information using the target information, obtain the check results.
The embodiment of the present application third aspect provides a kind of block chain transaction data processing system, sets applied to first node
It is standby, the system comprises:
Acquiring unit, for obtaining structure of deal body information, the structure of deal body information includes Transaction Information and verification
Information;
Compression unit obtains target data for compressing to the structure of deal body information;
Radio unit, for the target data to be uploaded broadcast into the block catenary system, so that described second
Node device decompresses after obtaining structure of deal body information the target data, according to the check information to the friendship
Easy information carries out legitimacy verifies, obtains check results.
Optionally, the acquiring unit is specifically used for:
Transaction Information is obtained, the Transaction Information includes transaction content and signing messages;
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains the check information;
The structure of deal body information is generated according to the Transaction Information and the check information.
Optionally, the acquiring unit is specifically used for:
Operation is carried out to the serialization information using Message Digest 5, obtains initial check information, the initial school
The length for testing information is 32 bytes;
Intercepting the data that length in the initial check information is target length byte is the check information, the target
Length is the integer greater than 0 less than 32.
The embodiment of the present application fourth aspect provides a kind of block chain transaction data processing system, sets applied to second node
Standby, the second node equipment is a node in block catenary system, the system comprises:
Acquiring unit, the target data sent for obtaining the first node equipment in the block catenary system;
Decompression units obtain structure of deal body information, the structure of deal body for decompressing to the target data
Information includes Transaction Information and check information;
Verification unit obtains verification knot for carrying out legitimacy verifies to the Transaction Information according to the check information
Fruit.
Optionally, the verification unit is specifically used for:
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains target information;
Legitimacy verifies are carried out to the check information using the target information, obtain the check results.
The 5th aspect of the embodiment of the present application provides a kind of first node equipment, and the first node equipment includes:
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing the method as performed by first node in preceding method embodiment.
The 6th aspect of the embodiment of the present application provides a kind of second node equipment, and the second node equipment includes:
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing the method as performed by second node in preceding method embodiment.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that in the present embodiment, this method application
In first node equipment, the first node equipment is a node in block catenary system, and the block catenary system further includes
Second node equipment, which comprises obtain structure of deal body information, the structure of deal body information include Transaction Information and
Check information;The structure of deal body information is compressed, target data is obtained;The target data is uploaded into broadcast to institute
State block catenary system.Therefore, use compressed target data as the processing mode of optimization transaction data, it is big to reduce data
It is small, to reduce the amount of storage of block catenary system, save network bandwidth.
Detailed description of the invention
Fig. 1 is an a kind of schematic diagram of block chain transaction data processing method embodiment in the embodiment of the present application;
Fig. 2 is a kind of another schematic diagram of block chain transaction data processing method embodiment in the embodiment of the present application;
Fig. 3 is a kind of another schematic diagram of block chain transaction data processing method embodiment in the embodiment of the present application;
Fig. 4 is an a kind of schematic diagram of block chain transaction data processing system embodiment in the embodiment of the present application;
Fig. 5 is a kind of another schematic diagram of block chain transaction data processing system embodiment in the embodiment of the present application;
Fig. 6 is an a kind of schematic diagram of first node apparatus embodiments in the embodiment of the present application;
Fig. 7 is a kind of another schematic diagram of second node apparatus embodiments in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of block chain transaction data processing method and its relevant device, for realizing reduction
The amount of storage of block catenary system saves network bandwidth.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing
Sequence other than appearance is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive
Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange
Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment
The other step or units having.
In existing block catenary system, transaction initiates node for the processing of every transaction, fills according to the input of user
After structure of deal body relevant field, all data in structure of deal body is directly placed into trading pit, miner is waited to be packaged.
However, this mode safeguards the case where data of block catenary system, each miner is caused to need to safeguard a large amount of transaction data, wave
Take a large amount of memory spaces, by taking famous ether mill as an example, the data volume in ether mill has reached TB rank, if one new
Miner is added, and needs to synchronize all data, in existing network, inefficiency first.For this purpose, the embodiment of the present application mentions
A kind of block chain transaction data processing method and its relevant device are supplied, for realizing the amount of storage for reducing block catenary system, section
About network bandwidth.
In order to make it easy to understand, the detailed process in the embodiment of the present application is described below, referring to Fig. 1, the application
A kind of one embodiment of block chain transaction data processing method includes: in embodiment
101, first node equipment obtains structure of deal body information;
In the present embodiment, first node equipment obtains structure of deal body information, which includes transaction letter
Breath and check information.
Wherein, first node equipment is a node in block catenary system, which further includes second node
Equipment, in the present embodiment, first node equipment can be the initiator to trade in block catenary system, and second node equipment refers to
General node in block catenary system, for carrying out the node of transaction verification to the transaction that first node equipment is initiated.
Specifically, structure of deal body information can be json, xml, libconfig either other common structural body letters
Breath, herein without limitation.In addition, Transaction Information may include Transaction Information such as beneficiary address, number of deals, the hair on basis
It rises except people address and/or remark information etc., which can also include in the Transaction Informations such as exchange hour, signing messages
One or more.
Check information refers to the specific fields that data check is used in structure of deal body information, illustratively, the school
It tests information and can be as message authentication code (MAC, MessageAuthentication Code) field, to guarantee that Transaction Information is tested
The safety of card can carry out Hash operation to all or part of information in the Transaction Information according to preset rules herein and obtain
To cryptographic Hash, use the cryptographic Hash as the check information.
102, first node equipment compresses structure of deal body information;
In the present embodiment, first node equipment compresses the structure of deal body information that step 101 acquires, and obtains
Target data.
Specifically, RAR, ZIP either Google Protocol Buffer can be used in first node equipment herein
Compression process is realized etc. common compression algorithm, by structure of deal body Information Compression at target data, it is clear that at overcompression
After reason, the data volume of target data becomes smaller than structure of deal body information before compressing after compression, is applied to subsequent block chain
Transaction data verification in system, may be implemented the amount of storage for reducing block catenary system.
103, first node equipment uploads broadcast target data into block catenary system;
In the present embodiment, the target data that first node equipment obtains after compressing step 102 uploads broadcast to the area
In block catenary system, so that the second node equipment gets the target data and decompress to the target data
To after structure of deal body information, legitimacy verifies are carried out to the Transaction Information according to the check information, obtain verification knot
Fruit.
To, use compressed target data as the processing mode of optimization transaction data, reduces size of data, thus
The amount of storage of block catenary system is reduced, network bandwidth is saved.
104, second node equipment obtains target data from block catenary system;
In the present embodiment, second node equipment obtains the number of targets of first node equipment transmission in the block catenary system
According to, wherein target data is that first node equipment is compressed to obtain to structure of deal body information.
Wherein, second node equipment obtains target data in block catenary system, and the specific second node equipment can also be with
For first node equipment, i.e., the technology contents that first node equipment executes in execution previous step;The second node equipment can also
With for first node equipment, second node equipment does not carry out data friendship by other nodes in the block catenary system and the system
Mutually, herein without limitation.
105, second node equipment decompresses data;
In the present embodiment, second node equipment decompresses the target data that step 104 acquires, and obtains transaction knot
Structure body information, the structure of deal body information includes Transaction Information and check information.
Specifically, according to normal process conventional Protocol decoding process can be used to mesh in second node equipment herein
Mark data are decompressed to obtain structure of deal body information, and determine Transaction Information and check information wherein.Herein, transaction knot
Structure body information can be json, xml, libconfig either other common structural body information, herein without limitation.In addition,
Transaction Information may include beneficiary address, and number of deals, promoter address, remark information, exchange hour, signing messages etc. are handed over
One or more of easy information, check information refer to the specific fields that data check is used in structure of deal body information,
Illustratively, which can be as message authentication code (MAC, MessageAuthentication Code) field.
106, second node equipment verification data.
In the present embodiment, second node equipment carries out the Transaction Information according to the check information that step 105 acquires
Legitimacy verifies obtain check results.
It is obtained specifically, Hash operation can be carried out to all or part of information in the Transaction Information according to preset rules
To cryptographic Hash, use the cryptographic Hash as comparison information, the check information pressed out using the comparison information and step 105 solution into
Row verification, obtains check results.After this, which can determine that step 104 obtains according to the check results
To target data whether be valid data, when determining that it is valid data, which can be put into trading pit row
Sequence executes transaction, is also possible to directly form it in new block addition block chain, specifically herein without limitation.If judging mesh
Mark data it is legal after, exchange hour, number of deals etc. with no restrictions, is decided in its sole discretion by trading pit, for example, receive transaction when
Between field be two days later, number of deals be greater than account balance when, transaction can be hung up, until when hold again
Row, if it is determined that transaction is illegal, can directly abandon the transaction, herein without limitation.
In the present embodiment, first node equipment is compressed to structure of deal body information, obtains target data, will be described
After target data uploads broadcast into the block catenary system, so that second node equipment executes subsequent checking procedure, because
This, uses compressed target data as the processing mode of optimization transaction data, size of data is reduced, to reduce block chain
The amount of storage of system saves network bandwidth.
Based on embodiment described in Fig. 1,101 first node equipment of specific steps obtains the implementation procedure of structure of deal body information
In, it can further be defined, data be reduced to enhance the data compression of step 102 compressed data process effect
Fruit.
Below referring to Fig. 2, based on embodiment described in Fig. 1, a kind of block chain transaction data processing side of the embodiment of the present application
In another embodiment of method, the implementation procedure of specific steps 101 may include:
201, Transaction Information is obtained;
In the present embodiment, first node equipment obtains Transaction Information, and the Transaction Information includes transaction content and A.L.S.
Breath.
Specifically, transaction content refers to beneficiary address, number of deals, one in promoter address, Transaction Information etc.
A or multiple, signing messages refers to that user inputs trading password and obtains the private key of wallet, is signed with private key to structural body
Obtained signing messages.
202, serializing processing is carried out to the Transaction Information, obtains serialization information;
In the present embodiment, first node equipment carries out serializing processing to the Transaction Information acquired in step 201, obtains
To serialization information.
Specifically, serializing is the process that the status information of object is converted to the form that can store or transmit.In sequence
During columnization, its current state is written to interim or persistent storage area by object.After, it can be by being read from memory block
Or the state of unserializing object, re-create the object.Wherein it is possible to using RLP, XML, Protobuf either Thrift
Deng common serializing algorithm.
203, operation is carried out to the serialization information using Message Digest 5, obtains the check information;
In the present embodiment, first node equipment carries out operation to the serialization information using Message Digest 5, obtains
The check information.
Specifically, carrying out hash message authentication code (HMAC, Hash-based to the structural body after serializing
MessageAuthentication Code) operation, illustratively, can using sha3-256hash algorithm calculate, use user
Signing messages obtain operation result as key, and the operation result is confirmed as check information.
As a preferred embodiment, in order to enable the data volume for the result that scheme obtains is less, this step is being implemented
In the process, Message Digest 5 can be used, operation is carried out to the serialization information, obtain initial check information, it is described initial
The length of check information is 32 bytes;Intercepting length in the initial check information according to preset rules is target length byte
Data are the check information, and the target length is the integer greater than 0 less than 32, it is preferable that can be incited somebody to action according to preset rules
Operation result takes check information corresponding field of preceding 8 padding bytes in structure of deal body.
204, the structure of deal body information is generated according to the Transaction Information and the check information.
In the present embodiment, the Transaction Information and verification that first node equipment is obtained according to normal process according to step 203 are believed
Breath generates structure of deal body information, which is used for the data processing of subsequent step.
In the present embodiment, based on embodiment described in Fig. 2, it specifically is optimized in the data that first node equipment uploads
Afterwards, the process of the step 106 verification data executed in second node equipment is also required to carry out corresponding improve and optimizate simultaneously.
Below referring to Fig. 3, based on embodiment described in Fig. 2, a kind of block chain transaction data processing side of the embodiment of the present application
In another embodiment of method, the implementation procedure of specific steps 106 may include:
301, serializing processing is carried out to the Transaction Information, obtains serialization information;
302, operation is carried out to the serialization information using Message Digest 5, obtains target information;
In the present embodiment, similar to the implementation procedure of step 202 and step 203, second node equipment uses corresponding pre-
If the Transaction Information that rule obtains step 105 decompression carries out serializing processing and carries out Message Digest 5 progress operation, obtain
To target information.
303, legitimacy verifies are carried out to the check information using the target information, obtains the check results.
In the present embodiment, target information that second node equipment is obtained using step 302 operation to the check information into
Row legitimacy verifies obtain the check results.
Specifically, what traditional ether mill structure of deal body was filled in check field is the cryptographic Hash of Transaction Information, is accounted for
32 bytes, for guaranteeing that structure of deal body was not tampered with.Simple Hash operation is abandoned in the present embodiment, by the money of user
Packet address (i.e. signing messages) is incorporated, and carries out Message Digest 5 operation, is increased malice and is distorted difficulty, while can will tie
Fruit takes preceding 8 byte, and in the case where the calculating of active computer is horizontal, 8 byte difficulty can be very good to meet block chain transaction peace
The demand of full property, saves certain network transmission pressure and memory space.
The embodiment of the present application is described from the angle of method above, below from the angle of virtual bench to the application
Embodiment is illustrated.
Referring to Fig. 4, a kind of one embodiment of block chain transaction data processing system includes: in the embodiment of the present application
Acquiring unit 401, for obtaining structure of deal body information, the structure of deal body information includes Transaction Information and school
Test information;
Compression unit 402 obtains target data for compressing to the structure of deal body information;
Radio unit 403, for the target data to be uploaded broadcast into the block catenary system, so that described the
Two node devices decompress after obtaining structure of deal body information the target data, according to the check information to described
Transaction Information carries out legitimacy verifies, obtains check results.
In the present embodiment, which is applied to first node equipment, and the first node equipment is in block catenary system
One node, the block catenary system further include second node equipment, the system comprises: acquiring unit 401 is handed over for obtaining
Easy structural body information, the structure of deal body information includes Transaction Information and check information;Compression unit 402, for described
Structure of deal body information is compressed, and target data is obtained;Radio unit 403, for the target data to be uploaded broadcast extremely
In the block catenary system, so that the second node equipment decompresses the target data to obtain structure of deal body letter
After breath, legitimacy verifies are carried out to the Transaction Information according to the check information, obtain check results.Therefore, using pressure
Processing mode of the target data as optimization transaction data after contracting, reduces size of data, to reduce depositing for block catenary system
Reserves save network bandwidth.
As a preferred embodiment, the acquiring unit 401 is specifically used for:
Transaction Information is obtained, the Transaction Information includes transaction content and signing messages;
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains the check information;
The structure of deal body information is generated according to the Transaction Information and the check information.
As a preferred embodiment, the acquiring unit 401 is specifically used for:
Operation is carried out to the serialization information using Message Digest 5, obtains initial check information, the initial school
The length for testing information is 32 bytes;
Intercepting the data that length in the initial check information is target length byte is the check information, the target
Length is the integer greater than 0 less than 32.
Below referring to Fig. 4, in the embodiment of the present application, a kind of another embodiment of block chain transaction data processing system
In include:
Acquiring unit 501, the target data sent for obtaining the first node equipment in the block catenary system;
Decompression units 502 obtain structure of deal body information, the transaction knot for decompressing to the target data
Structure body information includes Transaction Information and check information;
Verification unit 503 is verified for carrying out legitimacy verifies to the Transaction Information according to the check information
As a result.
As a preferred embodiment, the verification unit 503 is specifically used for:
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains target information;
Legitimacy verifies are carried out to the check information using the target information, obtain the check results.
In the present embodiment, which is applied to second node equipment, and the second node equipment is in block catenary system
One node, the block catenary system further include first node equipment, the system comprises: acquiring unit 501, for described
The target data that the first node equipment is sent is obtained in block catenary system;Decompression units 502, for the target data
It is decompressed, obtains structure of deal body information, the structure of deal body information includes Transaction Information and check information;Verification unit
503, for carrying out legitimacy verifies to the Transaction Information according to the check information, obtain check results.Wherein, the second section
Point device executes subsequent checking procedure using the data after decompression, therefore, using to data compression and decompression treated
Processing mode of the target data as optimization transaction data, reduces size of data, to reduce the amount of storage of block catenary system, saves
About network bandwidth.
The embodiment of the present application is illustrated from the angle of virtual bench above, below from the angle of entity apparatus to this
Application embodiment is introduced.
Referring to Fig. 6, a kind of one embodiment of first node equipment includes: in the embodiment of the present application
First node equipment 600 can generate bigger difference because configuration or performance are different, may include one or one
A above central processing unit (central processing units, CPU) 601 (for example, one or more processors)
With memory 605, one or more application program or data are stored in the memory 605.
Wherein, memory 605 can be volatile storage or persistent storage.The program for being stored in memory 605 can wrap
One or more modules are included, each module may include to the series of instructions operation in server.Further, in
Central processor 601 can be set to communicate with memory 605, execute on server platform 600 a series of in memory 605
Instruction operation.
The first node equipment 600 can also include one or more power supplys 602, one or more it is wired or
Radio network interface 603, one or more input/output interfaces 604, and/or, one or more operating systems, example
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The processor 601 is specifically used for executing following steps:
Structure of deal body information is obtained, the structure of deal body information includes Transaction Information and check information;
The structure of deal body information is compressed, target data is obtained;
The target data is uploaded into broadcast into the block catenary system, so that the second node equipment is got
The target data simultaneously decompresses after obtaining structure of deal body information the target data, according to the check information pair
The Transaction Information carries out legitimacy verifies, obtains check results.
As a preferred embodiment, the acquisition structure of deal body information is specifically included:
Transaction Information is obtained, the Transaction Information includes transaction content and signing messages;
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains the check information;
The structure of deal body information is generated according to the Transaction Information and the check information.
It is described that operation is carried out to the serialization information using Message Digest 5 as a preferred embodiment, obtain institute
Stating check information includes:
Operation is carried out to the serialization information using Message Digest 5, obtains initial check information, the initial school
The length for testing information is 32 bytes;
Intercepting the data that length in the initial check information is target length byte is the check information, the target
Length is the integer greater than 0 less than 32.
Referring to Fig. 7, a kind of one embodiment of second node equipment includes: in the embodiment of the present application
Second node equipment 700 can generate bigger difference because configuration or performance are different, may include one or one
A above central processing unit (central processing units, CPU) 701 (for example, one or more processors)
With memory 705, one or more application program or data are stored in the memory 705.
Wherein, memory 705 can be volatile storage or persistent storage.The program for being stored in memory 705 can wrap
One or more modules are included, each module may include to the series of instructions operation in server.Further, in
Central processor 701 can be set to communicate with memory 705, execute on server platform 700 a series of in memory 705
Instruction operation.
The second node equipment 700 can also include one or more power supplys 702, one or more it is wired or
Radio network interface 703, one or more input/output interfaces 704, and/or, one or more operating systems, example
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The processor 701 is specifically used for executing following steps:
The target data that the first node equipment is sent is obtained in the block catenary system;
The target data is decompressed, structure of deal body information is obtained, the structure of deal body information includes transaction
Information and check information;
Legitimacy verifies are carried out to the Transaction Information according to the check information, obtain check results.
It is described that legitimacy verifies are carried out to the Transaction Information according to the check information as a preferred embodiment, it obtains
It is specifically included to check results:
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains target information;
Legitimacy verifies are carried out to the check information using the target information, obtain the check results.
It is understood that the size of the serial number of above steps is not meant in the various embodiments of the application
Execution sequence it is successive, the execution of each step sequence should be determined by its function and internal logic, without coping with the embodiment of the present application
Implementation process constitute any restriction.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system 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, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, 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 device 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.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application 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 the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, RandomAccess Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of block chain transaction data processing method, which is characterized in that be applied to first node equipment, which comprises
Structure of deal body information is obtained, the structure of deal body information includes Transaction Information and check information;
The structure of deal body information is compressed, target data is obtained;
The target data is uploaded into broadcast to block catenary system.
2. the method according to claim 1, wherein the acquisition structure of deal body information specifically includes:
Transaction Information is obtained, the Transaction Information includes transaction content and signing messages;
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains the check information;
The structure of deal body information is generated according to the Transaction Information and the check information.
3. according to the method described in claim 2, it is characterized in that, described use Message Digest 5 to the serialization information
Operation is carried out, obtaining the check information includes:
Operation is carried out to the serialization information using Message Digest 5, obtains initial check information, the initial verification letter
The length of breath is 32 bytes;
Intercepting the data that length in the initial check information is target length byte is the check information, the target length
For the integer greater than 0 less than 32.
4. a kind of block chain transaction data processing method, which is characterized in that be applied to second node equipment, the second node is set
A standby node in block catenary system, the block catenary system further includes first node equipment, which comprises
The target data that the first node equipment is sent is obtained in the block catenary system;
The target data is decompressed, obtains structure of deal body information, the structure of deal body information includes Transaction Information
And check information;
Legitimacy verifies are carried out to the Transaction Information according to the check information, obtain check results.
5. according to the method described in claim 4, it is characterized in that, it is described according to the check information to the Transaction Information into
Row legitimacy verifies obtain check results and specifically include:
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains target information;
Legitimacy verifies are carried out to the check information using the target information, obtain the check results.
6. a kind of block chain transaction data processing system, which is characterized in that it is applied to first node equipment, the system comprises:
Acquiring unit, for obtaining structure of deal body information, the structure of deal body information includes Transaction Information and check information;
Compression unit obtains target data for compressing to the structure of deal body information;
Radio unit, for the target data to be uploaded broadcast to the block catenary system.
7. system according to claim 6, which is characterized in that the acquiring unit is specifically used for:
Transaction Information is obtained, the Transaction Information includes transaction content and signing messages;
Serializing processing is carried out to the Transaction Information, obtains serialization information;
Operation is carried out to the serialization information using Message Digest 5, obtains the check information;
The structure of deal body information is generated according to the Transaction Information and the check information.
8. a kind of block chain transaction data processing system, which is characterized in that it is applied to second node equipment, the system comprises:
Acquiring unit, the target data sent for obtaining first node equipment in block catenary system;
Decompression units obtain structure of deal body information, the structure of deal body information for decompressing to the target data
Including Transaction Information and check information;
Verification unit obtains check results for carrying out legitimacy verifies to the Transaction Information according to the check information.
9. a kind of first node equipment, which is characterized in that the first node equipment includes:
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing method as described in any one of claims 1 to 3.
10. a kind of second node equipment, which is characterized in that the second node equipment includes:
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing such as the described in any item methods of claim 4 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910562109.7A CN110288477A (en) | 2019-06-26 | 2019-06-26 | A kind of block chain transaction data processing method and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910562109.7A CN110288477A (en) | 2019-06-26 | 2019-06-26 | A kind of block chain transaction data processing method and relevant device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110288477A true CN110288477A (en) | 2019-09-27 |
Family
ID=68006218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910562109.7A Pending CN110288477A (en) | 2019-06-26 | 2019-06-26 | A kind of block chain transaction data processing method and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110288477A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111262876A (en) * | 2020-01-22 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and storage medium |
CN111768196A (en) * | 2020-07-01 | 2020-10-13 | 中国银行股份有限公司 | Transaction information confirmation method and device |
CN113242044A (en) * | 2021-06-02 | 2021-08-10 | 湖北央中巨石信息技术有限公司 | Block chain data storage compression method for reducing memory occupation |
WO2022018554A1 (en) * | 2020-07-22 | 2022-01-27 | International Business Machines Corporation | Dynamically determining trust level of end-to-end link |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109377226A (en) * | 2018-10-30 | 2019-02-22 | 深圳市元征科技股份有限公司 | A kind of Transaction Information management method and relevant device |
CN109711839A (en) * | 2018-12-13 | 2019-05-03 | 平安科技(深圳)有限公司 | Block chain storage method, device, equipment and storage medium based on data compression |
WO2019101227A2 (en) * | 2019-02-28 | 2019-05-31 | Alibaba Group Holding Limited | System and method for implementing blockchain-based digital certificates |
-
2019
- 2019-06-26 CN CN201910562109.7A patent/CN110288477A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109377226A (en) * | 2018-10-30 | 2019-02-22 | 深圳市元征科技股份有限公司 | A kind of Transaction Information management method and relevant device |
CN109711839A (en) * | 2018-12-13 | 2019-05-03 | 平安科技(深圳)有限公司 | Block chain storage method, device, equipment and storage medium based on data compression |
WO2019101227A2 (en) * | 2019-02-28 | 2019-05-31 | Alibaba Group Holding Limited | System and method for implementing blockchain-based digital certificates |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111262876A (en) * | 2020-01-22 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and storage medium |
CN111262876B (en) * | 2020-01-22 | 2022-05-27 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and storage medium |
CN111768196A (en) * | 2020-07-01 | 2020-10-13 | 中国银行股份有限公司 | Transaction information confirmation method and device |
CN111768196B (en) * | 2020-07-01 | 2024-01-30 | 中国银行股份有限公司 | Transaction information confirmation method and device |
WO2022018554A1 (en) * | 2020-07-22 | 2022-01-27 | International Business Machines Corporation | Dynamically determining trust level of end-to-end link |
US11297105B2 (en) | 2020-07-22 | 2022-04-05 | International Business Machines Corporation | Dynamically determining a trust level of an end-to-end link |
GB2611992A (en) * | 2020-07-22 | 2023-04-19 | Ibm | Dynamically determining trust level of end-to-end link |
CN113242044A (en) * | 2021-06-02 | 2021-08-10 | 湖北央中巨石信息技术有限公司 | Block chain data storage compression method for reducing memory occupation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110288477A (en) | A kind of block chain transaction data processing method and relevant device | |
CN110399118B (en) | Random number generation method and device, storage medium and electronic equipment | |
JP2003051821A (en) | Message processing method for authentication | |
CN109905368A (en) | Across the chain data interaction of block chain and verification method, block catenary system and storage medium | |
CN107395751A (en) | A kind of remote control system of intelligent household electrical appliance and method | |
CN105787727A (en) | HCE offline payment system and realization method | |
CN103546161A (en) | Lossless compression method based on binary processing | |
CN110191467A (en) | A kind of method for authenticating of internet of things equipment, unit and storage medium | |
CN108765230A (en) | A kind of resident's household register approaches to IM and server | |
US20140149744A1 (en) | Method for obtaining encryption keys corresponding terminals, server and computer program products | |
CN113138969A (en) | Data transmission method and device, electronic equipment and computer readable storage medium | |
CN109801168B (en) | Block chain transaction verification method, equipment and storage medium | |
KR20120071844A (en) | Integrated cryptographic apparatus for providing confidentiality and integrity | |
CN110585727A (en) | Resource acquisition method and device | |
CN105653925B (en) | Network trading authentication method, system and smart card | |
CN110784868B (en) | Encryption and decryption method for wireless communication, data transmission method and wireless communication system | |
CN113255928B (en) | Model training method and device and server | |
CN107800758A (en) | Air control data processing method, apparatus and system | |
KR101758727B1 (en) | Method for transmitting hidden information using message composed of string digital code | |
CN108053213B (en) | A kind of method and credit card of the enhancing without card payment transactions safety | |
CN112861189A (en) | Signature generation method, signature verification device, signature verification equipment and medium | |
US20210295323A1 (en) | Regaining an original card security code used in a card based transaction | |
CN112333699A (en) | Internet of things communication protocol encryption method, equipment and storage medium | |
KR20200144214A (en) | Agreed data transmit method and apparatus for transmitting the agreed data in network | |
CN110049480A (en) | A kind of authentication method and relevant apparatus of bluetooth equipment |
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: 20190927 |
|
RJ01 | Rejection of invention patent application after publication |