Summary of the invention
The present invention provides a kind of airfreight approaches to IM, device and electronic equipments based on block chain, with solution
The problem of certainly current airfreight information management sharing difference, and then improve airfreight efficiency of operation.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of airfreight information based on block chain
Management method, comprising:
Build the block chain airfreight information network including multiple official missions;
The waybill that user submits is obtained, and waybill intelligence contract is generated according to the waybill;
Access the block chain airfreight information network and obtain data in the waybill intelligence contract, with to
The waybill that family is submitted is verified;
In the case where waybill verification passes through, awarded using official's account private key signature of current official mechanism
Power, edits the waybill intelligence contract, and issue Transaction Information in the block chain airfreight information network.
Optionally, described after building the block chain airfreight information network for including the steps that multiple official missions
Method further include:
In the block chain airfreight information network, the official of airfreight is used for for the creation of all official missions
Square account;
Described the step of obtaining the waybill that user submits, comprising:
Block chain airfreight information network described in official's account access by creation obtains the user and submits
Waybill.
Optionally, described the step of creating airfreight information-account for the user, comprising:
Block chain airfreight information network described in official's account access by creation obtains the user
The step of waybill of submission, comprising:
Obtain the certificate number that the user submits;
Block chain airfreight information network described in official's account access by creation is inspection with the certificate number
Rope condition, retrieving in default account library whether there is airfreight information-account associated with the certificate number;
If there is airfreight information-account associated with the certificate number in default account library, the user is obtained
The waybill submitted by the airfreight information-account;
If account associated with the certificate number is not present in default airfreight information-account library, for the user
First for creating the airfreight information-account, and establishing between the airfreight information-account and the certificate number is associated with
First incidence relation of foundation is stored in default airfreight information-account library by relationship.
Optionally, block chain airfreight information network described in official's account access by creation obtains institute
The step of stating the waybill of user's submission, further includes:
Obtain the facial image of the user;
Block chain airfreight information network described in official's account access by creation is with the facial image
Search condition retrieves whether the user is already present user in default account library;
If the user is already present user in default account library, the airfreight information account of the user is read
Family, and obtain the waybill that the user is submitted by the airfreight information-account;
If the user is not already present user in default account library, the airfreight letter is created for the user
Account is ceased, and establishes the second incidence relation between the facial image and the airfreight information-account, by the of foundation
Two incidence relations are stored in default account library.
Optionally, after the step of generating waybill intelligence contract according to the waybill, the method is into one
Step includes:
In the block chain airfreight information network, set data format in the waybill intelligence contract as
Only allow to inquire, is newly-increased, not allowing to modify, delete;
Air Way Bill No. is obtained from the waybill, and establish the waybill intelligence contract address and the waybill
Third incidence relation between number, and the third incidence relation of foundation is stored in default contract address base.
It optionally, include flight number in the Transaction Information, the method also includes:
If operation of receiving need to be carried out, the flight number is obtained from the Transaction Information;
According to the flight number, the block chain airfreight information network is searched for, to obtain the corresponding boat of the flight number
The address of all waybill intelligence contracts in the class;
Address according to the waybill intelligence contract accesses waybill intelligence contract, all described from what is got
Data are read in waybill intelligence contract, and cargo be arrived into the corresponding waybill of information write-in and intelligently closed
About.
Second aspect of the embodiment of the present invention provides a kind of airfreight apparatus for management of information based on block chain, comprising:
Block chain builds module, for building the block chain airfreight information network including multiple official missions;
Contract generation module generates waybill letter for obtaining the waybill of user's submission, and according to the waybill
Cease intelligent contract;
Waybill verifies module, obtains the waybill intelligently conjunction for accessing the block chain airfreight information network
Data in about, to verify the waybill that user submits;
Trade release module, for the waybill verification pass through in the case where, using the official of current official mechanism
The waybill intelligence contract is edited in square account private key signature authorization, and in the block chain airfreight information network
Issue Transaction Information.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, comprising: memory, processor and is stored in described
On memory and the computer program that can run on the processor, the processor are realized above-mentioned when executing computer program
Step in airfreight approaches to IM based on block chain.
Fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, and computer readable storage medium is deposited
Computer program is contained, which realizes the above-mentioned airfreight message tube based on block chain when being executed by processor
Step in reason method.
Above scheme of the invention is include at least the following beneficial effects:
By building the block chain airfreight information network including multiple official missions, the waybill letter that user submits is obtained
Breath, and waybill intelligence contract is generated according to waybill, access block chain airfreight information network obtains waybill
Data in intelligent contract, in the case where waybill verification passes through, are adopted with verifying the waybill that user submits
With official's account private key signature authorization of current official mechanism, waybill intelligence contract is edited, and in block chain airfreight
Transaction Information is issued in information network.It can will run independent each official mission to connect, recognize each other each side's equality, phase
It mutually cooperates, the intercommunication of airfreight data interconnection is realized, so that aviation can be improved in the embodiment of the present invention compared with prior art
The sharing of freight information management, and then improve airfreight efficiency of operation.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
The term " includes " and " having " and their any changes occurred in description of the invention, claims and attached drawing
Shape, it is intended that cover and non-exclusive include.Such as contain the process, method of a series of steps or units, system, product or
Equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit or optional
Ground further includes the other step or units intrinsic for these process, methods, product or equipment.In addition, term " first ", " the
Two " and " third " etc. are and to be not intended to describe specific sequence for distinguishing different objects.
It illustrates first in conjunction with relevant drawings and introduces the network system frame that the scheme possible application of lower the embodiment of the present application is arrived
Structure.
Referring to Figure 1, Fig. 1 is a kind of schematic diagram of application environment provided in an embodiment of the present invention, is mainly concerned with airport
And airline, each airport and each airline, by block chain airfreight information network interconnection, wherein airport may include hair
Cargo aircraft field, airport of receiving, transfer airport etc., airline, which refers to, to be added to block chain airfreight information network and participates in shipping
All airlines, it is possible to understand that, it may include more official missions in the application environment schematic diagram, such as: shipping agency
Deng, diagram the embodiment of the present invention is not caused to limit.
Fig. 2 is referred to, Fig. 2 is a kind of airfreight approaches to IM based on block chain provided in an embodiment of the present invention
Flow diagram, as shown in Figure 2, comprising the following steps:
S11 builds the block chain airfreight information network including multiple official missions.
It wherein, is each airport in the specific embodiment of the invention, that a distribution is built jointly by each airline is point-to-point
Alliance's block chain airfreight information network, participate in official mission may include each airport, each airline, each shipping agency
Etc..Common recognition between each airport, each boat department reaches PoS (Proof of Storage, equity prove), the PBFT that maturation can be used
Modes, Ruo Xin official missions such as (Practical of Byzantine Fault Tolerance, practical Byzantine failure tolerances) add
Enter block chain airfreight information network, then need to be voted through via all official missions in network.
In addition, each official mission being in block chain airfreight information network (refers specifically to each airport, each aviation public affairs
Department etc.) between can communicate with each other, information sharing can pass through block chain airfreight when official mission generates data
Information network is broadcasted to other block chain official missions, is fully integrating various resources, while improving resource utilization, boat
Empty freight information and data are stored in the distributed account of decentralization, and unconventional central database, improve data and deposit
The safety of storage.
S12 obtains the waybill that user submits, and generates waybill intelligence contract according to the waybill.
Wherein, in a specific embodiment of the present invention, user refers to client, waybill refer between shipper and carrier
The information on the voucher of transportation contract ordered by cargo, including institute's freight name of an article and cargo are transported on the course line of carrier
The information such as quantity, expense, Air Way Bill No., destination.The waybill that above-mentioned acquisition user submits can be user and pass through barcode scanning
The waybill that mode is submitted, or can be user and log in block chain airfreight information network, after webpage fills in waybill
The waybill of submission is also possible to the waybill submitted by the particular account of user.When user submits freight information,
Need first to carry out real-name authentication, the user that only real-name authentication passes through could successfully submit waybill.
Intelligent contract is a kind of computer protocol propagated, verify or execute contract, and all intelligence contracts have a ground
Location object.In the embodiment of the present invention, above-mentioned waybill intelligence contract, the waybill are mainly generated according to the waybill of user
Record has the data such as waybill, transit route, the lower single time of this waybill in information intelligent contract.
S13 accesses the block chain airfreight information network and obtains data in the waybill intelligence contract, with
The waybill submitted to user is verified.
Wherein, in a specific embodiment of the present invention, as shown in figure 3, delivery airport goods station can pass through access block chain boat
Empty freight information network, finds the address of waybill intelligence contract, and waybill letter is then read from waybill intelligence contract
Data are ceased, are verified with carrying out safety check and waybill.If verification passes through, it will verify to be written by message and verification by timestamp and transport
Single information intelligent contract and the whole network broadcast;If verification does not pass through, it will verify and not write by timestamp by message and verification
Enter contract and the whole network broadcast.
S14, in the case where waybill verification passes through, using official's account private key signature of current official mechanism
Authorization, edits the waybill intelligence contract, and issue Transaction Information in the block chain airfreight information network.
Wherein, in a specific embodiment of the present invention, the official mission that current official's structure fingering row is verified, for example, hair
Cargo aircraft field goods station.Since in block chain airfreight information network, there is the official's account private key of oneself in each official mission, if
Waybill verification passes through, could be to waybill after the official's account private key signature authorization for only using current official mechanism
Intelligent contract is edited, and waybill intelligence contract is written in Shipping Information.Later, in block chain airfreight information network
The whole network issues the Transaction Information of this shipping, includes flight number, the departure time, E.T.A, flight in the Transaction Information
Waybill intelligence contract address of contained way-bill etc., each official mission in block chain airfreight information network
The Transaction Information of publication can be got, and subsequent operation can be carried out by the Transaction Information, such as: receiving airport goods station can
Schedule ahead receive scheme, user can by block chain airfreight information network inquire waybill, in time understand dynamic.
The embodiment of the present invention obtains user by building the block chain airfreight information network including multiple official missions
The waybill of submission, and waybill intelligence contract is generated according to waybill, access block chain airfreight information network
The data in waybill intelligence contract are obtained, to verify the waybill that user submits, are verified in waybill logical
In the case where crossing, using official's account private key signature authorization of current official mechanism, waybill intelligence contract is edited, and in area
Transaction Information is issued in block chain airfreight information network.It can will run independent each official mission to connect, make each
Square equality is recognized each other, mutually cooperates, and the intercommunication of airfreight data interconnection is realized, thus the embodiment of the present invention compared with prior art
The sharing of airfreight information management can be improved, and then improve airfreight efficiency of operation.
Fig. 4 is referred to, Fig. 4 is another airfreight information management side based on block chain provided in an embodiment of the present invention
The flow diagram of method, as shown in Figure 4, comprising:
S21 builds the block chain airfreight information network including multiple official missions;
S22 is used for the official of airfreight for the creation of all official missions in the block chain airfreight information network
Square account;
S23, block chain airfreight information network described in official's account access by creation obtain the user
The waybill of submission, and waybill intelligence contract is generated according to the waybill;
S24 accesses the block chain airfreight information network and obtains data in the waybill intelligence contract, with
The waybill submitted to user is verified;
S25, in the case where waybill verification passes through, using official's account private key signature of current official mechanism
Authorization, edits the waybill intelligence contract, and issue Transaction Information in the block chain airfreight information network.
Wherein, in another embodiment of the present invention, part steps had associated description in a upper embodiment, herein just
It repeats no more.In step S22, official's account refers to that each official mission is certified in block chain airfreight information network
Account can use bank's card number to create official's account for official mission after block chain airfreight information network is put up;
Or stored value card account can be used to create official for official mission and cease account, such as Alipay, wechat etc..With bank's card number
For creating an account for it, mnemonic word is generated with bank's card number and bank card password first, is then generated using special algorithm private
Key, after backup private key, private key generates public key, public key encryption, private key decryption, private key signature, public key verifications, then is given birth to by public key
At account address, i.e. bank's card number.
After official's account creation is good, official mission can be by official's account in block chain airfreight information network
Middle release information or acquisition information, only need shipping agency once to record single operation, waybill can be shared to block chain aviation
Airline, airport goods station Deng Ge official mission in freight information network, typing number need to be repeated several times by solving traditional technology
According to the problem of, the working efficiency of operation flow is improved, to reduce operation cost.
It should be understood that by being official mission's creation official's account in block chain airfreight information network, so that
Official mission can obtain waybill by official's account, since official's account private key is only in oneself hand of each official mission
In, the confidentiality of user's waybill is improved to a certain extent.
As an alternative embodiment, described the step of creating airfreight information-account for the user, comprising:
Block chain airfreight information network described in official's account access by creation obtains the user
The step of waybill of submission, comprising:
Obtain the certificate number that the user submits;
Block chain airfreight information network described in official's account access by creation is inspection with the certificate number
Rope condition, retrieving in default account library whether there is airfreight information-account associated with the certificate number;
If there is airfreight information-account associated with the certificate number in default account library, the user is obtained
The waybill submitted by the airfreight information-account;
If account associated with the certificate number is not present in default airfreight information-account library, for the user
First for creating the airfreight information-account, and establishing between the airfreight information-account and the certificate number is associated with
First incidence relation of foundation is stored in default airfreight information-account library by relationship.
Wherein, in a specific embodiment of the present invention, certificate number refers to that identity card, passport, driver's license etc. can show that user
The passport NO. of identity;Airfreight information-account is private account of the user in block chain airfreight information network.In advance
If airfreight information-account and personal letter that account library is used to store all users in block chain airfreight information network
Breath, the default account library can be server database, be also possible to cloud database, be not limited thereto.It is submitted with user
Certificate number be search condition, the retrieval of block chain airfreight information network described in official's account access by creation is pre-
If account library, when there is airfreight information-account associated with the certificate number in default account library, that is, the aviation is obtained
The waybill that freight information account is submitted.Otherwise, an airfreight information-account is created for user, and can be with the shape of table
The first incidence relation between the airfreight information-account and the certificate number of user is stored in above-mentioned default account library by formula
In.
In the embodiment, before obtaining the waybill that the user submits, the certificate that user submits is obtained first
Number default account library is retrieved, airfreight information-account associated with user certificate piece number need not then execute as the user if it exists
The operation for creating airfreight information-account directly acquires the waybill of user's submission, can be improved the work of operation flow
Efficiency.
As an alternative embodiment, block chain aviation goods described in official's account access by creation
Fortune information network obtains the step of waybill that the user submits, further includes:
Obtain the facial image of the user;
Block chain airfreight information network described in official's account access by creation is with the facial image
Search condition retrieves whether the user is already present user in default account library;
If the user is already present user in default account library, the airfreight information account of the user is read
Family, and obtain the waybill that the user is submitted by the airfreight information-account;
If the user is not already present user in default account library, the airfreight letter is created for the user
Account is ceased, and establishes the second incidence relation between the facial image and the airfreight information-account, by the of foundation
Two incidence relations are stored in default account library.
Wherein, in an embodiment of the present invention, the standard faces character modules that all users are also stored in account library are preset
Type can also obtain the facial image of user, such as the photo comprising user's face when obtaining the waybill that user submits
Or video, and by official's account access block chain airfreight information network of creation, whether to retrieve the user
It is present in default account library.
When being retrieved, face key point location algorithm can be used and carry out face matching.Face key point location
(Facial landmark localization) can be automatically positioned out each key of face according to the facial image got
Point, such as: common face key point location algorithm has algorithm, the algorithm based on deep learning etc. returned based on cascade shape
Deng not limiting herein specifically using which kind of algorithm.Due to eyes, place between the eyebrows, eye pupil, nose etc. be face feature more
Some key points outstanding, positional relationship each other have stronger stability, therefore can by face key point location
To calibrate unique individual, recognition of face is carried out to user.
In the embodiment, face matching is carried out using facial image of the face key point location algorithm to user, and build
The second incidence relation between its facial image and its airfreight information-account is found, prevents the third party from pretending to be user to exist
Relevant operation is carried out in block chain airfreight information network, the Prevention-Security of the whole network is strengthened, protects privacy of user.
As an alternative embodiment, according to the waybill generate waybill intelligence contract the step of it
Afterwards, the method further includes:
In the block chain airfreight information network, set data format in the waybill intelligence contract as
Only allow to inquire, is newly-increased, not allowing to modify, delete;
Air Way Bill No. is obtained from the waybill, and establish the waybill intelligence contract address and the waybill
Third incidence relation between number, and the third incidence relation of foundation is stored in default contract address base.
In the embodiment, address and phase therewith that default contract address base is used to store all waybill intelligence contracts
The information such as associated flight number, Air Way Bill No..Data format in waybill intelligence contract is only to allow to inquire, is newly-increased, is not permitted
Perhaps it modifies, delete, and the data in waybill intelligence contract are encrypted, only in block chain airfreight information network
Each consignor, each airline, each airport, each consignee have the right to check.Establish address and the fortune of waybill intelligence contract
Third incidence relation between odd numbers, and be stored in default contract address base and user is facilitated to inquire freight information at any time.
As an alternative embodiment, include flight number in the Transaction Information, the method also includes:
If operation of receiving need to be carried out, the flight number is obtained from the Transaction Information;
According to the flight number, the block chain airfreight information network is searched for, to obtain the corresponding boat of the flight number
The address of all waybill intelligence contracts in the class;
Address according to the waybill intelligence contract accesses waybill intelligence contract, all described from what is got
Data are read in waybill intelligence contract, and cargo be arrived into the corresponding waybill of information write-in and intelligently closed
About.
In the embodiment, due to including flight number, each official mission, such as machine of receiving in the Transaction Information of the whole network publication
Field goods station can just get flight number when Transaction Information is issued, and be searched by block chain airfreight information network
The waybill intelligence contract address of all waybills on the corresponding flight of the rope flight number, and intelligently closed from all waybills
Data are read in about, are received preparation with well in advance.After cargo reaches or cargo is received successfully, pass through the private key on airport of receiving
Cargo is had reached information and is written in corresponding waybill intelligence contract by signature, and solving at present need to can after aircraft stop
The problem of confirming papery waybill content, improves receive efficiency and entire airfreight efficiency of operation.
Further, waybill is if desired inquired, then can be with Air Way Bill No. by block chain airfreight information network
Search condition, retrieval record has the address of the waybill intelligence contract of waybill to be checked, using certificate number as search condition,
Obtain corresponding airline freight information account, the ground based on the airfreight information-account and waybill intelligence contract that get
The waybill intelligence contract data of waybill to be checked is read in location.
Fig. 5 is referred to, Fig. 5 is a kind of airfreight apparatus for management of information based on block chain provided in an embodiment of the present invention
Structural schematic diagram, as shown in Figure 5, comprising:
Block chain builds module 51, for building the block chain airfreight information network including multiple official missions;
Contract generation module 52 generates waybill for obtaining the waybill of user's submission, and according to the waybill
Information intelligent contract;
Waybill verifies module 53, obtains the waybill intelligence for accessing the block chain airfreight information network
Data in contract, to verify the waybill that user submits;
Trade release module 54, for the waybill verification pass through in the case where, using current official mechanism
The waybill intelligence contract is edited in official's account private key signature authorization, and in the block chain airfreight information network
Middle publication Transaction Information.
Optionally, as shown in fig. 6, the device further include:
Account creation module 55, for being created for all official missions in the block chain airfreight information network
Official's account for airfreight;
The contract generation module 52, comprising:
Contract generation unit 5201, for block chain airfreight information described in official's account access by creation
Network obtains the waybill that the user submits.
Optionally, as shown in fig. 7, contract generation unit 5201, comprising:
Certificate acquiring unit 52011, the certificate number submitted for obtaining the user;
Account retrieval unit 52012, for the letter of block chain airfreight described in official's account access by creation
Network is ceased, using the certificate number as search condition, retrieving in default account library whether there is boat associated with the certificate number
Empty freight information account;
First waybill acquiring unit 52013, if for there is aviation associated with the certificate number in default account library
Freight information account then obtains the waybill that the user is submitted by the airfreight information-account;
First account creation unit 52014, if for being not present and the certificate in default airfreight information-account library
Number associated account is then that the user creates the airfreight information-account, and establishes the airfreight information account
First incidence relation of foundation is stored in default airfreight information-account by the first incidence relation between family and the certificate number
Library.
Optionally, as shown in figure 8, contract generation unit 5201, further includes:
Image acquisition unit 52015, for obtaining the facial image of the user;
User search unit 52016, for the letter of block chain airfreight described in official's account access by creation
Network is ceased, using the facial image as search condition, retrieves whether the user is already present user in default account library;
Second waybill acquiring unit 52017 is read if being already present user in default account library for the user
The airfreight information-account of the user, and obtain the waybill that the user is submitted by the airfreight information-account
Information;
Second account creation unit 52018, if for the user not being already present user in default account library, for
The user creates the airfreight information-account, and establishes between the facial image and the airfreight information-account
The second incidence relation, the second incidence relation of foundation is stored in default account library.
Optionally, as shown in figure 9, the device further comprises:
Data setting module 56, for setting the waybill intelligence in the block chain airfreight information network
Data format in energy contract is only to allow to inquire, is newly-increased, does not allow to modify, deletion;
Address memory module 57 for obtaining Air Way Bill No. from the waybill, and establishes the waybill intelligence
Third incidence relation between the address of contract and the Air Way Bill No., and with being stored in default contract by the third incidence relation of foundation
Location library.
Optionally, as shown in Figure 10, the device further include:
Transaction obtains module 58, if obtaining the flight number from the Transaction Information for that need to carry out operation of receiving;
Contract obtains module 59, for the block chain airfreight information network being searched for, to obtain according to the flight number
The flight number is taken to correspond to the address of the waybill intelligence contract all on flight;
Data read module 510 is intelligently closed for the address access waybill according to the waybill intelligence contract
About, data are read from all waybill intelligence contracts got, and cargo be arrived into information write-in and corresponded to
The waybill intelligence contract.
It is living that airfreight apparatus for management of information provided in an embodiment of the present invention based on block chain can be realized above-mentioned face
Each embodiment or embodiment and corresponding beneficial effect in body detecting method embodiment, to avoid repeating, here no longer
It repeats.
1, Figure 11 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention referring to Figure 1, such as Figure 11 institute
Show, comprising: memory 1101, processor 1102 and be stored on the memory 1101 and can be transported on the processor 1102
Capable computer program 1103, in which:
The computer program 1103 that processor 1102 is used to that memory 1101 to be called to store executes following steps:
Build the block chain airfreight information network including multiple official missions;
The waybill that user submits is obtained, and waybill intelligence contract is generated according to the waybill;
Access the block chain airfreight information network and obtain data in the waybill intelligence contract, with to
The waybill that family is submitted is verified;
In the case where waybill verification passes through, awarded using official's account private key signature of current official mechanism
Power, edits the waybill intelligence contract, and issue Transaction Information in the block chain airfreight information network.
Optionally, after building the block chain airfreight information network for including the steps that multiple official missions, processing
Device 1102 is also used to:
In the block chain airfreight information network, the official of airfreight is used for for the creation of all official missions
Square account;
Processor 1102 executes the step of waybill that the acquisition user submits, comprising:
Block chain airfreight information network described in official's account access by creation obtains the user and submits
Waybill.
Optionally, processor 1102 executes block chain airfreight described in official's account access by creation
Information network obtains the step of waybill that the user submits, comprising:
Obtain the certificate number that the user submits;
Block chain airfreight information network described in official's account access by creation is inspection with the certificate number
Rope condition, retrieving in default account library whether there is airfreight information-account associated with the certificate number;
If there is airfreight information-account associated with the certificate number in default account library, the user is obtained
The waybill submitted by the airfreight information-account;
If account associated with the certificate number is not present in default airfreight information-account library, for the user
First for creating the airfreight information-account, and establishing between the airfreight information-account and the certificate number is associated with
First incidence relation of foundation is stored in default airfreight information-account library by relationship.
Optionally, processor 1102 executes block chain airfreight described in official's account access by creation
Information network obtains the step of waybill that the user submits, further includes:
Obtain the facial image of the user;
Block chain airfreight information network described in official's account access by creation is with the facial image
Search condition retrieves whether the user is already present user in default account library;
If the user is already present user in default account library, the airfreight information account of the user is read
Family, and obtain the waybill that the user is submitted by the airfreight information-account;
If the user is not already present user in default account library, the airfreight letter is created for the user
Account is ceased, and establishes the second incidence relation between the facial image and the airfreight information-account, by the of foundation
Two incidence relations are stored in default account library.
Optionally, after described the step of generating waybill intelligence contract according to the waybill, processor
1102 are also used to execute:
In the block chain airfreight information network, set data format in the waybill intelligence contract as
Only allow to inquire, is newly-increased, not allowing to modify, delete;
Air Way Bill No. is obtained from the waybill, and establish the waybill intelligence contract address and the waybill
Third incidence relation between number, and the third incidence relation of foundation is stored in default contract address base.
Optionally, include flight number in the Transaction Information, processor 1102 is also used to:
If operation of receiving need to be carried out, the flight number is obtained from the Transaction Information;
According to the flight number, the block chain airfreight information network is searched for, to obtain the corresponding boat of the flight number
The address of all waybill intelligence contracts in the class;
Address according to the waybill intelligence contract accesses waybill intelligence contract, all described from what is got
Data are read in waybill intelligence contract, and cargo be arrived into the corresponding waybill of information write-in and intelligently closed
About.
Illustratively, above-mentioned electronic equipment can be mobile phone, computer, laptop, tablet computer, palm PC and
Wearable device etc..Electronic equipment may include, but are not limited to processor 1102, memory 1101.Those skilled in the art can be with
Understand, the schematic diagram is only the example of electronic equipment, does not constitute the restriction to electronic equipment, may include than illustrating more
More or less component perhaps combines certain components or different components.
It should be noted that the processor 1102 due to electronic equipment realizes above-mentioned base when executing computer program 1103
Step in the airfreight approaches to IM of block chain, therefore the above-mentioned airfreight information management side based on block chain
The embodiment of method is suitable for the electronic equipment, and can reach the same or similar beneficial effect.
The embodiment of the invention also provides a kind of computer readable storage medium, computer-readable recording medium storage has meter
Calculation machine program, the computer program realize the above-mentioned airfreight approaches to IM based on block chain when being executed by processor
In step.
Illustratively, the computer program of computer readable storage medium includes computer program code, the computer
Program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer can
Reading medium may include: any entity or device, recording medium, USB flash disk, mobile hard that can carry the computer program code
Disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..
It should be noted that the computer program due to computer readable storage medium realized when being executed by processor it is above-mentioned
The airfreight approaches to IM based on block chain in step, therefore the above-mentioned airfreight message tube based on block chain
All embodiments of reason method are suitable for the computer readable storage medium, and can reach the same or similar beneficial to effect
Fruit.
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and
Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention
There is change place, in conclusion the contents of this specification are not to be construed as limiting the invention.