WO2022078359A1 - 账本管理方法、装置、设备以及存储介质 - Google Patents

账本管理方法、装置、设备以及存储介质 Download PDF

Info

Publication number
WO2022078359A1
WO2022078359A1 PCT/CN2021/123442 CN2021123442W WO2022078359A1 WO 2022078359 A1 WO2022078359 A1 WO 2022078359A1 CN 2021123442 W CN2021123442 W CN 2021123442W WO 2022078359 A1 WO2022078359 A1 WO 2022078359A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
consumption
point
server
ledger
Prior art date
Application number
PCT/CN2021/123442
Other languages
English (en)
French (fr)
Inventor
王梦寒
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2022078359A1 publication Critical patent/WO2022078359A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards

Definitions

  • the present application relates to the field of mobile payment technologies, and in particular, to a method, device, device, and storage medium for account management.
  • the inventor realizes that, at present, the management of digital assets (consumption and points) is implemented in a centralized manner, that is, an institution (issuer, operator) is responsible for defining, issuing and storing the digital assets (for example: points),
  • the centralized method is often not open and transparent enough, and it is easy to cause problems of credibility, which leads to the limited circulation ability and value-giving ability of digital assets, and the application scenarios are also very limited.
  • the embodiments of the present application provide an account book management method, apparatus, device, and storage medium, which can improve the reliability of account book management.
  • an embodiment of the present application provides a method for managing books, which is applied to an electronic device, where the electronic device establishes a communication connection with a server, and the method includes:
  • a transaction verification request is generated according to the first transaction and the second transaction, and the transaction verification request is sent to the server, the first transaction and the second transaction are sent to the server.
  • the second transaction is associated, the first transaction is used to reflect the consumption interaction between two consumption accounts in the consumption ledger, and the second transaction is used to reflect the points between the two point accounts in the point book
  • the consumption ledger and the credit ledger are ledger created according to the first business rule;
  • the first control instruction is generated by the server verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship instruction, the first preset relationship is a relationship corresponding to the first business rule that needs to be satisfied by the first transaction and the second transaction;
  • the status of the first transaction and the second transaction is determined according to the first control instruction, and the status includes verification failure or verification success.
  • the embodiments of the present application provide a device for account book management, the device comprising:
  • the sending module is configured to generate a transaction verification request according to the first transaction and the second transaction when detecting the first transaction and the second transaction to be verified, and send the transaction verification request to the server, and the first transaction verification request is sent to the server.
  • a transaction is associated with the second transaction, the first transaction is used to reflect the consumption interaction between two consumption accounts in the consumption ledger, and the second transaction is used to reflect the relationship between the two point accounts in the point book Point interaction between the two, the consumption ledger and the point ledger are ledger created according to the first business rule;
  • a receiving module configured to receive a first control instruction from the server, where the first control instruction is for the server to perform the first transaction and the second transaction on the first transaction and the second transaction according to the transaction authentication request and the first preset relationship. Verifying the generated instruction, the first preset relationship is the relationship that the first transaction and the second transaction need to satisfy corresponding to the first business rule;
  • a determination module configured to determine the status of the first transaction and the second transaction according to the first control instruction, where the status includes verification failure or verification success.
  • an electronic device including:
  • a processor adapted to implement one or more instructions
  • a computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by the processor and executing the above-mentioned ledger management method, the method comprising:
  • a transaction verification request is generated according to the first transaction and the second transaction, and the transaction verification request is sent to the server.
  • the second transaction association the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger, and the second transaction is used to reflect the point interaction between the two point accounts in the point book , the consumption ledger and the credit ledger are ledger created according to the first business rule;
  • the first control instruction is generated by the server verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship instruction, the first preset relationship is a relationship corresponding to the first business rule that needs to be satisfied by the first transaction and the second transaction;
  • the status of the first transaction and the second transaction is determined according to the first control instruction, and the status includes verification failure or verification success.
  • an embodiment of the present application provides a computer-readable storage medium for storing a computer program for electronic data exchange, wherein, when the computer program is executed by a computer, the above-mentioned account book management method is implemented, and the method includes:
  • a transaction verification request is generated according to the first transaction and the second transaction, and the transaction verification request is sent to the server.
  • the second transaction association the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger, and the second transaction is used to reflect the point interaction between the two point accounts in the point book , the consumption ledger and the credit ledger are ledger created according to the first business rule;
  • the first control instruction is generated by the server verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship instruction, the first preset relationship is a relationship corresponding to the first business rule that needs to be satisfied by the first transaction and the second transaction;
  • the status of the first transaction and the second transaction is determined according to the first control instruction, and the status includes verification failure or verification success.
  • the changes of digital assets are made more open, transparent, and credible, and it is ensured that the changes of digital assets between various ledgers conform to the predetermined conditions.
  • the set rules (corresponding to the aforementioned first preset relationship) will not change due to the will of a single subject, and no participant can tamper with the preset rules, which improves the reliability of ledger management and ensures the security of digital assets .
  • FIG. 1 is a schematic diagram of an account book management system provided by an embodiment of the present application.
  • FIG. 2A is a schematic flowchart of another account book management method provided by an embodiment of the present application.
  • 2B is a schematic diagram of a relationship between a first transaction and a second transaction provided by an embodiment of the present application
  • FIG. 2C is a schematic diagram of account binding provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another account book management method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an apparatus for account book management provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by another embodiment of the present application.
  • This application may relate to the field of artificial intelligence technology.
  • relevant data can be acquired and processed based on artificial intelligence technology, such as transaction verification based on artificial intelligence technology.
  • Artificial Intelligence is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .
  • FIG. 1 is a schematic diagram of an account book management system 100.
  • the account book management system 100 includes an electronic device 110 and a server 120.
  • the electronic device 110 and the server 120 are connected in communication.
  • the server 120 of the present application It can be a decentralized blockchain server.
  • the server 120 is any node device in the blockchain.
  • the blockchain is characterized by decentralization, openness and transparency, so that each blockchain server can participate in database records. , uses cryptography and digital signatures to prove identity, authenticity and enforces read/write access, there are mechanisms to make it difficult to change the history, it is easy to detect someone trying to change it.
  • the electronic device 110 is configured to generate a transaction verification request according to the first transaction and the second transaction when detecting the first transaction and the second transaction to be verified, and send the transaction verification request to the server 120, the
  • the first transaction is associated with the second transaction, the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger, and the second transaction is used to reflect the two point accounts in the point book
  • the point interaction between the consumption ledger and the point ledger is a ledger created according to the first business rule
  • the electronic device 110 is further configured to receive the first control instruction from the server 120, the first control instruction An instruction generated for the server 120 to verify the first transaction and the second transaction according to the transaction authentication request and a first preset relationship, where the first preset relationship is with the first business Corresponding to the rule, the relationship that the first transaction and the second transaction need to satisfy; the status of the first transaction and the second transaction is determined according to the first control instruction, and the status includes verification failure or verification.
  • the electronic device 110 may include various handheld devices, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to wireless modems, and various forms of user equipment (UE), mobile A mobile station (Mobile Station, MS), a terminal device (terminal device), etc., the electronic device 110 may also be a network device, such as a base station, etc., which is not specifically limited.
  • UE user equipment
  • MS mobile A mobile station
  • terminal device terminal device
  • the electronic device 110 may also be a network device, such as a base station, etc., which is not specifically limited.
  • the management of digital assets is managed in a centralized manner, that is, an institution (issuer, operator) is responsible for the definition, issuance and storage of the digital assets (for example: points).
  • the method is often not open and transparent enough, and it is easy to cause problems of credibility, which leads to the limited circulation ability and value-giving ability of digital assets, and the application scenarios are also very limited.
  • FIG. 2A is a schematic flowchart of an account book management method provided by an embodiment of the present application, which is applied to the electronic device 110 in the account book management system 100 shown in FIG. 1 , and the account book management method includes the following steps S101 ⁇ S103.
  • S101 when detecting a first transaction and a second transaction to be verified, generate a transaction verification request according to the first transaction and the second transaction, and send the transaction verification request to a server, the first transaction and the second transaction
  • the second transaction is associated, the first transaction is used to reflect the consumption interaction between two consumption accounts in the consumption ledger, and the second transaction is used to reflect the points between the two point accounts in the point book
  • the consumption ledger and the credit ledger are ledger created according to the first business rule
  • S102 Receive a first control instruction from the server, where the first control instruction is that the server verifies the first transaction and the second transaction according to the transaction authentication request and a first preset relationship
  • the generated instruction, the first preset relationship is the relationship that the first transaction and the second transaction need to satisfy corresponding to the first business rule;
  • the first control instruction is obtained by the server performing the following operations: determining whether the first transaction and the second transaction satisfy a first preset relationship; if so, generating and determining the first The status of the transaction and the second transaction is the first control instruction that has passed the verification; if not, the first control instruction that determines that the status of the first transaction and the second transaction is the verification failure is generated.
  • S103 Determine the status of the first transaction and the second transaction according to the first control instruction, where the status includes verification failure or verification success.
  • the first business rule is used to constrain the account book creation behavior of the account book creator.
  • the account book creator includes management users who are responsible for defining, issuing and storing digital assets (corresponding points), such as issuers and operators.
  • the first business rule is also used to constrain each user's behavior of creating an account in the created account book.
  • the first business rule is also used to constrain the created ledger to record rules for consumption events.
  • the first transaction and the second transaction to be verified are two transactions corresponding to the same consumption event.
  • the relationship between the first transaction and the second transaction is as shown in FIG. 2B , the operator creates account A in the consumption ledger to record the consumption data of user A, and creates account B for To record the consumption data of user B, user A creates account C in the point book to record user A’s own point data, and user B creates account D in the point book to record user B’s own point data.
  • a consumption event occurs between user A and user B, for example, user A consumes 100 yuan from user B, that is, the first transaction Tx1 that account A paid 100 yuan to account B will be displayed in the consumption ledger, and the first transaction Tx1 of account B will be displayed in the points ledger.
  • the second transaction Tx2 used to reflect that the account D has paid a certain amount of points to the account C.
  • the implementation manner of generating the transaction verification request according to the first transaction and the second transaction may be: processing the first transaction and the second transaction according to a first preset rule, and obtaining the first transaction associated information; generating the transaction verification request according to the first associated information.
  • the first associated information includes the consumption payer, the consumption receiver and the consumption interaction value of the first transaction, the point payer, the point receiver and the point interaction value of the second transaction, and so on.
  • the first preset rule may be: for the first transaction and the second transaction of the same consumption event, determine the consumption payer, consumption receiver and consumption of the first transaction.
  • the interaction value is used to determine the point payer, point receiver, and point interaction value of the second transaction.
  • the first preset relationship can be that the consumption payer does not match the consumption receiver, the consumption payer matches the point receiver, and the consumption The receiver matches the point payer, the point receiver does not match the point payer, and the consumption interaction value is 10 times the point interaction value.
  • the transaction verification requester when the transaction verification requester detects the first transaction and the second transaction corresponding to the same consumption event, it will determine the consumption payer and consumption receiver in the first transaction, as well as the consumption interaction value, and determine the second transaction.
  • the point payer and point receiver, as well as the point interaction value and generate a transaction verification request according to the consumption payer and consumption receiver, consumption interaction value, point payer and point receiver, and point interaction value, and send the transaction verification request to the server.
  • the server will judge whether the consumption payer matches the consumption receiver, judge whether the consumption payer matches the point receiver, judge whether the consumption receiver and the point payer match, and judge whether the point receiver and the point payer match, And it is judged that the consumption interaction value is 10 times the point interaction value.
  • the server determines that the consumption payer does not match the consumption receiver, the consumption payer matches the point receiver, the consumption receiver matches the point payer, the point receiver does not match the point payer, and the consumption interaction value is the point interaction value 10 times, then generate a first control instruction that determines that the status of the first transaction and the second transaction is verified, and feed back the first control instruction to the transaction verification requester, and the transaction verification requester will based on the first control instruction
  • a control instruction updates the status of the first transaction and the second transaction to a successful transaction.
  • the consumption interaction value is 100 and the point interaction value is 10 at this time, then the consumption account corresponding to the consumption payer in the consumption account book will be successfully reduced by 100, the consumption account corresponding to the consumption receiver in the consumption account book will be successfully increased by 100, and the points account corresponding to the point payer in the points account book will be successfully reduced by 10, and the point account corresponding to the point receiver in the points account book will be successfully reduced by 10. Points account will be successfully increased by 10.
  • the server determines that the consumption payer matches the consumption receiver, the consumption payer matches the point receiver, the consumption receiver does not match the point payer, the point receiver matches the point payer, and the consumption interaction value is not the point interaction At least one of 10 times the value, then generate a first control instruction that determines that the status of the first transaction and the second transaction is a verification failure, and feed back the first control instruction to the transaction verification requester, and the transaction verification
  • the requesting party will update the status of the first transaction and the second transaction to transaction failure based on the first control instruction, and will not change the first ledger and the second ledger based on the first transaction and the second transaction. data.
  • the account A corresponding to user A pays the consumption amount of 100 yuan to the account B corresponding to user B
  • the account D corresponding to user B pays 10 points to the account C corresponding to user A.
  • this embodiment can be applied to scenarios such as medical informatization and electronic information file management in the digital medical field, so as to promote the construction of urban informatization.
  • the changes of digital assets are more open, transparent and credible, ensuring that the changes in digital assets between various ledgers conform to the preset
  • the predetermined rules (corresponding to the aforementioned first preset relationship) will not change due to the will of a single subject, and no participant can tamper with the preset rules, ensuring the security of digital assets.
  • the method further includes: acquiring the first business rule; acquiring the first ledger and the second ledger created according to the first business rule; acquiring the two consumption accounts created by an operator; acquiring The two points accounts created by two users.
  • the creation of the ledger and the account is based on the same business rule, which makes the creation of the ledger account more unified and improves the credibility of the ledger management.
  • the method before the receiving the first control instruction from the server, the method further includes: acquiring the first preset relationship; and sending the first preset relationship to the server.
  • the first preset relationship is sent to the server in advance, and in the process of verification, the server verifies the first transaction and the second transaction based on the first preset relationship, so that the verification process of the two transactions is performed in the server, Will not be arbitrarily changed.
  • the first preset relationship between the first transaction and the second transaction is verified through the server deposit certificate, so that the first preset relationship cannot be changed.
  • the first transaction and the second transaction are ciphertexts.
  • the form of the ciphertext can be diversified, such as replacing the corresponding account, the relationship between the accounts, and the relationship between the transactions with specific characters. It should be noted that when the first transaction and the second transaction are encrypted At the time of writing, the first preset relationship is a relationship based on ciphertext.
  • the first preset rule may be: for the first transaction and the second transaction of the same consumption event, determine the consumption payer, consumption and consumption of the first transaction.
  • the receiver and the consumption interaction value determine the point payer, point receiver and point interaction value of the second transaction; when the consumption payer matches the point receiver, the consumption receiver matches the point payer, and the consumption interaction value and points interaction
  • the ratio of the values is 100
  • the ciphertext for the first transaction and the second transaction is generated, that is, A to B is 100
  • the ratio of the numerical value and the integral interaction value is not 100, when any of the three conditions is satisfied, the ciphertext for the first transaction and the second transaction is generated, that is, A to B is not 100.
  • the first preset relationship can be Yes A to B is 100.
  • the zero-knowledge proof technology ensures the accuracy of asset verification in the ciphertext state, and improves the credibility, circulation and value-giving capabilities of the entire digital asset.
  • the method further includes: if it is determined that the first transaction and the second transaction are If the verification is passed, perform the following operations for the two consumption accounts: determine whether the currently processed first consumption account has a bound point account in the two point accounts; if not, obtain the first consumption account The first user ID of the account and the user IDs of the two point accounts; the first point account in the two point accounts is bound to the first consumption account, and the first point account is the two point accounts. The user ID in each of the point accounts is the point account of the first user ID.
  • the account in the ledger is constructed based on the account of a third-party application
  • the user ID is the account of the third-party application
  • the third-party application can be a third-party application such as Taobao, Alipay, WeChat, etc. , without any specific limitation.
  • the account A in the consumption ledger and the account C in the points ledger correspond to the same user account, that is, the account in the consumption ledger corresponds to the same user account.
  • account A and account C in the points account book record the consumption events of the same user, if account A and account C are not bound, bind account A and account C to obtain an account pair.
  • the account B and the account D in the points book correspond to the same user account. If the account B and the account D are not bound, the account B and the account D are bound to obtain an account pair.
  • the first preset relationship is not specifically limited, and the first preset relationship and the foregoing first preset rule are obtained based on the first business rule.
  • the server verifies the consumption ledger in the same consumption event.
  • the consumption delivery value of user A to user B reflected in the first transaction is a preset multiple of the point delivery value of user B to user A reflected in the first transaction in the point book.
  • the preset multiple is not specifically limited.
  • the preset multiple may be 1, the preset multiple may also be 2, and the preset multiple may also be any other positive number.
  • the consumption interaction data involved in the first transaction interacts with the points of the second transaction
  • the difference of the data is the first preset value
  • the first preset value is a positive integer, that is, it is verified by the server that in the same consumption event, the consumption delivery value of user A to user B reflected in the first transaction in the consumption ledger
  • the difference between the consumption delivery value from user A to user B reflected in the first transaction in the consumption ledger and the point delivery value from user B to user A reflected in the first transaction in the points ledger is the The first preset value.
  • the first preset value is not specifically limited.
  • the first preset value may be 40
  • the first preset value may be 50
  • the first preset value may also be any other positive number.
  • the first preset time may be any day or several days in a week
  • the second preset time may be any day or several days in a month, which is not specifically limited.
  • a transaction verification request is generated according to the first transaction and the second transaction, and a transaction verification request is sent to the server.
  • the first transaction and the second transaction are associated with each other.
  • the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger
  • the second transaction is used to reflect the point interaction between the two point accounts in the points account.
  • the consumption account and the points account are based on The ledger created by the first business rule, and then receiving the first control instruction from the server, where the first control instruction is an instruction generated by the server by verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship, Finally, the states of the first transaction and the second transaction are determined according to the first control instruction.
  • the present application is beneficial to improve the reliability of ledger management. That is, by verifying different transactions in the server according to the first preset relationship, the changes of digital assets (points) are made more open, transparent, and credible, and the changes in digital assets between various ledgers are guaranteed to comply with the preset rules (corresponding to the rules).
  • the aforementioned first preset relationship will not change due to the will of a single subject, and no participant can tamper with the preset rules, which improves the reliability of ledger management and ensures the security of digital assets.
  • FIG. 3 is a schematic flowchart of an account book management method provided by an embodiment of the present application.
  • the account book management method includes the following steps S201 to S209 .
  • S209 Determine the status of the first transaction and the second transaction according to the first control instruction, where the status includes verification failure or verification success.
  • sequence of occurrence of S201 ⁇ S204 and S205 ⁇ S206 is not specifically limited, it may be that S201 ⁇ S204 occurs before S205 ⁇ S206, or it may be S201 ⁇ S204 and then S205 ⁇ S206, or it may be S201 ⁇ S204 and S205 ⁇ S206 occurs simultaneously, and in S201 to S204, the sequence of occurrence of S203 and S204 is not specifically limited.
  • a transaction verification request is generated according to the first transaction and the second transaction, and a transaction verification request is sent to the server.
  • the first transaction and the second transaction are associated with each other.
  • the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger
  • the second transaction is used to reflect the point interaction between the two point accounts in the points account.
  • the consumption account and the points account are based on The ledger created by the first business rule, and then receiving the first control instruction from the server, where the first control instruction is an instruction generated by the server by verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship, Finally, the states of the first transaction and the second transaction are determined according to the first control instruction.
  • the present application is beneficial to improve the reliability of ledger management. That is, by verifying different transactions in the server according to the first preset relationship, the changes of digital assets (points) are made more open, transparent, and credible, and the changes in digital assets between various ledgers are guaranteed to comply with the preset rules (corresponding to the rules).
  • the aforementioned first preset relationship will not change due to the will of a single subject, and no participant can tamper with the preset rules, which improves the reliability of ledger management and ensures the security of digital assets.
  • ledgers and accounts are based on the same business rules, which makes the creation of ledger accounts more unified and improves the credibility of ledger management.
  • FIG. 4 is a schematic structural diagram of an account book management device provided by an embodiment of the present application.
  • the account book management device of the embodiment of the present application can be applied in the above-mentioned electronic equipment.
  • the ledger management device includes a sending module 401, a receiving module 402, and a determining module 403:
  • the sending module 401 is configured to generate a transaction verification request according to the first transaction and the second transaction when detecting the first transaction and the second transaction to be verified, and send the transaction verification request to the server, the
  • the first transaction is associated with the second transaction, the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger, and the second transaction is used to reflect the two point accounts in the point book Point interaction between the two, the consumption ledger and the point ledger are ledger created according to the first business rule;
  • the receiving module 402 is configured to receive a first control instruction from the server, where the first control instruction is that the server executes the first transaction and the second transaction according to the transaction authentication request and the first preset relationship. Verifying the generated instruction, the first preset relationship is the relationship that the first transaction and the second transaction need to satisfy corresponding to the first business rule;
  • the determining module 403 is configured to determine the status of the first transaction and the second transaction according to the first control instruction, where the status includes verification failure or verification success.
  • the apparatus further includes an obtaining module 404, and the obtaining module 404 is further configured to generate the first transaction and the second transaction to be verified according to the first transaction and the second transaction when the first transaction and the second transaction to be verified are detected.
  • transaction verification request and before sending the transaction verification request to the server, obtain the first business rule; obtain the first ledger and the second ledger created according to the first business rule; The two consumption accounts are obtained; the two point accounts created by the two users are obtained.
  • the device also includes:
  • the preset relationship uploading module 405 is configured to acquire the first preset relationship before receiving the first control instruction from the server; and to send the first preset relationship to the server.
  • the first control instruction is obtained by the server performing the following operations:
  • the first transaction and the second transaction are ciphertext.
  • the device further includes an account binding module 406, and the account binding module 406 is configured to: after the state of the first transaction and the second transaction is determined according to the first control instruction, if it is determined that the state of the first transaction and the second transaction is determined. If the first transaction and the second transaction are verified, the following operations are performed for the two consumption accounts:
  • a first point account in the two point accounts is bound to the first consumption account, and the first point account is a point account whose user ID is the first user ID in the two point accounts.
  • the first preset relationship includes any one of the following: the consumption interaction data involved in the first transaction is a preset multiple of the point interaction data of the second transaction;
  • the difference between the consumption interaction data involved in the first transaction and the point interaction data of the second transaction is the first preset value, and the first preset value is a positive integer;
  • a transaction verification request is generated according to the first transaction and the second transaction, and a transaction verification request is sent to the server.
  • the first transaction and the second transaction are associated with each other.
  • the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger
  • the second transaction is used to reflect the point interaction between the two point accounts in the points account.
  • the consumption account and the points account are based on The ledger created by the first business rule, and then receiving the first control instruction from the server, where the first control instruction is an instruction generated by the server by verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship, Finally, the states of the first transaction and the second transaction are determined according to the first control instruction.
  • This application is beneficial to improve the reliability of ledger management. That is, by verifying different transactions in the server according to the first preset relationship, the changes of digital assets (points) are made more open, transparent and credible, and it is ensured that the changes of digital assets between various ledgers comply with the preset rules (corresponding to the rules). The aforementioned first preset relationship) will not change due to the will of a single subject, and no participant can tamper with the preset rules, which improves the reliability of ledger management and ensures the security of digital assets.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device in this embodiment may include : one or more processors 501 ; one or more input devices 502 , one or more output devices 503 and memory 504 .
  • the above-mentioned processor 501 , input device 502 , output device 503 and memory 504 are connected through a bus 505 .
  • the processor 501 can be a central processing unit (Central Processing Unit, CPU), and the processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC) ), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 502 may include a touchpad, a fingerprint sensor (used to collect the user's fingerprint information and fingerprint direction information), a microphone, etc.
  • the output device 503 may include a display (LCD, etc.), a speaker, etc., and the output device 503 may output corrections The processed data table.
  • the memory 504 may include read only memory and random access memory, and provides instructions and data to the processor 501 .
  • a portion of the memory 504 may also include non-volatile random access memory, the memory 504 is used for storing a computer program, the computer program includes program instructions, and the processor 501 is used for executing the program instructions stored in the memory 504 for executing a A ledger management method that is used to do the following:
  • a transaction verification request is generated according to the first transaction and the second transaction, and the transaction verification request is sent to the server.
  • the second transaction association the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger, and the second transaction is used to reflect the point interaction between the two point accounts in the point book , the consumption ledger and the credit ledger are ledger created according to the first business rule;
  • the first control instruction is generated by the server verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship instruction, the first preset relationship is a relationship corresponding to the first business rule that needs to be satisfied by the first transaction and the second transaction;
  • the status of the first transaction and the second transaction is determined according to the first control instruction, and the status includes verification failure or verification success.
  • the processor 501, the input device 502, and the output device 503 described in the embodiments of the present application can execute the implementations described in the first embodiment of the account book management method provided by the embodiments of the present application, and can also execute the implementations described in the embodiments of the present application.
  • the implementation manner of the electronic device is not repeated here.
  • a transaction verification request is generated according to the first transaction and the second transaction, and a transaction verification request is sent to the server.
  • the first transaction and the second transaction are associated with each other.
  • the first transaction is used to reflect the consumption interaction between the two consumption accounts in the consumption ledger
  • the second transaction is used to reflect the point interaction between the two points accounts in the points account.
  • the consumption account and the point account are based on The ledger created by the first business rule, and then receiving the first control instruction from the server, where the first control instruction is an instruction generated by the server for verifying the first transaction and the second transaction according to the transaction authentication request and the first preset relationship, Finally, the states of the first transaction and the second transaction are determined according to the first control instruction.
  • This application is beneficial to improve the reliability of ledger management. That is, by verifying different transactions in the server according to the first preset relationship, the changes of digital assets (points) are made more open, transparent and credible, and it is ensured that the changes of digital assets between various ledgers comply with the preset rules (corresponding to the rules). The aforementioned first preset relationship) will not change due to the will of a single subject, and no participant can tamper with the preset rules, which improves the reliability of ledger management and ensures the security of digital assets.
  • Embodiments of the present application further provide a computer-readable storage medium for storing a computer program for electronic data exchange, wherein the computer program implements the ledger management method shown in the embodiment of FIG. 2A when the computer program is executed.
  • the storage medium involved in this application such as a computer-readable storage medium, may be non-volatile or volatile.
  • the computer-readable storage medium may be an internal storage unit of the electronic device described in any of the foregoing embodiments, such as a hard disk or a memory of a control device.
  • the computer-readable storage medium can also be an external storage device of the control device, such as a plug-in hard disk equipped on the control device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) ) card, Flash Card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the control device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the control device.
  • the computer-readable storage medium can also be used to temporarily store data that has been or will be output.
  • the above-described computer-readable storage medium may be deployed to execute on one computer device, or be deployed to execute on multiple computer devices located at one site, or, alternatively, distributed in multiple sites and interconnected by a communication network.
  • Executed on a single computer device a plurality of computer devices distributed in multiple locations and interconnected by a communication network can form a blockchain network.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种账本管理方法、装置、设备以及存储介质,账本管理方法,包括:在检测到待验证的第一交易和第二交易时,根据第一交易和第二交易生成交易验证请求,并向服务器发送交易验证请求(S101),第一交易和第二交易关联,之后,接收来自服务器的第一控制指令(S102),第一控制指令为服务器根据交易认证请求和第一预设关系,对第一交易和第二交易进行验证生成的指令,最后,根据第一控制指令确定第一交易和第二交易的状态,所述状态包括验证失败或验证成功(S103)。上述方法有利于提高账本管理的可靠性,适用于数字医疗领域的医疗信息化、电子信息档案管理等场景,有利于推动城市信息化的建设。

Description

账本管理方法、装置、设备以及存储介质
本申请要求于2020年10月13日提交中国专利局、申请号为202011094064.4,发明名称为“账本管理方法、装置、设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动支付技术领域,尤其涉及一种账本管理方法、装置、设备以及存储介质。
背景技术
随着,移动支付技术的发展,人们往往通过手机等移动终端进行消费支付,例如,在数字医疗领域的医疗信息化、电子信息档案管理等场景中,为了便于用户查询,运营方往往通过电子账本对消费进行记录,同时运营方为了鼓励用户消费,会通过奖励消费积分给用户,因此,为了对消费和积分进行关联,以,数字资产(消费和积分)的管理尤为重要。
发明人意识到,目前,数字资产(消费和积分)的管理通过中心化的方式实现,即某机构(发行方、运营方)负责对该数字资产(例如:积分)进行定义、发行和存储,中心化的方式往往不够公开、透明,且易引起公信力问题,这导致数字资产的流通能力、价值赋予能力受限,应用场景也非常有限。
发明内容
本申请实施例提供一种账本管理方法、装置、设备以及存储介质,可提高对账本管理的可靠性。
第一方面,本申请实施例提供了一种账本管理方法,应用于电子设备,该电子设备与服务器建立通信连接,该方法包括:
在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向所述服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
第二方面,本申请实施例提供了一种账本管理装置,该装置包括:
发送模块,用于在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
接收模块,用于接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和第二交易需要满足的关系;
确定模块,用于根据所述第一控制指令确定所述第一交易和第二交易的状态,所述状态包括验证失败或验证成功。
第三方面,本申请实施例提供了一种电子设备,包括:
处理器,适于实现一条或一条以上指令;以及,
计算机可读存储介质,所述计算机可读存储介质存储有一条或一条以上指令,所述一条或一条以上指令适于由所述处理器加载并执行上述账本管理方法,该方法包括:
在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
第四方面,本申请实施例提供了一种计算机可读存储介质,存储用于电子数据交换的计算机程序,其中,所述计算机程序被计算机执行时实现上述账本管理方法,该方法包括:
在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
本申请实施例中,通过在服务器中根据第一预设关系对不同的交易进行验证,使得数字资产(积分)的变化更公开、透明、可信,保障各个账本间的数字资产变化情况符合预先设定规则(对应前述第一预设关系),不会因单个主体的意志而变化,任何参与方都不能对预先设定规则进行篡改,提高账本管理的可靠性,保证了数字资产的安全性。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种账本管理系统的示意图;
图2A是本申请实施例提供的另一种账本管理方法的流程示意图;
图2B是本申请实施例提供的一种第一交易和第二交易的关系示意图;
图2C是本申请实施例提供的一种账户绑定示意图;
图3是本申请实施例提供的另一种账本管理方法的流程示意图;
图4是本申请实施例提供的一种账本管理装置的结构示意图;
图5是本申请另一实施例提供的一种电子设备的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在 没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请可涉及人工智能技术领域。例如,可以基于人工智能技术对相关的数据进行获取和处理,如基于人工智能技术进行交易验证。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。
如图1所示,图1是一种账本管理系统100的示意图,该账本管理系统100包括电子设备110和服务器120,所述电子设备110和所述服务器120进行通信连接,本申请的服务器120可以是去中心化的区块链服务器,该服务器120为区块链中的任一节点设备,区块链的特点是去中心化、公开透明,让每个区块链服务器均可参与数据库记录,使用密码学和数字签名来证明身份,真实性和强制读/写访问权限,有机制使其难以改变历史记录,可以很容易地检测到有人试图改变它。电子设备110用于在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器120发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本,电子设备110还用于接收来自所述服务器120的第一控制指令,所述第一控制指令为所述服务器120根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。该电子设备110可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等,该电子设备110也可以是网络设备,如基站等,不作具体限定。
目前,账本管理方法中,数字资产的管理通过中心化的方式来进行管理,即某机构(发行方、运营方)负责对该数字资产(例如:积分)进行定义、发行和存储,中心化的方式往往不够公开、透明,且易引起公信力问题,这导致数字资产的流通能力、价值赋予能力受限,应用场景也非常有限。
针对上述问题,本申请提出一种账本管理方法,下面结合附图对本申请实施例进行详细介绍。
请参见图2A,图2A是本申请实施例提供的一种账本管理方法的流程示意图,应用于如图1所示的账本管理系统100中的电子设备110,该账本管理方法包括以下步骤S101~S103。
S101,在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交 易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
S102,接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
在一个可能的示例中,所述第一控制指令为所述服务器执行以下操作得到的:确定所述第一交易和第二交易是否满足第一预设关系;若是,则生成确定所述第一交易和所述第二交易的状态为验证通过的所述第一控制指令;若否,则生成确定所述第一交易和所述第二交易的状态为验证失败的所述第一控制指令。
S103,根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
其中,所述第一业务规则用于约束账本创建者的账本创建行为账本创建者包括负责对数字资产(对应积分)进行定义、发行和存储的管理用户,如发行方、运营方。
所述第一业务规则还用于约束各个用户在已创建的账本中创建账户的行为。
所述第一业务规则还用于约束创建后的账本对消费事件的记录规则。
其中,待验证的第一交易和第二交易为同一消费事件对应的两笔交易。
具体实现中,第一交易和第二交易之间的关联关系,如图2B所示,运营方在消费账本中创建了账户A,用于记录用户甲的消费数据,创建了账户B,用于记录用户乙的消费数据,用户甲在积分账本中创建了账户C,用于记录用户甲自身的积分数据,用户乙在积分账本中创建了账户D,用于记录用户乙自身的积分数据,当用户A和用户B之间发生消费事件时,如用户甲在用户乙处消费了100元,即在消费账本中会呈现账户A支付了100元账户B的第一交易Tx1,积分账本中会呈现用于反映账户D向账户C给付了一定积分的第二交易Tx2。
其中,所述根据所述第一交易和所述第二交易生成交易验证请求的实现方式可以是:根据第一预设规则对所述第一交易和所述第二交易进行处理,得到第一关联信息;根据所述第一关联信息生成所述交易验证请求。
第一关联信息包括第一交易的消费给付方、消费收取方和消费交互数值,第二交易的积分给付方、积分收取方和积分交互数值,等等。
如第一业务规则约定,消费10元换1积分,则第一预设规则可以是:针对同一消费事件的第一交易和第二交易,确定第一交易的消费给付方、消费收取方以及消费交互数值,确定第二交易的积分给付方、积分收取方以及积分交互数值,则此时第一预设关系可以是消费给付方与消费收取方不匹配,消费给付方与积分收取方匹配,消费收取方与积分给付方匹配,积分收取方与积分给付方不匹配,且消费交互数值为积分交互数值的10倍。
此种情况下,交易验证请求方在检测到同一消费事件对应的第一交易和第二交易时,会确定第一交易中的消费给付方和消费收取方,以及消费交互数值,确定第二交易的积分给付方和积分收取方,以及积分交互数值,并根据消费给付方和消费收取方、消费交互数值、积分给付方和积分收取方以及积分交互数值生成交易验证请求,并向服务器发送所述交易验证请求,服务器会判断消费给付方与消费收取方是否匹配,判断消费给付方与积分收取方是否匹配,判断消费收取方与积分给付方是否匹配,判断积分收取方与积分给付方是否匹配,且判断消费交互数值为积分交互数值的10倍。
若服务器确定出消费给付方与消费收取方不匹配,消费给付方与积分收取方匹配,消费收取方与积分给付方匹配,积分收取方与积分给付方不匹配,且消费交互数值为积分交互数值的10倍,则生成确定所述第一交易和所述第二交易的状态为验证通过的第一控制指 令,并向交易验证请求方反馈该第一控制指令,交易验证请求方会基于该第一控制指令将所述第一交易和所述第二交易的状态更新为交易成功,若此时消费交互数值为100,积分交互数值为10,则,消费账本中的消费给付方对应的消费账户会成功减掉100,消费账本中的消费收取方对应的消费账户会成功增加100,而,积分账本中的积分给付方对应的积分账户会成功减掉10,积分账本中的积分收取方对应的积分账户会成功增加10。
若服务器确定出消费给付方与消费收取方匹配,消费给付方与积分收取方部匹配,消费收取方与积分给付方不匹配,积分收取方与积分给付方匹配,且消费交互数值不为积分交互数值的10倍中的至少一种,则生成确定所述第一交易和所述第二交易的状态为验证失败的第一控制指令,并向交易验证请求方反馈该第一控制指令,交易验证请求方会基于该第一控制指令将所述第一交易和所述第二交易的状态更新为交易失败,进而不会基于该第一交易和第二交易更改第一账本和第二账本中的数据。
即是消费账本中,用户A对应的账户A向用户B对应的账户B给付消费金额100元时,则积分账本中,用户B对应的账户D向用户A对应的账户C给付的10积分。
需要说明的是,本实施例可以适用于数字医疗领域的医疗信息化、电子信息档案管理等场景,以推动城市信息化的建设。
可见,本示例中,通过在服务器中根据第一预设关系对不同的交易进行验证,数字资产(积分)的变化更公开、透明、可信,保障各个账本间的数字资产变化情况符合预先设定规则(对应前述第一预设关系),不会因单个主体的意志而变化,任何参与方都不能对预先设定规则进行篡改,保证了数字资产的安全性。
在一个可能的示例中,所述在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求之前,所述方法还包括:获取所述第一业务规则;获取根据所述第一业务规则创建所述第一账本和所述第二账本;获取运营方创建的所述两个消费账户;获取两个用户创建的所述两个积分账户。
即是,账本和账户的创建均遵循同一业务规则,各个账本之间的通过同一业务规则关联,各个账户之间的通过同一业务规则关联。
可见,本示例中,账本和账户的创建均基于同一业务规则进行创建,使得账本账户的创建更加统一,提升账本管理的可信度。
在一个可能的示例中,所述接收来自所述服务器的第一控制指令之前,所述方法还包括:获取所述第一预设关系;向所述服务器发送所述第一预设关系。
其中,预先将第一预设关系发送到服务器,在进行验证的过程中,由服务器基于第一预设关系进行第一交易和第二交易的验证,使得两笔交易的验证过程在服务器中,不会随意更改。
可见,本示例中,通过服务器存证验证第一交易和第二交易之间的第一预设关系,使得第一预设关系不可更改。
在一个可能的示例中,所述第一交易和第二交易为密文。
其中,密文的形式可以多样化,比如用特定的字符代替相应的账户、账户之间的关系,以及交易之间的关系,需要说明的是,当所述第一交易和第二交易为密文时,第一预设关系为基于密文的关系。
举例来说,如第一业务规则约定,消费100元换1积分,则第一预设规则可以是:针对同一消费事件的第一交易和第二交易,确定第一交易的消费给付方、消费收取方以及消费交互数值,确定第二交易的积分给付方、积分收取方以及积分交互数值;当消费给付方和积分收取方匹配,消费收取方与积分给付方匹配,且消费交互数值和积分交互数值的比值为100时,生成针对第一交易和第二交易的密文,即A对B为100;当消费给付方和积分收取方不匹配、消费收取方与积分给付方不匹配、消费交互数值和积分交互数值的比值 不为100三个条件中任一条件满足时,生成针对第一交易和第二交易的密文,即A对B不为100,此时,第一预设关系可以是A对B为100。
可见,本示例中,用户数字资产加密隐私保护的同时,通过零知识证明技术保障了密文状态下的资产验证准确性,提高了整个数字资产的公信、流通能力和价值赋予能力。
在一个可能的示例中,所述根据所述第一控制指令确定所述第一交易和第二交易的状态之后,所述方法还包括:若确定所述第一交易和所述第二交易为验证通过,则针对所述两个消费账户执行以下操作:确定当前处理的第一消费账户在所述两个积分账户中是否存在已绑定的积分账户;若否,则获取所述第一消费账户的第一用户ID和所述两个积分账户的用户ID;将所述两个积分账户中的第一积分账户与所述第一消费账户绑定,所述第一积分账户为所述两个积分账户中用户ID为所述第一用户ID的积分账户。
举例来说,若账本中的账户为基于某个第三方应用的账号进行构建的,则用户ID即是该第三方应用的账号,该第三方应用可以是淘宝、支付宝、微信等等第三方应用,不作具体限定。
如图2C所示,当两个关联交易(第一交易Tx1和第一交易Tx2)验证成功之后,在消费账本中的账户A和积分账本中的账户C对应同一用户账号,即消费账本中的账户A和积分账本中的账户C为记录同一用户的消费事件时,若账户A和账户C未绑定,则将账户A和账户C绑定以得到一个账户对,同理,若在消费账本中的账户B和积分账本中的账户D对应同一用户账号,若账户B和账户D未绑定,则将账户B和账户D绑定以得到一个账户对。
可见,本示例中,能够对不同账本下针对同一用户创建的账户进行绑定,在后续进行交易验证的过程中,通过绑定关系确定同一消费事件对应的消费给付方和积分收取方是否匹配,消费给付方和积分收取方是否匹配,提升后续交易认证过程。
在一个可能的示例中,所述第一预设关系包括以下任意一种:所述第一交易涉及的消费交互数据为所述第二交易的积分交互数据的预设倍数;所述第一交易涉及的消费交互数据大于第一预设值时,所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的差为所述第一预设值,所述第一预设值为正整数;当第一事件的发生时间为第一预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=nx,n大于0小于等于1;当第一事件的发生时间为第二预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=mx+b,m大于1,大于1,b为常数。
其中,对第一预设关系不作具体限定,第一预设关系和前述第一预设规则聚基于第一业务规则得到。
具体实现中,当所述第一预设关系为所述第一交易涉及的消费交互数据为所述第二交易的积分交互数据的预设倍数,即是通过服务器验证同一消费事件中,消费账本中第一交易反映的用户A向用户B的消费交付数值为积分账本中第一交易反映的用户B向用户A的积分交付数值的预设倍数。其中,所述预设倍数不作具体限定,如所述预设倍数可以是1,所述预设倍数还可以是2,所述预设倍数还可以是其他任意正数。
具体实现中,当所述第一预设关系为所述第一交易涉及的消费交互数据大于第一预设值时,所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的差为所述第一预设值,所述第一预设值为正整数,即是通过服务器验证同一消费事件中,消费账本中第一交易反映的用户A向用户B的消费交付数值大于所述第一预设值时,消费账本中第一交易反映的用户A向用户B的消费交付数值和积分账本中第一交易反映的用户B向用户A的积分交付数值之差为所述第一预设值。其中,第一预设值不作具体限定,如所述第一预设值可以是40,所述第一预设值可以是50,所述第一预设值还可以是其他任意正数。
具体实现中,当所述第一预设关系为当第一事件的发生时间为第一预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=nx,n大于0小于等于1;当第一事件的发生时间为第二预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=mx+b,m大于1,大于1,b为常数。其中,所述第一预设时间可以是一周中的任意一天或者几天,所述第二预设时间可以是一个月中的任意一天或者几天,不作具体限定。
本申请实施例中,在检测到待验证的第一交易和第二交易时,根据第一交易和第二交易生成交易验证请求,并向服务器发送交易验证请求,第一交易和第二交易关联,第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,消费账本和积分账本为根据第一业务规则创建的账本,之后,接收来自服务器的第一控制指令,第一控制指令为服务器根据交易认证请求和第一预设关系,对第一交易和第二交易进行验证生成的指令,最后,根据第一控制指令确定第一交易和第二交易的状态。本申请有利于提高账本管理的可靠性。即通过在服务器中根据第一预设关系对不同的交易进行验证,使得数字资产(积分)的变化更公开、透明、可信,保障各个账本间的数字资产变化情况符合预先设定规则(对应前述第一预设关系),不会因单个主体的意志而变化,任何参与方都不能对预先设定规则进行篡改,提高账本管理的可靠性,保证了数字资产的安全性。
与上述图2A所示的实施例一致的,请参见图3,图3是本申请实施例提供的一种账本管理方法的流程示意图,该账本管理方法包括以下步骤S201~S209。
S201、获取所述第一业务规则;
S202、获取根据所述第一业务规则创建所述第一账本和所述第二账本;
S203、获取运营方创建的两个消费账户;
S204、获取两个用户创建的两个积分账户;
S205、获取所述第一预设关系,所述第一预设关系为与所述第一业务规则对应的,同一消费事件对应的两个交易需要满足的关系;
S206、向所述服务器发送所述第一预设关系;
S207、在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映所述两个消费账户之间的消费交互情况,所述第二交易用于反映所述两个积分账户之间的积分交互情况;
S208、接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令;
S209、根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
其中,S201~S204和S205~S206的发生顺序不作具体限定,可以是S201~S204先于S205~S206发生,也可以是S201~S204后于S205~S206发生,还可以是S201~S204与S205~S206同时发生,S201~S204中,S203和S204的发生顺序不作具体限定。
本申请实施例中,在检测到待验证的第一交易和第二交易时,根据第一交易和第二交易生成交易验证请求,并向服务器发送交易验证请求,第一交易和第二交易关联,第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,消费账本和积分账本为根据第一业务规则创建的账本,之后,接收来自服务器的第一控制指令,第一控制指令为服务器根据交易认证请求和第一预设关系,对第一交易和第二交易进行验证生成的指令,最后,根据第一控制指令确定第一交易和第二交易的状态。本申请有利于提高账本管理的可靠性。即通过在服务器 中根据第一预设关系对不同的交易进行验证,使得数字资产(积分)的变化更公开、透明、可信,保障各个账本间的数字资产变化情况符合预先设定规则(对应前述第一预设关系),不会因单个主体的意志而变化,任何参与方都不能对预先设定规则进行篡改,提高账本管理的可靠性,保证了数字资产的安全性。
此外,账本和账户的创建均基于同一业务规则进行创建,使得账本账户的创建更加统一,提升账本管理的可信度。
与上述图2A、图3所示的实施例一致的,请参见图4,图4是本申请实施例提供的一种账本管理装置的结构示意图,本申请实施例的所述账本管理装置可以应用在上述提及的电子设备中。本实施例中,该账本管理装置包括发送模块401、接收模块402、确定模块403:
发送模块401,用于在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
接收模块402,用于接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和第二交易需要满足的关系;
确定模块403,用于根据所述第一控制指令确定所述第一交易和第二交易的状态,所述状态包括验证失败或验证成功。
其中,所述装置还包括获取模块404,所述获取模块404还用于在所述在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求之前,获取所述第一业务规则;获取根据所述第一业务规则创建所述第一账本和所述第二账本;获取运营方创建的所述两个消费账户;获取两个用户创建的所述两个积分账户。
其中,所述装置还包括:
预设关系上链模块405,用于在所述接收来自所述服务器的第一控制指令之前,获取所述第一预设关系;以及用于向所述服务器发送所述第一预设关系。
其中,所述第一控制指令为所述服务器执行以下操作得到的:
确定所述第一交易和第二交易是否满足第一预设关系;
若是,则生成确定所述第一交易和所述第二交易的状态为验证通过的所述第一控制指令;
若否,则生成确定所述第一交易和所述第二交易的状态为验证失败的所述第一控制指令。
其中,所述第一交易和第二交易为密文。
其中,所述装置还包括账户绑定模块406,所述账户绑定模块406用于:在所述根据所述第一控制指令确定所述第一交易和第二交易的状态之后,若确定所述第一交易和所述第二交易为验证通过,则针对所述两个消费账户执行以下操作:
确定当前处理的第一消费账户在所述两个积分账户中是否存在已绑定的积分账户;
若否,则获取所述第一消费账户的第一用户ID和所述两个积分账户的用户ID;
将所述两个积分账户中的第一积分账户与所述第一消费账户绑定,所述第一积分账户为所述两个积分账户中用户ID为所述第一用户ID的积分账户。
其中,所述第一预设关系包括以下任意一种:所述第一交易涉及的消费交互数据为所 述第二交易的积分交互数据的预设倍数;
所述第一交易涉及的消费交互数据大于第一预设值时,所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的差为所述第一预设值,所述第一预设值为正整数;
当第一事件的发生时间为第一预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=nx,n大于0小于等于1;当第一事件的发生时间为第二预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=mx+b,m大于1,大于1,b为常数。
本申请实施例中,在检测到待验证的第一交易和第二交易时,根据第一交易和第二交易生成交易验证请求,并向服务器发送交易验证请求,第一交易和第二交易关联,第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,消费账本和积分账本为根据第一业务规则创建的账本,之后,接收来自服务器的第一控制指令,第一控制指令为服务器根据交易认证请求和第一预设关系,对第一交易和第二交易进行验证生成的指令,最后,根据第一控制指令确定第一交易和第二交易的状态。本申请有利于提高账本管理的可靠性。即通过在服务器中根据第一预设关系对不同的交易进行验证,使得数字资产(积分)的变化更公开、透明、可信,保障各个账本间的数字资产变化情况符合预先设定规则(对应前述第一预设关系),不会因单个主体的意志而变化,任何参与方都不能对预先设定规则进行篡改,提高账本管理的可靠性,保证了数字资产的安全性。
与上述图2A、图3所示的实施例一致的,请参见图5,是本申请实施例提供的一种电子设备的结构示意图,如图5所示的本实施例中的电子设备可以包括:一个或多个处理器501;一个或多个输入装置502,一个或多个输出装置503和存储器504。上述处理器501、输入装置502、输出装置503和存储器504通过总线505连接。
所处理器501可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
输入装置502可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出装置503可以包括显示器(LCD等)、扬声器等,输出装置503可以输出校正处理后的数据表。
该存储器504可以包括只读存储器和随机存取存储器,并向处理器501提供指令和数据。存储器504的一部分还可以包括非易失性随机存取存储器,存储器504用于存储计算机程序,所述计算机程序包括程序指令,处理器501用于执行存储器504存储的程序指令,以用于执行一种账本管理方法,即用于执行以下操作:
在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
本申请实施例中所描述的处理器501、输入装置502、输出装置503可执行本申请实施例提供的账本管理方法的第一实施例所描述的实现方式,也可执行本申请实施例所描述的电子设备的实现方式,在此不再赘述。
本申请实施例中,在检测到待验证的第一交易和第二交易时,根据第一交易和第二交易生成交易验证请求,并向服务器发送交易验证请求,第一交易和第二交易关联,第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,消费账本和积分账本为根据第一业务规则创建的账本,之后,接收来自服务器的第一控制指令,第一控制指令为服务器根据交易认证请求和第一预设关系,对第一交易和第二交易进行验证生成的指令,最后,根据第一控制指令确定第一交易和第二交易的状态。本申请有利于提高账本管理的可靠性。即通过在服务器中根据第一预设关系对不同的交易进行验证,使得数字资产(积分)的变化更公开、透明、可信,保障各个账本间的数字资产变化情况符合预先设定规则(对应前述第一预设关系),不会因单个主体的意志而变化,任何参与方都不能对预先设定规则进行篡改,提高账本管理的可靠性,保证了数字资产的安全性。
本申请实施例中还提供一种计算机可读存储介质,存储用于电子数据交换的计算机程序,其中,所述计算机程序被计算机执行时实现如图2A实施例中所示的账本管理方法。
可选的,本申请涉及的存储介质如计算机可读存储介质可以是非易失性的,也可以是易失性的。
所述计算机可读存储介质可以是前述任一实施例所述的电子设备的内部存储单元,例如控制设备的硬盘或内存。所述计算机可读存储介质也可以是所述控制设备的外部存储设备,例如所述控制设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述控制设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述控制设备所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
作为示例,上述计算机可读存储介质可被部署在一个计算机设备上执行,或者被部署位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行,分布在多个地点且通过通信网络互连的多个计算机设备可以组成区块链网络。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种账本管理方法,应用于电子设备,所述电子设备与服务器建立通信连接,所述方法包括:
    在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向所述服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
    接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
    根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
  2. 根据权利要求1所述的方法,其中,所述在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求之前,所述方法还包括:
    获取所述第一业务规则;
    获取根据所述第一业务规则创建所述第一账本和所述第二账本;
    获取运营方创建的所述两个消费账户;
    获取两个用户创建的所述两个积分账户。
  3. 根据权利要求1所述的方法,其中,所述接收来自所述服务器的第一控制指令之前,所述方法还包括:
    获取所述第一预设关系;
    向所述服务器发送所述第一预设关系。
  4. 根据权利要求1所述的方法,其中,所述第一控制指令为所述服务器执行以下操作得到的:
    确定所述第一交易和第二交易是否满足第一预设关系;
    若是,则生成确定所述第一交易和所述第二交易的状态为验证通过的所述第一控制指令;
    若否,则生成确定所述第一交易和所述第二交易的状态为验证失败的所述第一控制指令。
  5. 根据权利要求1-4任一项所述的方法,其中,所述第一交易和第二交易为密文。
  6. 根据权利要求1所述的方法,其中,所述根据所述第一控制指令确定所述第一交易和第二交易的状态之后,所述方法还包括:
    若确定所述第一交易和所述第二交易为验证通过,则针对所述两个消费账户执行以下操作:
    确定当前处理的第一消费账户在所述两个积分账户中是否存在已绑定的积分账户;
    若否,则获取所述第一消费账户的第一用户ID和所述两个积分账户的用户ID;
    将所述两个积分账户中的第一积分账户与所述第一消费账户绑定,所述第一积分账户为所述两个积分账户中用户ID为所述第一用户ID的积分账户。
  7. 根据权利要求5所述的方法,其中,所述第一预设关系包括以下任意一种:
    所述第一交易涉及的消费交互数据为所述第二交易的积分交互数据的预设倍数;
    所述第一交易涉及的消费交互数据大于第一预设值时,所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的差为所述第一预设值,所述第一预设值为正整数;
    当第一事件的发生时间为第一预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=nx,n大于0小于等于1;当第一事件的发生时间为第二预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=mx+b,m大于1,大于1,b为常数。
  8. 一种账本管理装置,其中,包括:
    发送模块,用于在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
    接收模块,用于接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和第二交易需要满足的关系;
    确定模块,用于根据所述第一控制指令确定所述第一交易和第二交易的状态,所述状态包括验证失败或验证成功。
  9. 一种电子设备,包括:
    处理器,适于实现一条或一条以上指令;以及,
    计算机可读存储介质,所述计算机可读存储介质存储有一条或一条以上指令,所述一条或一条以上指令适于由所述处理器加载并执行账本管理方法,所述账本管理方法包括:
    在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
    接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
    根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
  10. 根据权利要求9所述的电子设备,其中,所述在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求之前,还包括:
    获取所述第一业务规则;
    获取根据所述第一业务规则创建所述第一账本和所述第二账本;
    获取运营方创建的所述两个消费账户;
    获取两个用户创建的所述两个积分账户。
  11. 根据权利要求9所述的电子设备,其中,所述接收来自所述服务器的第一控制指令之前,还包括:
    获取所述第一预设关系;
    向所述服务器发送所述第一预设关系。
  12. 根据权利要求9所述的电子设备,其中,所述第一控制指令为所述服务器执行以下操作得到的:
    确定所述第一交易和第二交易是否满足第一预设关系;
    若是,则生成确定所述第一交易和所述第二交易的状态为验证通过的所述第一控制指令;
    若否,则生成确定所述第一交易和所述第二交易的状态为验证失败的所述第一控制指令。
  13. 根据权利要求9所述的电子设备,其中,所述根据所述第一控制指令确定所述第一交易和第二交易的状态之后,还包括:
    若确定所述第一交易和所述第二交易为验证通过,则针对所述两个消费账户执行以下操作:
    确定当前处理的第一消费账户在所述两个积分账户中是否存在已绑定的积分账户;
    若否,则获取所述第一消费账户的第一用户ID和所述两个积分账户的用户ID;
    将所述两个积分账户中的第一积分账户与所述第一消费账户绑定,所述第一积分账户为所述两个积分账户中用户ID为所述第一用户ID的积分账户。
  14. 根据权利要求9所述的电子设备,其中,所述第一预设关系包括以下任意一种:
    所述第一交易涉及的消费交互数据为所述第二交易的积分交互数据的预设倍数;
    所述第一交易涉及的消费交互数据大于第一预设值时,所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的差为所述第一预设值,所述第一预设值为正整数;
    当第一事件的发生时间为第一预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=nx,n大于0小于等于1;当第一事件的发生时间为第二预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=mx+b,m大于1,大于1,b为常数。
  15. 一种计算机可读存储介质,存储用于电子数据交换的计算机程序,其中,所述计算机程序被计算机执行时实现账本管理方法,所述账本管理方法包括:
    在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求,所述第一交易和所述第二交易关联,所述第一交易用于反映消费账本中的两个消费账户之间的消费交互情况,所述第二交易用于反映积分账本中的两个积分账户之间的积分交互情况,所述消费账本和所述积分账本为根据第一业务规则创建的账本;
    接收来自所述服务器的第一控制指令,所述第一控制指令为所述服务器根据所述交易认证请求和第一预设关系,对所述第一交易和所述第二交易进行验证生成的指令,所述第一预设关系为与所述第一业务规则对应的,所述第一交易和所述第二交易需要满足的关系;
    根据所述第一控制指令确定所述第一交易和所述第二交易的状态,所述状态包括验证失败或验证成功。
  16. 根据权利要求15所述的计算机可读存储介质,其中,所述在检测到待验证的第一交易和第二交易时,根据所述第一交易和所述第二交易生成交易验证请求,并向服务器发送所述交易验证请求之前,还包括:
    获取所述第一业务规则;
    获取根据所述第一业务规则创建所述第一账本和所述第二账本;
    获取运营方创建的所述两个消费账户;
    获取两个用户创建的所述两个积分账户。
  17. 根据权利要求15所述的计算机可读存储介质,其中,所述接收来自所述服务器的第一控制指令之前,还包括:
    获取所述第一预设关系;
    向所述服务器发送所述第一预设关系。
  18. 根据权利要求15所述的计算机可读存储介质,其中,所述第一控制指令为所述服 务器执行以下操作得到的:
    确定所述第一交易和第二交易是否满足第一预设关系;
    若是,则生成确定所述第一交易和所述第二交易的状态为验证通过的所述第一控制指令;
    若否,则生成确定所述第一交易和所述第二交易的状态为验证失败的所述第一控制指令。
  19. 根据权利要求15所述的计算机可读存储介质,其中,所述根据所述第一控制指令确定所述第一交易和第二交易的状态之后,还包括:
    若确定所述第一交易和所述第二交易为验证通过,则针对所述两个消费账户执行以下操作:
    确定当前处理的第一消费账户在所述两个积分账户中是否存在已绑定的积分账户;
    若否,则获取所述第一消费账户的第一用户ID和所述两个积分账户的用户ID;
    将所述两个积分账户中的第一积分账户与所述第一消费账户绑定,所述第一积分账户为所述两个积分账户中用户ID为所述第一用户ID的积分账户。
  20. 根据权利要求15所述的计算机可读存储介质,其中,所述第一预设关系包括以下任意一种:
    所述第一交易涉及的消费交互数据为所述第二交易的积分交互数据的预设倍数;
    所述第一交易涉及的消费交互数据大于第一预设值时,所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的差为所述第一预设值,所述第一预设值为正整数;
    当第一事件的发生时间为第一预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=nx,n大于0小于等于1;当第一事件的发生时间为第二预设时间,则所述第一交易涉及的消费交互数据与所述第二交易的积分交互数据的关系可以是:y=mx+b,m大于1,大于1,b为常数。
PCT/CN2021/123442 2020-10-13 2021-10-13 账本管理方法、装置、设备以及存储介质 WO2022078359A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011094064.4A CN112184246A (zh) 2020-10-13 2020-10-13 账本管理方法、装置、设备以及存储介质
CN202011094064.4 2020-10-13

Publications (1)

Publication Number Publication Date
WO2022078359A1 true WO2022078359A1 (zh) 2022-04-21

Family

ID=73950008

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/123442 WO2022078359A1 (zh) 2020-10-13 2021-10-13 账本管理方法、装置、设备以及存储介质

Country Status (2)

Country Link
CN (1) CN112184246A (zh)
WO (1) WO2022078359A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112184246A (zh) * 2020-10-13 2021-01-05 深圳壹账通智能科技有限公司 账本管理方法、装置、设备以及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180308138A1 (en) * 2015-11-17 2018-10-25 Nanjin Tangyi Digital Technology Co., Ltd Data processing method and apparatus
CN110417561A (zh) * 2018-04-28 2019-11-05 华为技术有限公司 一种基于区块链的分布式计费方法、装置和系统
CN111178930A (zh) * 2019-02-12 2020-05-19 今日出行体育发展(上海)有限公司 一种基于区块链的积分系统及其使用方法
CN111368311A (zh) * 2020-02-17 2020-07-03 深圳壹账通智能科技有限公司 一种基于区块链的积分管理方法及相关装置
CN112184246A (zh) * 2020-10-13 2021-01-05 深圳壹账通智能科技有限公司 账本管理方法、装置、设备以及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03100788A (ja) * 1989-09-14 1991-04-25 Oki Electric Ind Co Ltd 自動取引装置
US9721238B2 (en) * 2009-02-13 2017-08-01 Visa U.S.A. Inc. Point of interaction loyalty currency redemption in a transaction
CN104166928A (zh) * 2014-07-03 2014-11-26 吴庆喜 基于二维码的交易平台消费积分兑换与支付的方法
CN108764911B (zh) * 2018-06-05 2021-08-03 北京阿尔山区块链联盟科技有限公司 互联网积分的交易方法及系统
CN111445281A (zh) * 2020-03-18 2020-07-24 中国建设银行股份有限公司 基于区块链的积分监控方法、装置及计算机可读存储介质
CN111738756A (zh) * 2020-06-12 2020-10-02 浪潮软件股份有限公司 一种使用区块链合约技术建立积分流转体系的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180308138A1 (en) * 2015-11-17 2018-10-25 Nanjin Tangyi Digital Technology Co., Ltd Data processing method and apparatus
CN110417561A (zh) * 2018-04-28 2019-11-05 华为技术有限公司 一种基于区块链的分布式计费方法、装置和系统
CN111178930A (zh) * 2019-02-12 2020-05-19 今日出行体育发展(上海)有限公司 一种基于区块链的积分系统及其使用方法
CN111368311A (zh) * 2020-02-17 2020-07-03 深圳壹账通智能科技有限公司 一种基于区块链的积分管理方法及相关装置
CN112184246A (zh) * 2020-10-13 2021-01-05 深圳壹账通智能科技有限公司 账本管理方法、装置、设备以及存储介质

Also Published As

Publication number Publication date
CN112184246A (zh) 2021-01-05

Similar Documents

Publication Publication Date Title
JP6859506B2 (ja) デジタル証明書管理方法、装置、およびシステム
US11196572B2 (en) Blockchain-based content verification
US11171782B2 (en) Identity and electronic signature verification in blockchain
TWI727594B (zh) 塊鏈式帳本中的簽名驗證方法、系統、裝置及設備
WO2020001103A1 (zh) 基于区块链的电子签名方法及装置、电子设备
KR102404284B1 (ko) 디지털 마크를 생성하기 위한 시스템 및 방법
TW202022754A (zh) 基於區塊鏈的發票創建方法及裝置、電子設備
US11019053B2 (en) Requesting credentials
US20230080322A1 (en) User id codes for online verification
US20200082388A1 (en) Authenticating server and method for transactions on blockchain
CN112819466A (zh) 数字通证的处理方法、装置、终端设备及存储介质
WO2020233236A1 (zh) 一种应用于区块链的可消耗凭证的验证方法和装置
CN111612456A (zh) 过期数字证书管控方法、系统、装置及存储介质
US20240020691A1 (en) Systems and methods for authenticated trust distribution using blockchain
CN111047327A (zh) 一种智能合约的执行方法、装置及设备
WO2022078359A1 (zh) 账本管理方法、装置、设备以及存储介质
CN110347750B (zh) 基于区块链的数据处理方法和装置
CN117426072A (zh) 可验证凭证中的背书声明
CN111311259A (zh) 票据处理方法、装置、终端及计算机可读存储介质
CN113922962A (zh) 一种数字身份属性的选择性披露方法和装置
WO2023134259A1 (zh) 基于点对点的数据处理方法、系统、计算设备及存储介质
CN110599176A (zh) 基于区块链的数据处理方法、装置、存储介质及节点设备
WO2023039344A1 (en) Non-fungible tokens for payment instruments
US20210406395A1 (en) Personal information vault
CN111159746A (zh) 基于区块链技术的学习行为数据存储方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21879402

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14/07/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21879402

Country of ref document: EP

Kind code of ref document: A1