CN114297611A - Coal transfer recording method and system, computer equipment and storage medium - Google Patents

Coal transfer recording method and system, computer equipment and storage medium Download PDF

Info

Publication number
CN114297611A
CN114297611A CN202111613337.6A CN202111613337A CN114297611A CN 114297611 A CN114297611 A CN 114297611A CN 202111613337 A CN202111613337 A CN 202111613337A CN 114297611 A CN114297611 A CN 114297611A
Authority
CN
China
Prior art keywords
coal
transaction
electronic evidence
information
verified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111613337.6A
Other languages
Chinese (zh)
Inventor
穆京丽
徐会军
魏永新
何晓萌
刘红
王坤
刘祺彬
杨亮
李哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoneng Wangxin Technology Beijing Co ltd
Original Assignee
Guoneng Wangxin Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoneng Wangxin Technology Beijing Co ltd filed Critical Guoneng Wangxin Technology Beijing Co ltd
Priority to CN202111613337.6A priority Critical patent/CN114297611A/en
Publication of CN114297611A publication Critical patent/CN114297611A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a coal transfer recording method, a system, computer equipment and a storage medium, wherein the method comprises the following steps: receiving an electronic evidence to be verified sent by a coal transaction receiver aiming at the current coal transaction, wherein the electronic evidence to be verified comprises a signature carried out by using a first private key corresponding to the identity information of the coal transaction receiver; acquiring reference electronic evidence uploaded by a coal transaction sender aiming at the current coal transaction, wherein the reference electronic evidence comprises a signature carried out by using a second private key corresponding to identity information of the coal transaction sender; verifying the electronic evidence to be verified by using the reference electronic evidence; and responding to the success of the verification result, determining that the current coal transaction is an effective transaction and recording coal transfer information corresponding to the current coal transfer. The invention establishes the credible transaction data between the coal transaction sender and the coal transaction receiver, realizes the cross-unit credible transaction, reduces the physical damage to workers on the coal site, and effectively avoids the forgetting and omission.

Description

Coal transfer recording method and system, computer equipment and storage medium
Technical Field
The invention relates to the technical field of coal transportation, in particular to a coal transportation recording method, a coal transportation recording system, computer equipment and a storage medium.
Background
In existing coal trading, strict weighing and checking of the quantity and quality of coal to be transported is generally required by workers at the coal site. In practical application, because coal trading often has the characteristics of large quantity and high frequency, a large amount of labor cost needs to be consumed in the coal trading process. In addition, the environment of loading and unloading coal is generally severe, and the physical health of workers in a coal field is also affected to a great extent. In addition, because the related information of coal transportation is manually recorded, the situations of less quantity and more records of coal, error quality recording, loss of records and the like easily occur. In view of the above, there is a need for a reliable recording scheme for coal transportation to solve the above problems in coal trading.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the problems of high labor cost, influence on the physical health of operators and inaccurate recorded information in the conventional coal transaction are solved.
In order to solve the technical problem, the invention provides a coal transfer recording method, which is applied to a block chain network and comprises the following steps:
receiving an electronic evidence to be verified sent by a coal transaction receiver aiming at the current coal transaction, wherein the electronic evidence to be verified comprises a signature carried out by using a first private key corresponding to the identity information of the coal transaction receiver;
acquiring reference electronic evidence uploaded by a coal transaction sender aiming at the current coal transaction, wherein the reference electronic evidence comprises a signature carried out by using a second private key corresponding to identity information of the coal transaction sender;
verifying the electronic evidence to be verified by using the reference electronic evidence;
and responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording coal transfer information corresponding to the current coal transfer.
Optionally, the verifying the electronic evidence to be verified by using the reference electronic evidence includes:
judging whether the comparison result of the electronic evidence to be verified and the reference electronic evidence is consistent or not;
in response to the comparison result being consistent, determining that the verification result of the electronic evidence to be verified is successful;
and determining that the verification result of the electronic evidence to be verified is failure in response to the inconsistency of the comparison result.
Optionally, before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further includes:
generating a first private key aiming at first information acquisition equipment of a coal transaction receiver in advance;
and generating a second private key aiming at a second information acquisition device of the coal transaction sender in advance.
Optionally, before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further includes:
the coal transaction receiving party acquires first coal transfer information acquired by the first information acquisition equipment;
generating first electronic evidence based on the first coal transportation information; and the number of the first and second groups,
and signing the first electronic evidence by using the first private key to obtain the electronic evidence to be verified.
Optionally, before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further includes:
generating a first public key corresponding to the first private key by using an elliptic curve encryption algorithm;
and binding the identity information of the coal transaction receiver with the first public key to obtain first binding information and issuing a digital certificate so as to ensure the credibility of the current coal transaction.
Optionally, before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further includes:
the coal transaction sender acquires second coal transportation information acquired by the second information acquisition equipment;
generating second electronic evidence based on the second coal transportation information; and the number of the first and second groups,
and signing the second electronic evidence by using the second private key to obtain the reference electronic evidence.
Optionally, before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further includes:
generating a second public key corresponding to the second private key by using an elliptic curve encryption algorithm;
and binding the identity information of the coal transaction sender with the second public key to obtain second binding information and issuing a digital certificate so as to ensure the credibility of the current coal transaction.
In order to solve the technical problem, the invention provides a coal transfer recording system, which comprises:
the information acquisition equipment is used for acquiring first coal transfer information of a coal transaction receiver or acquiring second coal transfer information of a coal transaction sender;
the electronic evidence generating module is used for acquiring first coal transportation information acquired by first information acquisition equipment of a coal transaction receiver and generating a first electronic evidence based on the first coal transportation information; second coal transfer information acquired by second information acquisition equipment of the coal transaction sender is acquired, and a second electronic evidence is generated based on the second coal transfer information;
the key service center is used for signing the first electronic evidence by using a first private key corresponding to the identity information of the coal transaction receiver to obtain an electronic evidence to be verified and uploading the electronic evidence to the block chain network; signing the second electronic evidence by using a second private key corresponding to the identity information of the coal transaction sender to obtain a reference electronic evidence and uploading the reference electronic evidence to a block chain network; binding the identity information of the coal transaction receiver with a first public key corresponding to the first private key to obtain first binding information, binding the identity information of the coal transaction sender with a second public key corresponding to the second private key to obtain second binding information, and uploading the first binding information and the second binding information to the blockchain network;
the block chain network is used for receiving the electronic evidence to be verified sent by the coal transaction receiver aiming at the current coal transaction, acquiring the reference electronic evidence uploaded by the coal transaction sender aiming at the current coal transaction, verifying the electronic evidence to be verified by using the reference electronic evidence, responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording the coal transportation information corresponding to the current coal transportation.
Optionally, the key service center includes a private key generation module and a public key generation module; wherein the content of the first and second substances,
the private key generation module is used for generating a first private key aiming at a first information acquisition device of a coal transaction receiver in advance and generating a second private key aiming at a second information acquisition device of a coal transaction sender in advance;
the public key generation module is used for generating a second private key aiming at a second information acquisition device of a coal transaction sender in advance and generating a second public key corresponding to the second private key by utilizing an elliptic curve encryption algorithm.
Optionally, the key service center further includes: and the information binding module is used for binding the identity information of the coal transaction receiver with the first public key to obtain first binding information and issuing a digital certificate, and binding the identity information of the coal transaction sender with the second public key to obtain second binding information and issuing the digital certificate.
In order to solve the above technical problem, the present invention provides a computer device, which includes 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.
To solve the above technical problem, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above method.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
the coal transfer recording method, the system, the computer equipment and the storage medium are applied to a block chain network, in the coal transaction process, the block chain network receives an electronic evidence to be verified sent by a coal transaction receiver aiming at the current coal transaction, and the electronic evidence to be verified comprises a signature carried out by utilizing a first private key corresponding to the identity information of the coal transaction receiver; acquiring reference electronic evidence uploaded by a coal transaction sender aiming at the current coal transaction, wherein the reference electronic evidence comprises a signature carried out by using a second private key corresponding to identity information of the coal transaction sender; verifying the electronic evidence to be verified by using the reference electronic evidence; and responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording coal transfer information corresponding to the current coal transfer.
Therefore, the information in the coal operation process is subjected to chain linking processing by adopting a block chain technology, so that transaction data which is tamper-proof, can withstand inspection and audit and has extremely high credibility is established between the coal transaction sender and the coal transaction receiver. Moreover, because the coal transaction receiver and the coal transaction sender both adopt an automatic information acquisition mode to acquire information, the physical damage to workers on a coal site can be reduced, and the situations of less memory, missing memory and the like can be avoided, thereby achieving the effects of cost reduction and efficiency improvement.
Drawings
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. Wherein the included drawings are:
FIG. 1 is a flow chart of a coal transportation recording method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a coal cross-unit transfer application scenario provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating the sub-steps of step S103 according to an embodiment of the present invention;
FIG. 4 is another flow chart of a coal transportation recording method according to an embodiment of the present invention;
FIG. 5 is an architecture diagram of a coal transportation recording system according to an embodiment of the present invention;
fig. 6 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the following will describe in detail an implementation method of the present invention with reference to the accompanying drawings and embodiments, so that how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
In existing coal trading, strict weighing and checking of the quantity and quality of coal to be transported is generally required by workers at the coal site. In practical application, because coal trading often has the characteristics of large quantity and high frequency, a large amount of labor cost needs to be consumed in the coal trading process. In addition, the environment of loading and unloading coal is generally severe, and the physical health of workers in a coal field is also affected to a great extent. In addition, because the related information of coal transportation is manually recorded, the situations of less quantity and more records of coal, error quality recording, loss of records and the like easily occur.
In view of this, the invention provides a coal transfer recording method, a coal transfer recording system, a computer device and a storage medium, which are used for solving the problems of high labor cost, influence on the health of operators and inaccurate information recording in the existing coal transaction.
The following describes a coal transfer recording method provided in an embodiment of the present invention.
The first embodiment is as follows:
as shown in fig. 1, a flowchart of a coal transportation recording method provided in an embodiment of the present invention is applied to the block chain network shown in fig. 2, and includes:
step S101: and receiving an electronic evidence to be verified sent by a coal transaction receiver aiming at the current coal transaction, wherein the electronic evidence to be verified comprises a signature carried out by utilizing a first private key corresponding to the identity information of the coal transaction receiver.
Step S102: and acquiring a reference electronic evidence uploaded by a coal transaction sender aiming at the current coal transaction, wherein the reference electronic evidence comprises a signature carried out by using a second private key corresponding to the identity information of the coal transaction sender.
Step S103: and verifying the electronic evidence to be verified by using the reference electronic evidence.
In one implementation, as shown in fig. 3, the electronic evidence to be verified may be verified as follows:
step S1031: and judging whether the comparison result of the electronic evidence to be verified and the reference electronic evidence is consistent, if so, executing a step S1032, otherwise, executing a step S1033.
Step S1032: and determining that the verification result of the electronic evidence to be verified is successful.
Step S1033: and determining that the verification result of the electronic evidence to be verified is failure.
Step S104: and responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording coal transfer information corresponding to the current coal transfer.
It should be noted that, when the verification result is failure, the current coal transaction is determined to be an invalid transaction. Furthermore, the alarm reminding can be carried out in an early warning mode so as to remind coal transaction participants of carrying out traceability analysis.
Therefore, the information in the coal operation process is subjected to chain linking processing by adopting a block chain technology, so that transaction data which is tamper-proof, can withstand inspection and audit and has extremely high credibility is established between the coal transaction sender and the coal transaction receiver. Moreover, because the coal transaction receiver and the coal transaction sender both adopt an automatic information acquisition mode to acquire information, the physical damage to workers on a coal site can be reduced, and the situations of less memory, missing memory and the like can be avoided, thereby achieving the effects of cost reduction and efficiency improvement.
Example two:
as shown in fig. 4, another flowchart of a coal transportation recording method provided in an embodiment of the present invention is applied to the block chain network shown in fig. 2, and includes:
step S201: generating a first private key aiming at first information acquisition equipment of a coal transaction receiver in advance; and generating a second private key aiming at a second information acquisition device of the coal transaction sender in advance.
During the coal transportation process, a private key can be generated in advance for each information acquisition device of the participant, and the private key is embedded into the trusted chip. The participators can comprise a coal transaction receiver and a coal transaction sender; correspondingly, the information collection device comprises a first information collection device collected by the coal transaction receiver and a second information collection device collected by the coal transaction sender, and specifically, the information collection device of the coal transaction sender and the information collection device of the coal transaction receiver respectively comprise the following information: a weight scale, a chemical checker and an image collector; accordingly, the private keys include a first private key of a coal transaction receiver and a second private key of a coal transaction sender. Further, the trusted chip at least comprises: a proof contract interface, a proof validation contract interface, and a communication interface.
In one case, the coal transaction receiving party acquires first coal transportation information acquired by the first information acquisition equipment; generating first electronic evidence based on the first coal transportation information; and signing the first electronic evidence by using the first private key to obtain the electronic evidence to be verified. Further, a first public key corresponding to the first private key is generated by using an elliptic curve encryption algorithm; and binding the identity information of the coal transaction receiver with the first public key to obtain first binding information and issuing a digital certificate so as to ensure the credibility of the current coal transaction.
In another situation, the coal transaction sender acquires second coal transportation information acquired by the second information acquisition equipment; generating second electronic evidence based on the second coal transportation information; and signing the second electronic evidence by using the second private key to obtain the reference electronic evidence. Further, a second public key corresponding to the second private key is generated by using an elliptic curve encryption algorithm; and binding the identity information of the coal transaction sender with the second public key to obtain second binding information and issuing a digital certificate so as to ensure the credibility of the current coal transaction.
It should be noted that the above-mentioned elliptic curve cryptography algorithm only generates a specific implementation manner of the corresponding public key, and should not be construed as a limitation to the embodiment of the present invention. In particular, the present invention may generate a corresponding first public key or second public key, which may be denoted as K, by using an elliptic curve cryptography algorithm based on the first private key or the second private keyi=piG, wherein piRepresenting either the first private key or the second private key, KiRepresenting either the first public key or the second public key, and G represents the base point of the elliptic curve.
Further, through a Public Key Infrastructure (PKI) certificate service, the key service center binds the generated public key to the identity of the entity of the participant, specifically, binds the first public key to the coal transaction receiver and the second public key to the coal transaction sender, and further obtains corresponding first binding information and second binding information, and respectively issues digital certificates. And then, uploading the first binding information and the second binding information to the blockchain network in a transaction mode through the key service center.
Step S202: and receiving an electronic evidence to be verified sent by a coal transaction receiver aiming at the current coal transaction, wherein the electronic evidence to be verified comprises a signature carried out by utilizing a first private key corresponding to the identity information of the coal transaction receiver.
Step S203: and acquiring a reference electronic evidence uploaded by a coal transaction sender aiming at the current coal transaction, wherein the reference electronic evidence comprises a signature carried out by using a second private key corresponding to the identity information of the coal transaction sender.
For step S202 and step S203, it should be noted that the first coal transportation information acquired by the first information acquisition device of the coal transaction receiver is used to generate the first electronic evidence according to the data archiving instruction. Further, the first electronic evidence is signed by using a first private key of a coal transaction receiver, and the signed electronic evidence to be verified is uploaded to the block chain network by calling a storage and certification contract interface in the trusted chip. Generating second electronic evidence by second coal transportation information acquired by second information acquisition equipment of a coal transaction sender in advance according to a data archiving instruction, wherein the second coal operation information at least comprises: operating time, vehicle information, and coal weight. And further, a second private key of the coal transaction sender is used for signing the second electronic evidence, and the signed reference electronic evidence is uploaded to the block chain network by calling a storage and certification contract interface in the trusted chip so as to be used for comparing the signed reference electronic evidence with the electronic evidence to be verified of the coal transaction receiver. It should be further noted that the signed reference electronic proof and the signed electronic proof to be verified are both uploaded to the blockchain network through a communication interface in the trusted chip.
Step S204: and verifying the electronic evidence to be verified by using the reference electronic evidence.
Step S205: and responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording coal transfer information corresponding to the current coal transfer.
It should be noted that the method embodiment shown in fig. 4 has all the advantages of the method embodiment shown in fig. 1, and in addition, the method embodiment shown in fig. 4 also provides a specific manner for generating a private key, a public key and an electronic evidence of respective information acquisition devices of two transaction parties in the coal transaction process, and the credibility of the current coal transaction can be further ensured by binding the identity information of the two transaction parties and the corresponding public key.
The coal transport recording method is described below with reference to a specific example.
Before coal transfer, each participant (including a coal transaction receiver and a coal transaction sender) selects a private key (including a first private key and a second private key) for each information acquisition device i (including a first information acquisition device and a second information acquisition device), and obtains a public key (including a first public key and a second public key, wherein G is a base point of an elliptic curve) by calculating using an elliptic curve E selected by a key service center.
Through PKI certificate service, the key service center binds the public key of each device with the identity of an entity unit and releases a certificate. In one case, the Key service center uploads the binding information to the blockchain network in a transactional manner, such as with (Key: K)i,Value:Hash(Ci) In a block chain network, ensuring the credibility of binding the public key of each device with the identity of the entity unit.
Specifically, the second information collecting device of the coal sender may at least include a camera and a weighing component for acquiring the coal sending time TsensorThe vehicle identification TrainNum and the coal Weight are obtained, and a second electronic evidence is generated according to the data filing instruction, in one case, the second electronic evidence can be generated in a character string splicing mode, for example, (T) is generatedsensorTrainNum | | Weight) is shown. Further, the coal sender utilizes a second private key corresponding to the second information acquisition device to perform second electronic evidence (T)sensorTrainNum | | Weight) to obtain reference electronic evidence (T)sensor,TrainNum||Weight)ρPsensorAnd directly chaining by referring to the electronic evidence by calling a memory evidence contract interface in the trusted chip.
Specifically, the information of the coal receiverThe first collecting device can at least comprise a camera and a weighing component, and is used for acquiring the coal receiving time TreceiveThe vehicle represents TrainNum and coal weight Weigh, and generates the first electronic evidence according to the data filing instruction, and in one case, the first electronic evidence can be generated in a character string splicing mode, for example, (T) is generatedreceiveTrainNum | | Weight)' is shown. Further, the coal receiver utilizes a first private key corresponding to the first information acquisition device to provide the first electronic evidence (T)receiveTrainNum | | Weight)' signing is carried out to obtain electronic evidence (T) to be verifiedsensor,TrainNum||Weight)βPsensorAnd calling a storage and certification contract interface written in the chip, and directly chaining the electronic evidence to be verified by using a communication module integrated in the chip.
The coal transfer recording system provided by the invention is explained below.
Example three:
as shown in fig. 5, an architecture diagram of a coal transportation recording system provided in an embodiment of the present invention includes:
the information acquisition equipment 310 is used for acquiring first coal transportation information of a coal transaction receiver or acquiring second coal transportation information of a coal transaction sender;
the electronic evidence generating module 320 is configured to acquire first coal transportation information acquired by first information acquisition equipment of a coal transaction receiver, and generate a first electronic evidence based on the first coal transportation information; second coal transfer information acquired by second information acquisition equipment of the coal transaction sender is acquired, and a second electronic evidence is generated based on the second coal transfer information;
the key service center 330 is configured to sign the first electronic evidence by using a first private key corresponding to the identity information of the coal transaction receiver, obtain an electronic evidence to be verified, and upload the electronic evidence to a block chain network; signing the second electronic evidence by using a second private key corresponding to the identity information of the coal transaction sender to obtain a reference electronic evidence and uploading the reference electronic evidence to a block chain network; binding the identity information of the coal transaction receiver with a first public key corresponding to the first private key to obtain first binding information, binding the identity information of the coal transaction sender with a second public key corresponding to the second private key to obtain second binding information, and uploading the first binding information and the second binding information to the blockchain network;
and the block chain network 340 is used for receiving the electronic evidence to be verified sent by the coal transaction receiver aiming at the current coal transaction, acquiring the reference electronic evidence uploaded by the coal transaction sender aiming at the current coal transaction, verifying the electronic evidence to be verified by using the reference electronic evidence, responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording the coal transportation information corresponding to the current coal transportation.
In one case, the key service center 330 includes a private key generation module and a public key generation module; the private key generation module is used for generating a first private key aiming at a first information acquisition device of a coal transaction receiver in advance and generating a second private key aiming at a second information acquisition device of a coal transaction sender in advance; the public key generation module is used for generating a second private key aiming at a second information acquisition device of a coal transaction sender in advance and generating a second public key corresponding to the second private key by utilizing an elliptic curve encryption algorithm.
In another case, the key service center 330 further includes: and the information binding module is used for binding the identity information of the coal transaction receiver with the first public key to obtain first binding information and issuing a digital certificate, and binding the identity information of the coal transaction sender with the second public key to obtain second binding information and issuing the digital certificate.
Therefore, the information in the coal operation process is subjected to chain linking processing by adopting a block chain technology, so that transaction data which is tamper-proof, can withstand inspection and audit and has extremely high credibility is established between the coal transaction sender and the coal transaction receiver. Moreover, because the coal transaction receiver and the coal transaction sender both adopt an automatic information acquisition mode to acquire information, the physical damage to workers on a coal site can be reduced, and the situations of less memory, missing memory and the like can be avoided, thereby achieving the effects of cost reduction and efficiency improvement.
Example four:
to solve the above technical problem, the present invention provides a computer device, as shown in fig. 6, including a memory 410, a processor 420, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method as described above.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer device may include, but is not limited to, a processor 420, a memory 410. Those skilled in the art will appreciate that fig. 6 is merely an example of a computing device and is not intended to be limiting and may include more or fewer components than those shown, or some of the components may be combined, or different components, e.g., the computing device may also include input output devices, network access devices, buses, etc.
The Processor 420 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 410 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The memory 410 may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device. Further, the memory 410 may also include both internal storage units and external storage devices of the computer device. The memory 410 is used for storing 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.
Example five:
the embodiment of the present application further provides a computer-readable storage medium, which may be a computer-readable storage medium contained in the memory in the foregoing embodiment; or it may be a computer-readable storage medium that exists separately and is not incorporated into a computer device. The computer-readable storage medium stores one or more computer programs which, when executed by a processor, implement the methods described above.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory 410, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
For system or apparatus embodiments, since they are substantially similar to method embodiments, they are described in relative simplicity, and reference may be made to some descriptions of method embodiments for related points.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a described condition or event is detected" may be interpreted, depending on the context, to mean "upon determining" or "in response to determining" or "upon detecting a described condition or event" or "in response to detecting a described condition or event".
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A coal transfer recording method is characterized by being applied to a block chain network and comprising the following steps:
receiving an electronic evidence to be verified sent by a coal transaction receiver aiming at the current coal transaction, wherein the electronic evidence to be verified comprises a signature carried out by using a first private key corresponding to the identity information of the coal transaction receiver;
acquiring reference electronic evidence uploaded by a coal transaction sender aiming at the current coal transaction, wherein the reference electronic evidence comprises a signature carried out by using a second private key corresponding to identity information of the coal transaction sender;
verifying the electronic evidence to be verified by using the reference electronic evidence;
and responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording coal transfer information corresponding to the current coal transfer.
2. The coal transportation recording method according to claim 1, wherein the verifying the electronic evidence to be verified by using the reference electronic evidence comprises:
judging whether the comparison result of the electronic evidence to be verified and the reference electronic evidence is consistent or not;
in response to the comparison result being consistent, determining that the verification result of the electronic evidence to be verified is successful;
and determining that the verification result of the electronic evidence to be verified is failure in response to the inconsistency of the comparison result.
3. The coal transportation recording method according to claim 1, wherein before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further comprises:
generating a first private key aiming at first information acquisition equipment of a coal transaction receiver in advance;
and generating a second private key aiming at a second information acquisition device of the coal transaction sender in advance.
4. The coal transportation recording method according to claim 3, wherein before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further comprises:
the coal transaction receiving party acquires first coal transfer information acquired by the first information acquisition equipment;
generating first electronic evidence based on the first coal transportation information; and the number of the first and second groups,
and signing the first electronic evidence by using the first private key to obtain the electronic evidence to be verified.
5. The coal transportation recording method according to claim 3, wherein before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further comprises:
generating a first public key corresponding to the first private key by using an elliptic curve encryption algorithm;
and binding the identity information of the coal transaction receiver with the first public key to obtain first binding information and issuing a digital certificate so as to ensure the credibility of the current coal transaction.
6. The coal transportation recording method according to claim 3, wherein before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further comprises:
the coal transaction sender acquires second coal transportation information acquired by the second information acquisition equipment;
generating second electronic evidence based on the second coal transportation information; and the number of the first and second groups,
and signing the second electronic evidence by using the second private key to obtain the reference electronic evidence.
7. The coal transportation recording method according to claim 3, wherein before receiving the electronic evidence to be verified sent by the coal transaction receiver for the current coal transaction, the method further comprises:
generating a second public key corresponding to the second private key by using an elliptic curve encryption algorithm;
and binding the identity information of the coal transaction sender with the second public key to obtain second binding information and issuing a digital certificate so as to ensure the credibility of the current coal transaction.
8. A coal transfer recording system, comprising:
the information acquisition equipment is used for acquiring first coal transfer information of a coal transaction receiver or acquiring second coal transfer information of a coal transaction sender;
the electronic evidence generating module is used for acquiring first coal transportation information acquired by first information acquisition equipment of a coal transaction receiver and generating a first electronic evidence based on the first coal transportation information; second coal transfer information acquired by second information acquisition equipment of the coal transaction sender is acquired, and a second electronic evidence is generated based on the second coal transfer information;
the key service center is used for signing the first electronic evidence by using a first private key corresponding to the identity information of the coal transaction receiver to obtain an electronic evidence to be verified and uploading the electronic evidence to the block chain network; signing the second electronic evidence by using a second private key corresponding to the identity information of the coal transaction sender to obtain a reference electronic evidence and uploading the reference electronic evidence to a block chain network; binding the identity information of the coal transaction receiver with a first public key corresponding to the first private key to obtain first binding information, binding the identity information of the coal transaction sender with a second public key corresponding to the second private key to obtain second binding information, and uploading the first binding information and the second binding information to the blockchain network;
the block chain network is used for receiving the electronic evidence to be verified sent by the coal transaction receiver aiming at the current coal transaction, acquiring the reference electronic evidence uploaded by the coal transaction sender aiming at the current coal transaction, verifying the electronic evidence to be verified by using the reference electronic evidence, responding to the verification result as success, determining that the current coal transaction is an effective transaction, and recording the coal transportation information corresponding to the current coal transportation.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202111613337.6A 2021-12-27 2021-12-27 Coal transfer recording method and system, computer equipment and storage medium Pending CN114297611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111613337.6A CN114297611A (en) 2021-12-27 2021-12-27 Coal transfer recording method and system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111613337.6A CN114297611A (en) 2021-12-27 2021-12-27 Coal transfer recording method and system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114297611A true CN114297611A (en) 2022-04-08

Family

ID=80969082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111613337.6A Pending CN114297611A (en) 2021-12-27 2021-12-27 Coal transfer recording method and system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114297611A (en)

Similar Documents

Publication Publication Date Title
US8850185B1 (en) Post attack man-in-the-middle detection
CN111078140B (en) Nuclear power station file uploading management method and device, terminal equipment and medium
CN111869159A (en) Tamper detection system and tamper detection method
CN111125773B (en) Method, device, equipment and medium for processing customs declaration information based on block chain
EP4339861A1 (en) Goods transfer information processing method and apparatus, device, and storage medium
CN110597818A (en) Block chain based volume query method, device, equipment and storage medium
US20210168156A1 (en) System and method for verification of reliability and validity of crowd sourcing users
CN110570293A (en) method, device, server and storage medium for reimbursing collected invoices
CN109034848B (en) Distributed detection and authentication platform
US20190205219A1 (en) Data recovery with authenticity
CN111325585A (en) Asset transfer method, device and computer readable storage medium
CN113886883A (en) Internet of things data management method and device
CN111224782B (en) Data verification method based on digital signature, intelligent device and storage medium
CN111709829A (en) Data processing method and device, electronic equipment and storage medium
US11716203B2 (en) Secure transmission
EP3224825B1 (en) Electronic writing device, system and method for securing a document in a digital form with the use of a hand-written signature
CN114499893B (en) Bidding file encryption and evidence storage method and system based on block chain
CN114297611A (en) Coal transfer recording method and system, computer equipment and storage medium
CN111050326A (en) Short message verification method, device, equipment and medium based on block chain
CN115495770A (en) Block chain based overdue contract processing method and device, equipment and medium
CN114553586A (en) Data acquisition method, apparatus, device, medium, and program product
CN110661866B (en) Bill processing method and equipment
CN111198763A (en) Resource reuse detection method, terminal and computer-readable storage medium
CN110599347A (en) Bill processing method, device, computer readable storage medium and computer equipment
CN110912987B (en) Information processing method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination