CN110598389A - Method and device for storing account book certificate based on block chain - Google Patents
Method and device for storing account book certificate based on block chain Download PDFInfo
- Publication number
- CN110598389A CN110598389A CN201910901220.4A CN201910901220A CN110598389A CN 110598389 A CN110598389 A CN 110598389A CN 201910901220 A CN201910901220 A CN 201910901220A CN 110598389 A CN110598389 A CN 110598389A
- Authority
- CN
- China
- Prior art keywords
- node
- user
- account book
- signature
- block chain
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/33—User authentication using certificates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a method and a device for storing a certificate of a account book based on a block chain, which are applied to a block chain node, wherein the method comprises the following steps: receiving a user account book uplink request of a service node, wherein the user account book uplink request is a request signed by the service node, the user account book uplink request comprises a user address and a signature certificate of a public security department node, and the service node is a node for assisting the user account book uplink; verifying the signature of the service node and the signature certificate of the public security department node; and after the verification is passed, packaging the user account book and the user address into a block so that the block chain system stores the block into a block chain after performing consensus verification on the block. The method can store the account directory information on the block chain, thereby facilitating the inquiry of the account directory information and solving the problem of account directory counterfeiting.
Description
Technical Field
The invention relates to the technical field of internet big data, in particular to a method and a device for storing a certificate of a house account book based on a block chain.
Background
Currently, the blockchain technology is a distributed stored ledger that uses technologies such as encryption algorithm and consensus mechanism. With the use of blockchain technology, more and more internet data is stored on the blockchain.
In addition, the blockchain technology has the characteristics of being not falsifiable and traceable. At present, the problem of the counterfeiting of the account book can be solved by adopting a block chain technology.
The foregoing description is merely for convenience in understanding and is not to be construed as limiting the prior art to the present application.
Disclosure of Invention
Based on the problem, the application discloses a method and a device for storing the account book certificate based on the block chain.
The application discloses a block chain-based account book evidence storing method in a first aspect, which is applied to a block chain node, and comprises the following steps:
receiving a user account book uplink request of a service node, wherein the user account book uplink request is a request signed by the service node, the user account book uplink request comprises a user address and a signature certificate of a public security department node, and the service node is a node for assisting the user account book uplink;
verifying the signature of the service node and the signature certificate of the public security department node;
and after the verification is passed, packaging the user account book and the user address into a block so that the block chain system stores the block into a block chain after performing consensus verification on the block.
In one possible embodiment, the method further comprises: receiving a query request of user equipment, wherein the query request comprises a private key signature of the user equipment and a user address, and the user equipment is authenticated by a real name;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, the user interface book information corresponding to the user address is sent to the user equipment.
In a possible embodiment, the block link node verifies the signature of the service node and the signature certificate of the public security department node; the method specifically comprises the following steps:
verifying the private key signature of the service node by using the public key of the service node;
and verifying the signature certificate of the public security department node by using the public key of the public security department node.
In one possible embodiment, the user account book includes one or more of user name, identification number, home address, ethnicity, year, month and day of birth, and issuing institution information.
In one possible embodiment, the user account book further includes bibliographic change information of the account book.
The second aspect of the present application discloses a device for storing a house account book certificate based on a block chain, which is applied to a block chain node, wherein the block chain node comprises a receiving unit and a processing unit.
The receiving unit receives a user account book uplink request of a service node, wherein the user account book uplink request is a request signed by the service node, the user account book uplink request comprises a user address and a signature certificate of a public security department node, and the service node is a node for assisting user account book uplink;
the processing unit is used for verifying the signature of the service node and the signature certificate of the public security department node;
and the processing unit packs the user account book and the user address into a block after the verification is passed, so that the block chain system stores the block into a block chain after the block chain system performs consensus verification on the block.
In a possible embodiment, the blockchain node further comprises a sending unit; the receiving unit receives an inquiry request of user equipment, wherein the inquiry request comprises a private key signature of the user equipment and a user address, and the user equipment is authenticated by a real name;
the processing unit is used for verifying the private key signature of the user equipment by using the public key of the user equipment;
and the sending unit sends the user interface book information corresponding to the user address to the user equipment after the verification is passed.
In a possible embodiment, the processing unit verifies the signature of the service node and the signature certificate of the public security department node; the method specifically comprises the following steps:
the processing unit verifies the private key signature of the service node by using the public key of the service node;
and the processing unit verifies the signature certificate of the public security department node by using the public key of the public security department node.
In one possible embodiment, the user account book includes one or more of user name, identification number, home address, ethnicity, year, month and day of birth, and issuing institution information.
In one possible embodiment, the user account book further includes bibliographic change information of the account book.
The method and the device can store the account book information on the block chain, thereby facilitating the inquiry of the account book information and solving the problem of account book counterfeiting.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for storing a certificate of a account book based on a block chain according to the present disclosure;
fig. 2 is a schematic structural diagram of a device for storing a house account book based on a block chain according to the present disclosure;
fig. 3 is a schematic structural diagram of a device for storing a certificate of a account book based on a block chain according to the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in this application are used for convenience of understanding only, and are not to be construed as sequential or limiting in any way.
For the purpose of facilitating understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
As shown in fig. 1, the account book authentication method based on the block chain is applied to a block chain node, and the method includes steps S101-S103.
S101, receiving a user account book uplink request of a service node, wherein the user account book uplink request is a request signed by the service node, the user account book uplink request comprises a user address and a signature certificate of a public security department node, and the service node is a node for assisting user account book uplink.
S102, the signature of the service node and the signature certificate of the public security department node are verified.
S103, after the verification is passed, packaging the user account book and the user address into a block, so that the block chain system stores the block into a block chain after performing consensus verification on the block.
In one example, the method further comprises: receiving a query request of user equipment, wherein the query request comprises a private key signature of the user equipment and a user address, and the user equipment is authenticated by a real name;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, the user interface book information corresponding to the user address is sent to the user equipment.
In one example, the block link node verifies the signature of the service node and the signature certificate of the public security department node; the method specifically comprises the following steps:
verifying the private key signature of the service node by using the public key of the service node;
and verifying the signature certificate of the public security department node by using the public key of the public security department node.
In one example, the user account book includes one or more of user name, identification number, home address, nationality, year, month, day of birth, and issuing institution information.
In one example, the user account book further includes bibliographic change information of the account book.
The method and the device can store the account book information on the block chain, thereby facilitating the inquiry of the account book information and solving the problem of account book counterfeiting.
As shown in fig. 2, the apparatus for verifying account book based on block chain is applied to a block chain node, where the block chain node includes a receiving unit and a processing unit.
The receiving unit receives a user account book uplink request of a service node, wherein the user account book uplink request is a request signed by the service node, the user account book uplink request comprises a user address and a signature certificate of a public security department node, and the service node is a node for assisting user account book uplink;
the processing unit is used for verifying the signature of the service node and the signature certificate of the public security department node;
and the processing unit packs the user account book and the user address into a block after the verification is passed, so that the block chain system stores the block into a block chain after the block chain system performs consensus verification on the block.
In one example, the blockchain node further comprises a transmitting unit; the receiving unit receives an inquiry request of user equipment, wherein the inquiry request comprises a private key signature of the user equipment and a user address, and the user equipment is authenticated by a real name;
the processing unit is used for verifying the private key signature of the user equipment by using the public key of the user equipment;
and the sending unit sends the user interface book information corresponding to the user address to the user equipment after the verification is passed.
In one example, the processing unit verifies a signature of the service node and a signature certificate of the public security department node; the method specifically comprises the following steps:
the processing unit verifies the private key signature of the service node by using the public key of the service node;
and the processing unit verifies the signature certificate of the public security department node by using the public key of the public security department node.
In one example, the user account book includes one or more of user name, identification number, home address, nationality, year, month, day of birth, and issuing institution information.
In one example, the user account book further includes bibliographic change information of the account book.
The method and the device can store the account book information on the block chain, thereby facilitating the inquiry of the account book information and solving the problem of account book counterfeiting.
The application further discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of the above embodiments when executing the program.
The present application also discloses a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above embodiments.
Fig. 3 shows a schematic diagram of a computer device, which may include: a processor 310, a memory 320, an input/output interface 330, a communication interface 340, and a bus 350. Wherein the processor 340, the memory 320, the input/output interface 330, and the communication interface 340 are communicatively coupled to each other within the device via a bus 350.
The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 320 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 320 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 320 and called to be executed by the processor 310.
The input/output interface 330 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 340 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 350 includes a path that transfers information between the various components of the device, such as processor 310, memory 320, input/output interface 330, and communication interface 340.
It should be noted that although the above-mentioned device only shows the processor 310, the memory 320, the input/output interface 330, the communication interface 340 and the bus 350, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the scope of the present invention should be included in the scope of the present invention.
Claims (10)
1. A user interface book evidence storing method based on a block chain is characterized in that the method is applied to a block chain node and comprises the following steps:
receiving a user account book uplink request of a service node, wherein the user account book uplink request is a request signed by the service node, the user account book uplink request comprises a user address and a signature certificate of a public security department node, and the service node is a node for assisting the user account book uplink;
verifying the signature of the service node and the signature certificate of the public security department node;
and after the verification is passed, packaging the user account book and the user address into a block so that the block chain system stores the block into a block chain after performing consensus verification on the block.
2. The method of claim 1, further comprising:
receiving a query request of user equipment, wherein the query request comprises a private key signature of the user equipment and a user address, and the user equipment is authenticated by a real name;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, the user interface book information corresponding to the user address is sent to the user equipment.
3. The method of claim 1, wherein the block link node verifies the signature of the service node and the signature certificate of the police department node; the method specifically comprises the following steps:
verifying the private key signature of the service node by using the public key of the service node;
and verifying the signature certificate of the public security department node by using the public key of the public security department node.
4. The method of claim 1, wherein the user account book includes one or more of user name, identification number, home address, ethnicity, year, month, day of birth, and issuing institution information.
5. The method of claim 1, wherein the user account book further comprises bibliographic change information for the account book.
6. The account book evidence storing device based on the block chain is characterized in that the device is applied to a block chain node, and the block chain node comprises a receiving unit and a processing unit; wherein the content of the first and second substances,
the receiving unit receives a user account book uplink request of a service node, wherein the user account book uplink request is a request signed by the service node, the user account book uplink request comprises a user address and a signature certificate of a public security department node, and the service node is a node for assisting user account book uplink;
the processing unit is used for verifying the signature of the service node and the signature certificate of the public security department node;
and the processing unit packs the user account book and the user address into a block after the verification is passed, so that the block chain system stores the block into a block chain after the block chain system performs consensus verification on the block.
7. The apparatus of claim 6, wherein the blockchain node further comprises a transmitting unit; wherein the content of the first and second substances,
the receiving unit receives an inquiry request of user equipment, wherein the inquiry request comprises a private key signature of the user equipment and a user address, and the user equipment is authenticated by a real name;
the processing unit is used for verifying the private key signature of the user equipment by using the public key of the user equipment;
and the sending unit sends the user interface book information corresponding to the user address to the user equipment after the verification is passed.
8. The apparatus of claim 6, wherein the processing unit verifies a signature of the service node and a signature certificate of the police department node; the method specifically comprises the following steps:
the processing unit verifies the private key signature of the service node by using the public key of the service node;
and the processing unit verifies the signature certificate of the public security department node by using the public key of the public security department node.
9. The apparatus of claim 6, wherein the user account book comprises one or more of a user name, an identification number, a home address, a ethnicity, a year, month, day of birth, and a certification authority.
10. The apparatus of claim 6, wherein said user's account book further comprises bibliographic change information for the account book.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910901220.4A CN110598389A (en) | 2019-09-23 | 2019-09-23 | Method and device for storing account book certificate based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910901220.4A CN110598389A (en) | 2019-09-23 | 2019-09-23 | Method and device for storing account book certificate based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110598389A true CN110598389A (en) | 2019-12-20 |
Family
ID=68862366
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910901220.4A Pending CN110598389A (en) | 2019-09-23 | 2019-09-23 | Method and device for storing account book certificate based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110598389A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111291422A (en) * | 2020-03-20 | 2020-06-16 | 南京优物链科技有限公司 | Credible image platform based on block chain technology |
CN111488348A (en) * | 2020-04-08 | 2020-08-04 | 北京瑞策科技有限公司 | Data storage method and device for service data block chain |
-
2019
- 2019-09-23 CN CN201910901220.4A patent/CN110598389A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111291422A (en) * | 2020-03-20 | 2020-06-16 | 南京优物链科技有限公司 | Credible image platform based on block chain technology |
CN111291422B (en) * | 2020-03-20 | 2021-08-06 | 南京优物链科技有限公司 | Credible image platform based on block chain technology |
CN111488348A (en) * | 2020-04-08 | 2020-08-04 | 北京瑞策科技有限公司 | Data storage method and device for service data block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110674218A (en) | Company business license tracing method and device related to block chain | |
CN109818965B (en) | Personal identity verification device and method | |
CN110380870B (en) | Block chain private key signing method and device for e-commerce platform user | |
CN110598389A (en) | Method and device for storing account book certificate based on block chain | |
CN110647768A (en) | Passport deposit method and device based on block chain | |
CN110634001A (en) | Food circulation information tracing method and device based on block chain | |
CN110599209A (en) | Wine circulation information tracing method and device based on block chain | |
CN110689358A (en) | Furniture circulation information tracing method and device based on block chain | |
CN110599208A (en) | Block chain-based academic certificate tracing method and device | |
CN111078715A (en) | Synchronous storage method and device for internet advertisement data on block chain | |
CN110634003A (en) | Medicine circulation information tracing method and device based on block chain | |
CN110545189A (en) | Block chain private key signing method and device for community platform users | |
CN110445620A (en) | The marriage certificate for being related to block chain deposits card method and device thereof | |
CN110659518A (en) | House property certificate storing method and device relating to block chain | |
CN111935138B (en) | Protection method and device for secure login and electronic equipment | |
CN110619021A (en) | Block chain-based social security card storage method and device | |
CN110602127A (en) | Identity card storage method and device relating to block chain | |
CN110611677A (en) | Block chain-based driving license tracing method and device | |
CN110634000A (en) | Tea flow information tracing method and device based on block chain | |
CN111835815A (en) | Synchronous storage method and device for internet self-media data on block chain | |
CN110688630A (en) | Book circulation information tracing method and device based on block chain | |
CN110602128A (en) | Block chain-based driving license tracing method and device | |
CN111831725A (en) | Synchronous storage method and device for internet tourism data on block chain | |
CN110545188A (en) | User block chain private key signing method and device related to self-media platform | |
CN110545177A (en) | Block chain private key signing method and device for life service platform user |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |