A library account data processing method and device based on blockchain
Through blockchain technology, the borrowing card vouchers and the borrowing records are generated simultaneously, which solves the problem of users re-registration on different library platforms, and realizes the security and identity data protection of cross-institutional borrowing.
Patent Information
- Application Number
- CN202210429655.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-04-22
AI Technical Summary
In the prior art, the library management system adopts a centralized user authentication model, resulting in users needing to register repeatedly on each library platform, and user identity data is easily leaked and there is a lack of a complete authorization mechanism.
The blockchain-based library account data processing method is adopted, and cross-institutional borrowing is realized by generating book loan card vouchers and synchronizing borrowing records using the blockchain network, avoiding repeated registration and improving identity data security.
It realizes seamless borrowing of users between different library institutions, improves the security of user identity information, and avoids identity data leakage.
Smart Images

Figure CN114676461B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain, and specifically to a library account data processing method and device based on blockchain. Background Art
[0002] Currently, library management systems generally adopt a centralized user authentication model, and users need to register their personal information in different library institutions before they can borrow books.
[0003] Data circulation and sharing between library systems are difficult, forming "information islands". Users need to repeatedly register their information in each library, which results in high authentication costs. User identity data is centrally stored in various systems of the enterprise. At the same time, there is a lack of a complete user identity data authorization mechanism, which makes user identity data easy to be tampered with, stolen, and even illegally sold.
[0004] Regarding the related technology, when users borrow books from different libraries, they need to register on each library platform to use the borrowing service of the corresponding library platform, which causes the user identity data to be easily leaked. No effective solution has been proposed so far. Summary of the Invention
[0005] The main purpose of this application is to provide a blockchain-based library account data processing method and device to solve the problem in related technologies that when users borrow books, their user identity data is restricted by the library platform authorization mechanism, and they need to register on each library platform to use the borrowing service of the corresponding library platform, which makes the user identity data easily leaked.
[0006] To achieve the above-mentioned objectives, according to one aspect of the present application, a blockchain-based library account data processing method is provided. The method comprises: responding to a target account's request to borrow a target book from a target library institution, obtaining a corresponding first secret key based on a first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; generating a library card voucher for the target account to borrow or return the target book from the target library institution based on the first secret key, a second identifier, and a third identifier, wherein the library card voucher is used by the target account to borrow or return the target book from the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book from the target library institution; when the target book from the target library institution is borrowed or returned based on the library card voucher, generating borrowing record information for the target book from the target account based on the second identifier and the third identifier; and synchronizing the borrowing record information to multiple other library institutions, wherein the target library institution and the multiple other library institutions correspond to different nodes in the same blockchain.
[0007] Optionally, before generating a library card credential for the target account pair to the target book of the target library institution based on the first secret key, the second identifier and the third identifier, the method further includes: obtaining a second secret key, wherein the second secret key is used to authenticate the second identifier; performing user identity authentication on the second identifier based on the second secret key; and if the user identity authentication passes, executing the step of generating a library card credential for the target account pair to the target book of the target library institution based on the first secret key, the second identifier and the third identifier.
[0008] Optionally, generating a library card credential for the target account to the target book of the target library institution based on the first secret key, the second identifier and the third identifier includes: obtaining a corresponding library card based on the second identifier and the third identifier; obtaining an encryption key of the first secret key, wherein the encryption key is used to sign the library card; and using the encryption key to sign the library card to obtain the library card credential.
[0009] Optionally, after generating a library card credential for the target account to the target book of the target library institution based on the first secret key, the second identifier and the third identifier, the method further includes: responding to the borrowing request and verifying the library card credential; if the library card credential is verified, allowing the borrowing operation of the target library account data to the target account; if the borrowing operation is completed, responding to a return request for returning the target book, verifying the library card credential; if the library card credential is verified, allowing the return operation.
[0010] Optionally, verifying the library card credential includes: obtaining a decryption key of a first key of the library card credential, wherein the decryption key is used to verify the library card credential; and verifying the library card credential using the decryption key.
[0011] Optionally, in response to the book borrowing request, before verifying the library card credential, the method further includes: verifying the second identifier of the target account in response to the book borrowing request; if the second identifier verification is successful, determining whether the target account is a user registered with the target library institution; and if the target account is not registered with the target library institution, registering the second identifier of the target account.
[0012] Optionally, in response to a return request for returning the target book, before verifying the library card credential, the method further includes: verifying a second identifier of the target account in response to the return request; and verifying the library card credential if the second identifier verification is successful.
[0013] Optionally, before allowing the return operation when the library card credential verification is passed, the method further includes: verifying the third identifier of the target book when the library card credential verification is passed; and allowing the return operation when the third identifier verification is passed.
[0014] To achieve the above-mentioned purpose, according to another aspect of the present application, a library account data processing device based on blockchain is provided. The device includes: an acquisition module, which responds to a target account's request to borrow a target book from a target library institution and acquires a corresponding first secret key based on a first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; a first generation module, which generates a library card voucher for the target account to borrow or return the target book from the target library institution based on the first secret key, a second identifier, and a third identifier, wherein the library card voucher is used by the target account to borrow or return the target book from the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book from the target library institution; a second generation module, which generates borrowing record information of the target account for the target book based on the second identifier and the third identifier when borrowing or returning the target book from the target library institution based on the library card voucher; and a synchronization module, which synchronizes the borrowing record information to multiple other library institutions, wherein the target library institution and the multiple other library institutions correspond to different nodes in the same blockchain.
[0015] According to another aspect of the present application, a computer-readable storage medium is further provided, wherein the storage medium is used to store a program, wherein the program executes any one of the above-mentioned blockchain-based library account data processing methods.
[0016] According to another aspect of the present application, an electronic device is also provided, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned blockchain-based library account data processing methods.
[0017] Through this application, the following steps are adopted: responding to a target account's request to borrow a target book from a target library institution, obtaining a corresponding first secret key according to a first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; generating a library card voucher for the target book of the target account to the target library institution according to the first secret key, the second identifier and the third identifier, wherein the library card voucher is used for the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; in the case of borrowing and returning the target book of the target library institution according to the library card voucher, Identify and generate the target account's borrowing record information for the target book; synchronize the borrowing record information to multiple other library institutions, wherein the target library institution and multiple other library institutions correspond to different nodes in the same blockchain respectively, and use the target account through the second identifier to borrow or return the target book using the target library's library card voucher, thereby achieving the purpose of avoiding the user from having to register their identity in different library institutions before borrowing books, and achieving the technical effect of improving the security of user identity information, thereby solving the problem in the related technology that when users borrow books from different libraries, they need to register on each library platform before using the borrowing service of the corresponding library platform, and the user identity data is easily leaked. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:
[0019] Figure 1 This is a flowchart of a blockchain-based library account data processing method provided in accordance with an embodiment of the present application;
[0020] Figure 2 This is a system structure diagram of a decentralized digital identity library management system provided according to an embodiment of the present application;
[0021] Figure 3 This is the structural intention of the digital identity authentication system provided in accordance with the implementation scheme of this application;
[0022] Figure 4 It is a structural diagram of a library management system provided according to an embodiment of the present application;
[0023] Figure 5 This is a flowchart of a decentralized digital identity library management system provided according to an embodiment of the present application;
[0024] Figure 61 is a schematic diagram of a library account data processing device based on blockchain provided in accordance with an embodiment of the present application;
[0025] Figure 7 This is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0030] The present invention will be described below in conjunction with preferred implementation steps. Figure 1 This is a flowchart of a method for processing library account data based on blockchain provided in an embodiment of the present application, such as Figure 1 As shown, the method includes the following steps:
[0031] Step S101, responding to a target account's request to borrow a target book from a target library institution, obtaining a corresponding first secret key according to a first identifier of the target library institution, wherein the first identifier is used to identify the target library institution;
[0032] Step S102: Generate a library card voucher for the target account to access the target book of the target library institution based on the first secret key, the second identifier, and the third identifier. The library card voucher is used by the target account to borrow and return the target book of the target library institution. The second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution.
[0033] Step S103, when the target book of the target library institution is borrowed or returned according to the library card voucher, the borrowing record information of the target book of the target account is generated according to the second identifier and the third identifier;
[0034] Step S104: Synchronize the borrowing record information to multiple other library institutions, where the target library institution and the multiple other library institutions correspond to different nodes in the same blockchain.
[0035] Through the above steps, in response to the target account's request to borrow the target book of the target library institution, the corresponding first secret key is obtained according to the first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; based on the first secret key, the second identifier and the third identifier, a library card voucher for the target book of the target library institution is generated, wherein the library card voucher is used by the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; in the case of borrowing and returning the target book of the target library institution according to the library card voucher, a second identifier and the third identifier are generated. The target account has borrowing record information of the target book; the borrowing record information is synchronized to multiple other library institutions, wherein the target library institution and multiple other library institutions correspond to different nodes in the same blockchain respectively, and the target account uses the target library's library card voucher through the second identifier to borrow or return the target book, thereby achieving the purpose of avoiding the user from having to register their identity in different library institutions before borrowing books, and achieving the technical effect of improving the security of user identity information. Furthermore, through this application, the problem in the related technology that when users borrow books from different libraries, they need to register on each library platform before using the borrowing service of the corresponding library platform, and the user identity data is easily leaked is solved.
[0036] The above-mentioned first identifier can be a decentralized digital identity identifier of the blockchain, which is used to identify the target library institution in the blockchain. The blockchain may include multiple nodes, and the multiple nodes may correspond to multiple library institutions including the target library institution. Each library institution in the blockchain may correspond one-to-one to a node in the blockchain. When a target account sends a borrowing request for a target book of the target library institution, the target account can be issued a library card certificate through the target library institution with the first identifier, and the target account can use the library card certificate to borrow books and return books.
[0037] In order to avoid the situation in the existing technology that the target account needs to register information in different library institutions when borrowing books from different library institutions, frequent registration, and the easy leakage of account identity information, the above-mentioned target account can register the above-mentioned second identification once in the system, wherein the above-mentioned second identification can be used by the user to identify the target account, and the above-mentioned target account can use the above-mentioned second identification to borrow and return the target book in the target library. The above-mentioned target account can also use the above-mentioned second identification to borrow and return books in other library institutions in the blockchain network where the target library is located without the need to register again.
[0038] In order to prevent illegal users from borrowing books from the target library, the target library can verify the legitimacy of the second identifier of the target account, and issue a library card voucher to the target account if the verification is passed. In order to ensure the security of borrowing and returning books and avoid counterfeiting of borrowing and returning books, when the target library borrows the target book from the target account and issues a library card to the target account, the library card voucher can be encrypted and issued by the encryption key of the first secret key. During the borrowing or returning process, the legitimacy of the library card voucher can be verified by the decryption key of the first secret key. If the legitimacy of the book card voucher is verified, the target book can also be verified. The target book can be verified through the third identifier of the target book, wherein the above-mentioned third identifier can be used to identify the target book. All books of library institutions in the blockchain can have a third identifier that is different from other books. It should be noted that when the target account borrows books from the target library through the second identity identifier, the target library can dynamically issue a library card voucher, that is, when the target account borrows different books from the target library, it can issue corresponding library card vouchers.
[0039] To facilitate library institutions to analyze book inventory and book borrowing data, the above-mentioned target account can share the borrowing or return records to the blockchain network where the target library institution is located through the blockchain's smart contract after borrowing or returning the target books from the target library. Other libraries corresponding to other nodes in the blockchain network can share the borrowing or return records.
[0040] The target account uses the second identifier and the library card voucher of the target library to borrow or return the target book, thereby avoiding the need for users to register their identities in different library institutions before borrowing books, and achieving the technical effect of improving the security of user identity information. Furthermore, through this application, the problem in the related technology that when users borrow books from different libraries, they need to register on each library platform before using the borrowing service of the corresponding library platform, and the user identity data is easily leaked is solved.
[0041] Optionally, before generating a library card voucher for the target book of the target library institution for the target account based on the first secret key, the second identifier and the third identifier, the method further includes: obtaining a second secret key, wherein the second secret key is used to authenticate the second identifier; performing user identity authentication on the second identifier based on the second secret key; and if the user identity authentication passes, executing the step of generating a library card voucher for the target book of the target library institution for the target account based on the first secret key, the second identifier and the third identifier.
[0042] Before generating a library card voucher for the target book of the target library institution for the target account based on the first secret key, the second identifier and the third identifier, the target account can also be authenticated. The second secret key can be obtained and the second identifier of the target account can be authenticated using the second secret key. The above-mentioned second secret key can be generated by an asymmetric encryption algorithm. The above-mentioned target library institution can use the public key of the second secret key to encrypt to obtain an encrypted ciphertext, and the user uses the private key of the second secret key to decrypt to obtain a decrypted plaintext. By verifying whether the above-mentioned encrypted ciphertext and decrypted plaintext are the same, if they are the same, the user identity authentication is passed, and the step of generating a library card voucher for the target book of the target library institution for the target account based on the first secret key, the second identifier and the third identifier is executed.
[0043] For example, the secret key generation module M21 adopts the asymmetric encryption algorithm RSA algorithm, which is mainly divided into three steps: step 1: randomly select two large prime numbers p and q, and p≠q, and calculate n=pq; step 2: calculate r=(p-1)(q-1); step 3: find a number e that is coprime with r as the public key exponent, and 1<e<r, and the public key is (n,e); step 4: calculate the private key d, so that d satisfies (d*e)modr=1, that is, (d*e)-1 can be divided by R, and the private key is (n,d).
[0044] The digital identity authentication system verifies the user's identity through the following steps: Step 1: The DID resolver parses the user's DID to obtain the <base-did-document> and the user's public key. Step 2: The user's public key, obtained from the library in Step 1, encrypts a random string "nonce" to obtain a ciphertext string "enctext". Step 3: The user decrypts "enctext" using their private key to obtain a plaintext string "dectext". Step 4: The user sends the plaintext string "dectext" obtained in Step 3 to the digital identity authentication system for verification. Step 5: The digital identity authentication system verifies whether the nonce and dectext are the same. If they are, the user's identity is verified.
[0045] By verifying the identity of the target account, a library card voucher is issued only when the verification is passed. This achieves the purpose of ensuring the legality of the target account identity when borrowing books even if the target account is not registered in the target library, thereby achieving the technical effect of improving the security of the target account.
[0046] Optionally, generating a library card certificate for a target account to a target book of a target library institution based on the first secret key, the second identifier and the third identifier includes: obtaining a corresponding library card based on the second identifier and the third identifier; obtaining an encryption key of the first secret key, wherein the encryption key is used to sign the library card; and using the encryption key to sign the library card to obtain a library card certificate.
[0047] A library card for borrowing target books from a target library institution is obtained according to the second identifier. The library card carries at least the first identifier of the target library institution and the second identifier of the target account. The target book is identified by the third identifier. To avoid counterfeiting during the borrowing and returning process, the library card can be encrypted according to the encryption key of the first secret key of the target library institution. After encrypting the library card, the library card certificate can be obtained. It should be noted that when the target account borrows books from the target library through the second identity identifier, the target library can dynamically issue a library card certificate, that is, when the target account borrows different books from the target library, a corresponding library card certificate can be issued.
[0048] Optionally, after generating a library card credential for a target account to access a target book of a target library institution based on the first secret key, the second identifier, and the third identifier, the method further includes: responding to a borrowing request and verifying the library card credential; if the library card credential verification passes, allowing a borrowing operation to provide the target library account data to the target account; if the borrowing operation is completed, responding to a return request for returning the target book and verifying the library card credential; if the library card credential verification passes, allowing the return operation.
[0049] After generating a library card voucher for the target book of the target library institution for the target account, in order to improve the security of borrowing or returning the target book, the library card voucher can also be verified. If the library card voucher verification is passed, the borrowing operation of borrowing the target book to the target account can be allowed. In order to avoid forgery when returning the book, the above-mentioned target account also needs to verify the library card voucher when returning the target book. Only if the library card voucher verification is passed can the return operation be allowed.
[0050] When the target account borrows or returns books, the library card credential is verified, which ensures the security of book borrowing and returning, avoids counterfeiting, and achieves the technical effect of improving the security of library book management.
[0051] Optionally, verifying the library card credential includes: obtaining a decryption key of a first key of the library card credential, wherein the decryption key is used to verify the library card credential; and verifying the library card credential using the decryption key.
[0052] When the target account uses a library card voucher to borrow or return a target book, the library card voucher can be verified by obtaining the decryption key of the first key of the library card voucher, such as the public key of the first key. If the library card voucher passes the verification, the corresponding borrowing or returning operation can be performed. It should be noted that if the decryption key is the public key of the first key, the encryption key used to generate the library card voucher can be the private key of the first key.
[0053] Optionally, before responding to a book borrowing request and verifying the library card credential, the method further includes: responding to the book borrowing request and verifying the second identifier of the target account; if the second identifier verification is passed, determining whether the target account is a user registered with the target library institution; if the target account is not registered with the target library institution, registering the second identifier of the target account.
[0054] When the target account borrows the target book, before verifying the library card credential, in order to ensure the legitimacy of the target account's identity, the target account's second identification can also be verified. If the second identification verification is passed, it can be determined whether the target account is a user registered in the target library institution; in order to facilitate the target library institution to timely understand the user situation of the library institution itself, the target account's second identification will be registered if the target account is not registered in the target library institution.
[0055] Optionally, in response to a return request for returning the target book, before verifying the library card credential, the method further includes: verifying the second identifier of the target account in response to the return request; and verifying the library card credential if the second identifier verification passes.
[0056] Optionally, before allowing the return operation when the library card credential verification is passed, the method further includes: verifying the third identifier of the target book when the library card credential verification is passed; and allowing the return operation when the third identifier verification is passed.
[0057] In order to avoid forgery when returning books, if the library card credential verification is passed, the third identifier of the target book can also be verified. The verification can be performed by verifying whether the third identifier is an identifier registered in the system. If the third identifier verification is passed, the return operation is allowed.
[0058] The library account data processing method based on blockchain provided in the embodiment of the present application responds to the target account's request for borrowing a target book of a target library institution, obtains the corresponding first secret key according to the first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; generates a library card voucher for the target book of the target library institution according to the first secret key, the second identifier and the third identifier, wherein the library card voucher is used by the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; in the case of borrowing and returning the target book of the target library institution according to the library card voucher, the second identifier and the third identifier are ... book of the target library institution; in the case of borrowing and returning the target book of the target library institution according to the library card voucher, the second identifier and the third identifier are used to identify the target book of the target library institution; in the case of borrowing The third identifier generates the target account's borrowing record information for the target book; the borrowing record information is synchronized to multiple other library institutions, wherein the target library institution and multiple other library institutions correspond to different nodes in the same blockchain respectively. The target account uses the target library's library card voucher through the second identifier to borrow or return the target book, thereby achieving the purpose of avoiding the user from having to register their identity in different library institutions before borrowing books, and achieving the technical effect of improving the security of user identity information. Furthermore, through this application, the problem in the related technology that when users process library account data in different libraries, they need to register on each library platform before using the borrowing service of the corresponding library platform, and the user identity data is easily leaked is solved.
[0059] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0060] It should be noted that the present application also provides an optional implementation, which is described in detail below.
[0061] This implementation provides a library management system and method based on decentralized digital identity. By integrating blockchain and digital identity technologies, it reduces trust costs between libraries, breaks down authentication barriers between institutions, and allows users to borrow books across institutions using their digital identities. Furthermore, based on digital identity technology, books are assigned unique identities within the system, eliminating confusion in library management when users borrow books across institutions.
[0062] Figure 2 This is a system structure diagram of a decentralized digital identity library management system provided according to the implementation method of this application, such as Figure 2 As shown, it includes a library node 1, a digital identity authentication system 2, and a book management system 3.
[0063] Library node 1 is the digital identity blockchain network node of the library institution. Each institution that adopts a decentralized digital identity authentication system can have a blockchain node, and the institution's digital identity authentication system and library management system interact with the blockchain node.
[0064] The digital identity authentication system 2 is a core system responsible for operations such as generating digital identity information, digital identity signatures, and signature verification.
[0065] The library management system 3 mentioned above is a management system for library institutions, which realizes cross-institutional user information authentication and book digital identity information entry by accessing the digital identity authentication system.
[0066] Figure 3 This is the structural intention of the digital identity authentication system provided in accordance with the implementation scheme of this application, such as Figure 3 As shown, it includes a registration module M2, an authority control module M3, a certificate issuance module M4, and a certificate verification module M5.
[0067] The above-mentioned registration module M2 is mainly used for user digital identity (i.e. registering the above-mentioned second identifier) and library institution registration digital identity (i.e. registering the above-mentioned first identifier) and book registration digital identity information (i.e. registering the third identifier), and includes two parts: a secret key generation module M21 and a DID (Decentralized Identity) generation module M22.
[0068] Step 1: Randomly select two large prime numbers p and q, with p≠q, and calculate n=pq; Step 2: Calculate r=(p-1)(q-1); Step 3: Find a number e that is coprime with r as the public key exponent, and 1<e<r, and the public key is (n,e); Step 4: Calculate the private key exponent d, so that d satisfies (d*e)modr=1, that is, (d*e)-1 is divisible by r, and the private key is (n,d).
[0069] The DID generation module M22 mentioned above, the digital identity authentication system generates a decentralized DID for the user through the DID SDK (a digital identity generation tool). The DID format is:
[0070] did:username:<method-specific-id>
[0071] Where username is the user name, and <method-specific-id> is the user's public key calculated by multiple hashes:
[0072] method-specific-id=base58(ripemd160(sha256(<base-did-document>)) wherein <base-did-document> is a JSON format document text that defines the user's public key information.
[0073] The digital identity authentication system verifies the user's identity through the following steps: Step 1: The DID resolver parses the user's DID to obtain the base-did-document and the user's public key. Step 2: The user's public key obtained in Step 1 encrypts a random string, "nonce," to produce a ciphertext string, "enctext." Step 3: The user decrypts "enctext" using their private key to produce a plaintext string, "dectext." Step 4: The user sends the plaintext string, "dectext," obtained in Step 3, to the digital identity authentication system for verification. Step 5: The digital identity authentication system verifies that the nonce and dectext match. If they do, the user's identity is verified.
[0074] The authority control module M3 is used to verify the legitimacy of users and manage user rights.
[0075] The certificate issuing module M4 uses the institution's private key (i.e., the encryption key of the above-mentioned first key) to issue the institution's certificate according to the certificate module.
[0076] The credential verification module M5 verifies the legitimacy of the credential using the signature authority's public key (i.e., the decryption key of the first key) according to the credential signature information.
[0077] Figure 4 is a structural diagram of a library management system provided according to the implementation mode of this application; Figure 4 As shown, the structure diagram of the library management system 3 includes a digital identity authentication access module M31, a user management module M32, a book management module M33, a key storage module M34, a library card issuance module M35, a library card verification module M36 and a blockchain smart contract calling module M37.
[0078] The digital identity authentication access module M31 is mainly used to access the digital identity authentication system and issue the library institution's public and private key pairs.
[0079] The user management module M32 is used for library users to register digital identities DID (ie the first identifier mentioned above) and perform user management functions.
[0080] The book management module M33 is used for book registration digital identity DID (also known as the third identifier) and book inventory management and borrowing management.
[0081] The secret key storage module M34 is used to store the library institution's private key and issue library cards using the private key.
[0082] Library card issuing module M35: When a user applies for a library card, the library generates a library card certificate through the certificate issuing module M4 of the digital identity authentication system 2.
[0083] The library card verification module M36 verifies the legitimacy of the user's library card credential through the credential verification module M5 of the digital identity authentication system 2 when the user borrows a book.
[0084] The blockchain smart contract calling module is used to register the user's book borrowing and returning information on the chain.
[0085] Figure 5 This is a flowchart of a decentralized digital identity library management system provided according to the implementation of this application; Figure 5 As shown in the figure, a flowchart of a library management system based on decentralized digital identity is shown in the figure. The process is as follows:
[0086] Step T101: The library management system 3 accesses the digital identity authentication system, registers the institution information, and obtains the institution private key.
[0087] Step T102: the library management system 3 registers the book digital identity DID (ie the third identifier mentioned above) through the book management module M33.
[0088] Step T103: the library management system 3 registers the user digital identity DID (ie the above-mentioned second digital identifier) through the user management module M32.
[0089] Step T104: When a user needs to borrow a book, he needs to apply for a library card certificate from the library management system 3.
[0090] Step T105: When a user applies for a library card voucher, the user management module M32 of the library management system 3 first calls the authority control module M3 of the digital identity authentication system 2 to verify the legitimacy of the user. Then, the library card issuance module M35 of the library management system 3 calls the voucher issuance module M4 of the digital identity authentication system 2 to issue a library card voucher.
[0091] Step T106: The user needs to present the library card to borrow books.
[0092] Step T107: When a user presents a library card to borrow books, the user management module M32 of the library management system 3 calls the authority control module M3 of the digital identity authentication system 2 to verify the legitimacy of the user.
[0093] Step T108: After the user's digital identity is verified to be legitimate, the user management module M32 of the library management system 3 will check whether the user belongs to the institution's users. If not, the user information will be entered into the system.
[0094] Step T109: the library card verification module M36 of the library management system 3 calls the credential verification module M5 of the digital identity authentication system 2 to verify the legitimacy of the user's library card credential.
[0095] Step T110: After the user's library card credential is successfully verified, the blockchain smart contract calling module M37 of the library management system 3 saves the user's borrowing record on the chain and shares it with other library institutions.
[0096] Step T111: When a user presents a library card voucher to return a book, the user management module M32 of the library management system 3 first calls the authority control module M3 of the digital identity authentication system 2 to verify the legitimacy of the user, and then the library card verification module M35 of the library management system 3 calls the voucher verification module M5 of the digital identity authentication system 2 to verify the library card voucher.
[0097] Step T112: Verify the digital identity information of the book returned by the user (i.e., verify the third identifier of the target book) to prevent the user from falsifying the returned book.
[0098] Step T113: After the user successfully returns the book, the blockchain smart contract calling module M37 of the library management system 3 saves the user's book return record on the chain and shares it with other library institutions.
[0099] This implementation method breaks down the information barriers between library institutions by introducing blockchain technology and decentralized digital identity authentication technology, enabling users to borrow books across institutions. At the same time, digital identity technology is used to assign DIDs to books, which can not only be used to prevent book counterfeiting, but also avoid the chaos in book management caused by cross-institutional borrowing.
[0100] The key to this implementation lies in (1) data sharing: leveraging the distributed ledger characteristics of blockchain, it facilitates library institutions to share book information, providing users with information such as book inventory and the institution to which the book belongs, effectively improving the user's borrowing experience; (2) cross-institutional authentication: users only need to register a digital identity once to borrow books across institutions. Decentralized digital identity authentication can ensure the legitimacy of user information and reduce the direct trust cost of library institutions. (3) Privacy and security protection: decentralized digital identity authentication based on blockchain effectively protects user privacy and prevents user information leakage.
[0101] The present application also provides a blockchain-based library account data processing device. It should be noted that the blockchain-based library account data processing device of the present application can be used to execute the blockchain-based library account data processing method provided in the present application. The following describes the blockchain-based library account data processing device provided in the present application.
[0102] Figure 6 This is a schematic diagram of a blockchain-based library account data processing device according to an embodiment of the present application. As shown in FIG6 , the device includes an acquisition module 60 , a first generation module 62 , a second generation module 64 , and a synchronization module 66 . This device is described in detail below.
[0103] An acquisition module 60 responds to a target account's request to borrow a target book from a target library institution and, based on a first identifier of the target library institution, obtains a corresponding first key, wherein the first identifier is used to identify the target library institution. A first generation module 62 is connected to the acquisition module 60 and generates a library card voucher for the target account to borrow or return the target book from the target library institution based on the first key, the second identifier, and the third identifier. The library card voucher is used by the target account to borrow or return the target book from the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book from the target library institution. A second generation module 64 is connected to the first generation module 62 and, when borrowing or returning the target book from the target library institution based on the library card voucher, generates borrowing record information for the target book from the target account based on the second identifier and the third identifier. A synchronization module 66 is connected to the second generation module 64 and synchronizes the borrowing record information to multiple other library institutions, wherein the target library institution and the multiple other library institutions correspond to different nodes in the same blockchain.
[0104] The library account data processing device based on blockchain provided by the embodiment of the present application, the acquisition module 60 responds to the target account's request for borrowing the target book of the target library institution, and obtains the corresponding first secret key according to the first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; the first generation module 62 generates a library card voucher for the target book of the target account to the target library institution according to the first secret key, the second identifier and the third identifier, wherein the library card voucher is used for the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; the second generation module 64 generates a library card voucher for borrowing and returning the target book of the target library institution according to the library card voucher. In this case, according to the second identifier and the third identifier, the borrowing record information of the target account for the target book is generated; the synchronization module 66 synchronizes the borrowing record information to multiple other library institutions, wherein the target library institution and multiple other library institutions respectively correspond to different nodes in the same blockchain, and the target account uses the target library's library card voucher to borrow or return the target book through the second identifier, thereby achieving the purpose of avoiding the user from having to register their identity in different library institutions before borrowing books, and achieving the technical effect of improving the security of user identity information. Furthermore, through this application, the problem in the related technology that when users borrow books from different libraries, they need to register on each library platform before using the borrowing service of the corresponding library platform, and the user identity data is easily leaked is solved.
[0105] Optionally, before generating a library card voucher for the target book of the target library institution for the target account based on the first secret key, the second identifier and the third identifier, the acquisition module also includes: obtaining the second secret key, wherein the second secret key is used to authenticate the second identifier; performing user identity authentication on the second identifier based on the second secret key; and if the user identity authentication passes, executing the step of generating a library card voucher for the target book of the target library institution for the target account based on the first secret key, the second identifier and the third identifier.
[0106] Optionally, the first generation module includes: obtaining a corresponding library card according to the second identifier and the third identifier; obtaining an encryption key of the first key, wherein the encryption key is used to sign the library card; using the encryption key to sign the library card to obtain a library card certificate.
[0107] Optionally, after generating a library card credential for a target account to a target book of a target library institution based on the first secret key, the second identifier, and the third identifier, the acquisition module further includes: a first verification unit, responding to a borrowing request to verify the library card credential; a first processing unit, allowing a borrowing operation of the target library account data to the target account if the library card credential verification passes; a second verification unit, responding to a return request for a return operation of the target book if the borrowing operation is completed, verifying the library card credential; and a second processing unit, allowing a return operation if the library card credential verification passes.
[0108] Optionally, verifying the library card credential includes: obtaining a decryption key of a first key of the library card credential, wherein the decryption key is used to verify the library card credential; and verifying the library card credential using the decryption key.
[0109] Optionally, before responding to a book borrowing request and verifying the library card credential, the method further includes: responding to the book borrowing request and verifying the second identifier of the target account; if the second identifier verification is passed, determining whether the target account is a user registered with the target library institution; if the target account is not registered with the target library institution, registering the second identifier of the target account.
[0110] Optionally, in response to a return request for returning a target book, before verifying the library card credential, the method further includes: verifying the second identifier of the target account in response to the return request; and verifying the library card credential if the second identifier verification passes.
[0111] Optionally, before allowing the return operation when the library card credential verification is passed, the method further includes: verifying the third identifier of the target book when the library card credential verification is passed; and allowing the return operation when the third identifier verification is passed.
[0112] The blockchain-based library account data processing device includes a processor and a memory. The above-mentioned acquisition module 60, first generation module 62, second generation module 64, synchronization module 66, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0113] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured. By adjusting kernel parameters, this solves the problem in related technologies where users need to register with each library platform to use the borrowing service, which can easily leak user identity data.
[0114] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0115] An embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the blockchain-based library account data processing method.
[0116] An embodiment of the present invention provides a processor, which is used to run a program, wherein the blockchain-based library account data processing method is executed when the program is running.
[0117] Figure 7 is a schematic diagram of an electronic device provided according to an embodiment of the present application, such as Figure 7 As shown, an embodiment of the present application provides an electronic device 70, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: responding to a target account's request to borrow a target book from a target library institution, obtaining a corresponding first secret key based on a first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; generating a library card voucher for the target book of the target account to the target library institution based on the first secret key, the second identifier, and the third identifier, wherein the library card voucher is used by the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; in the case of borrowing and returning the target book of the target library institution based on the library card voucher, generating borrowing record information of the target account for the target book based on the second identifier and the third identifier; synchronizing the borrowing record information to multiple other library institutions, wherein the target library institution and the multiple other library institutions respectively correspond to different nodes in the same blockchain.
[0118] Optionally, before generating a library card credential for the target account to the target book of the target library institution based on the first secret key, the second identifier and the third identifier, the method further includes: obtaining a second secret key, wherein the second secret key is used to authenticate the second identifier; performing user identity authentication on the second identifier based on the second secret key; and if the user identity authentication passes, executing the step of generating a library card credential for the target account to the target book of the target library institution based on the first secret key, the second identifier and the third identifier.
[0119] Optionally, generating a library card certificate for a target account to a target book of a target library institution based on the first secret key, the second identifier and the third identifier includes: obtaining a corresponding library card based on the second identifier and the third identifier; obtaining an encryption key of the first secret key, wherein the encryption key is used to sign the library card; and using the encryption key to sign the library card to obtain a library card certificate.
[0120] Optionally, after generating a library card credential for a target account to access a target book of a target library institution based on the first secret key, the second identifier, and the third identifier, the method further includes: responding to a borrowing request and verifying the library card credential; if the library card credential verification passes, allowing a borrowing operation to provide the target library account data to the target account; if the borrowing operation is completed, responding to a return request for returning the target book and verifying the library card credential; if the library card credential verification passes, allowing the return operation.
[0121] Optionally, verifying the library card credential includes: obtaining a decryption key of a first key of the library card credential, wherein the decryption key is used to verify the library card credential; and verifying the library card credential using the decryption key.
[0122] Optionally, before responding to a book borrowing request and verifying the library card credential, the method further includes: responding to the book borrowing request and verifying the second identifier of the target account; if the second identifier verification is passed, determining whether the target account is a user registered with the target library institution; if the target account is not registered with the target library institution, registering the second identifier of the target account.
[0123] Optionally, in response to a return request for returning the target book, before verifying the library card credential, the method further includes: verifying the second identifier of the target account in response to the return request; and verifying the library card credential if the second identifier verification passes.
[0124] Optionally, before allowing the return operation when the library card credential verification is passed, the method further includes: verifying the third identifier of the target book when the library card credential verification is passed; and allowing the return operation when the third identifier verification is passed.
[0125] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0126] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program initialized with the following method steps: responding to a target account's request to borrow a target book from a target library institution, obtaining a corresponding first secret key based on a first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; generating a library card voucher for the target book of the target account to the target library institution based on the first secret key, the second identifier, and the third identifier, wherein the library card voucher is used by the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; when the target book of the target library institution is borrowed and returned based on the library card voucher, generating borrowing record information of the target account for the target book based on the second identifier and the third identifier; synchronizing the borrowing record information to multiple other library institutions, wherein the target library institution and the multiple other library institutions respectively correspond to different nodes in the same blockchain.
[0127] Optionally, before generating a library card credential for the target account to the target book of the target library institution based on the first secret key, the second identifier and the third identifier, the method further includes: obtaining a second secret key, wherein the second secret key is used to authenticate the second identifier; performing user identity authentication on the second identifier based on the second secret key; and if the user identity authentication passes, executing the step of generating a library card credential for the target account to the target book of the target library institution based on the first secret key, the second identifier and the third identifier.
[0128] Optionally, generating a library card certificate for a target account to a target book of a target library institution based on the first secret key, the second identifier and the third identifier includes: obtaining a corresponding library card based on the second identifier and the third identifier; obtaining an encryption key of the first secret key, wherein the encryption key is used to sign the library card; and using the encryption key to sign the library card to obtain a library card certificate.
[0129] Optionally, after generating a library card credential for a target account to access a target book of a target library institution based on the first secret key, the second identifier, and the third identifier, the method further includes: responding to a borrowing request and verifying the library card credential; if the library card credential verification passes, allowing a borrowing operation to provide the target library account data to the target account; if the borrowing operation is completed, responding to a return request for returning the target book and verifying the library card credential; if the library card credential verification passes, allowing the return operation.
[0130] Optionally, verifying the library card credential includes: obtaining a decryption key of a first key of the library card credential, wherein the decryption key is used to verify the library card credential; and verifying the library card credential using the decryption key.
[0131] Optionally, before responding to a book borrowing request and verifying the library card credential, the method further includes: responding to the book borrowing request and verifying the second identifier of the target account; if the second identifier verification is passed, determining whether the target account is a user registered with the target library institution; if the target account is not registered with the target library institution, registering the second identifier of the target account.
[0132] Optionally, in response to a return request for returning the target book, before verifying the library card credential, the method further includes: verifying the second identifier of the target account in response to the return request; and verifying the library card credential if the second identifier verification passes.
[0133] Optionally, before allowing the return operation when the library card credential verification is passed, the method further includes: verifying the third identifier of the target book when the library card credential verification is passed; and allowing the return operation when the third identifier verification is passed.
[0134] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0135] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0138] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0139] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0140] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0141] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0142] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0143] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A library account data processing method based on blockchain, characterized in that: include: In response to a borrowing request from a target account for a target book from a target library institution, obtaining a corresponding first secret key according to a first identifier of the target library institution, wherein the first identifier is used to identify the target library institution; Generate a library card voucher for the target book of the target library institution for the target account based on the first key, the second identifier, and the third identifier, wherein the library card voucher is used by the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; before generating the library card voucher for the target book of the target library institution for the target account based on the first key, the second identifier, and the third identifier, obtain a second key, wherein the second key is used to authenticate the second identifier; perform user authentication on the second identifier based on the second key; if the user authentication passes, perform the step of generating a library card voucher for the target book of the target library institution for the target account based on the first key, the second identifier, and the third identifier; wherein the corresponding library card is obtained based on the second identifier and the third identifier; obtain an encryption key of the first key, wherein the encryption key is used to sign the library card; use the encryption key to sign the library card to obtain the library card voucher; When a target book of the target library institution is borrowed or returned according to the library card voucher, generating borrowing record information of the target book of the target account according to the second identifier and the third identifier; Synchronizing the borrowing record information to multiple other library institutions, wherein the target library institution and the multiple other library institutions correspond to different nodes in the same blockchain; Wherein, the second secret key is generated by an asymmetric encryption algorithm; In which, in response to the book borrowing request, the second identifier of the target account is verified; if the second identifier verification is passed, it is determined whether the target account is a user registered in the target library institution; if the target account is not registered in the target library institution, the second identifier of the target account is registered.
2. The method according to claim 1, characterized in that After generating a library card voucher for the target account to access the target book of the target library institution based on the first secret key, the second identifier, and the third identifier, the method further includes: In response to the library borrowing request, verifying the library card credential; In the case where the library card credential is verified, allowing the target library account data to be borrowed to the target account; When the borrowing operation is completed, responding to a return request for returning the target book, verifying the library card credential; If the library card credential is verified, the return operation is allowed.
3. The method according to claim 2, characterized in that Verifying the library card credential includes: Obtaining a decryption key of a first key of the library card credential, wherein the decryption key is used to verify the library card credential; The library card credential is verified using the decryption key.
4. The method according to claim 2, characterized in that In response to a return request for returning the target book, before verifying the library card credential, the method further includes: In response to the return request, verifying the second identifier of the target account; If the second identification is verified successfully, the library card credential is verified.
5. The method according to claim 2, characterized in that If the library card credential is verified successfully, before allowing the return operation, the method further includes: If the library card credential is verified, verifying the third identifier of the target book; If the third identifier is verified successfully, the return operation is allowed.
6. A library account data processing device based on blockchain, characterized in that: include: an acquisition module, responding to a borrowing request of a target account for a target book of a target library institution, and acquiring a corresponding first secret key according to a first identifier of the target library institution; A first generating module generates a library card voucher for the target book of the target library institution for the target account based on the first key, the second identifier, and the third identifier, wherein the library card voucher is used by the target account to borrow and return the target book of the target library institution, the second identifier is used to identify the target account, and the third identifier is used to identify the target book of the target library institution; before generating the library card voucher for the target book of the target library institution for the target account based on the first key, the second identifier, and the third identifier, the module obtains a second key, wherein the second key is used to authenticate the second identifier; performs user authentication on the second identifier based on the second key; if the user authentication passes, performs the step of generating a library card voucher for the target book of the target library institution for the target account based on the first key, the second identifier, and the third identifier; wherein the corresponding library card is obtained based on the second identifier and the third identifier; obtains an encryption key of the first key, wherein the encryption key is used to sign the library card; and uses the encryption key to sign the library card to obtain the library card voucher; a second generating module, for generating borrowing record information of the target book by the target account according to the second identifier and the third identifier, when the target book of the target library institution is borrowed or returned according to the library card voucher; a synchronization module, synchronizing the borrowing record information to multiple other library institutions, wherein the target library institution and the multiple other library institutions correspond to different nodes in the same blockchain; Wherein, the second secret key is generated by an asymmetric encryption algorithm; In which, in response to the book borrowing request, the second identifier of the target account is verified; if the second identifier verification is passed, it is determined whether the target account is a user registered in the target library institution; if the target account is not registered in the target library institution, the second identifier of the target account is registered.
7. A computer-readable storage medium, characterized in that The storage medium is used to store a program, wherein the program executes the blockchain-based library account data processing method described in any one of claims 1 to 5.
8. An electronic device, characterized in that: The system comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the blockchain-based library account data processing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method for realizing book sharing based on blockchain, book borrowing terminal and storage medium
CN109102664A
Method, device and readable storage medium for implementing book sharing based on block chain
CN109254975A
Blockchain-based data sharing method, device and storage medium
CN110493220A