CN109741056B - Method and device for uploading electronic certificate - Google Patents

Method and device for uploading electronic certificate Download PDF

Info

Publication number
CN109741056B
CN109741056B CN201811604746.8A CN201811604746A CN109741056B CN 109741056 B CN109741056 B CN 109741056B CN 201811604746 A CN201811604746 A CN 201811604746A CN 109741056 B CN109741056 B CN 109741056B
Authority
CN
China
Prior art keywords
terminal
end terminal
electronic certificate
hash value
signature information
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.)
Active
Application number
CN201811604746.8A
Other languages
Chinese (zh)
Other versions
CN109741056A (en
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201811604746.8A priority Critical patent/CN109741056B/en
Publication of CN109741056A publication Critical patent/CN109741056A/en
Priority to PCT/CN2019/117271 priority patent/WO2020134653A1/en
Priority to TW108142263A priority patent/TWI714359B/en
Application granted granted Critical
Publication of CN109741056B publication Critical patent/CN109741056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for uploading an electronic certificate, wherein the method comprises the steps that a front-end terminal acquires the electronic certificate, hashes the electronic certificate, determines the hash value of the electronic certificate, determines signature information according to a private key of the front-end terminal, a merchant number, a terminal number and the hash value of the electronic certificate, uploads the merchant number of the front-end terminal, the terminal number, the hash value of the electronic certificate and the signature information to a blockchain node, so that the blockchain node registers the blockchain node in a blockchain network after verifying the signature information. The front-end terminal directly uploads the electronic certificate to the blockchain network after processing the electronic certificate, so that the problem that the electronic certificate is tampered when the front-end terminal uploads the electronic certificate to the blockchain through the background terminal in the prior art is solved.

Description

Method and device for uploading electronic certificate
Technical Field
The embodiment of the invention relates to the technical field of blockchains, in particular to a method and a device for uploading electronic certificates.
Background
In the electronic certificate project based on the blockchain, each acquiring mechanism hashes the electronic ticket, stores the hash value on the distributed account book, and other mechanisms acquire the hash of the electronic ticket from the distributed account book, and compare the hash with the electronic ticket to determine the authenticity and integrity of the electronic ticket. But for non-banking acquirers, there may be cases where the data is counterfeited.
Disclosure of Invention
The embodiment of the invention provides a method and a device for uploading an electronic certificate, which are used for solving the problem of fake information uploaded by a third party order receiving mechanism.
The method for uploading the electronic certificate provided by the embodiment of the invention comprises the following steps:
the front-end terminal acquires an electronic certificate;
the front-end terminal carries out hash processing on the electronic certificate to determine a hash value of the electronic certificate;
the front-end terminal determines signature information according to the private key of the front-end terminal, the merchant number, the terminal number and the hash value of the electronic certificate;
and the front-end terminal uploads the merchant number and the terminal number of the front-end terminal, the hash value of the electronic certificate and the signature information to a blockchain node so that the blockchain node registers in a blockchain network after verifying the signature information.
According to the technical scheme, the front-end terminal directly uploads the electronic certificate to the blockchain network after processing the electronic certificate, so that the problem that the electronic certificate is tampered when the front-end terminal uploads the electronic certificate to the blockchain through the background terminal in the prior art is solved.
Optionally, the pre-terminal determines signature information according to the private key of the pre-terminal, the merchant number, the terminal number and the hash value of the electronic certificate, and the method includes:
and the front-end terminal signs the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using the private key of the front-end terminal, and determines the signature information.
Optionally, the pre-terminal determines signature information according to the private key of the pre-terminal, the merchant number, the terminal number and the hash value of the electronic certificate, and the method includes:
and the front-end terminal signs the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using an elliptic curve digital signature ECDSA algorithm through the private key of the front-end terminal, and determines the signature information.
Correspondingly, the embodiment of the invention also provides a method for uploading the electronic certificate, which comprises the following steps:
the block chain node acquires transaction information sent by a front-end terminal, wherein the transaction information comprises a hash value of an electronic certificate, a merchant number, a terminal number and signature information of the front-end terminal; the hash value of the electronic certificate is determined after the front-end terminal hashes the electronic certificate; the signature information is determined after the front-end terminal processes the hash value of the electronic certificate, the merchant number of the front-end terminal and the terminal number according to the private key of the front-end terminal;
the block chain node determines a public key of the front-end terminal according to the merchant number and the terminal number of the front-end terminal;
and the blockchain node verifies the signature information according to the public key of the front-end terminal, and registers the hash value of the electronic certificate into a blockchain network after the verification passes and the consensus of other blockchain nodes.
Correspondingly, the embodiment of the invention also provides a device for uploading the electronic certificate, which comprises the following steps:
the communication module is used for acquiring the electronic certificate;
the uploading preprocessing module is used for carrying out hash processing on the electronic certificate and determining a hash value of the electronic certificate; determining signature information according to the private key of the front-end terminal, the merchant number, the terminal number and the hash value of the electronic certificate; uploading the merchant number and the terminal number of the front-end terminal, the hash value of the electronic certificate and the signature information to a blockchain node so that the blockchain node registers in a blockchain network after verifying the signature information.
Optionally, the upload preprocessing module is specifically configured to:
and signing the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using the private key of the front-end terminal, and determining the signature information.
Optionally, the upload preprocessing module is specifically configured to:
and signing the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using an elliptic curve digital signature ECDSA algorithm through the private key of the front-end terminal, and determining the signature information.
Correspondingly, the embodiment of the invention also provides a device for uploading the electronic certificate, which comprises the following steps:
the acquisition module is used for acquiring transaction information sent by the front-end terminal, wherein the transaction information comprises a hash value of the electronic certificate, a merchant number, a terminal number and signature information of the front-end terminal; the hash value of the electronic certificate is determined after the front-end terminal hashes the electronic certificate; the signature information is determined after the front-end terminal processes the hash value of the electronic certificate, the merchant number of the front-end terminal and the terminal number according to the private key of the front-end terminal;
the processing module is used for determining the public key of the front-end terminal according to the merchant number and the terminal number of the front-end terminal; and verifying the signature information according to the public key of the front-end terminal, and registering the hash value of the electronic certificate into a blockchain network after verification passes and other blockchain nodes are commonly recognized.
Correspondingly, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions for causing the computer to execute the method for uploading the electronic certificate.
Accordingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for uploading the electronic certificate according to the obtained program.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for uploading electronic certificates according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a system architecture according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a system architecture according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a system architecture according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a smart contract in a blockchain network in accordance with embodiments of the present invention;
FIG. 7 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for uploading electronic certificates according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus for uploading electronic certificates according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a system architecture to which an embodiment of the present invention is applicable. Referring to fig. 1, the system architecture may include a head end 100 and a blockchain network system 200.
The front-end terminal 100 may be a cash register terminal, or may be referred to as a bank card acceptance terminal, such as a POS machine. Other handheld terminals such as tax cash registers of tax departments, handheld terminals of couriers and the like can also be used. It may include a communication module 110 and an upload preprocessing module 120, where the communication module 110 is configured to send the generated electronic certificate to a background acquiring terminal. The upload preprocessing module 120 is configured to process the electronic certificate and upload the electronic certificate to the blockchain network system 200.
The blockchain network system 200 is composed of a plurality of blockchain nodes 210, and the blockchain nodes 210 verify the electronic certificates sent by the front-end terminal 100 after receiving the electronic certificates, and register the electronic certificates in the blockchain network after the electronic certificates pass the verification.
It should be noted that the structure shown in fig. 1 is merely an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 illustrates a flow of a method for uploading an electronic certificate according to an embodiment of the present invention, where the flow may be executed by an apparatus for uploading an electronic certificate. The flow of this electronic credential upload will be described below in terms of the front-end terminal interacting with the blockchain node.
As shown in fig. 2, the process specifically includes:
step 201, a front-end terminal acquires an electronic certificate, hashes the electronic certificate, and determines a hash value of the electronic certificate.
Before step 201, the front-end terminal and the need first register on the blockchain network platform, that is, register the merchant number, the terminal number and the public key of the front-end terminal on the blockchain network platform.
Then, the front-end terminal generates an electronic certificate, and in the embodiment of the invention, the electronic certificate can be an electronic purchase bill, an electronic invoice, an electronic freight bill and the like, and all electronic certificates can be used as the electronic certificate in the embodiment of the invention without limitation.
After the front-end terminal generates the electronic certificate, the communication module can be called to send the electronic certificate to the background system for the background system to store.
And then, the uploading preprocessing module is called to carry out hash processing on the electronic certificate to obtain a hash value of the electronic certificate, namely a hash value of the electronic screen.
Step 202, the front-end terminal determines signature information according to the private key of the front-end terminal, the merchant number, the terminal number and the hash value of the electronic certificate.
The front-end terminal can sign the hash value of the merchant number, the terminal number and the electronic certificate of the front-end terminal by using the private key of the front-end terminal, and determines signature information. In particular, the ECDSA algorithm may be used for signing.
In step 203, the front end transmits the transaction information to the block link point.
The front-end terminal sends the hash value, the merchant number, the terminal number and the signature information of the electronic certificate to the blockchain node as transaction information for verification by the blockchain node.
When the front-end terminal uploads the transaction information, the transaction information can be directly uploaded through an uploading preprocessing module, and also can be uploaded through a blockchain middleware service, such as a web-service.
And 204, determining the public key of the front-end terminal according to the merchant number and the terminal number of the front-end terminal by the block chain link point, verifying the signature information according to the public key of the front-end terminal, and registering the hash value of the electronic certificate into a block chain network after the verification passes and the consensus of other block chain nodes.
After receiving the hash value of the electronic certificate sent by the front-end terminal, the merchant number of the front-end terminal, the terminal number and the signature information, the blockchain node can determine the public key of the front-end terminal according to the merchant number and the terminal number of the front-end terminal. The public key of the front-end terminal is registered on the blockchain network platform, so that the blockchain node can inquire from the blockchain network platform according to the merchant number and the terminal number of the front-end terminal.
After the public key of the front-end terminal is queried, signature information can be verified according to the public key of the front-end terminal, and the hash value of the electronic certificate is registered into the blockchain network after verification and other blockchain link point consensus are passed. The intelligent contracts running on all the blockchain nodes in the blockchain website verify the related information of the uploaded electronic certificates, namely the public keys corresponding to the front-end terminals are found out mainly through merchant numbers and terminal numbers, and then signature information is checked by the public keys. And if the verification sign passes, registering the hash value of the electronic certificate into the blockchain network.
In order to better explain the embodiment of the present invention, the flow of uploading electronic certificates will be described below through a specific implementation scenario.
Scene one
When the front-end terminal is a POS machine, the structure of the POS machine at this time may be as shown in fig. 3 and fig. 4. Fig. 3 is a system architecture of an electronic purchase order uploading device based on a conventional POS machine, where the system architecture may include a communication module, an order receiving application, a security kernel, a card reader interface module, an uploading preprocessing module, and certificate management. FIG. 4 is a system architecture of an electronic purchase order uploading device based on an intelligent POS machine, which can comprise an application processing system and a security processing system, wherein the application processing system comprises a communication layer, an order receiving application, an uploading preprocessing module and an interface layer; the security processing system comprises an interface layer, a security kernel, a certificate management and card reader interface module. The POS device may also be referred to as a bank card receiving terminal. Compared with the existing POS machine, the structure shown in fig. 3 and 4 has more uploading preprocessing modules, and the uploading preprocessing modules can realize hash calculation and signature processing and the function of uploading a blockchain. The hash is to hash the electronic purchase order generated by the POS terminal receipt application, and the signature is to call a certificate management module of a POS terminal system service layer to acquire a private key to sign the uploading information.
The information interaction flow of the embodiment of the present invention may be as shown in fig. 5, and the specific steps are as follows:
according to the embodiment of the invention, the Ethernet is used as a blockchain network platform of the electronic certificate, the intelligent contract of the electronic certificate is deployed on the blockchain network platform, and the functions of registering POS machine information, checking signature of the electronic ticket hash value, uploading and the like are realized by adopting the solubility language.
The POS machine adopts an intelligent POS terminal to reform the POS machine, a pair of public and private keys are added to a certificate management module of a security processing system of the POS machine, an uploading preprocessing module is added to an application processing system of the POS machine, and the SHA-256 hash algorithm and the ECDSA signature algorithm are realized by the modules.
The step of uploading the electronic purchase order information is as follows:
1. the acquirer firstly calls a POS machine information registration contract to register the merchant number, the terminal number and the public key of the POS machine on the electronic certificate blockchain platform;
2. the order receiving application module of the POS machine generates an electronic signature purchase order, calls the communication module and sends the electronic signature purchase order to the order receiving background system of the order receiving mechanism.
3. Meanwhile, the uploading preprocessing module acquires the electronic purchase order from the receipt application module, and hashes the electronic purchase order by adopting an SHA-256 algorithm to obtain a hash value.
4. The uploading preprocessing module invokes a private key from the secure processing system and signs the electronic purchase order hash value, the merchant number and the terminal number by adopting an ECDSA algorithm.
5. The uploading preprocessing module calls the communication module to send the electronic signature hash value, the merchant number, the terminal number and the signature information to the Ethernet in a grpc format.
6. And the accounting node in the Ethernet performs an electronic certificate intelligent contract, the contract checks the public key of the POS machine from the POS machine information registration contract through the merchant number and the terminal number, and then the public key verifies the signature.
7. If the signature verification passes, the hash value of the electronic purchase order is registered into the state of the Ethernet.
8. And the other nodes execute the intelligent contract by adopting the same operation of 6 and 7 steps, if the results are consistent, the consensus is completed, and the hash value of the electronic purchase order is registered on the blockchain.
9. The user of the electronic voucher blockchain platform can verify the electronic purchase order by calling the hash value of the electronic purchase order.
It should be noted that fig. 6 shows steps performed by the blockchain platform side in scenario one, including POS registration contracts and electronic voucher contracts. In the POS registration contract, registration information such as a merchant number, a terminal number, and a public key is first acquired from a transaction. And then writing the registration information into the state, and finally completing the formula.
In the electronic certificate contract, firstly, a hash value, a merchant number, a terminal number and a signature of an electronic purchase order are obtained from a transaction, then a POS machine public key is obtained according to the merchant number and the terminal number, the signature is verified by adopting an ECDSA algorithm, if the verification is passed, the hash value of the electronic purchase order is written into a state, and finally, the consensus is completed.
It should be noted that the following modifications to the embodiments also fall within the scope of protection of the embodiments of the present invention:
1. other blockchain platforms are employed, or POS registration smart contracts are combined with electronic voucher contracts.
2. Other hash methods or signature methods are employed.
3. The uploading preprocessing module is realized by software or hardware, the communication protocol adopts other communication protocols, and encryption is carried out in the transmission process.
4. The uplink is through invoking middleware services.
5. The public and private key pairs of the POS machine are not managed by the certificate management module, but are managed by the preprocessing module.
6. Instead of determining a POS machine by a merchant number and a terminal number, the POS machine is identified by a POS.
Scene two
The front-end terminal is a tax-control cash register, and the electronic certificate is an electronic invoice.
The embodiment of the invention adopts the Ethernet as an electronic certificate blockchain platform, intelligent contracts of electronic certificates are deployed on the electronic certificate blockchain platform, and the functions of registering tax-control cash register information, checking and signing electronic invoice hash values, linking and the like are realized by adopting a solubility language.
The tax-control cash register adopts the tax-control cash register which accords with the national standard, and the architecture diagram is shown in fig. 7. The MCU module of the tax-control cash register is added with an electronic invoice information uploading preprocessing logic which has the following functions:
1. and (3) hash: and hashing the generated electronic invoice.
2. Signature: and signing the uploaded information through the private key.
The core flow comprises the following steps:
the first step: the tax control cash register needs to upload information to the electronic certificate platform based on the blockchain, and firstly, the tax control cash register is registered on the electronic certificate platform, namely, the information such as the tax number Fang Na, the terminal number, the public key and the like of the tax control cash register is registered on the electronic certificate platform.
And a second step of: the tax control cash register generates an electronic invoice, and the electronic invoice is transmitted to the tax control cash register management system by calling an external communication expansion interface.
And a third step of: the uploading preprocessing module of the fiscal cash register hashes the electronic invoice to generate a hash value.
Fourth step: the uploading preprocessing module of the tax-control cash register calls a private key of the tax-control card to sign the hash value generated in the last step, along with the tax number of the selling party, the terminal number and the time stamp.
Fifth step: the uploading preprocessing module invokes the communication module to directly upload the hash value, the tax number of the selling party, the terminal number, the timestamp and the signature information or upload the hash value, the tax number of the selling party, the timestamp and the signature information to the electronic certificate blockchain platform through the blockchain middleware service.
Sixth step: the electronic certificate blockchain platform performs consensus, namely, intelligent contracts running on all nodes verify the uploaded electronic invoice related information: and finding out a public key corresponding to the tax-control cash register through the tax number of the selling party and the terminal number, and then checking signature information by using the public key.
Seventh step: and if the verification passes, registering the hash value of the electronic invoice into the blockchain state.
Scene three
The front-end terminal is a handheld terminal of an express delivery person, and the electronic certificate is an electronic waybill.
According to the embodiment of the invention, the Ethernet is used as an electronic certificate blockchain platform, intelligent contracts of electronic certificates are deployed on the electronic certificate blockchain platform, and the functions of receiving handheld terminal information, checking and signing electronic waybill hash values, uploading and the like are realized by adopting a solubility language.
The terminal adopts a handheld terminal for express delivery and collection. The added electronic waybill information uploading preprocessing logic of the tax-control cash register and the private key are filled in the bottom layer security module, and the uploading preprocessing logic has the following functions:
1. and (3) hash: and hashing the generated electronic waybill.
2. Signature: and signing the uploaded information through the private key.
The core flow comprises the following steps:
the first step: the information is required to be uploaded to the handheld terminal of the electronic waybill based on the blockchain electronic certificate platform, and the handheld terminal is registered on the electronic certificate platform, namely, the information of express company information, terminal number, public key and the like of the handheld terminal is registered on the electronic certificate platform.
And a second step of: the hand-held express delivery terminal scans the express delivery bill to generate an electronic freight bill, and calls the communication module to send the electronic freight bill to the background system of the express delivery company.
And a third step of: and the uploading preprocessing module of the express handheld terminal hashes the electronic manifest to generate a hash value.
Fourth step: the uploading preprocessing module of the express handheld terminal calls the private key of the bottom layer security module to sign the hash value generated in the last step together with the express company information, the terminal number and the time stamp.
Fifth step: the uploading preprocessing module invokes the communication module to directly upload the hash value, the express company information, the terminal number, the timestamp and the signature information or upload the hash value, the express company information, the terminal number, the timestamp and the signature information to the electronic credential blockchain platform through the blockchain middleware service.
Sixth step: the electronic certificate blockchain platform performs consensus, namely, intelligent contracts running on all nodes verify the uploaded electronic waybill related information: and finding out a public key corresponding to the express handheld terminal through the express company information and the terminal number, and then checking signature information by using the public key.
Seventh step: if the verification passes, the hash value of the electronic signature is registered into the blockchain state.
The above embodiment shows that the front-end terminal obtains the electronic certificate, hashes the electronic certificate, determines the hash value of the electronic certificate, determines the signature information according to the private key of the front-end terminal, the merchant number, the terminal number and the hash value of the electronic certificate, and uploads the merchant number and the terminal number of the front-end terminal, the hash value of the electronic certificate and the signature information to the blockchain node, so that the blockchain node registers in the blockchain network after verifying the signature information. The front-end terminal directly uploads the electronic certificate to the blockchain network after processing the electronic certificate, so that the problem that the electronic certificate is tampered when the front-end terminal uploads the electronic certificate to the blockchain through the background terminal in the prior art is solved.
Based on the same technical concept, fig. 8 illustrates an electronic certificate uploading device provided by the embodiment of the invention, which can execute a flow of uploading an electronic certificate. The device may be the above-mentioned front-end terminal.
As shown in fig. 8, the apparatus specifically includes:
a communication module 801, configured to obtain an electronic certificate;
an upload preprocessing module 802, configured to perform hash processing on the electronic certificate, and determine a hash value of the electronic certificate; determining signature information according to the private key of the front-end terminal, the merchant number, the terminal number and the hash value of the electronic certificate; uploading the merchant number and the terminal number of the front-end terminal, the hash value of the electronic certificate and the signature information to a blockchain node so that the blockchain node registers in a blockchain network after verifying the signature information.
Optionally, the upload preprocessing module 802 is specifically configured to:
and signing the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using the private key of the front-end terminal, and determining the signature information.
Optionally, the upload preprocessing module 802 is specifically configured to:
and signing the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using an elliptic curve digital signature ECDSA algorithm through the private key of the front-end terminal, and determining the signature information.
Based on the same technical concept, fig. 9 illustrates an electronic certificate uploading device provided by the embodiment of the invention, which can execute a flow of uploading an electronic certificate. The apparatus may be a blockchain node as described above.
As shown in fig. 9, the apparatus specifically includes:
the acquiring module 901 is configured to acquire transaction information sent by a front-end terminal, where the transaction information includes a hash value of an electronic certificate, a merchant number and a terminal number of the front-end terminal, and signature information; the hash value of the electronic certificate is determined after the front-end terminal hashes the electronic certificate; the signature information is determined after the front-end terminal processes the hash value of the electronic certificate, the merchant number of the front-end terminal and the terminal number according to the private key of the front-end terminal;
a processing module 902, configured to determine a public key of the front-end terminal according to the merchant number and the terminal number of the front-end terminal; and verifying the signature information according to the public key of the front-end terminal, and registering the hash value of the electronic certificate into a blockchain network after verification passes and other blockchain nodes are commonly recognized.
Based on the same technical concept, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and the computer executable instructions are used for enabling the computer to execute the method for uploading the electronic certificate.
Based on the same technical concept, the embodiment of the invention further provides a computing device, which comprises:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for uploading the electronic certificate according to the obtained program.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A method of uploading electronic certificates, comprising:
the front-end terminal acquires an electronic certificate; the front-end terminal is registered in the blockchain network platform in advance, and the merchant number, the terminal number and the public key of the front-end terminal are registered to the front-end terminal on the blockchain network platform;
the front-end terminal carries out hash processing on the electronic certificate to determine a hash value of the electronic certificate;
the front-end terminal determines signature information according to the private key of the front-end terminal, the merchant number, the terminal number and the hash value of the electronic certificate;
and the front-end terminal uploads the merchant number and the terminal number of the front-end terminal, the hash value of the electronic certificate and the signature information to a blockchain node so that the blockchain node registers in a blockchain network after verifying the signature information.
2. The method of claim 1, wherein the pre-terminal determines signature information based on the private key of the pre-terminal, the merchant number, the terminal number, and the hash value of the electronic certificate, comprising:
and the front-end terminal signs the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using the private key of the front-end terminal, and determines the signature information.
3. The method of claim 2, wherein the pre-terminal determines signature information based on the private key of the pre-terminal, the merchant number, the terminal number, and the hash value of the electronic certificate, comprising:
and the front-end terminal signs the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using an elliptic curve digital signature ECDSA algorithm through the private key of the front-end terminal, and determines the signature information.
4. A method of uploading electronic certificates, comprising:
the block chain node acquires transaction information sent by a front-end terminal, wherein the transaction information comprises a hash value of an electronic certificate, a merchant number, a terminal number and signature information of the front-end terminal; the hash value of the electronic certificate is determined after the front-end terminal hashes the electronic certificate; the signature information is determined after the front-end terminal processes the hash value of the electronic certificate, the merchant number of the front-end terminal and the terminal number according to the private key of the front-end terminal;
the block chain node determines a public key of the front-end terminal according to the merchant number and the terminal number of the front-end terminal;
and the blockchain node verifies the signature information according to the public key of the front-end terminal, and registers the hash value of the electronic certificate into a blockchain network after the verification passes and the consensus of other blockchain nodes.
5. An apparatus for uploading electronic certificates, comprising:
the communication module is used for acquiring the electronic certificate;
the uploading preprocessing module is used for carrying out hash processing on the electronic certificate and determining a hash value of the electronic certificate; determining signature information according to a private key of the front-end terminal, a merchant number, a terminal number and a hash value of the electronic certificate; uploading the merchant number and the terminal number of the front-end terminal, the hash value of the electronic certificate and the signature information to a blockchain node so that the blockchain node registers in a blockchain network after verifying the signature information;
the front-end terminal is registered in the blockchain network platform in advance, and the merchant number, the terminal number and the public key of the front-end terminal are registered to the front-end terminal on the blockchain network platform.
6. The apparatus of claim 5, wherein the upload preprocessing module is specifically configured to:
and signing the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using the private key of the front-end terminal, and determining the signature information.
7. The apparatus of claim 6, wherein the upload preprocessing module is specifically configured to:
and signing the merchant number and the terminal number of the front-end terminal and the hash value of the electronic certificate by using an elliptic curve digital signature ECDSA algorithm through the private key of the front-end terminal, and determining the signature information.
8. An apparatus for uploading electronic certificates, comprising:
the acquisition module is used for acquiring transaction information sent by the front-end terminal, wherein the transaction information comprises a hash value of the electronic certificate, a merchant number, a terminal number and signature information of the front-end terminal; the hash value of the electronic certificate is determined after the front-end terminal hashes the electronic certificate; the signature information is determined after the front-end terminal processes the hash value of the electronic certificate, the merchant number of the front-end terminal and the terminal number according to the private key of the front-end terminal;
the processing module is used for determining the public key of the front-end terminal according to the merchant number and the terminal number of the front-end terminal; and verifying the signature information according to the public key of the front-end terminal, and registering the hash value of the electronic certificate into a blockchain network after verification passes and other blockchain nodes are commonly recognized.
9. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 4.
10. A computing device, comprising:
a memory for storing program instructions;
a processor for invoking program instructions stored in said memory to perform the method according to any of claims 1-4 in accordance with the obtained program.
CN201811604746.8A 2018-12-26 2018-12-26 Method and device for uploading electronic certificate Active CN109741056B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201811604746.8A CN109741056B (en) 2018-12-26 2018-12-26 Method and device for uploading electronic certificate
PCT/CN2019/117271 WO2020134653A1 (en) 2018-12-26 2019-11-11 Method and device for uploading electronic certificate
TW108142263A TWI714359B (en) 2018-12-26 2019-11-21 Method and device for uploading electronic certificates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811604746.8A CN109741056B (en) 2018-12-26 2018-12-26 Method and device for uploading electronic certificate

Publications (2)

Publication Number Publication Date
CN109741056A CN109741056A (en) 2019-05-10
CN109741056B true CN109741056B (en) 2023-06-16

Family

ID=66361363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811604746.8A Active CN109741056B (en) 2018-12-26 2018-12-26 Method and device for uploading electronic certificate

Country Status (3)

Country Link
CN (1) CN109741056B (en)
TW (1) TWI714359B (en)
WO (1) WO2020134653A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109741056B (en) * 2018-12-26 2023-06-16 中国银联股份有限公司 Method and device for uploading electronic certificate
CN110599176B (en) * 2019-09-24 2024-05-17 腾讯科技(深圳)有限公司 Block chain-based data processing method and device, storage medium and node equipment
CN110766579B (en) * 2019-10-22 2022-08-02 深圳技术大学 Online education management verification system and method based on block chain platform
CN111355592B (en) * 2020-03-03 2022-06-10 泰华智慧产业集团股份有限公司 Ethernet intelligent contract electronic signature system and method based on block chain
CN111680324B (en) * 2020-05-28 2023-09-22 中国工商银行股份有限公司 Credential verification method, management method and issuing method for blockchain
CN112035896B (en) * 2020-07-20 2024-03-29 傲为有限公司 Electronic contract evidence-storing system based on transaction mode
CN112035893A (en) * 2020-07-20 2020-12-04 江苏傲为控股有限公司 Block chain electronic contract management system
CN112100142A (en) * 2020-08-13 2020-12-18 广州汇才创智科技有限公司 Block chain-based digital asset processing method and system
CN112787808B (en) * 2020-12-31 2023-05-02 能链物流科技有限公司 Service data processing method and device for common management account
CN112765622B (en) * 2021-01-13 2024-04-16 中国外运股份有限公司 Digital certificate management method, device, equipment and medium for electronic bill of lading
CN113468549A (en) * 2021-04-29 2021-10-01 深圳前海移联科技有限公司 Retrieval method and system for encrypted information evidence based on block chain and electronic equipment
CN113570194A (en) * 2021-06-28 2021-10-29 北京电链科技有限公司 Block chain-based power construction business data processing method and system
CN114172890B (en) * 2021-11-03 2024-02-27 阿里巴巴(中国)有限公司 File second transmission processing method and device, storage medium and electronic equipment
CN114547641B (en) * 2022-01-05 2024-04-26 浪潮工业互联网股份有限公司 Industrial data tracking method, device, equipment and medium based on block chain
CN114666353A (en) * 2022-03-16 2022-06-24 南京邮电大学 Electronic access evidence obtaining system and method based on block chain
CN114884672A (en) * 2022-04-29 2022-08-09 华控清交信息科技(北京)有限公司 Data flow network system, data flow message transmission method and device
CN115277716A (en) * 2022-06-21 2022-11-01 芯安微众(上海)微电子技术有限公司 Vehicle networking terminal supporting block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
CN107888375A (en) * 2017-11-08 2018-04-06 深圳市携网科技有限公司 A kind of electronic evidence safety system and method based on block chain technology
CN109035024A (en) * 2018-08-15 2018-12-18 杭州链汇通区块链科技有限公司 Method, system and the storage medium of electronic signature

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2154817B1 (en) * 2007-06-27 2013-09-04 GlobalSign K.K. Server certificate issuing system
CN102916811B (en) * 2012-10-18 2015-04-15 中国科学院信息工程研究所 Multielement entity identity certificate information storage method
TW201510764A (en) * 2013-09-05 2015-03-16 Trade Van Information Services Co Method and system for generating a digital signature and authenticating the same on a document
KR101666374B1 (en) * 2015-02-13 2016-10-14 크루셜텍 (주) Method, apparatus and computer program for issuing user certificate and verifying user
KR101661933B1 (en) * 2015-12-16 2016-10-05 주식회사 코인플러그 Ccertificate authentication system and method based on block chain
US20180083786A1 (en) * 2016-09-22 2018-03-22 Google Inc. Methods and systems of performing tamper-evident logging using block lattices
KR101841566B1 (en) * 2016-10-11 2018-05-04 주식회사 코인플러그 Method for issuing, using, refunding, settling and revocating electric voucher using updated status of balance database by respective blocks in blockchain, and server using the same
CN109034921A (en) * 2018-07-13 2018-12-18 江苏恒宝智能系统技术有限公司 A kind of electronic certificate management method and system based on block chain
CN108964905A (en) * 2018-07-18 2018-12-07 胡祥义 A kind of safe and efficient block chain implementation method
CN109741056B (en) * 2018-12-26 2023-06-16 中国银联股份有限公司 Method and device for uploading electronic certificate

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
CN107888375A (en) * 2017-11-08 2018-04-06 深圳市携网科技有限公司 A kind of electronic evidence safety system and method based on block chain technology
CN109035024A (en) * 2018-08-15 2018-12-18 杭州链汇通区块链科技有限公司 Method, system and the storage medium of electronic signature

Also Published As

Publication number Publication date
TWI714359B (en) 2020-12-21
TW202025661A (en) 2020-07-01
WO2020134653A1 (en) 2020-07-02
CN109741056A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109741056B (en) Method and device for uploading electronic certificate
KR102050129B1 (en) Block chain supporting multiple one-way functions used for verification of blocks
US20140006247A1 (en) System, device and method for the interaction of security information
CN108764848B (en) Electronic contract signing method and system
CN104038924B (en) Realize the method and system of Resource Exchange information processing
CN111492390A (en) Cash equivalent device for digital currency
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
CN111726226B (en) Signature system, signature method, first server and storage medium
LU102556B1 (en) Blockchain-enhanced open internet of things access architecture
CN111369338A (en) Data processing method and device based on block chain
CN111506632A (en) Data processing method and device
CN112118100B (en) Improved linkable ring signature method, verification method, device, electronic apparatus and medium
CN111325585A (en) Asset transfer method, device and computer readable storage medium
CN111092729A (en) Electronic signature and seal verification method and device
CN111311259A (en) Bill processing method, device, terminal and computer readable storage medium
CN111444493A (en) Electronic contract signing method and device, electronic equipment and readable storage medium
CN111681141B (en) File authentication method, file authentication device and terminal equipment
CN110766403A (en) Data processing device and method based on block chain and storage medium
CN109413099A (en) Mixed cloud encryption communication method, device and electronic equipment based on certificate
EP4040720A1 (en) Secure identity card using unclonable functions
CN106559433B (en) Method and system for fixing electronic evidence and user identity by using digital certificate
CN111062766B (en) Electronic invoice issuing method and device based on blockchain
CN102609842B (en) A kind of payment cipher device based on hardware signature equipment and application process thereof
CN112184216A (en) Digital currency transaction method, device, digital currency transaction system and storage medium
WO2021121030A1 (en) Resource transfer method, settlement terminal, and server node

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40005231

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant