A digital book transaction method, storage medium and device based on blockchain
By issuing smart contract certificates in digital book transactions through blockchain technology, the uniqueness and commercialization of digital books are achieved, which solves the problems of infringement of publishers' interests and consumer rights, provides traceability of transaction information and evidence of infringement, and ensures the security and legality of transactions.
Patent Information
- Application Number
- CN202510068331.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2045-01-16
AI Technical Summary
In digital book transactions, the interests of publishers are infringed, the rights of consumers are difficult to protect, and the massive amount of transaction information makes it difficult to hold those responsible for infringement accountable.
By adopting blockchain technology and issuing smart contracts to mint digital book certificates, the uniqueness and commercialization of digital books can be achieved. Transaction information is recorded on the blockchain, and the identity of consumers is verified using smart contracts and digital signatures to ensure the privacy of content access and the traceability of transaction information.
It realizes the transfer and assetization of digital book ownership, protects the interests of publishers, ensures consumers' private access to content, and provides effective evidence of infringement and means of accountability.
Smart Images

Figure CN119991106B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology and digital product transactions, and mainly constructs a blockchain-based digital book transaction method to realize the "commoditized" transaction of digital books by book. Background Art
[0002] Digital books are digital products primarily based on text. Their primary characteristics are digital storage and the reproducibility and ease of reproduction of their content, which results in a near-zero marginal production cost. Furthermore, as a digital representation of books, digital books contain knowledge. This knowledge-based nature often makes them highly valuable for both use and collection, making a rental model that simply provides online reading services often inadequate to meet consumer demand.
[0003] Currently, both buyers and sellers face significant challenges in the online sale of digital books. On the one hand, sellers, represented by authors and publishers, bear significant risks of copyright infringement and piracy. The marginal cost of digitally storing digital books approaches zero, and once pirated books are produced, they can be rapidly disseminated at zero cost. Furthermore, the infringing entities are numerous, multi-sourced, and highly concealed, and the volatility of online evidence further exacerbates the difficulty of proving the authenticity of the evidence. On the other hand, buyers, represented by consumers, do not control ownership of digital books because they do not purchase the digital books themselves during the transaction. This leads to a low sense of ownership and the constant risk of copyright infringement, such as book removal from shelves. Furthermore, this lack of ownership limits consumers' post-transaction disposal of digital books, including collection and secondary transactions. This is in light of these factors, leading to the present invention. Summary of the Invention
[0004] The purpose of the present invention is to provide a blockchain-based digital book trading method, storage medium and device to solve the problem that in the existing digital book trading process, it is difficult to commercialize digital books "by volume", which leads to infringement of publishers' interests and difficulty in protecting consumer rights. At the same time, this method also solves the problem of difficulty in holding people accountable for infringements caused by multiple trading entities and massive transaction information.
[0005] The present invention adopts the technical solution:
[0006] A digital book transaction method based on blockchain, the steps are as follows:
[0007] Step 1: Publishing houses distribute and put books on the chain
[0008] The publisher invokes the issuance smart contract on the chain to mint digital book vouchers, invokes the listing smart contract to list digital books, and displays digital book information to consumers;
[0009] Step 2: Consumers purchase digital book vouchers on the chain
[0010] First, the consumer calls the transaction smart contract on the chain to purchase the digital book. Then the digital book certificate is transferred on the chain. The publisher's back-end system monitors the transaction event and records the consumer's wallet address public key.
[0011] Step 3: Consumer Identity Authentication and Reading
[0012] First, the consumer calls the smart contract on the chain and provides a digital book certificate. Then the publisher's back-end system verifies the source of the information. After the verification is passed, the publisher's back-end system automatically calls the corresponding smart contract to record the relevant information in the blockchain. Finally, the publisher's back-end system authenticates the consumer. After the verification is passed, the corresponding consumer is allowed to enter a safe reading environment to read and use digital books.
[0013] Step 4: Preservation and tracing of digital book transaction information on the chain
[0014] During the transaction process, smart contracts are used to retain digital book transaction information on the chain, and the International Standard Book Number (ISBN) is used to trace the digital book voucher information and transaction information afterwards.
[0015] A storage medium storing at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the above-mentioned blockchain-based digital book transaction method.
[0016] A server includes a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the above-mentioned blockchain-based digital book transaction method.
[0017] Beneficial effects of the present invention: Compared with existing technologies, the present invention utilizes the verifiability and programmability of blockchain to uniquely and commercialize each digital book by issuing a unique certificate for digital books on the chain, thus realizing assetization after the transaction. Based on this method, the transfer of ownership of digital books is realized. At the same time, the specific content of the digital book is stored in the off-chain database of the publishing system. By submitting the on-chain digital certificate and identifying and verifying the source and identity of the message, consumers can access the digital book content privately, ensuring that the book content is only visible to specific users after the transaction. In addition, this transaction method also realizes the traceability of information generated during the digital book transaction and reading process based on the call of the smart contract by each participant, providing effective evidence for the prosecution and accountability after the infringement of book piracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Schematic diagram of a blockchain-based digital book transaction method provided by an embodiment of the present invention;
[0019] In the figure: 1. How publishers distribute and put books on the chain; 2. How consumers purchase digital book vouchers on the chain; 3. How consumers authenticate their identities and use them for reading.
[0020] Figure 2 It is a schematic diagram of how to obtain digital book metadata and voucher images;
[0021] Figure 3 Schematic diagram of information recording of wallet address public key in a transaction in a blockchain-based digital book transaction method provided by an example of the present invention;
[0022] Figure 4 This is a schematic diagram of the post-transaction digital book voucher verification and off-chain recording based on smart contracts in the blockchain-based digital book transaction method provided by an example of the present invention;
[0023] Figure 5 This is a schematic diagram of visitor identity authentication based on digital signatures in a blockchain-based digital book transaction method provided by an example of the present invention;
[0024] Figure 6 This is a schematic diagram of a method for retaining and tracing digital book transaction information on a blockchain in a blockchain-based digital book transaction method provided by an example of the present invention; DETAILED DESCRIPTION
[0025] To further clarify the objectives, technical solutions, and advantages of the embodiments of the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only a portion of the embodiments of the present invention, not all of them. Based on the described embodiments of the present invention, all other embodiments derived by persons of ordinary skill in the art without requiring creative effort are within the scope of protection of the present invention. Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meanings understood by persons of ordinary skill in the field to which the present invention pertains.
[0026] A reference for digital book trading method based on blockchain Figure 1 , including the publisher's method of issuing and shelving books on the chain, the consumer's method of purchasing digital book certificates on the chain, and the consumer's identity authentication and reading methods;
[0027] Step 1: The publisher issues and puts digital books on the shelf. This step is performed on the blockchain and is as follows:
[0028] S1.1: Before a digital book is released and put on the shelves, the original content file and metadata file of the digital book are stored in the publisher's off-chain system database;
[0029] The original content files of digital books are stored in the form of PDF files; the metadata files of digital books are stored in the form of JSON files, which include information such as the digital book name, author, publisher, publication time, ISBN, category, and pricing.
[0030] S1.2: When a digital book is published on-chain, the on-chain publishing smart contract triggers the Chainlink trusted oracle to send a request for the digital book metadata to the publisher's off-chain system database. The publisher's off-chain system database then sends the digital book metadata to the on-chain publishing smart contract via the Chainlink trusted oracle. For details, see Figure 2 ;
[0031] S1.3: When the digital book is issued on the chain, the chain issues a smart contract to cast the digital book certificate, and stores the image of the digital book certificate in the IPFS interstellar file system. For details, refer to Figure 2 ;
[0032] The digital book voucher data includes the digital book ISBN, voucher number, proof of ownership, address of the current voucher holder, release time, digital book metadata, voucher image, selling price, and copyright proof information.
[0033] S1.4: After the digital book voucher is issued on the chain, the publisher calls the listing smart contract, and after passing the condition verification, modifies the relevant custom mapping to realize the listing of the digital book.
[0034] Step 2: Consumers purchase digital book vouchers on the blockchain. This step is performed on the blockchain as follows: Figure 3 :
[0035] S2.1: The consumer calls the transaction smart contract on the chain, enters the purchase parameters, and triggers the transaction event;
[0036] The parameters required for purchase include digital book information and transaction information.
[0037] S2.2: The transaction smart contract performs conditional verification on the purchase parameters. If the verification passes, it proceeds to the next step; otherwise, it stops.
[0038] S2.3: The transaction smart contract changes the address of the corresponding digital book voucher holder to the consumer's wallet address, and at the same time transfers the currency equivalent to the digital book sales price from the consumer's wallet address to the publisher's wallet address;
[0039] S2.4: After the digital book voucher holder’s address is transferred, the transaction event triggered by the transaction smart contract is monitored by the publisher’s backend system;
[0040] S2.5: The publisher’s back-end system stores the consumer’s wallet address public key contained in the transaction event in the publisher’s off-chain system database.
[0041] Step 3: Consumer identity authentication and reading use, which is carried out on the blockchain and off-chain publishing system;
[0042] After purchasing digital books on the blockchain, consumers need to read and use the content. Consumer identity authentication and reading methods include: digital book certificate verification and off-chain records based on smart contracts, and visitor identity verification based on digital signatures;
[0043] In order to prove whether the wallet address has the corresponding digital book certificate on the chain, and record the verified relevant information in the off-chain database, and make further preparations for the subsequent verification steps, it is necessary to conduct digital book certificate verification based on smart contracts and off-chain record reference after the transaction. Figure 4 , the specific operations are as follows:
[0044] S3.1.1: The consumer calls the verification smart contract, which obtains their wallet address and digital book voucher ID and compares them with the status information of the wallet address in the blockchain to determine whether the address has the corresponding digital book voucher. If the comparison is consistent, the consumer proceeds to the next step; otherwise, the consumer stops.
[0045] S3.1.2: The verification smart contract obtains the access ID from the world state and increments it once, recording the access ID and transaction information as an event.
[0046] S3.1.3: The publisher’s backend system obtains the access ID, wallet address, and digital book ID from the event through monitoring, and stores the above information (i.e., access ID, wallet address, and digital book ID) in the off-chain database;
[0047] S3.1.4: The publisher’s back-end system modifies the value corresponding to the wallet address ID in the permission table to allow access.
[0048] To verify whether the source of the off-chain access request corresponds to the verified on-chain user and to enable access to the content, a visitor authentication reference based on digital signature is required. Figure 5 , the specific operations are as follows:
[0049] S3.2.1: The consumer encrypts specific information using a private key and transmits the encrypted information obtained by the public and private keys to the publisher's back-end system through a specific API interface;
[0050] S3.2.2: The publisher’s backend system queries the off-chain database to see if the public key exists. If so, it obtains the public key and decrypts the ciphertext. If the decryption is successful, it proceeds to the next step. If the public key does not exist or the decryption fails, it stops.
[0051] S3.2.3: Consumers can enter the corresponding reading environment through the public key of the wallet address on the chain.
[0052] Step 4: Preserve and trace digital book transaction information on the chain, refer to Figure 6 In order to effectively solve the current problem of difficulty in proving and holding people accountable for digital book piracy, it is necessary to record digital book transaction information during the transaction process and to trace the transaction information after the transaction is completed. This step is carried out on the blockchain and the specific operations are as follows:
[0053] S4.1: During the distribution, listing, and trading of digital books, the distribution and trading smart contracts call the storage function in the traceability smart contract and store the information in the state variables of the traceability smart contract;
[0054] S4.2: Enter the digital book ISBN in the traceability smart contract;
[0055] S4.3: The traceability smart contract queries the contract state variable based on the ISBN to obtain all digital book voucher information and transaction information under the ISBN;
[0056] S4.4: The traceability smart contract returns the query results to be displayed as direct evidence or as indirect evidence for subsequent analysis.
Claims
1. A digital book transaction method based on blockchain, characterized in that: Here are the steps: Step 1: Publishing houses distribute and put books on the chain The publisher invokes the issuance smart contract on the chain to mint digital book vouchers, invokes the listing smart contract to list digital books, and displays digital book information to consumers; Step 2: Consumers purchase digital book vouchers on the chain First, the consumer calls the transaction smart contract on the chain to purchase the digital book. Then the digital book certificate is transferred on the chain. The publisher's back-end system monitors the transaction event and records the consumer's wallet address public key. Step 3: Consumer Identity Authentication and Reading First, the consumer calls the smart contract on the chain and provides the digital book certificate. Then the publisher's back-end system verifies the source of the information. After the verification is passed, the publisher's back-end system automatically calls the corresponding smart contract to record the relevant information in the blockchain. Finally, the publisher's back-end system authenticates the consumer and allows the corresponding consumer to enter the secure reading environment to read and use the digital book. Step 3 is carried out on the blockchain and off-chain publishing system, as follows: After purchasing digital books on the blockchain, consumers need to read and use the content. Consumer identity authentication and reading methods include: digital book certificate verification based on smart contracts and off-chain records, and visitor identity verification based on digital signatures. The specific operations of post-transaction digital book voucher verification and off-chain recording based on smart contracts are as follows: S3.1.1: The consumer calls the verification smart contract, which obtains their wallet address and digital book voucher ID and compares them with the status information of the wallet address in the blockchain to determine whether the address has the corresponding digital book voucher. If the comparison is consistent, the consumer proceeds to the next step; otherwise, the consumer stops. S3.1.2: The verification smart contract obtains the access ID from the world state and increments it once, recording the access ID and transaction information as an event. S3.1.3: The publisher’s backend system obtains the access ID, wallet address, and digital book ID from the event through monitoring and stores them in the off-chain database; S3.1.4: The publisher’s backend system modifies the value corresponding to the wallet address ID in the permission table to allow access; The specific operations of visitor identity authentication based on digital signature are as follows: S3.2.1: The consumer encrypts information using a private key and transmits the encrypted information obtained by the public and private keys to the publisher's back-end system through the API interface; S3.2.2: The publisher’s backend system queries the off-chain database to see if the public key exists. If so, it obtains the public key and decrypts the ciphertext. If the decryption is successful, it proceeds to the next step. If the public key does not exist or the decryption fails, it stops. S3.2.3: Consumers can enter the corresponding reading environment through the public key of the wallet address on the chain; Step 4: Preservation and tracing of digital book transaction information on the chain During the transaction process, smart contracts are used to retain digital book transaction information on the chain, and the International Standard Book Number (ISBN) is used to trace the digital book voucher information and transaction information afterwards.
2. A blockchain-based digital book transaction method according to claim 1, characterized in that: Step 1 is performed on the blockchain and is as follows: S1.1: Before a digital book is released and put on the shelves, the original content file and metadata file of the digital book are stored in the publisher's off-chain system database; S1.2: When a digital book is published on-chain, the on-chain publishing smart contract triggers a Chainlink trusted oracle to send a request for the digital book metadata to the publisher's off-chain system database. The publisher's off-chain system database then sends the digital book metadata to the on-chain publishing smart contract via the Chainlink trusted oracle. S1.3: When the digital book is issued on the chain, the chain issues a smart contract to mint the digital book certificate, and stores the image of the digital book certificate in the IPFS interstellar file system; S1.4: After the digital book voucher is issued on the chain, the publisher calls the listing smart contract, and after passing the condition verification, modifies the relevant custom mapping to realize the listing of the digital book.
3. A blockchain-based digital book transaction method according to claim 2, characterized in that: In S1.3, the digital book voucher data includes the digital book ISBN, voucher number, ownership certificate, address of the current voucher holder, release date, digital book metadata, voucher image, selling price, and copyright certification information.
4. A blockchain-based digital book transaction method according to claim 1, characterized in that: Step 2 is performed on the blockchain as follows: S2.1: The consumer calls the transaction smart contract on the chain, enters the purchase parameters, and triggers the transaction event; S2.2: The transaction smart contract performs conditional verification on the purchase parameters. If the verification passes, it proceeds to the next step; otherwise, it stops. S2.3: The transaction smart contract changes the address of the corresponding digital book voucher holder to the consumer's wallet address, and at the same time transfers the currency equivalent to the digital book sales price from the consumer's wallet address to the publisher's wallet address; S2.4: After the digital book voucher holder’s address is transferred, the transaction event triggered by the transaction smart contract is monitored by the publisher’s backend system; S2.5: The publisher’s back-end system stores the consumer’s wallet address public key contained in the transaction event in the publisher’s off-chain system database.
5. A blockchain-based digital book transaction method according to claim 4, characterized in that: In S2.1, the parameters required for purchase include digital book information and transaction information.
6. A blockchain-based digital book transaction method according to claim 1, characterized in that: Step 4 is performed on the blockchain, and the specific operations are as follows: S4.1: During the distribution, listing, and trading of digital books, the distribution and trading smart contracts call the storage function in the traceability smart contract and store the information in the state variables of the traceability smart contract; S4.2: Enter the digital book ISBN in the traceability smart contract; S4.3: The traceability smart contract queries the contract state variable based on the ISBN to obtain all digital book voucher information and transaction information under the ISBN; S4.4: The traceability smart contract returns the query results to be displayed as direct evidence or as indirect evidence for subsequent analysis.
7. A storage medium storing at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the blockchain-based digital book transaction method according to any one of claims 1 to 6.
8. A server comprising a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the blockchain-based digital book transaction method described in any one of claims 1 to 6.