CN110688630A - Book circulation information tracing method and device based on block chain - Google Patents
Book circulation information tracing method and device based on block chain Download PDFInfo
- Publication number
- CN110688630A CN110688630A CN201910911613.3A CN201910911613A CN110688630A CN 110688630 A CN110688630 A CN 110688630A CN 201910911613 A CN201910911613 A CN 201910911613A CN 110688630 A CN110688630 A CN 110688630A
- Authority
- CN
- China
- Prior art keywords
- book
- information
- block chain
- block
- node
- 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
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000012795 verification Methods 0.000 claims abstract description 35
- 238000004806 packaging method and process Methods 0.000 claims abstract description 6
- 238000012545 processing Methods 0.000 claims description 19
- 239000000126 substance Substances 0.000 claims description 5
- 238000012856 packing Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/16—Program or content traceability, e.g. by watermarking
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Health & Medical Sciences (AREA)
- Entrepreneurship & Innovation (AREA)
- Accounting & Taxation (AREA)
- General Health & Medical Sciences (AREA)
- Economics (AREA)
- Bioethics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a book circulation information tracing method and device based on a block chain, which are applied to block chain nodes, and the method comprises the following steps: receiving a book publishing information uplink request sent by a service node, wherein the service node is a publisher node, and the book publishing information uplink request comprises a private key signature of the service node; verifying the private key signature of the service node by using the public key of the service node; and after the verification is passed, packaging the book publishing information into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block. The method can store the circulation information of the books into the block chain, and is convenient for a user to inquire, so that the problem of pirated books is solved.
Description
Technical Field
The invention relates to the technical field of internet big data, in particular to a book circulation information tracing method and device 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.
The block chain technology has the characteristics of non-falsification and information traceability, and solves the problem of solving the problem of pirated books by using the 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 problems, the application discloses a method and a device for tracing the book circulation information based on a block chain.
The application discloses a book circulation information tracing method based on a block chain, which is applied to a block chain node, and the method comprises the following steps:
receiving a book publishing information uplink request sent by a service node, wherein the service node is a publisher node, and the book publishing information uplink request comprises a private key signature of the service node;
verifying the private key signature of the service node by using the public key of the service node;
and after the verification is passed, packaging the book publishing information into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
In one possible embodiment, the method further comprises: receiving a book business information chaining request sent by a merchant node, wherein the book business information chaining request comprises a private key signature of the merchant node;
verifying the private key signature of the merchant node by using the merchant node public key;
and after the verification is passed, packaging the book buying and selling information into a second block, so that the second block is subjected to consensus verification by a block chain system and then stored into a block chain.
In one possible embodiment, the method further comprises: receiving a book circulation information query request sent by user equipment, wherein the book circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, sending the circulation information of the books to the user equipment, wherein the circulation information of the books comprises the book publishing information and the book buying and selling information.
In a possible implementation manner, the book circulation information query request includes information of a book, so that the block chain node queries the book circulation information according to the information of the book; wherein the content of the first and second substances,
generating a hash value of the book by the information of the book through a hash algorithm, wherein the hash value of the book is stored in a block chain; wherein the information of the book comprises one or more of a name of the book, a publisher of the book, and a publication time of the book.
In one possible embodiment, the book marketing information includes a seller of the book, a purchaser of the book, a name of the book, and a marketing date;
the book publishing information includes a name of the book, a name of a publisher, a type of the book, and a publication date.
In a possible implementation manner, the user equipment queries the book publishing information and the book selling information corresponding to the book by scanning a two-dimensional code of the book.
In one possible embodiment, the method further comprises: receiving comment information of the book sent by the user equipment; and packing the comment information of the book into a third block, so that the third block is subjected to consensus verification by a block chain system and then stored into a block chain.
The second aspect of the application discloses a book circulation information tracing device based on a block chain, wherein the device is 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 is used for receiving a book publishing information uplink request sent by a service node, wherein the service node is a publisher node, and the book publishing information uplink request comprises a private key signature of the service node;
the processing unit is used for verifying the private key signature of the service node by using the service node public key;
and the processing unit packages the book publishing information into a first block after the book publishing information passes the verification, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
In a possible implementation manner, the receiving unit receives a book sales information uplink request sent by a merchant node, where the book sales information uplink request includes a private key signature of the merchant node;
the processing unit is used for verifying the private key signature of the merchant node by using the merchant node public key;
and the processing unit packages the book buying and selling information into a second block after the book buying and selling information passes the verification, so that the block chain system stores the second block into a block chain after performing consensus verification on the second block.
In a possible implementation manner, the blockchain node further includes a sending unit, where the receiving unit receives a book flow information query request sent by a user equipment, where the book flow information query request includes a private key signature of the user equipment, and the user equipment is a registered user equipment of the blockchain system;
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 circulation information of the books to the user equipment after the verification is passed, wherein the circulation information of the books comprises the book publishing information and the book buying and selling information.
According to the method and the device, the circulation information of the books can be stored in the block chain, so that the user can conveniently inquire the circulation information, and the problem of pirated books is solved.
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 flowchart of a block chain-based book circulation information tracing method disclosed in the present application;
fig. 2 is a schematic structural diagram of a block chain-based book circulation information tracing apparatus disclosed in the present application;
fig. 3 is a schematic structural diagram of a block chain-based book circulation information tracing device disclosed in the present application.
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 book flow information tracing method based on the blockchain is applied to a blockchain node, and the method includes steps S101 to S103.
S101, receiving a book publishing information uplink request sent by a service node, wherein the service node is a publisher node, and the book publishing information uplink request comprises a private key signature of the service node.
And S102, verifying the private key signature of the service node by using the public key of the service node.
S103, after the verification is passed, the book publishing information is packaged into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
In one example, the method further comprises: receiving a book business information chaining request sent by a merchant node, wherein the book business information chaining request comprises a private key signature of the merchant node;
verifying the private key signature of the merchant node by using the merchant node public key;
and after the verification is passed, packaging the book buying and selling information into a second block, so that the second block is subjected to consensus verification by a block chain system and then stored into a block chain.
In one example, the method further comprises: receiving a book circulation information query request sent by user equipment, wherein the book circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, sending the circulation information of the books to the user equipment, wherein the circulation information of the books comprises the book publishing information and the book buying and selling information.
In one example, the book circulation information query request includes information of a book, so that the block chain node queries the book circulation information according to the information of the book; wherein the content of the first and second substances,
generating a hash value of the book by the information of the book through a hash algorithm, wherein the hash value of the book is stored in a block chain; wherein the information of the book comprises one or more of a name of the book, a publisher of the book, and a publication time of the book.
In one example, the book marketing information includes an seller of the book, a purchaser of the book, a name of the book, and a marketing date; the book publishing information includes a name of the book, a name of a publisher, a type of the book, and a publication date.
In one example, the user equipment searches the book publishing information and the book selling information corresponding to the book by scanning a two-dimensional code of the book.
In one example, the method further comprises: receiving comment information of the book sent by the user equipment; and packing the comment information of the book into a third block, so that the third block is subjected to consensus verification by a block chain system and then stored into a block chain.
According to the method and the device, the circulation information of the books can be stored in the block chain, so that the user can conveniently inquire the circulation information, and the problem of pirated books is solved.
As shown in fig. 2, the book circulation information tracing apparatus based on a block chain is a block chain node, and the block chain node includes a receiving unit and a processing unit.
The receiving unit is used for receiving a book publishing information uplink request sent by a service node, wherein the service node is a publisher node, and the book publishing information uplink request comprises a private key signature of the service node;
the processing unit is used for verifying the private key signature of the service node by using the service node public key;
and the processing unit packages the book publishing information into a first block after the book publishing information passes the verification, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
In one example, the receiving unit receives a book sales information uplink request sent by a merchant node, where the book sales information uplink request includes a private key signature of the merchant node;
the processing unit is used for verifying the private key signature of the merchant node by using the merchant node public key;
and the processing unit packages the book buying and selling information into a second block after the book buying and selling information passes the verification, so that the block chain system stores the second block into a block chain after performing consensus verification on the second block.
In an example, the blockchain node further includes a sending unit, where the receiving unit receives a book flow information query request sent by a user device, where the book flow information query request includes a private key signature of the user device, and the user device is a registered user device of the blockchain system;
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 circulation information of the books to the user equipment after the verification is passed, wherein the circulation information of the books comprises the book publishing information and the book buying and selling information.
According to the method and the device, the circulation information of the books can be stored in the block chain, so that the user can conveniently inquire the circulation information, and the problem of pirated books is solved.
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).
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. The book circulation information tracing method based on the block chain is characterized by being applied to a block chain node, and comprises the following steps:
receiving a book publishing information uplink request sent by a service node, wherein the service node is a publisher node, and the book publishing information uplink request comprises a private key signature of the service node;
verifying the private key signature of the service node by using the public key of the service node;
and after the verification is passed, packaging the book publishing information into a first block, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
2. The method of claim 1, further comprising:
receiving a book business information chaining request sent by a merchant node, wherein the book business information chaining request comprises a private key signature of the merchant node;
verifying the private key signature of the merchant node by using the merchant node public key;
and after the verification is passed, packaging the book buying and selling information into a second block, so that the second block is subjected to consensus verification by a block chain system and then stored into a block chain.
3. The method of claim 2, further comprising:
receiving a book circulation information query request sent by user equipment, wherein the book circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
verifying the private key signature of the user equipment by using the public key of the user equipment;
and after the verification is passed, sending the circulation information of the books to the user equipment, wherein the circulation information of the books comprises the book publishing information and the book buying and selling information.
4. The method according to claim 3, wherein the book circulation information query request includes information of a book, so that the block chain node queries the book circulation information according to the information of the book; wherein the content of the first and second substances,
generating a hash value of the book by the information of the book through a hash algorithm, wherein the hash value of the book is stored in a block chain; wherein the information of the book comprises one or more of a name of the book, a publisher of the book, and a publication time of the book.
5. The method of claim 2, wherein the book marketing information includes a seller of the book, a buyer of the book, a name of the book, and a marketing date;
the book publishing information includes a name of the book, a name of a publisher, a type of the book, and a publication date.
6. The method of claim 2, wherein the user equipment queries the book publishing information and the book marketing information corresponding to the book by scanning a two-dimensional code of the book.
7. The method of claim 3, further comprising:
receiving comment information of the book sent by the user equipment;
and packing the comment information of the book into a third block, so that the third block is subjected to consensus verification by a block chain system and then stored into a block chain.
8. The book circulation information tracing device based on the block chain is characterized in that the device is 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 is used for receiving a book publishing information uplink request sent by a service node, wherein the service node is a publisher node, and the book publishing information uplink request comprises a private key signature of the service node;
the processing unit is used for verifying the private key signature of the service node by using the service node public key;
and the processing unit packages the book publishing information into a first block after the book publishing information passes the verification, so that the block chain system stores the first block into a block chain after performing consensus verification on the first block.
9. The apparatus according to claim 8, wherein the receiving unit receives a book sales information uplink request sent by a merchant node, and the book sales information uplink request includes a private key signature of the merchant node;
the processing unit is used for verifying the private key signature of the merchant node by using the merchant node public key;
and the processing unit packages the book buying and selling information into a second block after the book buying and selling information passes the verification, so that the block chain system stores the second block into a block chain after performing consensus verification on the second block.
10. The apparatus of claim 9, wherein the blockchain node further comprises a transmitting unit, wherein,
the receiving unit is used for receiving a book circulation information query request sent by user equipment, wherein the book circulation information query request comprises a private key signature of the user equipment, and the user equipment is registered user equipment of the block chain system;
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 circulation information of the books to the user equipment after the verification is passed, wherein the circulation information of the books comprises the book publishing information and the book buying and selling information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910911613.3A CN110688630A (en) | 2019-09-25 | 2019-09-25 | Book circulation information tracing method and device based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910911613.3A CN110688630A (en) | 2019-09-25 | 2019-09-25 | Book circulation information tracing method and device based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110688630A true CN110688630A (en) | 2020-01-14 |
Family
ID=69110146
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910911613.3A Pending CN110688630A (en) | 2019-09-25 | 2019-09-25 | Book circulation information tracing method and device based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110688630A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610607A (en) * | 2021-08-12 | 2021-11-05 | 深圳市方直科技股份有限公司 | Block chain-based digital teaching material resource issuing method and device |
-
2019
- 2019-09-25 CN CN201910911613.3A patent/CN110688630A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610607A (en) * | 2021-08-12 | 2021-11-05 | 深圳市方直科技股份有限公司 | Block chain-based digital teaching material resource issuing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110634001A (en) | Food circulation information tracing method and device based on block chain | |
CN110689358A (en) | Furniture circulation information tracing method and device based on block chain | |
CN110599209A (en) | Wine circulation information tracing method and device based on block chain | |
CN110674218A (en) | Company business license tracing method and device related to block chain | |
CN110380870B (en) | Block chain private key signing method and device for e-commerce platform user | |
CN114020718A (en) | Processing method and device for unchangeable NFT (network File transfer) works | |
CN110634003A (en) | Medicine circulation information tracing method and device based on block chain | |
CN110659912A (en) | Cosmetic circulation information tracing method and device based on block chain | |
CN110634002A (en) | Tracing method and device for household appliance circulation information based on block chain | |
CN110688630A (en) | Book circulation information tracing method and device based on block chain | |
CN114037494A (en) | Random processing method and device for NFT (network File transfer) works | |
CN113536094A (en) | NFT-based non-physical mapping method and device | |
CN110598389A (en) | Method and device for storing account book certificate based on block chain | |
CN110634000A (en) | Tea flow information tracing method and device based on block chain | |
CN110647586A (en) | Artwork transfer 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 | |
TWI665629B (en) | Data packet sending / receiving method, device, transmission system and mobile equipment | |
CN110659518A (en) | House property certificate storing method and device relating to block chain | |
CN110633999A (en) | Clothing circulation information tracing method and device based on block chain | |
CN110351389B (en) | UpLink method and device for user community associated data | |
CN110543521A (en) | Evidence storage method and device for dining room on block chain | |
CN111831725A (en) | Synchronous storage method and device for internet tourism data on block chain | |
CN110570195A (en) | Evidence storing method and device for diamond ring on block chain | |
KR101255991B1 (en) | Method and system for managing a personal identification code of mobile contents |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |