This patent application is application number: 202010478311.4, filing date: on 29/5/2020, the invention relates to a divisional application of the Chinese patent application entitled "transaction processing method, apparatus, device and system".
Detailed Description
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments described herein without making any inventive step shall fall within the scope of protection of this document.
Fig. 1 is a schematic view of an application scenario of a transaction processing method according to one or more embodiments of the present specification, as shown in fig. 1, the scenario includes: the system comprises a logistics platform, a first block chain node accessed to a first block chain and a second block chain node accessed to a second block chain. And logistics information of the logistics platform is stored in the first block chain. The resource management mechanism is provided with node equipment, and the node equipment is accessed to the second block chain and is a second block chain node; that is, the resource management mechanism, as a node accessing the second blockchain, performs a resource management operation on the chain, and saves information related to the resource management operation in the second blockchain. The application scene can be determined without any doubt, and a first block chain, a first block chain node accessed to the first block chain and the like can form a first block chain system; the second blockchain and a second blockchain node accessing the second blockchain, etc. may constitute a second blockchain system.
Specifically, the logistics platform generates the freight note based on a shipping request of a shipper and determines a carrier of the freight note; and after the shipper finishes the freight transportation corresponding to the freight note, the shipper applies for the first quantity of resources corresponding to the freight transportation and sends a payment application to the logistics platform. The logistics platform determines transaction information according to the supporting information included in the supporting application, generates a first transaction request according to the transaction information, and sends the first transaction request to a first block chain node of the first block chain. When the first block chain link point receives the first transaction request, the intelligent contract in the first block chain is called, and whether the transaction information included in the first transaction request meets the preset transaction condition or not is determined according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract. And if so, generating a second transaction request according to the transaction information, and sending the second transaction request to a second block chain node of a second block chain based on the chain-crossing transmission channel of the second block chain corresponding to the resource management mechanism and the first block chain. The second block chain node performs resource transfer processing based on the resource issued to the specified resource account of the logistics platform according to the received second transaction request so as to transfer the first quantity of resources to the carrier, and stores the resource transfer result information of the resource transfer processing into the second block chain; the second block chain sends the resource transfer result information to the first block chain node based on the cross-chain transmission channel; the first block link point transmits the received resource transfer result information to the logistics platform, so that the logistics platform transmits request result information of the supporting request to the carrier. Therefore, by storing the logistics information into the first block chain and storing the resource transfer result information of the resource transfer processing into the second block chain, the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced; moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
Based on the application scenario architecture, one or more embodiments of the present specification provide a transaction processing method. Fig. 2 is a schematic flow diagram of a transaction processing method according to one or more embodiments of the present disclosure, where the method in fig. 2 can be executed by the first block link point in fig. 1, and as shown in fig. 2, the method includes the following steps:
step S102, receiving a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a request for payment sent by a carrier of the waybill; the freight bill is generated by the logistics platform based on the consignment request of the consignor; after the freight transportation of the freight bill is completed for the carrier, the request for the freight is sent when a first quantity of resources corresponding to the freight transportation is applied; the transaction request includes transaction information;
specifically, the logistics platform generates a waybill according to shipping information included in a shipping request based on the shipping request of a shipper, and determines a carrier of the waybill; wherein the consignment information includes cargo information, shipment location information, delivery location information, etc. of the cargo to be consigned. When the carrier transports the goods to be consigned of the freight note from the shipment starting place to the delivery place, namely after the carrier finishes the goods transportation of the freight note, applies for a first amount of resources corresponding to the goods transportation, and sends a supporting application to the logistics platform. When the logistics platform determines that the resources are not transferred to the carrier, transaction information is determined according to the supporting information included in the supporting application, a first transaction request is generated according to the transaction information, and the first transaction request is sent to a first block chain node of the first block chain. The information for support includes identification information of the waybill, the first amount of the applied resource, user information of the carrier and the like, wherein the user information of the carrier includes name, mobile phone number, identity certificate number, account information of the resource account and the like; the logistics platform determines the purchase information as transaction information, or generates transaction information in a preset form based on the purchase information. The resource may be an entity resource, such as currency, or may be a virtual resource, such as electronic currency, points, or the like.
Step S104, calling an intelligent contract in the first block chain, and determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
the logistics information includes information of each logistics stage of the waybill, such as user information of a consignor in the waybill generation stage, waybill identification information, and the like, user information of a carrier in the waybill distribution stage, identification information of a transport vehicle of the carrier, and the like, shipment start point information, shipment start time information, and the like in the shipment start stage, delivery point information, delivery time information, and the like in the delivery stage, resource transfer result information in the resource transfer stage, and the like.
Step S106, if yes, a second transaction request is generated according to the transaction information; sending a second transaction request to a second blockchain node of a second blockchain based on a cross-chain transmission channel of the second blockchain corresponding to the resource management mechanism and the first blockchain; and the second block chain node performs resource transfer processing based on the resource issued to the specified resource account of the logistics platform according to the second transaction request so as to transfer the first quantity of resources to the carrier, and stores the resource transfer result information of the resource transfer processing into the second block chain.
The cross-chain transmission channel is a communication link constructed according to a relevant protocol, relevant interfaces are defined at the same time, and cross-chain transmission of data can be realized by calling the interfaces. The first transaction request and the second transaction request may be the same or different.
Further, if the transaction information is determined not to meet the preset transaction condition, request failure information is sent to the logistics platform.
Further, when the second block chain node receives the second transaction request, account information of a designated resource account of the logistics platform and resource account information of the carrier are determined; transferring the pre-collected resources to a designated resource account of the logistics platform according to the determined account information, and transferring a first amount of resources from the designated resource account of the logistics platform to a resource account of a carrier; and storing the resource transfer result information into the second block chain. The determining of the account information of the designated resource account of the logistics platform may be to acquire the account information of the designated resource account of the logistics platform from the second transaction request, or may be to acquire associated resource account information from an association relationship between preset digital identity information and resource account information according to the digital identity information of the logistics platform included in the second transaction request, and determine the acquired resource account information as the account information of the designated resource account of the logistics platform. The pre-collected resources may be resources obtained by performing resource collection processing on the second block link point based on the service data of the logistics platform pushed by the first block link point in advance; the service data is generated based on at least one piece of information related to the freight note which is in a transport termination state and the consignor does not provide the resources required by the transport.
In one or more embodiments of the present specification, when a first block link point receives a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first block chain based on an intelligent contract, a second transaction is sent to a second block chain node of a second block chain based on a cross-chain transmission channel, so that the second block link point performs resource transfer processing, and resource transfer result information is stored in the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
In order to enable the first block link point to verify the transaction information, in one or more embodiments of the present disclosure, the logistics node sends the logistics information of each waybill in each logistics stage to the first block link node, so that the first block link point stores the logistics information into the first block link, and verifies the transaction information based on the stored logistics information. Correspondingly, as shown in fig. 3, step S102 further includes:
s100-2, receiving logistics information of the waybill sent by the logistics platform;
specifically, after the logistics platform generates the freight note based on the shipping request of the shipper and determines the shipper, the logistics platform receives logistics information sent by the shipper and/or the shipper at each logistics stage of the freight note, and sends the received logistics information and identification information of the freight note to the first block chain node; and the first block chain link point receives logistics information and identification information of the freight note sent by the logistics platform.
And S100-4, correlating and storing the received logistics information and the waybill identification information of the waybill into a first block chain.
The logistics information of each waybill of the logistics platform is stored in the first block chain, so that the authenticity and the validity of the logistics information are ensured, and a basis is provided for the first block chain to check whether the transaction information meets the transaction conditions.
In order to avoid the logistics platform making a transaction request based on a false waybill and ensure that the second block link point can smoothly complete resource transfer, in one or more embodiments of the present specification, the first block link point verifies the transaction information based on an intelligent contract. Specifically, as shown in fig. 4, step S104 includes the following steps S104-2 and S104-4;
step S104-2, calling an intelligent contract in the first block chain, and determining whether the transaction information meets a first preset condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract; wherein the first preset condition comprises one or more of the following: inquiring related logistics information from the first block chain according to waybill identification information in the transaction information, wherein the user information of a carrier in the transaction information is effective, and the user information of the carrier in the transaction information comprises information of a specified type;
taking the first preset condition including the above items as an example for explanation, the first block chain link point calls an intelligent contract in the first block chain, related logistics information is inquired from the first block chain according to waybill identification information in the transaction information based on the intelligent contract, if the related logistics information is not inquired, the transaction information is determined to be not in accordance with the transaction condition, and request failure information is sent to the logistics platform; if the associated logistics information is inquired, whether the user information of the carrier included in the inquired logistics information is matched with the user information of the carrier included in the transaction information is determined, if not, the transaction information is determined not to be in accordance with the transaction condition, and request failure information is sent to the logistics platform; if the transaction information is matched with the user information of the carrier in the transaction information, determining whether the user information of the carrier in the transaction information comprises the information of the specified type, and if the user information of the carrier in the transaction information comprises the information of the specified type, determining that the transaction information meets the transaction conditions; if not, determining that the transaction information does not accord with the transaction condition, and sending request failure information to the logistics platform. The specified types of information, such as names, identification card numbers, resource account information, mobile phone numbers and the like, can be set in practical application according to needs.
It should be noted that the first preset condition is not limited to the above condition, and for example, the first preset condition may further include information that the resource transfer success is not queried from the first block chain according to the waybill identification information, whether the number of the resources to be transferred included in the transaction information exceeds a preset number, and the like, which may be set by itself in practical application as needed.
And step S104-4, if yes, determining that the transaction information meets the preset transaction conditions.
Corresponding to step S104-2 and step S104-4, as shown in fig. 4, step S106 includes the following step S106-2:
step S106-2, generating a second transaction request according to the transaction information; sending a second transaction request to a second block chain node of a second block chain based on a cross-chain transmission channel of the second block chain corresponding to the resource management mechanism and the first block chain; and the second block chain node performs resource transfer processing based on the resource issued to the specified resource account of the logistics platform according to the second transaction request so as to transfer the first quantity of resources to the carrier, and stores the resource transfer result information of the resource transfer processing into the second block chain.
By verifying the transaction information, the validity of the transaction information is ensured, and the subsequent resource transfer processing can be smoothly carried out. The transaction information is verified based on the intelligent contract, so that verification efficiency and accuracy are improved.
Further, in order to ensure that the transaction information in the first transaction request cannot be tampered by an attacker in the process of sending the first transaction request to the first blockchain node by the logistics platform; in one or more embodiments of the present specification, before sending the first transaction request, the logistics platform signs the transaction information based on a private key corresponding to the digital identity information of the first transaction request, obtains ciphertext data of the transaction information, and sends the first transaction request to the first block link node according to the ciphertext data of the transaction information and the digital identity information of the logistics platform; the digital identity information is, for example, DID (full english name: Decentralized identities, full chinese name: distributed identity). Correspondingly, as shown in fig. 5, step S102 includes the following step S102-2:
step S102-2, receiving a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a request for payment sent by a carrier of the waybill; the freight bill is generated by the logistics platform based on a shipping request of a shipper; after the freight transportation of the freight bill is completed for the carrier, the request for the freight is sent when a first quantity of resources corresponding to the freight transportation is applied; the transaction request comprises ciphertext data of the transaction information and digital identity information of the logistics platform;
corresponding to step S102-2, as shown in fig. 5, step S102 further includes:
step S103, a public key corresponding to the digital identity information is obtained, and the obtained public key is adopted to decrypt the ciphertext data to obtain the transaction information.
Wherein, obtaining the public key corresponding to the digital identity information comprises: inquiring a related document (did doc) from the block chain according to the digital identity information, and acquiring a public key from the inquired document; or sending a public key acquisition request to a specified security mechanism according to the digital identity information, and receiving the public key sent by the security mechanism.
Because the private key corresponding to the digital identity information is only held by the logistics platform, the first transaction request can be determined to come from the logistics platform instead of being forged by other users when the first block link node decrypts the ciphertext data successfully according to the acquired public key by sending the ciphertext data of the transaction information to the first block link node.
Further, in order to make the logistics platform know the resource transfer result, in one or more embodiments of the present disclosure, when the second block link node obtains the resource transfer result information, the resource transfer result information is sent to the first block link node based on the inter-chain transmission channel, so that the resource transfer result information is sent to the logistics platform through the first block link node. Specifically, as shown in fig. 6, after step S106, the method further includes:
step S108, receiving resource transfer result information sent by a second block chain node based on a cross-chain transmission channel, and storing the resource transfer result information into a first block chain;
the resource transfer result information comprises waybill identification information and state information representing whether transfer is successful or not.
Step S110, sending the resource transfer result information to the logistics platform, so that the logistics platform sends the request result information of the support request to the carrier according to the resource transfer result information.
In one or more embodiments of the present specification, when a first block link point receives a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first block chain based on an intelligent contract, a second transaction is sent to a second block chain node of a second block chain based on a cross-chain transmission channel, so that the second block link point performs resource transfer processing, and resource transfer result information is stored in the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
The above is a process in which the resource management entity serves as a second blockchain node of the second blockchain, and performs processing such as resource transfer on the chain based on the received second transaction request. In one or more embodiments of this specification, the resource management mechanism, as a second blockchain node of the second blockchain, may further perform, when receiving the second transaction request, processing such as resource transfer under the chain, and store the processing result information into the second blockchain. Further, in one or more embodiments of the present specification, the resource management entity may also not be a node in the second blockchain, and accordingly, as shown in fig. 7, an application scenario of the transaction processing method includes: the system comprises a logistics platform, a resource management mechanism, a first block chain node accessed to a first block chain and a second block chain node accessed to a second block chain. When the first block chain node receives the first transaction request, the intelligent contract in the first block chain is called, and whether the transaction information included in the first transaction request meets the preset transaction condition or not is determined according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract. And if so, generating a second transaction request according to the transaction information, and sending the second transaction request to the resource management mechanism. The resource management mechanism carries out resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the received second transaction request so as to transfer a first amount of resources to the carrier, and sends the resource transfer result information of the resource transfer processing to the second block chain node so that the second block chain node stores the resource transfer result information into the second block chain; or the resource transfer mechanism sends the resource transfer result information and the transaction information to the second block chain node, so that the second block chain node stores the resource transfer result information and the transaction information in a second block chain in an associated manner. The resource management mechanism sends the resource transfer result information to the first block chain node; the first block link point transmits the received resource transfer result information to the logistics platform, so that the logistics platform transmits request result information of the supporting request to the carrier. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information of the resource transfer processing is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on the false waybill is avoided, and the logistics business, the resource transfer business and the like can be traced. Moreover, the resource transfer mechanism is used as a transfer mechanism to carry out cross-chain transmission of data, so that a data island is broken, interconnection and intercommunication of data are realized, and potential values of data such as logistics information and the like are beneficially mined.
Based on the application scenario architecture shown in fig. 7, one or more embodiments of the present specification further provide another transaction processing method. Fig. 8 is a flow diagram of another transaction processing method provided in one or more embodiments of the present disclosure, where the method in fig. 8 can be performed by the first block link point in fig. 7, as shown in fig. 8, and the method includes the following steps:
step S202, receiving a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a request for payment sent by a carrier of the waybill; the freight bill is generated by the logistics platform based on the consignment request of the consignor; after the freight transportation of the freight bill is completed for the carrier, the request for the freight is sent when a first quantity of resources corresponding to the freight transportation is applied; the transaction request includes transaction information;
step S204, calling an intelligent contract in the first block chain, and determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
step S206, if yes, a second transaction request is sent to the resource management mechanism according to the transaction information, so that the resource management mechanism carries out resource transfer processing on the basis of the resources in the specified resource account issued to the logistics platform according to the second transaction request, so as to transfer the first quantity of resources to the carrier, and the resource transfer result information of the resource transfer processing is stored in the second block chain.
The implementation process of step S202 to step S204 is the same as the implementation process of step S102 to step S104, and reference may be made to the related description, and repeated parts are not described herein again.
Further, after the resource management mechanism performs resource transfer processing, the resource transfer result is sent to the second block chain node, so that the second block chain node stores the resource transfer result in the second block chain; or the resource management mechanism sends the resource transfer result and the transaction information to the second block chain node, so that the second block chain node stores the resource transfer result and the transaction information into the second block chain in an associated manner. And, the resource management mechanism sends the resource transfer result information to the first blockchain node, and correspondingly, after step S206, the method further includes: and receiving resource transfer result information sent by the resource management structure, storing the resource transfer result information into the first block chain, and sending the resource transfer result information to the logistics platform, so that the logistics platform sends request result information of a support request to the carrier according to the resource transfer result information.
Further, in one or more embodiments of the present specification, step S206 may further include: if so, sending the second transaction request to a second block chain link point of a second block chain based on a chain-crossing transmission channel of the second block chain corresponding to the first block chain and the resource management mechanism; so that the second block link node sends a second transaction request to the resource management mechanism, so that the resource management mechanism performs a resource transfer process based on the resources issued into the designated resource account of the logistics platform to transfer the first amount of resources to the carrier, and sends resource transfer result information to the second block link node, so that the second block link node stores the resource transfer result information into the second block link.
Furthermore, in one or more embodiments of the present specification, the logistics platform may further grant the resource management entity an authority to view a part of the logistics information in the first blockchain, and accordingly, when the resource management entity receives the second transaction request, the resource management entity may further access the corresponding logistics information in the first blockchain based on the granted authority, and perform resource transfer processing when the transaction information is verified according to the accessed logistics information.
In one or more embodiments of the present disclosure, when a first block link point receives a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first block chain based on an intelligent contract, a second transaction is sent to a resource management mechanism, so that the resource management mechanism performs resource transfer processing, and resource transfer result information is stored in the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, the resource management mechanism is used as a transfer to carry out cross-link transmission of data, so that a data island is broken, interconnection and intercommunication of data are realized, and potential values of data such as logistics information and the like are beneficially mined.
Corresponding to the above-described transaction processing method, based on the same technical concept, one or more embodiments of the present specification further provide a transaction processing method applied to a logistics platform. Fig. 9 is a schematic flow diagram of another transaction processing method provided in one or more embodiments of the present disclosure, as shown in fig. 9, the method includes:
step S302, receiving a request for payment sent by a carrier; the consignment request is sent when a first quantity of resources corresponding to freight transportation is applied after the freight transportation of the freight note is completed by the shipper; the freight bill is generated by the logistics platform based on the consignment request of the consignor; the request for payment includes information for payment;
specifically, step S302 further includes: receiving a consignment request sent by a consignor; generating a waybill according to the shipping request including the shipping information and determining the carrier of the waybill; and the consignor and/or the carrier sends the logistics information of the waybill to the logistics platform at each logistics stage of the waybill, and the logistics platform sends the received logistics information of the waybill to the first block chain link point, so that the first block chain link point stores the logistics information into the first block chain. When the shipper completes the shipment of the freight of the waybill, a request for payment is sent to the logistics platform.
Step S304, if the resource transfer processing is determined to be carried out in the first mode, transaction information is determined according to the supporting information;
the transaction information is determined according to the payment information, the payment information can be determined as the transaction information, and the transaction information can be generated based on the payment information according to a preset mode.
Step S306, according to the transaction information, sending a first transaction request to a first block chain node of a first block chain, so that when the first block chain node determines that the transaction information meets a preset transaction condition based on the logistics information in the first block chain, sending a second transaction request to a second block chain node of a second block chain based on a cross-chain transmission channel of the second block chain corresponding to the resource management mechanism and the first block chain; and the second block chain node performs resource transfer processing based on the resource issued to the specified resource account of the logistics platform according to the second transaction request so as to transfer the first quantity of resources to the carrier, and stores the resource transfer result information into the second block chain.
In one or more embodiments of the present specification, when receiving a demand request sent by a carrier, if it is determined that resource transfer processing is performed in a first manner, a logistics platform sends a first transaction request to a first block chain node of a first block chain, so that when determining that transaction information satisfies a preset transaction condition based on an intelligent contract, the first block chain node sends a second transaction request to a second block chain node of the second block chain based on a cross-chain transmission channel of a second block chain corresponding to a resource management mechanism and the first block chain node; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential values of the data such as logistics information and the like are favorably mined.
In order to avoid repeated payment application sending by a carrier due to misoperation, when the logistics platform receives a payment application, a query request can be sent to the first block chain link point according to the waybill identification information of a corresponding waybill, so that the first block chain link point queries related resource transfer success information from the block chain according to the waybill identification information and returns a query result; if the query result represents that the associated resource transfer success information is queried, determining that the resources are transferred to the carrier, and sending request failure information to the carrier; if the query result represents that the associated resource transfer success information is not queried, determining that the resource is not transferred to the carrier, and executing step S304.
In order to meet the resource transfer requirements of different modes of a logistics platform, in one or more embodiments of the present description, the logistics platform may transfer resources to a carrier through a first mode, and may also transfer resources to the carrier through a second mode; the first mode is to perform resource transfer based on the resources collected by the second blockchain node; the second mode is to transfer resources based on the existing resources in the resource account of the logistics platform. When the resource transfer is carried out by adopting the second mode, the logistics platform sends a third transaction request to the resource transfer mechanism according to the transaction information, so that the resource transfer mechanism carries out resource transfer according to the existing resources in the appointed resource account of the logistics platform. Further, when the logistics platform transfers resources in the first mode, it needs to determine whether the logistics platform has a resource collection right. Specifically, as shown in fig. 10, the step S304 includes the following steps S304-2:
step S304-2, determining whether the logistics platform has the resource collection authority currently, and if so, determining transaction information according to the supporting information;
specifically, resource collection permission information of the logistics platform is obtained from the second block link point according to preset time information; the resource collection authority information is information generated after the second block link point evaluates the credit of the logistics platform according to a preset evaluation model; and if the resource collection authority information represents that the logistics platform has the resource collection authority, determining that the logistics platform has the resource collection authority, and performing resource transfer processing in a first mode.
More specifically, the second block link point sends an information acquisition request to the first block link point according to a preset time interval, and receives logistics information sent by the first block link point based on the chain-crossing transmission channel; acquiring transaction information of historical transactions of the logistics platform from the second blockchain; according to the acquired logistics information, transaction information and the like, evaluating the credit of the logistics platform based on a preset evaluation model, and generating resource collection authority information representing that the logistics platform has resource collection authority when the evaluation processing result represents that the credit of the logistics platform is better; and when the evaluation processing result represents that the credit of the logistics platform is not good, generating resource collection authority information representing that the logistics platform does not have resource collection authority. And the logistics platform sends an authority inquiry request to the second block chain node according to preset time information, receives resource collection authority information sent by the second block chain node, and determines whether the current resource collection authority exists or not according to the resource collection authority information. The preset time information, for example, 1: and 00 points.
It should be noted that, when the resource management mechanism is not the second blockchain node of the second blockchain, the resource management may evaluate the credit of the logistics platform, and accordingly, the logistics platform obtains the resource collection permission information from the resource management mechanism.
The credit of the logistics platform is evaluated, so that the logistics platform determines the resource transfer mode, and unnecessary troubles caused by poor credit of the logistics platform are avoided.
Further, in order to ensure the security of the transaction, in one or more embodiments of the present specification, the logistics platform first signs the transaction information before sending the first transaction request. Specifically, as shown in fig. 11, step S306 includes:
s306-2, encrypting the transaction information by adopting a private key corresponding to the digital identity information of the logistics platform to obtain ciphertext data of the transaction information;
step S306-4, generating a first transaction request according to the ciphertext data, and sending the first transaction request to a first block chain node accessed to a first block chain, so that when the first block chain node determines that the transaction information meets a preset transaction condition based on the logistics information in the first block chain, the first block chain node sends a second transaction request to a second block chain node of the second block chain based on a cross-chain transmission channel of the second block chain corresponding to the resource management mechanism and the first block chain; and the second block chain node performs resource transfer processing based on the resource issued to the specified resource account of the logistics platform according to the second transaction request so as to transfer the first quantity of resources to the carrier, and stores the resource transfer result information into the second block chain.
Further, in order to make the logistics platform and the carrier know about the resource transfer result, the first block chain node sends the resource transfer result information to the logistics platform when receiving the resource transfer result information sent by the second block chain node; correspondingly, as shown in fig. 12, step S306 is followed by:
step S308, receiving resource transfer result information sent by the first block chain node;
in step S310, request result information of the support request is transmitted to the carrier based on the resource transfer result information.
It should be noted that, when the resource management mechanism is not a second block chain node in the second block chain, the data interaction between the logistics platform and the second block chain node may be data interaction between the logistics platform and the resource management mechanism, and details are not described in this specification.
In one or more embodiments of the present specification, when receiving a demand request sent by a carrier, if it is determined that resource transfer processing is performed in a first manner, a logistics platform sends a first transaction request to a first block chain node of a first block chain, so that when determining that transaction information satisfies a preset transaction condition based on an intelligent contract, the first block chain node sends a second transaction request to a second block chain node of the second block chain based on a cross-chain transmission channel of a second block chain corresponding to a resource management mechanism and the first block chain node; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
On the basis of the same technical concept, corresponding to the transaction processing methods described in fig. 2 to 6, one or more embodiments of the present specification further provide a transaction processing apparatus. Fig. 13 is a schematic diagram illustrating a module composition of a transaction processing apparatus according to one or more embodiments of the present disclosure, the apparatus being configured to perform the transaction processing method described in fig. 2 to 6, and as shown in fig. 13, the apparatus includes:
the receiving module 401 receives a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a request for payment sent by a carrier of the manifest; the freight note is generated by the logistics platform based on a consignment request of a consignor; the requisition request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the shipper completes the freight transportation of the freight note; the transaction request includes transaction information;
the determining module 402 is configured to invoke an intelligent contract in the first block chain, and determine whether the transaction information meets a preset transaction condition according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
a sending module 403, configured to generate a second transaction request according to the transaction information if the determination result of the determining module 402 is yes; sending the second transaction request to a second block link point of a second block chain based on a chain spanning transmission channel of the second block chain corresponding to the resource management mechanism and the first block chain; and the second block link point performs resource transfer processing based on the resource issued to the specified resource account of the logistics platform according to the second transaction request, so as to transfer the first quantity of resources to the carrier, and saves the resource transfer result information of the resource transfer processing into the second block chain.
In the transaction processing apparatus provided in one or more embodiments of the present specification, when a first transaction request sent by a logistics platform is received, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, a second transaction is sent to a second blockchain node of a second blockchain based on a cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and resource transfer result information is stored in the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
Optionally, the transaction information includes: waybill identification information of the waybill and user information of the carrier;
the determining module 402 determines whether the transaction information meets a first preset condition according to the logistics information of the logistics platform saved in the first block chain based on the intelligent contract; wherein the first preset condition comprises one or more of: inquiring related logistics information from the first block chain according to the waybill identification information, wherein the user information is effective and comprises information of a specified type;
and if so, determining that the transaction information meets the preset transaction condition.
Optionally, the receiving module 401, before receiving the first transaction request sent by the logistics platform, further receives logistics information of the waybill sent by the logistics platform; and the number of the first and second groups,
and storing the received logistics information and the waybill identification information of the waybill in a correlated manner into the first block chain.
Optionally, the first transaction request comprises: ciphertext data of the transaction information and digital identity information of the logistics platform; the cipher text data is obtained by adopting a private key corresponding to the digital identity information to sign the transaction information; the apparatus also includes a decryption module;
the decryption module acquires a public key corresponding to the digital identity information;
and decrypting the ciphertext data by adopting the public key to obtain the transaction information.
Optionally, the receiving module 401, after the sending module 403 sends the second transaction request to a second block link node of the second block chain, further receives the resource transfer result information sent by the second block chain node; and the number of the first and second groups,
storing the resource transfer result information into the first block chain;
the sending module 403 sends the resource transfer result information to the logistics platform, so that the logistics platform sends the request result information of the supporting request to the carrier according to the resource transfer result information.
Optionally, the sending module 403 sends request failure information to the logistics platform if the determining module 402 determines that the transaction information does not meet the preset transaction condition.
In the transaction processing apparatus provided in one or more embodiments of the present specification, when a first transaction request sent by a logistics platform is received, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, a second transaction is sent to a second blockchain node of a second blockchain based on a cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and resource transfer result information is stored in the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
It should be noted that the embodiment of the transaction processing apparatus in this specification and the embodiment of the transaction processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the corresponding transaction processing method, and repeated details are not described again.
Further, based on the same technical concept, another transaction processing apparatus is provided in one or more embodiments of the present specification, corresponding to the transaction processing method described in fig. 8. Fig. 14 is a schematic block diagram of another transaction processing apparatus according to one or more embodiments of the present disclosure, the apparatus being configured to execute the transaction processing method described in fig. 8, and as shown in fig. 14, the apparatus includes:
a receiving module 501, configured to receive a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a requisition request sent by a carrier of the waybill; the freight note is generated by the logistics platform based on a consignment request of a consignor; the requisition request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the shipper completes the freight transportation of the freight note; the transaction request includes transaction information;
the determining module 502 is configured to invoke an intelligent contract in the first block chain, and determine whether the transaction information meets a preset transaction condition according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
a sending module 503, if a determination result of the determining module is yes, sending a second transaction request to a resource management mechanism according to the transaction information; and the resource management mechanism performs resource transfer processing based on the resources in the specified resource account issued to the logistics platform according to the second transaction request so as to transfer the first quantity of resources to the carrier, and saves the resource transfer result information of the resource transfer processing into the second block chain.
In the transaction processing apparatus provided in one or more embodiments of the present specification, when receiving a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, a second transaction is sent to a resource management entity, so that the resource management entity performs resource transfer processing, and resource transfer result information is stored in the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, the resource management mechanism is used as a transfer mechanism to carry out cross-chain transmission of data, so that a data island is broken, interconnection and intercommunication of data are realized, and potential values of data such as logistics information and the like are beneficially mined.
Optionally, the transaction information includes: waybill identification information of the waybill and user information of the carrier;
the determining module 502 determines whether the transaction information meets a first preset condition according to the logistics information of the logistics platform saved in the first block chain based on the intelligent contract; wherein the first preset condition comprises one or more of: inquiring related logistics information from the first block chain according to the waybill identification information, wherein the user information is effective and comprises information of a specified type;
and if so, determining that the transaction information meets the preset transaction condition.
Optionally, the receiving module 501, before receiving the first transaction request sent by the logistics platform, also receives logistics information of the waybill sent by the logistics platform; and the number of the first and second groups,
and storing the received logistics information and the waybill identification information of the waybill in a correlated manner into the first block chain.
Optionally, the first transaction request comprises: the cryptograph data of the transaction information and the digital identity information of the logistics platform; the cipher text data is obtained by adopting a private key corresponding to the digital identity information to sign the transaction information; the apparatus also includes a decryption module;
the decryption module acquires a public key corresponding to the digital identity information;
and decrypting the ciphertext data by adopting the public key to obtain the transaction information.
Optionally, the receiving module 501, after the sending module 503 sends the second transaction request to the resource management entity, further receives the resource transfer result information sent by the resource management entity; and (c) a second step of,
storing the resource transfer result information into the first block chain;
the sending module 503 sends the resource transfer result information to the logistics platform, so that the logistics platform sends the request result information of the request for payment to the carrier according to the resource transfer result information.
Optionally, the sending module 503 sends request failure information to the logistics platform if the determining module 502 determines that the transaction information does not meet the preset transaction condition.
In the transaction processing apparatus provided in one or more embodiments of the present specification, when receiving a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, a second transaction is sent to a resource management entity, so that the resource management entity performs resource transfer processing, and resource transfer result information is stored in the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, the resource management mechanism is used as a transfer to carry out cross-link transmission of data, so that a data island is broken, interconnection and intercommunication of data are realized, and potential values of data such as logistics information and the like are beneficially mined.
It should be noted that the embodiment of the transaction processing apparatus in this specification and the embodiment of the transaction processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the corresponding transaction processing method, and repeated details are not described again.
Further, based on the same technical concept, the transaction processing method described with reference to fig. 9 to 12 further provides another transaction processing apparatus according to one or more embodiments of the present disclosure. Fig. 15 is a schematic block diagram of another transaction processing apparatus according to one or more embodiments of the present disclosure, the apparatus being configured to execute the transaction processing method described in fig. 9 to 12, and as shown in fig. 15, the apparatus includes:
a receiving module 601 for receiving a request for purchase transmitted by a carrier; the consignment request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the freight transportation of the freight note is completed by the shipper; the freight note is generated by the logistics platform based on a consignment request of a consignor; the request for payment includes payment information;
a determining module 602, configured to determine transaction information according to the supporting information if it is determined that the resource transfer processing is performed in the first manner;
the sending module 603 is configured to send a first transaction request to a first blockchain node accessing a first blockchain according to the transaction information, so that when the first blockchain node determines that the transaction information meets a preset transaction condition based on logistics information in the first blockchain, a second transaction request is sent to a second blockchain node of a second blockchain corresponding to a resource management mechanism based on a cross-chain transmission channel of the second blockchain of the first blockchain and the resource management mechanism; such that the second block link point performs a resource transfer process based on resources issued to the designated resource account of the logistics platform in accordance with the second transaction request to transfer the first amount of resources to the carrier.
In the transaction processing apparatus provided in one or more embodiments of the present specification, when a request for purchase is received from a carrier, if it is determined that resource transfer processing is performed in a first manner, a first transaction request is sent to a first blockchain node of a first blockchain, so that when the first blockchain node determines that transaction information satisfies a preset transaction condition based on an intelligent contract, a second transaction request is sent to a second blockchain node of the second blockchain based on a cross-chain transmission channel of a second blockchain corresponding to a resource management mechanism of the first blockchain; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
Optionally, the determining module 602 determines whether the logistics platform currently has the resource collection authority; and if so, determining to adopt the first mode to carry out resource transfer processing.
Optionally, the determining module 602 acquires resource collection permission information of the logistics platform from the second block link point according to preset time information; the resource collection authority information is information generated after the second block link point evaluates the credit of the logistics platform according to a preset evaluation model; and the number of the first and second groups,
and if the resource collection permission information represents that the logistics platform has the resource collection permission, determining that the logistics platform has the resource collection permission.
Optionally, the sending module 603 encrypts the transaction information by using a private key corresponding to the digital identity information of the logistics platform to obtain ciphertext data of the transaction information;
and generating a first transaction request according to the ciphertext data, and sending the first transaction request to a first block chain link point accessed to the first block chain.
Optionally, the receiving module 601, after the sending module 603 sends the first transaction request to the first blockchain node accessing the first blockchain, receives resource transfer result information sent by the first blockchain node; and the number of the first and second groups,
and sending request result information of the supporting request to the carrier according to the resource transfer result information.
Optionally, the apparatus further comprises: the device comprises a generating module and an obtaining module;
the receiving module 601, before receiving the request for payment sent by the carrier, further receiving the shipping request sent by the shipper; wherein the shipping request includes shipping information;
the generation module generates the waybill according to the shipping information and determines the carrier of the waybill;
the acquisition module acquires the logistics information of the freight note and sends the logistics information to the first block chain link point so that the first block chain link point stores the logistics information into the first block chain.
In the transaction processing apparatus provided in one or more embodiments of the present specification, when a demand request sent by a carrier is received, if it is determined that resource transfer processing is performed in a first manner, a first transaction request is sent to a first block chain node of a first block chain, so that when the first block chain node determines that transaction information satisfies a preset transaction condition based on an intelligent contract, a second transaction request is sent to a second block chain node of the second block chain based on a cross-chain transmission channel of a second block chain corresponding to a resource management mechanism of the first block chain; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
It should be noted that the embodiment of the transaction processing apparatus in this specification and the embodiment of the transaction processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the corresponding transaction processing method, and repeated details are not described again.
Further, on the basis of the same technical concept, corresponding to the above-described transaction processing method, one or more embodiments of the present specification further provide a transaction processing system. Fig. 16 is a schematic diagram of a transaction processing system according to one or more embodiments of the present disclosure, and as shown in fig. 16, the system includes: the system comprises a logistics platform 701, a first block chain 702 and a second block chain 703 corresponding to a resource management mechanism;
the logistics platform 701 receives a request for purchase sent by a carrier; the consignment request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the freight transportation of the freight note is completed by the shipper; the freight note is generated by the logistics platform based on a consignment request of a consignor; if the resource transfer processing is determined to be carried out in the first mode, transaction information is determined according to the supporting information included in the supporting request; sending a first transaction request to a first blockchain node of the first blockchain 702 according to the transaction information;
a first blockchain node of the first blockchain 702 receives a first transaction request sent by the logistics platform 701; calling an intelligent contract in the first blockchain, and determining whether the transaction information included in the first transaction request meets a preset transaction condition or not according to the logistics information of the logistics platform 701, which is stored in the first blockchain 702, of the intelligent contract; if yes, generating a second transaction request according to the transaction information; sending the second transaction request to a second blockchain link point of the second blockchain 703 based on the cross-chain transmission channels of the first blockchain 702 and the second blockchain 703;
a second blockchain node of the second blockchain 703, according to the received second transaction request; performing resource transfer processing based on the resources issued to the designated resource account of the logistics platform 701 to transfer the first amount of resources to the carrier, and saving the resource transfer result information of the resource transfer processing to the second block chain 703.
In the transaction processing system provided in one or more embodiments of the present specification, when a first block link point receives a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first block chain based on an intelligent contract, a second transaction is sent to a second block chain node of a second block chain based on a cross-chain transmission channel, so that the second block link point performs resource transfer processing, and resource transfer result information is stored in the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential values of the data such as logistics information and the like are favorably mined.
It should be noted that the embodiment of the transaction processing system in this specification and the embodiment of the transaction processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the corresponding transaction processing method, and repeated details are not described again.
Further, on the basis of the same technical concept, corresponding to the above-described transaction processing method, one or more embodiments of the present specification further provide a transaction processing system. Fig. 17 is a schematic diagram of a transaction processing system according to one or more embodiments of the present disclosure, and as shown in fig. 17, the transaction processing system includes: a logistics platform 801, a first block chain 802, a resource management mechanism 803 and a second block chain 804;
the logistics platform 801 receives a request for purchase sent by a carrier; the consignment request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the freight transportation of the freight note is completed by the shipper; the freight note is generated by the logistics platform based on a shipping request of a shipper; if the resource transfer processing is determined to be carried out in the first mode, transaction information is determined according to the supporting information included in the supporting request; sending a first transaction request to a first blockchain node of the first blockchain 802 according to the transaction information;
a first blockchain node of the first blockchain 802 receives a first transaction request sent by the logistics platform 801; calling an intelligent contract in the first blockchain, and determining whether the transaction information included in the first transaction request meets a preset transaction condition or not according to the logistics information of the logistics platform 801 stored in the first blockchain 802 based on the intelligent contract; if yes, a second transaction request is sent to the resource management mechanism 803 according to the transaction information;
the resource management mechanism 803 receives a second transaction request sent by the first blockchain node; according to the second transaction request, resource transfer processing is performed based on the resource issued to the specified resource account of the logistics platform 801 to transfer the first amount of resources to the carrier, and the resource transfer result information of the resource transfer processing is saved to the second block chain 804.
In the transaction processing system provided in one or more embodiments of the present specification, when a first block link node receives a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first block chain based on an intelligent contract, a second transaction is sent to a resource management mechanism, so that the resource management mechanism performs resource transfer processing, and resource transfer result information is stored in the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, the resource management mechanism is used as a transfer to carry out cross-link transmission of data, so that a data island is broken, interconnection and intercommunication of data are realized, and potential values of data such as logistics information and the like are beneficially mined.
It should be noted that the embodiment of the transaction processing system in this specification and the embodiment of the transaction processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the corresponding transaction processing method, and repeated details are not described again.
Further, corresponding to the above-described transaction processing method, based on the same technical concept, one or more embodiments of the present specification further provide a transaction processing device, which is used for executing the above-described transaction processing method, and fig. 18 is a schematic structural diagram of a transaction processing device provided in one or more embodiments of the present specification.
As shown in fig. 18, the transaction processing device may have a large difference due to different configurations or performances, and may include one or more processors 901 and a memory 902, and one or more stored applications or data may be stored in the memory 902. Memory 902 may be, among other things, transient storage or persistent storage. The application program stored in memory 902 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in the transaction processing device. Still further, the processor 901 may be configured to communicate with the memory 902 to execute a series of computer-executable instructions in the memory 902 on the transaction processing device. The transaction processing apparatus may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input-output interfaces 905, one or more keyboards 906, and the like.
In one particular embodiment, the transaction processing apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the transaction processing apparatus, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
receiving a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a request for payment sent by a carrier of the manifest; the freight note is generated by the logistics platform based on a consignment request of a consignor; the requisition request is sent when the first quantity of resources corresponding to the freight transportation is applied after the freight transportation of the freight bill is completed by the carrier; the transaction request includes transaction information;
calling an intelligent contract in the first block chain, and determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
if yes, generating a second transaction request according to the transaction information; sending the second transaction request to a second block link point of a second block chain based on a chain spanning transmission channel of the second block chain corresponding to the resource management mechanism and the first block chain; and the second block link point performs resource transfer processing based on the resources issued to the designated resource account of the logistics platform according to the second transaction request, so as to transfer the first quantity of resources to the carrier, and saves the resource transfer result information of the resource transfer processing into the second block chain.
When a first transaction request sent by a logistics platform is received, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, a transaction processing device provided in one or more embodiments of the present specification sends a second transaction to a second blockchain node of a second blockchain based on a cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and stores resource transfer result information into the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
Optionally, the computer executable instructions, when executed, the transaction information comprises: waybill identification information of the waybill and user information of the carrier;
the determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract comprises the following steps:
determining whether the transaction information meets a first preset condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract; wherein the first preset condition comprises one or more of the following: inquiring related logistics information from the first block chain according to the waybill identification information, wherein the user information is effective and comprises information of a specified type;
and if so, determining that the transaction information meets the preset transaction condition.
Optionally, when executed, the computer-executable instructions, before receiving the first transaction request sent by the logistics platform, further include:
receiving logistics information of the waybill sent by the logistics platform;
and storing the received logistics information and the waybill identification information of the waybill in a correlation manner into the first block chain.
Optionally, the computer executable instructions, when executed, the first transaction request comprises: the cryptograph data of the transaction information and the digital identity information of the logistics platform; the cipher text data is obtained by adopting a private key corresponding to the digital identity information to sign the transaction information;
before the determining whether the transaction information meets the preset transaction condition according to the logistics information of the logistics platform stored in the first blockchain based on the intelligent contract, the method further includes:
acquiring a public key corresponding to the digital identity information;
and decrypting the ciphertext data by adopting the public key to obtain the transaction information.
Optionally, the computer executable instructions, when executed, further comprise after said sending the second transaction request to a second block link point of the second block chain;
receiving the resource transfer result information sent by the second blockchain node;
storing the resource transfer result information into the first block chain; and the number of the first and second groups,
and sending the resource transfer result information to the logistics platform so that the logistics platform sends the request result information of the supporting request to the carrier according to the resource transfer result information.
Optionally, the computer executable instructions, when executed, further comprise:
and if the transaction information is determined not to accord with the preset transaction condition, sending request failure information to the logistics platform.
In the transaction processing device provided in one or more embodiments of the present specification, when receiving a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, a second transaction is sent to a second blockchain node of a second blockchain based on a cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and resource transfer result information is stored in the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
In another particular embodiment, a transaction processing device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the transaction processing device, and the one or more programs configured for execution by the one or more processors include computer-executable instructions for:
receiving a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a request for payment sent by a carrier of the manifest; the freight note is generated by the logistics platform based on a consignment request of a consignor; the requisition request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the shipper completes the freight transportation of the freight note; the transaction request includes transaction information;
calling an intelligent contract in the first block chain, and determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
if yes, sending a second transaction request to a resource management mechanism according to the transaction information, so that the resource management mechanism performs resource transfer processing on the basis of the resources issued to the specified resource account of the logistics platform according to the second transaction request, so as to transfer the first number of resources to the carrier, and storing the resource transfer result information of the resource transfer processing in the second block chain.
Optionally, the computer executable instructions, when executed, the transaction information comprises: waybill identification information of the waybill and user information of the carrier;
the determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract comprises the following steps:
determining whether the transaction information meets a first preset condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract; wherein the first preset condition comprises one or more of the following: inquiring related logistics information from the first block chain according to the waybill identification information, wherein the user information is effective and comprises information of a specified type;
and if so, determining that the transaction information meets the preset transaction condition.
In the transaction processing device provided in one or more embodiments of the present specification, when receiving a first transaction request sent by a logistics platform, if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, a second transaction is sent to a resource management entity, so that the resource management entity performs resource transfer processing, and resource transfer result information is stored in a second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, the resource management mechanism is used as a transfer to carry out cross-link transmission of data, so that a data island is broken, interconnection and intercommunication of data are realized, and potential values of data such as logistics information and the like are beneficially mined.
In another particular embodiment, a transaction processing device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the transaction processing device, and execution of the one or more programs by one or more processors includes computer-executable instructions for:
receiving a request for purchase sent by a carrier; the consignment request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the freight transportation of the freight note is completed by the shipper; the freight note is generated by the logistics platform based on a shipping request of a shipper; the request for payment includes payment information;
if the resource transfer processing is determined to be carried out in the first mode, transaction information is determined according to the supporting information;
according to the transaction information, a first transaction request is sent to a first block chain node of a first block chain, so that when the first block chain node determines that the transaction information meets a preset transaction condition based on logistics information in the first block chain, a second transaction request is sent to a second block chain node of a second block chain corresponding to a resource management mechanism based on a chain-crossing transmission channel of the second block chain, wherein the first block chain node corresponds to the resource management mechanism; such that the second block link point performs a resource transfer process based on resources issued to the designated resource account of the logistics platform in accordance with the second transaction request to transfer the first amount of resources to the carrier.
In the transaction processing device provided in one or more embodiments of the present specification, when a demand request sent by a carrier is received, if it is determined that resource transfer processing is performed in a first manner, a first transaction request is sent to a first block chain node of a first block chain, so that when the first block chain node determines that transaction information satisfies a preset transaction condition based on an intelligent contract, a second transaction request is sent to a second block chain node of the second block chain based on a cross-chain transmission channel of a second block chain corresponding to a resource management mechanism of the first block chain; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
Optionally, the determining, when executed by computer-executable instructions, performs the resource transfer process in a first manner, comprising:
determining whether the logistics platform currently has resource collection authority;
and if so, determining to adopt the first mode to carry out resource transfer processing.
Optionally, the computer executable instructions, when executed, determine whether the logistics platform currently has resource collection authority, comprising:
acquiring resource collection authority information of the logistics platform from the second block link point according to preset time information; the resource collection authority information is information generated after the second block link point evaluates the credit of the logistics platform according to a preset evaluation model;
and if the resource collection permission information represents that the logistics platform has the resource collection permission, determining that the logistics platform has the resource collection permission.
Optionally, when executed, the computer-executable instructions, when sending a first transaction request to a first blockchain node accessing a first blockchain according to the transaction information, include:
encrypting the transaction information by adopting a private key corresponding to the digital identity information of the logistics platform to obtain ciphertext data of the transaction information;
and generating a first transaction request according to the ciphertext data, and sending the first transaction request to a first block chain link point accessed to the first block chain.
Optionally, the computer executable instructions, when executed, further comprise, after sending the first transaction request to a first blockchain node accessing the first blockchain:
receiving resource transfer result information sent by the first block chain node;
and sending request result information of the supporting request to the carrier according to the resource transfer result information.
Optionally, the computer executable instructions, when executed, further comprise, prior to receiving a request for procurement sent by a carrier:
receiving the shipping request sent by the shipper; wherein the shipping request includes shipping information;
generating the waybill according to the shipping information and determining the carrier of the waybill;
and acquiring logistics information of the waybill, and sending the logistics information to the first block link point so that the first block link point stores the logistics information into the first block chain.
In the transaction processing device provided in one or more embodiments of the present specification, when a demand request sent by a carrier is received, if it is determined that resource transfer processing is performed in a first manner, a first transaction request is sent to a first block chain node of a first block chain, so that when the first block chain node determines that transaction information satisfies a preset transaction condition based on an intelligent contract, a second transaction request is sent to a second block chain node of the second block chain based on a cross-chain transmission channel of a second block chain corresponding to a resource management mechanism of the first block chain; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
It should be noted that the embodiment of the transaction processing device in this specification and the embodiment of the transaction processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the corresponding transaction processing method, and repeated details are not described again.
Further, corresponding to the above-described transaction processing method, based on the same technical concept, one or more embodiments of the present specification further provide a storage medium for storing computer-executable instructions, where in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, and the like, and the computer-executable instructions stored in the storage medium, when being executed by the processor, can implement the following processes:
receiving a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a requisition request sent by a carrier of the waybill; the freight note is generated by the logistics platform based on a consignment request of a consignor; the requisition request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the shipper completes the freight transportation of the freight note; the transaction request includes transaction information;
calling an intelligent contract in the first block chain, and determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
if yes, generating a second transaction request according to the transaction information; sending the second transaction request to a second block link point of a second block chain based on a chain spanning transmission channel of the second block chain corresponding to the resource management mechanism and the first block chain; and the second block link point performs resource transfer processing based on the resource issued to the specified resource account of the logistics platform according to the second transaction request, so as to transfer the first quantity of resources to the carrier, and saves the resource transfer result information of the resource transfer processing into the second block chain.
The computer-executable instructions stored in the storage medium provided in one or more embodiments of the present specification, when executed by the processor, receive a first transaction request sent by a logistics platform, and if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, send a second transaction to a second blockchain node of a second blockchain based on a cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and store resource transfer result information into the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential values of the data such as logistics information and the like are favorably mined.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the transaction information to include: the waybill identification information of the waybill and the user information of the carrier;
the determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract comprises the following steps:
determining whether the transaction information meets a first preset condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract; wherein the first preset condition comprises one or more of: inquiring related logistics information from the first block chain according to the waybill identification information, wherein the user information is effective and comprises information of a specified type;
and if so, determining that the transaction information meets the preset transaction condition.
Optionally, the storage medium stores computer-executable instructions, which when executed by the processor, further include, before the receiving the first transaction request sent by the logistics platform:
receiving logistics information of the waybill sent by the logistics platform;
and storing the received logistics information and the waybill identification information of the waybill in a correlated manner into the first block chain.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, the first transaction request comprises: the cryptograph data of the transaction information and the digital identity information of the logistics platform; the cipher text data is obtained by adopting a private key corresponding to the digital identity information to sign the transaction information;
before the determining whether the transaction information meets a preset transaction condition according to the logistics information of the logistics platform stored in the first blockchain based on the intelligent contract, the method further includes:
acquiring a public key corresponding to the digital identity information;
and decrypting the ciphertext data by adopting the public key to obtain the transaction information.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise after said sending the second transaction request to a second block link point of the second block chain;
receiving the resource transfer result information sent by the second blockchain node;
storing the resource transfer result information into the first block chain; and the number of the first and second groups,
and sending the resource transfer result information to the logistics platform so that the logistics platform sends the request result information of the supporting request to the carrier according to the resource transfer result information.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, further comprise:
and if the transaction information is determined not to accord with the preset transaction condition, sending request failure information to the logistics platform.
The computer-executable instructions stored in the storage medium provided in one or more embodiments of the present specification, when executed by the processor, receive a first transaction request sent by a logistics platform, and if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, send a second transaction to a second blockchain node of a second blockchain based on a cross-chain transmission channel, so that the second blockchain node performs resource transfer processing, and store resource transfer result information into the second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
In another specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer-executable instructions that, when executed by the processor, implement the following process:
receiving a first transaction request sent by a logistics platform; wherein the first transaction request is sent based on a request for payment sent by a carrier of the manifest; the freight note is generated by the logistics platform based on a shipping request of a shipper; the requisition request is sent when the first quantity of resources corresponding to the freight transportation is applied after the freight transportation of the freight bill is completed by the carrier; the transaction request includes transaction information;
calling an intelligent contract in the first block chain, and determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract;
if yes, sending a second transaction request to a resource management mechanism according to the transaction information, so that the resource management mechanism performs resource transfer processing on the basis of the resources issued to the specified resource account of the logistics platform according to the second transaction request, so as to transfer the first number of resources to the carrier, and storing the resource transfer result information of the resource transfer processing in the second block chain.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the transaction information to include: waybill identification information of the waybill and user information of the carrier;
the determining whether the transaction information meets a preset transaction condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract comprises the following steps:
determining whether the transaction information meets a first preset condition or not according to the logistics information of the logistics platform stored in the first block chain based on the intelligent contract; wherein the first preset condition comprises one or more of: inquiring related logistics information from the first block chain according to the waybill identification information, wherein the user information is effective and comprises information of a specified type;
and if so, determining that the transaction information meets the preset transaction condition.
When executed by a processor, the computer-executable instructions stored in the storage medium provided in one or more embodiments of the present specification receive a first transaction request sent by a logistics platform, and if it is determined that transaction data is valid according to logistics information of the logistics platform stored in a first blockchain based on an intelligent contract, send a second transaction to a resource management entity, so that the resource management entity performs resource transfer processing, and store resource transfer result information in a second blockchain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, the resource management mechanism is used as a transfer to carry out cross-link transmission of data, so that a data island is broken, interconnection and intercommunication of data are realized, and potential values of data such as logistics information and the like are beneficially mined.
In another specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer-executable instructions that, when executed by the processor, implement the following process:
receiving a request for purchase sent by a carrier; the consignment request is sent when the shipper applies for a first amount of resources corresponding to the freight transportation after the freight transportation of the freight note is completed by the shipper; the freight note is generated by the logistics platform based on a consignment request of a consignor; the request for payment includes payment information;
if the resource transfer processing is determined to be carried out in the first mode, transaction information is determined according to the supporting information;
according to the transaction information, a first transaction request is sent to a first block chain node of a first block chain, so that when the first block chain node determines that the transaction information meets a preset transaction condition based on logistics information in the first block chain, a second transaction request is sent to a second block chain node of a second block chain corresponding to a resource management mechanism based on a chain-crossing transmission channel of the second block chain, wherein the first block chain node corresponds to the resource management mechanism; such that the second block link point performs a resource transfer process based on resources issued to the designated resource account of the logistics platform in accordance with the second transaction request to transfer the first amount of resources to the carrier.
The computer-executable instructions stored in the storage medium provided by one or more embodiments of the present specification, when executed by the processor, receive a request for purchase sent by a carrier, and if it is determined that resource transfer processing is performed in a first manner, send a first transaction request to a first blockchain node of a first blockchain, so that the first blockchain node sends a second transaction request to a second blockchain node of a second blockchain based on a cross-chain transmission channel of the second blockchain of the first blockchain corresponding to a resource management entity when it is determined that transaction information satisfies a preset transaction condition based on an intelligent contract; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, determine to perform the resource transfer process in a first manner, comprising:
determining whether the logistics platform currently has resource collection authority;
and if so, determining to adopt the first mode to carry out resource transfer processing.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, determine whether the logistics platform currently has resource collection authority, including:
acquiring resource collection authority information of the logistics platform from the second block link point according to preset time information; the resource collection authority information is information generated after the second block link point evaluates the credit of the logistics platform according to a preset evaluation model;
and if the resource collection permission information represents that the logistics platform has the resource collection permission, determining that the logistics platform has the resource collection permission.
Optionally, the computer-executable instructions stored in the storage medium, when executed by the processor, send a first transaction request to a first blockchain node accessing a first blockchain according to the transaction information, including:
encrypting the transaction information by adopting a private key corresponding to the digital identity information of the logistics platform to obtain ciphertext data of the transaction information;
and generating a first transaction request according to the ciphertext data, and sending the first transaction request to a first block chain link point accessed to the first block chain.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise, after sending the first transaction request to the first blockchain node accessing the first blockchain:
receiving resource transfer result information sent by the first block chain node;
and sending request result information of the supporting request to the carrier according to the resource transfer result information.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise, prior to receiving a request for custody sent by a carrier:
receiving the shipping request sent by the shipper; wherein the shipping request includes shipping information;
generating the waybill according to the shipping information and determining the carrier of the waybill;
and acquiring logistics information of the waybill, and sending the logistics information to the first block link point so that the first block link point stores the logistics information into the first block chain.
One or more embodiments of the present description provide computer-executable instructions stored in a storage medium, which, when executed by a processor, receive a demand request sent by a carrier, and if it is determined that resource transfer processing is performed in a first manner, send a first transaction request to a first blockchain node of a first blockchain, so that the first blockchain node sends a second transaction request to a second blockchain node of a second blockchain based on a cross-chain transmission channel of the second blockchain of the first blockchain corresponding to a resource management mechanism when it is determined that transaction information satisfies a preset transaction condition based on an intelligent contract; and the second block chain link point carries out resource transfer processing according to the second transaction request and stores the resource transfer result information into the second block chain. Therefore, the logistics information is stored in the first block chain, and the resource transfer result information is stored in the second block chain, so that the authenticity and the validity of each information are ensured, the risk of illegally operating resources based on a false waybill is avoided, and the logistics service, the resource transfer service and the like can be traced. Moreover, through the cross-chain transmission of the data, a data island is broken through, the interconnection and intercommunication of the data are realized, and the potential value of the data such as logistics information and the like is favorably mined.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the transaction processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the corresponding transaction processing method, and repeated details are not described again.
The foregoing description of specific embodiments has been presented for purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more pieces of software and/or hardware in practicing embodiments of the present description.
One skilled in the art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of this document and is not intended to limit this document. Various modifications and changes may occur to those skilled in the art from this document. Any modifications, equivalents, improvements, etc. which come within the spirit and principle of the disclosure are intended to be included within the scope of the claims of this document.