CN107392528A - Container operation data treating method and apparatus - Google Patents
Container operation data treating method and apparatus Download PDFInfo
- Publication number
- CN107392528A CN107392528A CN201710527661.3A CN201710527661A CN107392528A CN 107392528 A CN107392528 A CN 107392528A CN 201710527661 A CN201710527661 A CN 201710527661A CN 107392528 A CN107392528 A CN 107392528A
- Authority
- CN
- China
- Prior art keywords
- data
- account book
- sent
- message
- nodes
- 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
- 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
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
-
- 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/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- 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/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- 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
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
Abstract
The invention discloses a kind of container operation data treating method and apparatus.This method includes:Each node of distributed account book obtains the operation data of container;The operation data is encrypted according to preset rules, obtains encryption data;The encryption data is serialized, obtains serialized data;Message is updated the data according to the serialized data, the message data after being updated;Message data after the renewal is sent to all nodes of the distributed account book.By the present invention, the effect that the operation data between simplified distributed account book node shares flow is reached.
Description
Technical field
The present invention relates to container field, in particular to a kind of container operation data treating method and apparatus.
Background technology
Distributed account book is applied in the most important technology of capital market, typically comprises block chain technology, and the technology can be with
Remove the extremely inefficient and with high costs part in Vehicles Collected from Market infrastructure.Algorithm caused by distributed account book technology is one
Kind is powerful, has subversive innovation, and it has an opportunity to change public and private service implementation, and by widely should
Go to increase productivity with scene.
Distributed account book, substantially one can be in multiple websites, diverse geographic location or multiple mechanisms composition
The asset database shared in network.Participant in a network can obtain the pair of a unique, true account book
This.Any change in account book all can be reflected out in all copies, and the reaction time can be even several seconds in a few minutes
It is interior.The assets stored in this account book can be finance, on legal definition, entity or electronics assets.At this
The security and accuracy of the assets stored in account book are to go to control the access right of account book by the use of public and private key and signature,
So as to realize the maintenance on the basis of cryptography.According to the rule reached common understanding in network, record in account book can by one, one
A little or all participants are updated jointly.
And container operation data is the particulars of goods for including container under Intelligent logistics trend, present position, the time,
State, the set in container caused volume of data in actual use including the owner.Intelligent logistics are exactly logical
Advanced technology of Internet of things is crossed, by information processing and network communications technology platform, logistics is widely used in and transports, stores in a warehouse, matches somebody with somebody
The basic activity link such as send, pack, loading and unloading, realizing the automatic operation of cargo transport process and efficient processing.
Existing container and operation data management is still existed using conventional center (partly using distribution) database
Each tissue therein carries out data renewal management work.And the characteristics of due to container management multi-player itself, it is different
Participant individually maintains its data data to bring difficulty to the integral monitoring of containerized shipment and management.Simultaneously, by
In the database of centralization or distributed storage all cannot be guaranteed its data storage can not distort and security, will collect
The participant that vanning management is related to is unified under same data-storage system and trust problem occurs, it is difficult to completes.
Distributed account book technology with its security and accuracy be considered as solve container management and operation data can
By technology, but existing distributed account book technology does not have the relevant criterion and specification for container management and operation data.This
Application distribution formula account book technology has been resulted in carry out container management and just face each participant and individually swap mode to define
It is difficult to the problem of unified.
The software level of China's Container Transport industry still has much room for improvement at present, is mainly manifested in:On the one hand, management awareness,
Managerial skills and port environment have much room for improvement;On the other hand, the degree of mobility of the level of IT application and information is inadequate.
1st, flow is cumbersome, easily error, clearance time cycle length.Container transport by sea requirements of process in different scenes with
Different entities are contacted, the owner of cargo, forwarder, warehouse, towing company, pier storage yard, shipping company, customs, wherein relating to
And the number and flow formality and its complexity arrived, each link once malfunction, it will cause the failure of order.In addition, in goods
During thing import customs clearance, often due to customs inquire the price problem the problems such as and delay cargo clearance and let pass the time, and more than it is certain also
After the case time, client needs to deliver high stagnant case expense, and this undoubtedly adds cost of transportation.
2nd, the level of IT application is low, and data are disperseed.Existing contract, ten receipts or other documents in duplicates and order bill are mainly using hand-written and label
The pattern of chapter, contract bill etc. is taken care of by different people, and different entities can not intactly view institute in this order
The partial data being related to.
3rd, cargo transport procedural information is opaque.Traditional container management relies primarily on labor management, the fortune of container
Defeated process only relies on some artificial, modes of half people's function and records tracking, place that container is presently in, state and arrives
All information such as time reached is all opaque, and container is lost, illegal unlatchings, loss of goods, situations such as being delayed happen occasionally, to goods
Loglstics enterprise of advocating peace brings huge loss, also becomes the bottleneck of container cargo distribution development.
In addition, the portion being related to more using traditional software storage entity applied to the prior art in container management
Divide information, the synchronizing information of multiple inter-entity systems can not utilize unified exchange method.And distributed account book technology is with its safety
Property, decentralization the features such as be believed to solve the various problems that occur in container management.But due to its distributed storage
The characteristics of, by distributed account, present techniques apply to the data exchange side that container management field is just faced with container operation data
Method is various, it is difficult to the problem of unifying.Unified data exchange ways are the important components of distributed account book technology application, institute
Just it is particularly important with exchanged form of the clear and definite container operation data in distributed account book.
The problem of sharing flow complexity for operation data between the node of distributed account book in correlation technique, not yet carries at present
Go out effective solution.
The content of the invention
It is a primary object of the present invention to provide a kind of container operation data treating method and apparatus, to solve distribution
Operation data shares flow challenge between the node of account book.
To achieve these goals, according to an aspect of the invention, there is provided a kind of container operation data processing side
Method, this method include:Each node of distributed account book obtains the operation data of container;According to preset rules to the operation
Data are encrypted, and obtain encryption data;The encryption data is serialized, obtains serialized data;According to the sequence
Rowization data update the data message, the message data after being updated;Message data after the renewal is sent to described point
All nodes of cloth account book.
Further, the operation data is being encrypted according to preset rules, after obtaining encryption data, the side
Method also includes:Judge whether the field format of the encryption data meets preset format;In the field format of the encryption data
In the case of meeting the preset format, the encryption data is serialized, obtains First ray data;Add described
In the case that the field format of ciphertext data does not meet the preset format, the preset format will not be met in the encryption data
Field modify or supplement, obtain processing field, the processing field serialized, obtain the second serializing number
According to.
Further, before the message data after by the renewal is sent to all nodes of the distributed account book,
Methods described also includes:The head of the message data is parsed, obtains parsing data;By described in the determination of default signature algorithm
Whether complete parse data;Determine whether the parsing data are legal by the default signature algorithm, wherein, it is determined that institute
State parsing data it is complete and legal in the case of, the message data after the renewal is sent to the institute of the distributed account book
There is node.
Further, before the message data after by the renewal is sent to all nodes of the distributed account book,
Methods described also includes:The Platform Type of the distributed account book corresponding to the parsing data is determined by account book gateway;By institute
State message data and be converted into the message data consistent with the Platform Type, the message data after the renewal is sent to institute
Stating all nodes of distributed account book includes:The message data consistent with the Platform Type is sent out by packaged SDK
It is sent to all nodes of the distributed account book.
Further, before the message data after by the renewal is sent to all nodes of the distributed account book,
Methods described also includes:When receiving the transaction request that the account book gateway is sent, call indicated by the transaction request
Contract execution and the predetermined registration operation corresponding to the transaction request of type, obtain operating result, the operating result are returned;
When receiving the change request that the account book gateway is sent, the transaction data of present node is packed, and by the friendship after packing
Easy data are sent to all nodes of the distributed account book;, will when receiving the inquiry request that the account book gateway is sent
Data corresponding to the inquiry request are sent to server through the account book gateway, wherein, the server please by the inquiry
Data corresponding to asking are parsed, and analysis result is returned to the node of the current distributed account book.
To achieve these goals, according to another aspect of the present invention, a kind of container operation data processing is additionally provided
Device, the device include:Acquiring unit, for obtaining the operation data of container by each node of distributed account book;Add
Close unit, for the operation data to be encrypted according to preset rules, obtain encryption data;Serialization unit, for pair
The encryption data is serialized, and obtains serialized data;Updating block, for being updated the data according to the serialized data
Message, the message data after being updated;First transmitting element, for the message data after the renewal to be sent into described point
All nodes of cloth account book.
Further, described device also includes:Judging unit, for being carried out according to preset rules to the operation data
Encryption, after obtaining encryption data, judges whether the field format of the encryption data meets preset format;The serializing is single
Member is used in the case where the field format of the encryption data meets the preset format, and sequence is carried out to the encryption data
Change, obtain First ray data;The serialization unit is described pre- for not met in the field format of the encryption data
If in the case of form, the field that the preset format is not met in the encryption data is modified or supplemented, is obtained everywhere
Field is managed, the processing field is serialized, obtains the second serialized data.
Further, described device also includes:Resolution unit, institute is sent to for the message data after by the renewal
Before all nodes for stating distributed account book, the head of the message data is parsed, obtains parsing data;First determining unit,
For determining whether the parsing data are complete by default signature algorithm;Second determining unit, for by described default
Signature algorithm determine whether the parsing data legal, wherein, it is determined that the complete and legal situation of the parsing data
Under, the message data after the renewal is sent to all nodes of the distributed account book.
Further, described device also includes:3rd determining unit, sent for the message data after by the renewal
To before all nodes of the distributed account book, the distributed account book corresponding to the parsing data is determined by account book gateway
Platform Type;Converting unit, for the message data to be converted into the message data consistent with the Platform Type, institute
The first transmitting element is stated to be used to the message data consistent with the Platform Type is sent into described point by packaged SDK
All nodes of cloth account book.
Further, described device also includes:Call unit, institute is sent to for the message data after by the renewal
Before all nodes for stating distributed account book, when receiving the transaction request that the account book gateway is sent, the transaction is called
Contract execution and the predetermined registration operation corresponding to the transaction request of the indicated type of request, obtain operating result, by described in
Operating result returns;Packaged unit, for when receiving the change request that the account book gateway is sent, by the friendship of present node
Easy data are packed, and the transaction data after packing is sent to all nodes of the distributed account book;Second transmitting element, use
When the inquiry request that the account book gateway is sent is being received, by data corresponding to the inquiry request through the account book gateway
Server is sent to, wherein, the server is parsed data corresponding to the inquiry request, and analysis result is returned to
The node of the current distributed account book.
To achieve these goals, according to another aspect of the present invention, a kind of storage medium is additionally provided, including storage
Program, wherein, equipment where the storage medium is controlled when described program is run performs the container operation data of the present invention
Processing method.
To achieve these goals, according to another aspect of the present invention, a kind of processor is additionally provided, for running journey
Sequence, wherein, container operation data processing method of the invention is performed when described program is run.
The present invention obtains the operation data of container by each node of distributed account book;According to preset rules to operation
Data are encrypted, and obtain encryption data;Encryption data is serialized, obtains serialized data;According to serialized data
Message is updated the data, the message data after being updated;Message data after renewal is sent to all sections of distributed account book
Point, solve the problems, such as between the node of distributed account book that operation data shares flow complexity, and then simplified distributed account
Operation data between this node shares the effect of flow.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of container operation data processing method according to embodiments of the present invention;And
Fig. 2 is the schematic diagram of container operation data processing unit according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
For the ease of description, below to the invention relates to several terms illustrate:
Distributed account book:It can be realized altogether in the network that multiple websites, diverse geographic location or multiple mechanisms form
With the asset database administered and shared.
Distributed account book technology:Realize the set of the technology of distributed account book, including but not limited to block chain technology.
Container management:In containerized shipment flow, adopted by involved tissue and individual to complete transport target
A series of set of the job placement of the coordinating and unifyings taken.
Container operation data:During being container management, include the particulars of goods of container, present position, the time,
State, the set in container caused volume of data in actual use including the owner.
Operation data exchange method:Refer to complete the pass that the coordination in container management between different tissues and individual is done
The transmission work of key information and its specific transfer mode used, including but not limited to list, mail, phone and interconnection Netcom
Letter etc..
The embodiments of the invention provide a kind of container operation data processing method.
Fig. 1 is the flow chart of container operation data processing method according to a first embodiment of the present invention, as shown in figure 1,
This method comprises the following steps:
Step S102:Each node of distributed account book obtains the operation data of container.
Step S104:Operation data is encrypted according to preset rules, obtains encryption data.
Step S106:Encryption data is serialized, obtains serialized data.
Step S108:Message is updated the data according to serialized data, the message data after being updated.
Step S110:Message data after renewal is sent to all nodes of distributed account book.
The embodiment uses the operation data that container is obtained by each node of distributed account book;According to preset rules
Operation data is encrypted, obtains encryption data;Encryption data is serialized, obtains serialized data;According to sequence
Change data and update the data message, the message data after being updated;Message data after renewal is sent to distributed account book
All nodes, solve the problems, such as between the node of distributed account book that operation data shares flow complexity, and then simplify point
Operation data between cloth account book node shares the effect of flow.
In embodiments of the present invention, distributed account book has multiple nodes, and each node may have corresponding container
Operation data, a big feature of distributed account book is the distributed storage of decentralization, due to container operation data according to
The characteristics of needing variation, complicate of outdoor scene application scenarios, each node of distributed account book obtains the operation number of itself
According to being then encrypted to operation data, obtain encryption data, encryption data can pass through network transmission and be serviced corresponding to
Device, server serialize to encryption data, update message, the message data after renewal then is sent into distributed account book
All nodes.
Operation data is being encrypted according to preset rules, after obtaining encryption data, is judging the field of encryption data
Whether form meets preset format;In the case where the field format of encryption data meets preset format, encryption data is carried out
Serializing, obtains First ray data;In the case where the field format of encryption data does not meet preset format, number will be encrypted
The field that preset format is not met in is modified or supplemented, and obtains processing field, processing field is serialized, obtain
Second serialized data.
After server receives encryption data, first determine whether the field format of encryption data meets default lattice
Formula, the validity of user and session information is verified, if the field format of encryption data does not meet preset format, to not meeting
The field of form is modified or supplemented, the field that modification does not meet the field of form or polishing lacks, then again by data
Serialized, update message.
Alternatively, before the message data after by renewal is sent to all nodes of distributed account book, analytic message number
According to head, obtain parse data;Determine whether parsing data are complete by default signature algorithm;Calculated by default signature
Method determines whether parsing data are legal, wherein, in the case of it is determined that parsing data are complete and legal, by the message after renewal
Data are sent to all nodes of distributed account book.
It can be the integrality and authority for verifying message data according to default signature algorithm by account book gateway, report
Literary data communicate completely and in the case of authority between gateway and account book node.
Alternatively, before the message data after by renewal is sent to all nodes of distributed account book, account book net is passed through
Close the Platform Type for determining the distributed account book corresponding to parsing data;Message data is converted into consistent with Platform Type
Message data, the message data after renewal is sent to all nodes of distributed account book to be included:Will be with by packaged SDK
The consistent message data of Platform Type is sent to all nodes of distributed account book.
Alternatively, before the message data after by renewal is sent to all nodes of distributed account book, account is being received
This gateway send transaction request when, call transaction request indicated by type contract perform with it is pre- corresponding to transaction request
If operation, obtains operating result, operating result is returned;When receiving the change request of account book gateway transmission, prosthomere will be worked as
The transaction data of point is packed, and the transaction data after packing is sent to all nodes of distributed account book;Receiving account book
During the inquiry request that gateway is sent, data corresponding to inquiry request are sent to server through account book gateway, wherein, server will
Data are parsed corresponding to inquiry request, and analysis result is returned to the node of current distributed account book.
The embodiment of the present invention additionally provides a kind of preferred embodiment, with reference to the preferred embodiment to of the invention real
The technical scheme for applying example illustrates.
The embodiments of the invention provide the specific method for interchanging data for container operation data.
The exchange method of container operation data refers to realize container in actual use, each different entities
Between for complete container operation data synchronizing information carry out network information transfer work.Specific exchange method includes such as
Under step:
A), the encryption and submission of local operation information change.
B), the network transmission of operation data with it is synchronous.
C), operation data change request is sent to account book node, compatible different distributed account book underlying platform.
D), the acquisition and parsing of account book information, for inquiring about specific container operation data content.
Optionally, in a steps, in the encryption and submission of local operation information change, different entities-goods in sea-freight
Master, forwarder, towing company, shipping company, different services is corresponded to, user is in processing container sea-freight order and each
After the resources such as the vehicle held, ship, container, flight number information, corresponding service is sent to after operation data is encrypted, is taken
Rear end be engaged in after the validity of user and session information has been verified, request content is parsed according to data type, and verifies
The validity of each field of request data, supplements corresponding field, and then again using the data are serialized, renewal is reported
Text, the mode for submitting to account book bottom gateway complete the submission of operation information.The part is directed to the information that different entities are submitted
The difference of content makes the response service of differentiation so that different entities are only needed to be absorbed in respective data, services, and this is just reduced
The impact of service and institutional framework of the addition of distributed account book technology to existing entity, new technology is introduced to practical business
Adverse effect fall below it is minimum.
Optionally, in b step, from web client to service end, the transmission of local operation data uses HTTPS agreements,
Other host-host protocols can be used, ensure that security of the operation data in transmitting procedure;In service end, corresponding micro services
It is responsible for the head of analytic message data, and the integrality of message and authority is verified using the signature algorithm specified;In gateway
With the communication between account book node, using TLS encrypted transmissions, other encrypted transmission methods can also be used, at the same node it
Between kafka is used in combination to ensure the synchronization of data in the communication channel that builds.Data exchange agreement referred to herein
A variety of communication technologys can be utilized, stability that operation data transmits and correct is ensure that by way of multiple technologies combination
Property.
Optionally, in step c, container operation data exchange can compatible different distributed account book underlying platform,
Isolating for service end and bottom distributed platform is realized using account book gateway so that distributed account book underlying platform transparence.
Account book gateway extracts message content after the integrality of checking message content and the legitimacy of request.Gateway is according to message
Specified Platform Type in head, by message content again dissection process into corresponding data, and packaged SDK is called to come
Data and operation are sent to account book node.Underlying platform isolation can effective showing between compatible container management related entities
There is system type, integrate and work asynchronously so as to complete operation data etc. on the premise of each entity local service is not influenceed.
Optionally, in Step d, for different distributed account book underlying platforms, goods is defined using intelligent forms of contract
It is main place an order, forwarder cargo collection, arrange shipping space, order car, equipment is appeared on the scene, goods vanning, equipment is marched into the arena, container is gone on board, container is transported by sea, is collected
Case to the management of the resource such as port, unloading, the circulation delivered, receive middle order data and container, ship, flight number, vehicle
With the operation carried out required for tracking.Account book node is after the transaction request that gateway is sent is received, institute in meeting call request
The contract specified performs corresponding operation.Contract will automatically process result and be returned to node.If change operation,
Transaction can be packaged into by node, and be broadcasted to other nodes, the validity and legitimacy of each node verification information
Afterwards, data consistency requirement is reached using set algorithm.If it is successful, carry the transaction of the change operation of operation data
Record can be appended in the local account book of each node;If inquiry operation, node can return data to gateway, gateway
Service end is returned to after receiving the data, and service end is parsed the data in response, returns to user.Operation data
Synchronous and inquiry is that the basis during container management is also most important part, solves packaging by the data after synchronization
The problems such as information is opaque in case management, container state is not clear, while be also to realize container state tracking and operation data
Management provides technical support.
It can be applied in the intelligent container pipe based on block chain using the above-mentioned method for interchanging data of the embodiment of the present invention
In reason system, the embodiment of the present invention can also use Conventional network transmission agreement when carrying out data exchange, but general networkses
Host-host protocol is not trust network, can not effectively be combined with distributed account book technology, cannot ensure to exchange data yet
Can not tamper and trackability.
The container operation data exchange method based on distributed account book technology of the embodiment is to utilize distributed account book
Technology solves the problems, such as that container management provides uniform data exchange method, and number is runed according to distributed account book technology and container
According to the characteristics of define bottom data exchange method, can realize container operation data in distributed account book using this method
Quick, accurate exchange and renewal.
The embodiment of the present invention is defined based on distribution using the data exchange in the management of container operation data as point of penetration
The container operation data exchanged form of account book technology, solve and carry out container operation data friendship using distributed account book technology
The problem of changing, effectively distributed account book technology is combined with the cumbersome container management of flow.So that using the technology as base
Plinth can easily establish the container control system based on distributed account book technology, reach simplified shipping side, forwarder, goods
The purpose of cumbersome flow formality and secretarial work between Che companies, each entity of shipping company, lift container and ship
Information system management it is horizontal, and then promote and complete whole logistic industry overturns formula innovation, is realizing the road of Intelligent logistics
On step the solid first step.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiments of the invention provide a kind of container operation data processing unit, the device can be used for performing the present invention
The container operation data processing method of embodiment.
Fig. 2 is the schematic diagram of container operation data processing unit according to embodiments of the present invention, as shown in Fig. 2 the dress
Put including:
Acquiring unit 10, for obtaining the operation data of container by each node of distributed account book;
Ciphering unit 20, for operation data to be encrypted according to preset rules, obtain encryption data;
Serialization unit 30, for being serialized to encryption data, obtain serialized data;
Updating block 40, for updating the data message according to serialized data, the message data after being updated;
First transmitting element 50, for the message data after renewal to be sent to all nodes of distributed account book.
Optionally, the device also includes:Judging unit, for operation data to be encrypted according to preset rules, obtain
To after encryption data, judge whether the field format of encryption data meets preset format;Serialization unit is used in encryption number
According to field format meet preset format in the case of, encryption data is serialized, obtains First ray data;Sequence
Change unit to be used in the case where the field format of encryption data does not meet preset format, default lattice will not be met in encryption data
The field of formula is supplemented, and obtains supplemental field, and supplemental field is serialized, and obtains the second serialized data.
Optionally, the device also includes:Resolution unit, distributed account book is sent to for the message data after by renewal
All nodes before, the head of analytic message data, obtain parse data;First determining unit, for passing through default label
Name algorithm determines whether parsing data are complete;Second determining unit, for determining that parsing data are by default signature algorithm
It is no legal, wherein, in the case of it is determined that parsing data are complete and legal, the message data after renewal is sent to distribution
All nodes of account book.
Optionally, the device also includes:3rd determining unit, distribution is sent to for the message data after by renewal
Before all nodes of account book, the Platform Type of the distributed account book corresponding to parsing data is determined by account book gateway;Conversion
Unit, for message data to be converted into the message data consistent with Platform Type, the first transmitting element is used to pass through encapsulation
The message data consistent with Platform Type is sent to all nodes of distributed account book by good SDK.
Optionally, the device also includes:Call unit, distributed account book is sent to for the message data after by renewal
All nodes before, receive account book gateway transmission transaction request when, call transaction request indicated by type conjunction
About execution and the predetermined registration operation corresponding to transaction request, obtains operating result, operating result is returned;Packaged unit, for
When receiving the change request of account book gateway transmission, the transaction data of present node is packed, and by the transaction data after packing
It is sent to all nodes of distributed account book;Second transmitting element, for receive account book gateway transmission inquiry request when,
Data corresponding to inquiry request are sent to server through account book gateway, wherein, server enters data corresponding to inquiry request
Row parsing, analysis result is returned to the node of current distributed account book.
The embodiment uses acquiring unit 10, for obtaining the operation number of container by each node of distributed account book
According to;Ciphering unit 20, for operation data to be encrypted according to preset rules, obtain encryption data;Serialization unit 30, use
Serialized in encryption data, obtain serialized data;Updating block 40, for updating the data report according to serialized data
Text, the message data after being updated;First transmitting element 50, for the message data after renewal to be sent into distributed account book
All nodes, so as to solve the problems, such as that operation data shares flow complexity between the node of distributed account book, and then
Simplify the effect that the operation data between distributed account book node shares flow.
The container operation data processing unit includes processor and memory, above-mentioned acquiring unit, ciphering unit, sequence
Rowization unit, updating block and first transmitting element etc. in memory, are deposited as program unit storage by computing device
Storage said procedure unit in memory realizes corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, simplify the data sharing flow between distributed account book node by adjusting kernel parameter.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM), memory includes at least one deposit
Store up chip.
The embodiments of the invention provide a kind of storage medium, program is stored thereon with, it is real when the program is executed by processor
The existing container operation data processing method.
The embodiments of the invention provide a kind of processor, the processor is used for operation program, wherein, described program operation
Container operation data processing method described in Shi Zhihang.
The embodiments of the invention provide a kind of equipment, equipment includes processor, memory and storage on a memory and can
The program run on a processor, following steps are realized during computing device program:Each node of distributed account book obtains collection
The operation data of vanning;The operation data is encrypted according to preset rules, obtains encryption data;To the encryption data
Serialized, obtain serialized data;Message is updated the data according to the serialized data, the message number after being updated
According to;Message data after the renewal is sent to all nodes of the distributed account book.Equipment herein can be clothes
Business device, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program product, when being performed on data processing equipment, is adapted for carrying out just
The program of beginningization there are as below methods step:Each node of distributed account book obtains the operation data of container;According to default rule
Then the operation data is encrypted, obtains encryption data;The encryption data is serialized, obtains serializing number
According to;Message is updated the data according to the serialized data, the message data after being updated;By the message data after the renewal
It is sent to all nodes of the distributed account book.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including key element
Other identical element in process, method, commodity or equipment also be present.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is these are only, is not limited to the application.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent substitution,
Improve etc., it should be included within the scope of claims hereof.
Claims (12)
- A kind of 1. container operation data processing method, it is characterised in that including:Each node of distributed account book obtains the operation data of container;The operation data is encrypted according to preset rules, obtains encryption data;The encryption data is serialized, obtains serialized data;Message is updated the data according to the serialized data, the message data after being updated;Message data after the renewal is sent to all nodes of the distributed account book.
- 2. according to the method for claim 1, it is characterised in that the operation data is being added according to preset rules Close, after obtaining encryption data, methods described also includes:Judge whether the field format of the encryption data meets preset format;In the case where the field format of the encryption data meets the preset format, sequence is carried out to the encryption data Change, obtain First ray data;In the case where the field format of the encryption data does not meet the preset format, will not met in the encryption data The field of the preset format is modified or supplemented, and obtains processing field, and the processing field is serialized, and obtains Two serialized datas.
- 3. according to the method for claim 1, it is characterised in that the message data after by the renewal is sent to described point Before all nodes of cloth account book, methods described also includes:The head of the message data is parsed, obtains parsing data;Determine whether the parsing data are complete by default signature algorithm;Determine whether the parsing data are legal by the default signature algorithm,Wherein, in the case of it is determined that the parsing data are complete and legal, the message data after the renewal is sent to All nodes of the distributed account book.
- 4. according to the method for claim 3, it is characterised in thatBefore the message data after by the renewal is sent to all nodes of the distributed account book, methods described is also wrapped Include:The Platform Type of the distributed account book corresponding to the parsing data is determined by account book gateway;The message data is converted into the message data consistent with the Platform Type,Message data after the renewal is sent to all nodes of the distributed account book to be included:Pass through packaged SDK The message data consistent with the Platform Type is sent to all nodes of the distributed account book.
- 5. according to the method for claim 4, it is characterised in that the message data after by the renewal is sent to described point Before all nodes of cloth account book, methods described also includes:When receiving the transaction request that the account book gateway is sent, the contract of the type indicated by the transaction request is called to hold Row and the predetermined registration operation corresponding to the transaction request, obtain operating result, the operating result are returned;When receiving the change request that the account book gateway is sent, the transaction data of present node is packed, and by after packing Transaction data be sent to all nodes of the distributed account book;When receiving the inquiry request that the account book gateway is sent, by data corresponding to the inquiry request through the account book net Pass is sent to server, wherein, the server is parsed data corresponding to the inquiry request, and analysis result is returned To the node of the current distributed account book.
- A kind of 6. container operation data processing unit, it is characterised in that including:Acquiring unit, for obtaining the operation data of container by each node of distributed account book;Ciphering unit, for the operation data to be encrypted according to preset rules, obtain encryption data;Serialization unit, for being serialized to the encryption data, obtain serialized data;Updating block, for updating the data message according to the serialized data, the message data after being updated;First transmitting element, for the message data after the renewal to be sent to all nodes of the distributed account book.
- 7. device according to claim 6, it is characterised in that described device also includes:Judging unit, for the operation data to be encrypted according to preset rules, after obtaining encryption data, judge institute Whether the field format for stating encryption data meets preset format;The serialization unit is used in the case where the field format of the encryption data meets the preset format, to described Encryption data is serialized, and obtains First ray data;The serialization unit is used in the case where the field format of the encryption data does not meet the preset format, by institute State and the field of the preset format is not met in encryption data modify or supplement, processing field is obtained, by the processing word Duan Jinhang is serialized, and obtains the second serialized data.
- 8. device according to claim 6, it is characterised in that described device also includes:Resolution unit, it is sent to for the message data after by the renewal before all nodes of the distributed account book, The head of the message data is parsed, obtains parsing data;First determining unit, for determining whether the parsing data are complete by default signature algorithm;Second determining unit, for determining whether the parsing data are legal by the default signature algorithm,Wherein, in the case of it is determined that the parsing data are complete and legal, the message data after the renewal is sent to All nodes of the distributed account book.
- 9. device according to claim 8, it is characterised in that described device also includes:3rd determining unit, for the message data after by the renewal be sent to the distributed account book all nodes it Before, the Platform Type for parsing the distributed account book corresponding to data is determined by account book gateway;Converting unit, for the message data to be converted into the message data consistent with the Platform Type,First transmitting element is used to be sent to the message data consistent with the Platform Type by packaged SDK All nodes of the distributed account book.
- 10. device according to claim 9, it is characterised in that described device also includes:Call unit, it is sent to for the message data after by the renewal before all nodes of the distributed account book, When receiving the transaction request that the account book gateway is sent, call the type indicated by the transaction request contract perform with Predetermined registration operation corresponding to the transaction request, obtains operating result, and the operating result is returned;Packaged unit, for when receiving the change request that the account book gateway is sent, the transaction data of present node to be beaten Wrap, and the transaction data after packing is sent to all nodes of the distributed account book;Second transmitting element, for when receiving the inquiry request that the account book gateway is sent, the inquiry request to be corresponded to Data be sent to server through the account book gateway, wherein, the server carries out data corresponding to the inquiry request Parsing, analysis result is returned to the node of the current distributed account book.
- A kind of 11. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where container operation data processing in equipment perform claim requirement 1 to 5 described in any one Method.
- A kind of 12. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run Profit requires the container operation data processing method described in any one in 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710527661.3A CN107392528A (en) | 2017-06-30 | 2017-06-30 | Container operation data treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710527661.3A CN107392528A (en) | 2017-06-30 | 2017-06-30 | Container operation data treating method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107392528A true CN107392528A (en) | 2017-11-24 |
Family
ID=60335020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710527661.3A Pending CN107392528A (en) | 2017-06-30 | 2017-06-30 | Container operation data treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107392528A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505203A (en) * | 2019-07-16 | 2019-11-26 | 广东高捷航运物流有限公司 | A kind of message data processing method, device and storage medium |
CN110826110A (en) * | 2019-11-06 | 2020-02-21 | 福建福链科技有限公司 | Distributed account book data tamper-proofing method and system |
CN112819468A (en) * | 2021-02-24 | 2021-05-18 | 浙江蓝景科技有限公司 | Intelligent contract processing method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055993A (en) * | 2016-08-13 | 2016-10-26 | 深圳市樊溪电子有限公司 | Encryption storage system for block chains and method for applying encryption storage system |
CN106548330A (en) * | 2016-10-27 | 2017-03-29 | 上海亿账通区块链科技有限公司 | Transaction verification method and system based on block chain |
CN106651346A (en) * | 2016-11-28 | 2017-05-10 | 上海凯岸信息科技有限公司 | Block chain-based credit investigation data sharing and trading system |
-
2017
- 2017-06-30 CN CN201710527661.3A patent/CN107392528A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055993A (en) * | 2016-08-13 | 2016-10-26 | 深圳市樊溪电子有限公司 | Encryption storage system for block chains and method for applying encryption storage system |
CN106548330A (en) * | 2016-10-27 | 2017-03-29 | 上海亿账通区块链科技有限公司 | Transaction verification method and system based on block chain |
CN106651346A (en) * | 2016-11-28 | 2017-05-10 | 上海凯岸信息科技有限公司 | Block chain-based credit investigation data sharing and trading system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505203A (en) * | 2019-07-16 | 2019-11-26 | 广东高捷航运物流有限公司 | A kind of message data processing method, device and storage medium |
CN110826110A (en) * | 2019-11-06 | 2020-02-21 | 福建福链科技有限公司 | Distributed account book data tamper-proofing method and system |
CN110826110B (en) * | 2019-11-06 | 2021-09-07 | 福建福链科技有限公司 | Distributed account book data tamper-proofing method and system |
CN112819468A (en) * | 2021-02-24 | 2021-05-18 | 浙江蓝景科技有限公司 | Intelligent contract processing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Baralla et al. | Ensuring transparency and traceability of food local products: A blockchain application to a Smart Tourism Region | |
US9641342B2 (en) | Tracking unitization occurring in a supply chain | |
CN110311790B (en) | Method and device for sending authenticable message in cross-link mode | |
Assaqty et al. | Private-blockchain-based industrial IoT for material and product tracking in smart manufacturing | |
US20190034923A1 (en) | Secure and confidential custodial transaction system, method and device using zero-knowledge protocol | |
US20160164884A1 (en) | Cryptographic verification of provenance in a supply chain | |
CN109063426A (en) | A kind of copyright based on alliance's block chain deposits card sharing method and system | |
CN113051609A (en) | Food material traceability system, method, equipment and storage medium based on block chain | |
CN109003099A (en) | Block chain node data processing method, equipment and storage medium | |
CN111192146B (en) | Correction method and device for block chain data | |
CN107392528A (en) | Container operation data treating method and apparatus | |
Augusto et al. | An application of ethereum smart contracts and IoT to logistics | |
CN107404477A (en) | Container operation data sending method and device, method of reseptance and device | |
CN111091399A (en) | Block chain-based fidelity traceability method and system for fast-selling goods | |
WALES | Using blockchain to enable untrusted business process monitoring and execution | |
CN109903055A (en) | Merchandise control method, apparatus, computer installation and storage medium | |
CN109739932A (en) | Date storage method, device, computer equipment and computer readable storage medium | |
CN109800597A (en) | The merchandise news encryption method anti-fake for luxury goods | |
Lorenz et al. | Discovery services in the EPC network | |
Al et al. | Secure rfid protocol to manage and prevent tag counterfeiting with matryoshka concept | |
CN115034756A (en) | Multi-business-mode financial docking platform, method, equipment and storage medium | |
Rivero-García et al. | Blockchain-based ubiquitous transport and logistics monitoring system | |
CN113988982A (en) | Data transaction method, device, equipment and storage medium | |
CN116187879A (en) | Cold chain data processing method and device, equipment and cold chain transportation information system | |
CN115759893B (en) | Cross-chain logistics service management method and device and electronic 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171124 |