Coal transportation recording method, system, computer equipment and storage medium
By applying blockchain technology and electronic evidence generation and verification in coal transactions, the problems of high labor costs, high health risks and inaccurate recording of information in the existing technology are solved, and a more efficient and reliable coal transaction process is achieved.
Patent Information
- Application Number
- CN202111613337.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2041-12-27
AI Technical Summary
There are problems in existing coal transactions with high labor costs, affecting the health of operators, and inaccurate recording information.
Using blockchain technology, electronic evidence is generated and verified through information collection equipment and key service centers to ensure the credibility and accuracy of coal transactions.
It reduces labor costs and physical health risks in coal transactions, improves the credibility and accuracy of transaction data, and reduces transaction costs and tracking and re-examination costs.
Smart Images

Figure CN114297611B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of coal transportation, and in particular to a coal transportation recording method, system, computer equipment and storage medium. Background Art
[0002] In existing coal transactions, coal workers on site are usually required to strictly weigh and inspect the quantity and quality of the coal to be transported. In practical applications, since coal transactions are often large in quantity and high in frequency, a lot of manpower costs are required in the process of coal transactions. In addition, the environment for coal loading and unloading operations is generally harsh, and the health of coal workers on site will also be greatly affected. In addition, since the relevant information of coal transportation is recorded manually, it is easy for the coal quantity to be recorded less or more, the quality record to be wrong, and the record book to be lost. In view of this, the industry urgently needs a reliable recording solution for coal transportation to solve the above problems in coal transactions. Summary of the invention
[0003] The technical problem to be solved by the present invention is: the problems of high labor cost, impact on the health of operators and inaccurate recorded information in the existing coal trading.
[0004] In order to solve the above technical problems, the present invention provides a coal transportation recording method, which is applied to a blockchain network, comprising:
[0005] Receiving electronic evidence to be verified sent by a coal transaction recipient for a current coal transaction, wherein the electronic evidence to be verified includes a signature made using a first private key corresponding to identity information of the coal transaction recipient;
[0006] Obtaining reference electronic evidence uploaded by the coal transaction sender for the current coal transaction, wherein the reference electronic evidence includes a signature made using a second private key corresponding to the identity information of the coal transaction sender;
[0007] Verifying the electronic evidence to be verified using the reference electronic evidence;
[0008] In response to the verification result being successful, the current coal transaction is determined to be a valid transaction and the coal transfer information corresponding to the current coal transfer is recorded.
[0009] Optionally, the verifying the electronic evidence to be verified by using the reference electronic evidence includes:
[0010] Determining whether the comparison result between the electronic evidence to be verified and the reference electronic evidence is consistent;
[0011] In response to the comparison result being consistent, determining that the verification result of the electronic evidence to be verified is successful;
[0012] In response to the comparison result being inconsistent, it is determined that the verification result of the electronic evidence to be verified is a failure.
[0013] Optionally, before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes:
[0014] Generate a first private key in advance for a first information collection device of a coal transaction recipient;
[0015] A second private key is generated in advance for the second information collection device of the coal transaction sender.
[0016] Optionally, before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes:
[0017] The coal transaction receiver obtains the first coal transportation information collected by the first information collection device;
[0018] Generate first electronic evidence based on the first coal transfer information; and
[0019] The first electronic evidence is signed using the first private key to obtain the electronic evidence to be verified.
[0020] Optionally, before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes:
[0021] Generate a first public key corresponding to the first private key using an elliptic curve encryption algorithm;
[0022] The coal transaction recipient identity information is bound to the first public key, first binding information is obtained and a digital certificate is issued to ensure the credibility of the current coal transaction.
[0023] Optionally, before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes:
[0024] The coal transaction sender obtains the second coal transportation information collected by the second information collection device;
[0025] generating second electronic evidence based on the second coal transfer information; and,
[0026] The second electronic evidence is signed using the second private key to obtain the reference electronic evidence.
[0027] Optionally, before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes:
[0028] Generate a second public key corresponding to the second private key using an elliptic curve encryption algorithm;
[0029] The coal transaction sender's identity information is bound to the second public key, second binding information is obtained and a digital certificate is issued to ensure the credibility of the current coal transaction.
[0030] In order to solve the above technical problems, the present invention provides a coal transportation recording system, comprising:
[0031] An information collection device, used to collect first coal transportation information of a coal transaction recipient, or to collect second coal transportation information of a coal transaction sender;
[0032] An electronic evidence generation module, used to obtain first coal transportation information collected by a first information collection device of a coal transaction receiver, and generate first electronic evidence based on the first coal transportation information; and obtain second coal transportation information collected by a second information collection device of a coal transaction sender, and generate second electronic evidence based on the second coal transportation information;
[0033] A key service center is used to sign the first electronic evidence using the first private key corresponding to the identity information of the coal transaction recipient, obtain the electronic evidence to be verified and upload it to the blockchain network; sign the second electronic evidence using the second private key corresponding to the identity information of the coal transaction sender, obtain the reference electronic evidence and upload it to the blockchain network; and bind the identity information of the coal transaction recipient with the first public key corresponding to the first private key and obtain the first binding information, bind the identity information of the coal transaction sender with the second public key corresponding to the second private key and obtain the second binding information, and upload the first binding information and the second binding information to the blockchain network;
[0034] A blockchain network is used to receive electronic evidence to be verified sent by a coal transaction receiver for a current coal transaction, obtain reference electronic evidence uploaded by a coal transaction sender for the current coal transaction, use the reference electronic evidence to verify the electronic evidence to be verified, and in response to a successful verification result, determine that the current coal transaction is a valid transaction and record the coal transfer information corresponding to the current coal transfer.
[0035] Optionally, the key service center includes a private key generation module and a public key generation module; wherein,
[0036] The private key generation module is used to generate a first private key for a first information collection device of a coal transaction receiver in advance, and to generate a second private key for a second information collection device of a coal transaction sender in advance;
[0037] The public key generation module is used to pre-generate a second private key for a second information collection device of a coal transaction sender, and to generate a second public key corresponding to the second private key using an elliptic curve encryption algorithm.
[0038] Optionally, the key service center also includes: an information binding module, used to bind the identity information of the coal transaction recipient with the first public key, obtain first binding information and issue a digital certificate, and bind the identity information of the coal transaction sender with the second public key, obtain second binding information and issue a digital certificate.
[0039] To solve the above technical problems, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0040] In order to solve the above technical problem, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the program implements the above method when executed by a processor.
[0041] Compared with the prior art, one or more embodiments of the above scheme may have the following advantages or beneficial effects:
[0042] The coal transfer recording method, system, computer equipment and storage medium of the present invention are applied to a blockchain network. During a coal transaction, the blockchain network receives electronic evidence to be verified sent by a coal transaction receiver for a current coal transaction, wherein the electronic evidence to be verified includes a signature made using a first private key corresponding to the identity information of the coal transaction receiver; obtains reference electronic evidence uploaded by a coal transaction sender for the current coal transaction, wherein the reference electronic evidence includes a signature made using a second private key corresponding to the identity information of the coal transaction sender; verifies the electronic evidence to be verified using the reference electronic evidence; and in response to a successful verification result, determines that the current coal transaction is a valid transaction and records the coal transfer information corresponding to the current coal transfer.
[0043] It can be seen that the present invention uses blockchain technology to process the information in the coal operation process on the chain, thereby establishing transaction data with extremely high credibility between the coal transaction sender and the coal transaction receiver that is tamper-proof, can withstand inspection and audit. In addition, the solution provided by the present invention also simplifies the specific transaction process in coal transactions, and realizes the trusted transaction between the coal transaction sender and the coal transaction receiver in this cross-unit situation, which can not only reduce transaction costs and tracking and re-inspection costs, but also eliminate the concerns of both parties to the coal transaction about the untrue transaction data. Moreover, since both the coal transaction receiver and the coal transaction sender adopt an automated information collection method to obtain information, it can reduce physical harm to coal workers on site, and can also avoid the occurrence of under-recording and omission, thereby achieving the effect of reducing costs and increasing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The drawings included are:
[0045] Figure 1 A flow chart of a coal transport recording method provided by an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of an application scenario of coal transport across units provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of sub-steps of step S103 provided in an embodiment of the present invention;
[0048] Figure 4 Another flow chart of the coal transport recording method provided by the embodiment of the present invention;
[0049] Figure 5 An architecture diagram of a coal transport record system provided by an embodiment of the present invention;
[0050] Figure 6 A structural diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the objectives, technical solutions and advantages of the present invention clearer, the implementation method of the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0052] In existing coal transactions, coal workers on site are usually required to strictly weigh and inspect the quantity and quality of the coal to be transported. In practical applications, since coal transactions are often large in quantity and high in frequency, a large amount of manpower costs are required in the process of coal transactions. In addition, the environment for coal loading and unloading operations is generally harsh, and the health of coal workers on site will also be greatly affected. In addition, since the relevant information of coal transportation is recorded manually, it is easy to record less or more coal, record quality errors, and lose the record book.
[0053] In view of this, in order to solve the problems of high labor costs, impact on the health of operators and inaccurate recorded information in existing coal transactions, the present invention provides a coal transportation recording method, system, computer equipment and storage medium.
[0054] The coal transportation recording method provided by an embodiment of the present invention is described below.
[0055] Embodiment 1:
[0056] like Figure 1 As shown, a flow chart of a coal transport recording method provided by an embodiment of the present invention is applied to Figure 2 The blockchain network shown includes:
[0057] Step S101: receiving electronic evidence to be verified sent by a coal transaction recipient for a current coal transaction, wherein the electronic evidence to be verified includes a signature made using a first private key corresponding to identity information of the coal transaction recipient.
[0058] Step S102: obtaining reference electronic evidence uploaded by the coal transaction sender for the current coal transaction, wherein the reference electronic evidence includes a signature made using a second private key corresponding to the identity information of the coal transaction sender.
[0059] Step S103: using the reference electronic evidence to verify the electronic evidence to be verified.
[0060] In one implementation, Figure 3 As shown, the electronic evidence to be verified can be verified in the following manner:
[0061] Step S1031: Determine whether the comparison result between the electronic evidence to be verified and the reference electronic evidence is consistent, if they are consistent, execute step S1032, otherwise execute step S1033.
[0062] Step S1032: Determine whether the verification result of the electronic evidence to be verified is successful.
[0063] Step S1033: Determine that the verification result of the electronic evidence to be verified is failure.
[0064] Step S104: In response to the verification result being successful, determining that the current coal transaction is a valid transaction and recording the coal transfer information corresponding to the current coal transfer.
[0065] It should be noted that when the verification result is a failure, the current coal transaction is determined to be an invalid transaction. Further, an alarm reminder can be given through an early warning method to remind the coal transaction participants to conduct traceability analysis.
[0066] It can be seen that the present invention uses blockchain technology to process the information in the coal operation process on the chain, thereby establishing transaction data with extremely high credibility between the coal transaction sender and the coal transaction receiver that is tamper-proof, can withstand inspection and audit. In addition, the solution provided by the present invention also simplifies the specific transaction process in coal transactions, and realizes the trusted transaction between the coal transaction sender and the coal transaction receiver in this cross-unit situation, which can not only reduce transaction costs and tracking and re-inspection costs, but also eliminate the concerns of both parties to the coal transaction about the untrue transaction data. Moreover, since both the coal transaction receiver and the coal transaction sender adopt an automated information collection method to obtain information, it can reduce physical harm to coal workers on site, and can also avoid the occurrence of under-recording and omission, thereby achieving the effect of reducing costs and increasing efficiency.
[0067] Embodiment 2:
[0068] like Figure 4 As shown, another flow chart of the coal transport recording method provided by the embodiment of the present invention is applied to Figure 2 The blockchain network shown includes:
[0069] Step S201: Generate a first private key in advance for a first information collection device of a coal transaction receiver; and generate a second private key in advance for a second information collection device of a coal transaction sender.
[0070] During the coal transportation process, a private key can be generated in advance for each information collection device of the participants, and the private key can be implanted into the trusted chip. The participants may include the coal transaction receiver and the coal transaction sender; accordingly, the information collection device includes the first information collection device collected by the coal transaction receiver and the second information collection device collected by the coal transaction sender. Specifically, the coal transaction sender information collection device and the coal transaction receiver information collection device may include the following information: weight measuring scale, chemical detector and image collector; accordingly, the private key includes the first private key of the coal transaction receiver and the second private key of the coal transaction sender. Furthermore, the trusted chip includes at least: a proof contract interface, an evidence verification contract interface and a communication interface.
[0071] In one case, the coal transaction recipient obtains the first coal transfer information collected by the first information collection device; generates first electronic evidence based on the first coal transfer information; and signs the first electronic evidence using the first private key to obtain the electronic evidence to be verified. Further, the first public key corresponding to the first private key is generated using an elliptic curve encryption algorithm; the identity information of the coal transaction recipient is bound to the first public key, the first binding information is obtained, and a digital certificate is issued to ensure the credibility of the current coal transaction.
[0072] In another case, the coal transaction sender obtains the second coal transportation information collected by the second information collection device; generates second electronic evidence based on the second coal transportation information; and signs the second electronic evidence using the second private key to obtain the reference electronic evidence. Further, the second public key corresponding to the second private key is generated using an elliptic curve encryption algorithm; the identity information of the coal transaction sender is bound to the second public key to obtain second binding information and issue a digital certificate to ensure the credibility of the current coal transaction.
[0073] It should be noted that the elliptic curve encryption algorithm of the above volume is only a specific implementation method for generating the corresponding public key and should not be understood as a limitation of the embodiments of the present invention. Specifically, the present invention can generate the corresponding first public key or second public key by using the elliptic curve encryption algorithm based on the first private key or the second private key, which can be expressed as K i =p i G, where p i Represents the first private key or the second private key, K i represents the first public key or the second public key, and G represents the base point of the elliptic curve.
[0074] Furthermore, through the public key infrastructure (PKI) certificate service, the key service center binds the generated public key to the entity identity of the participant, specifically, the first public key is bound to the coal transaction receiver, and the second public key is bound to the coal transaction sender, thereby obtaining the corresponding first binding information and second binding information, and issuing digital certificates respectively. Then, the first binding information and the second binding information are uploaded to the blockchain network in a transaction manner through the key service center.
[0075] Step S202: receiving electronic evidence to be verified sent by a coal transaction recipient for a current coal transaction, wherein the electronic evidence to be verified includes a signature made using a first private key corresponding to the identity information of the coal transaction recipient.
[0076] Step S203: obtaining reference electronic evidence uploaded by the coal transaction sender for the current coal transaction, wherein the reference electronic evidence includes a signature made using a second private key corresponding to the identity information of the coal transaction sender.
[0077] With respect to step S202 and step S203, it should be noted that the first coal transportation information collected by the first information collection device of the coal transaction recipient is used to generate the first electronic evidence according to the data archiving instruction. Furthermore, the first private key of the coal transaction recipient is used to sign the first electronic evidence, and the signed electronic evidence to be verified is uploaded to the blockchain network by calling the evidence contract interface in the trusted chip. The second coal transportation information collected by the second information collection device of the coal transaction sender is pre-generated into the second electronic evidence according to the data archiving instruction, wherein the second coal operation information may at least include: operation time, vehicle information and coal weight. Furthermore, the second private key of the coal transaction sender is used to sign the second electronic evidence, and the signed reference electronic evidence is uploaded to the blockchain network by calling the evidence contract interface in the trusted chip, so as to be used for comparison with the electronic evidence to be verified of the coal transaction recipient. It should also be pointed out that the signed reference electronic evidence and the signed electronic evidence to be verified are both uploaded to the blockchain network through the communication interface in the trusted chip.
[0078] Step S204: using the reference electronic evidence to verify the electronic evidence to be verified.
[0079] Step S205: In response to the verification result being successful, determining that the current coal transaction is a valid transaction and recording the coal transfer information corresponding to the current coal transfer.
[0080] It should be noted that Figure 4 The method embodiment shown has Figure 1All the beneficial effects of the method embodiments shown, in addition, Figure 4 The method embodiment shown also provides a specific method for generating private keys, public keys, and electronic evidence of the information collection devices of both parties to the transaction during the coal transaction process. By binding the identity information of both parties to the transaction with the corresponding public keys, the credibility of the current coal transaction can be further ensured.
[0081] The coal transportation recording method is explained below with reference to a specific example.
[0082] Before coal transportation, each participant (including the coal transaction receiver and the coal transaction sender) selects a private key (including the first private key and the second private key) for each information collection device i (including the first information collection device and the second information collection device), and calculates the public key (including the first public key and the second public key) by using the elliptic curve E selected by the key service center, where G is the base point of the elliptic curve. The participants implant their respective private keys into the trusted chip i. For example, the data collected by the information collection device such as the sensor can be directly encrypted and signed, and directly uploaded to the chain through the communication interface of the trusted chip in a communication manner, thereby ensuring the credibility of the data source.
[0083] Through the PKI certificate service, the key service center binds the public key of each device to the entity identity and issues a certificate. In one case, the key service center uploads the binding information to the blockchain network in the form of a transaction, for example, (Key: K i , Value: Hash(C i )) to the blockchain network to ensure the credibility of each device’s public key bound to the entity’s identity.
[0084] Specifically, the second information collection device of the coal sender may include at least a camera and a weighing component to obtain the coal sending time T sensor , vehicle identification TrainNum, coal weight Weight, and generate the second electronic evidence according to the data archiving instruction. In one case, the second electronic evidence can be generated by string concatenation, for example, generating (T sensor , TrainNum||Weight). Further, the coal sender uses the second private key corresponding to the second information collection device to access the second electronic evidence (T sensor , TrainNum||Weight) to sign and obtain the reference electronic evidence (T sensor ,TrainNum||Weight)ρ Psensor By calling the evidence contract interface in the trusted chip, the reference electronic evidence can be directly uploaded to the chain.
[0085] Specifically, the first collection device for the coal receiving party information may include at least a camera and a weighing component to obtain the coal receiving time T receive , vehicle represents TrainNum, coal weight Weigh, and generates the first electronic evidence according to the data archiving instruction. In one case, the first electronic evidence can be generated by string concatenation, for example, generating (T receive , TrainNum||Weight)'. Further, the coal recipient uses the first private key corresponding to the first information collection device to access the first electronic evidence (T receive ,TrainNum||Weight)' is signed to obtain the electronic evidence to be verified (T sensor ,TrainNum||Weight)β Psensor , call the evidence storage contract interface written in the chip, and use the communication module integrated in the chip to directly upload the electronic evidence to be verified to the chain.
[0086] The coal transportation recording system provided by the present invention is described below.
[0087] Embodiment three:
[0088] like Figure 5 As shown, it is an architecture diagram of a coal transportation record system provided by an embodiment of the present invention, including:
[0089] The information collection device 310 is used to collect the first coal transportation information of the coal transaction receiver, or collect the second coal transportation information of the coal transaction sender;
[0090] The electronic evidence generation module 320 is used to obtain first coal transportation information collected by a first information collection device of a coal transaction receiver, and generate first electronic evidence based on the first coal transportation information; and obtain second coal transportation information collected by a second information collection device of a coal transaction sender, and generate second electronic evidence based on the second coal transportation information;
[0091] The key service center 330 is used to sign the first electronic evidence using the first private key corresponding to the identity information of the coal transaction recipient, obtain the electronic evidence to be verified and upload it to the blockchain network; sign the second electronic evidence using the second private key corresponding to the identity information of the coal transaction sender, obtain the reference electronic evidence and upload it to the blockchain network; and bind the identity information of the coal transaction recipient with the first public key corresponding to the first private key to obtain the first binding information, bind the identity information of the coal transaction sender with the second public key corresponding to the second private key to obtain the second binding information, and upload the first binding information and the second binding information to the blockchain network;
[0092] The blockchain network 340 is used to receive the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, obtain the reference electronic evidence uploaded by the coal transaction sender for the current coal transaction, use the reference electronic evidence to verify the electronic evidence to be verified, and in response to the verification result being successful, determine that the current coal transaction is a valid transaction and record the coal transfer information corresponding to the current coal transfer.
[0093] In one scenario, the key service center 330 includes a private key generation module and a public key generation module; wherein the private key generation module is used to pre-generate a first private key for a first information collection device of a coal transaction receiver, and to pre-generate a second private key for a second information collection device of a coal transaction sender; the public key generation module is used to pre-generate a second private key for the second information collection device of a coal transaction sender, and to generate a second public key corresponding to the second private key using an elliptic curve encryption algorithm.
[0094] In another case, the key service center 330 also includes: an information binding module, which is used to bind the identity information of the coal transaction recipient with the first public key, obtain the first binding information and issue a digital certificate, and bind the identity information of the coal transaction sender with the second public key, obtain the second binding information and issue a digital certificate.
[0095] It can be seen that the present invention uses blockchain technology to process the information in the coal operation process on the chain, thereby establishing transaction data with extremely high credibility between the coal transaction sender and the coal transaction receiver that is tamper-proof, can withstand inspection and audit. In addition, the solution provided by the present invention also simplifies the specific transaction process in coal transactions, and realizes the trusted transaction between the coal transaction sender and the coal transaction receiver in this cross-unit situation, which can not only reduce transaction costs and tracking and re-inspection costs, but also eliminate the concerns of both parties to the coal transaction about the untrue transaction data. Moreover, since both the coal transaction receiver and the coal transaction sender adopt an automated information collection method to obtain information, it can reduce physical harm to coal workers on site, and can also avoid the occurrence of under-recording and omission, thereby achieving the effect of reducing costs and increasing efficiency.
[0096] Embodiment 4:
[0097] To solve the above technical problems, the present invention provides a computer device, such as Figure 6 As shown, it includes a memory 410, a processor 420, and a computer program stored in the memory and executable on the processor, and the method described above is implemented when the processor executes the computer program.
[0098] The computer device may be a desktop computer, a notebook, a PDA, a cloud server or other computing device. The computer device may include, but is not limited to, a processor 420 and a memory 410. Those skilled in the art will appreciate that Figure 6 It is only an example of a computer device and does not constitute a limitation of the computer device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0099] The processor 420 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0100] The memory 410 may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. The memory 410 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory 410 may also include both an internal storage unit of the computer device and an external storage device. The memory 410 is used to store the computer program and other programs and data required by the computer device. The memory 410 may also be used to temporarily store data that has been output or is to be output.
[0101] Embodiment five:
[0102] The embodiment of the present application also provides a computer-readable storage medium, which can be a computer-readable storage medium contained in the memory in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a computer device. The computer-readable storage medium stores one or more computer programs, and when the program is executed by the processor, the above method is implemented.
[0103] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory 410, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0104] As for the system or device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts may refer to the partial description of the method embodiments.
[0105] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0106] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0107] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0108] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0109] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrase "if it is determined" or "if a described condition or event is detected" may be interpreted, depending on the context, as meaning "upon determination" or "in response to determining" or "upon detection of a described condition or event" or "in response to detecting a described condition or event."
[0110] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for recording coal transportation, characterized in that: Applied to blockchain networks, including: Receiving electronic evidence to be verified sent by a coal transaction recipient for a current coal transaction, wherein the electronic evidence to be verified includes a signature made using a first private key corresponding to identity information of the coal transaction recipient; Obtaining reference electronic evidence uploaded by the coal transaction sender for the current coal transaction, wherein the reference electronic evidence includes a signature made using a second private key corresponding to the identity information of the coal transaction sender; Verifying the electronic evidence to be verified using the reference electronic evidence; In response to the verification result being successful, determining the current coal transaction as a valid transaction and recording coal transfer information corresponding to the current coal transfer; Wherein, the verifying the electronic evidence to be verified by using the reference electronic evidence includes: Determining whether the comparison result between the electronic evidence to be verified and the reference electronic evidence is consistent; In response to the comparison result being consistent, determining that the verification result of the electronic evidence to be verified is successful; In response to the comparison result being inconsistent, determining that the verification result of the electronic evidence to be verified is a failure; Before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes: The coal transaction receiver obtains the first coal transportation information collected by the first information collection device; Generate first electronic evidence based on the first coal transfer information; and Using the first private key to sign the first electronic evidence to obtain the electronic evidence to be verified; Before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes: The coal transaction sender obtains the second coal transportation information collected by the second information collection device; Generate second electronic evidence based on the second coal transfer information; and The second electronic evidence is signed using the second private key to obtain the reference electronic evidence.
2. The coal transportation recording method according to claim 1, characterized in that: Before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes: Generate a first private key in advance for a first information collection device of a coal transaction recipient; A second private key is generated in advance for the second information collection device of the coal transaction sender.
3. The coal transportation recording method according to claim 2, characterized in that: Before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes: Generate a first public key corresponding to the first private key using an elliptic curve encryption algorithm; The coal transaction recipient identity information is bound to the first public key, first binding information is obtained and a digital certificate is issued to ensure the credibility of the current coal transaction.
4. The coal transportation recording method according to claim 2, characterized in that: Before receiving the electronic evidence to be verified sent by the coal transaction recipient for the current coal transaction, the method further includes: Generate a second public key corresponding to the second private key using an elliptic curve encryption algorithm; The coal transaction sender's identity information is bound to the second public key, second binding information is obtained and a digital certificate is issued to ensure the credibility of the current coal transaction.
5. A coal transportation recording system, characterized in that: The method for recording coal transportation according to any one of claims 1 to 4 is applied, comprising: An information collection device, used to collect first coal transportation information of a coal transaction recipient, or to collect second coal transportation information of a coal transaction sender; An electronic evidence generation module, used to obtain first coal transportation information collected by a first information collection device of a coal transaction receiver, and generate first electronic evidence based on the first coal transportation information; and obtain second coal transportation information collected by a second information collection device of a coal transaction sender, and generate second electronic evidence based on the second coal transportation information; A key service center is used to sign the first electronic evidence using the first private key corresponding to the identity information of the coal transaction recipient, obtain the electronic evidence to be verified and upload it to the blockchain network; sign the second electronic evidence using the second private key corresponding to the identity information of the coal transaction sender, obtain the reference electronic evidence and upload it to the blockchain network; and bind the identity information of the coal transaction recipient with the first public key corresponding to the first private key and obtain the first binding information, bind the identity information of the coal transaction sender with the second public key corresponding to the second private key and obtain the second binding information, and upload the first binding information and the second binding information to the blockchain network; A blockchain network is used to receive electronic evidence to be verified sent by a coal transaction receiver for a current coal transaction, obtain reference electronic evidence uploaded by a coal transaction sender for the current coal transaction, use the reference electronic evidence to verify the electronic evidence to be verified, and in response to a successful verification result, determine that the current coal transaction is a valid transaction and record the coal transfer information corresponding to the current coal transfer.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Material management method based on block chain
CN111695851A
Blockchain-based automatic settlement method for coal transportation and sale cost
CN112801588A