CN111159308B - Transaction record sharing method and device based on block chain network and electronic equipment - Google Patents

Transaction record sharing method and device based on block chain network and electronic equipment Download PDF

Info

Publication number
CN111159308B
CN111159308B CN202010254521.5A CN202010254521A CN111159308B CN 111159308 B CN111159308 B CN 111159308B CN 202010254521 A CN202010254521 A CN 202010254521A CN 111159308 B CN111159308 B CN 111159308B
Authority
CN
China
Prior art keywords
account
transaction
user
authorization
authorized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010254521.5A
Other languages
Chinese (zh)
Other versions
CN111159308A (en
Inventor
徐惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010899612.4A priority Critical patent/CN111897879B/en
Priority to CN202010254521.5A priority patent/CN111159308B/en
Publication of CN111159308A publication Critical patent/CN111159308A/en
Application granted granted Critical
Publication of CN111159308B publication Critical patent/CN111159308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

One or more embodiments of the present application provide a transaction record sharing method and apparatus based on a blockchain network, and an electronic device. The method is applied to node equipment in a block chain network, and specifically can include responding to a transaction record synchronization request initiated by a user, and synchronizing transaction records completed by the user in a third party transaction account into an authorization account created for the user in the block chain network; and the transaction account and the authorization account are associated accounts. Establishing a deposit transaction corresponding to the authorized account; wherein, the deposit transaction comprises the transaction record. And sending the deposit and certificate transaction to other node equipment in the blockchain network to perform consensus processing on the transaction record, and storing the transaction record to a distributed account book of the blockchain network after the consensus is passed.

Description

Transaction record sharing method and device based on block chain network and electronic equipment
Technical Field
The present application relates to the field of blockchain network technologies, and in particular, to a transaction record sharing method and apparatus based on a blockchain network, and an electronic device.
Background
The block chain network technology, also called as distributed ledger technology, is an emerging technology in which a plurality of computing devices participate in 'accounting' together, and a complete distributed database is maintained together. The blockchain network technology has been widely applied in many fields due to the characteristics of decentralization, public transparency, participation of each computing device in database recording, and rapid data synchronization among the computing devices.
Disclosure of Invention
The application provides a transaction record sharing method based on a block chain network, which is applied to node equipment in the block chain network; the method comprises the following steps:
responding to a transaction record synchronization request initiated by a user, synchronizing a transaction record completed by the user in a third-party transaction account into an authorization account established for the user in the block chain network; wherein, the transaction account and the authorization account are associated accounts;
establishing a deposit transaction corresponding to the authorized account; wherein the deposit transaction comprises the transaction record;
and sending the deposit and certificate transaction to other node equipment in the blockchain network to perform consensus processing on the transaction record, and storing the transaction record to a distributed account book of the blockchain network after the consensus is passed.
In an embodiment, the method further includes:
and responding to an association request initiated by a user, and associating the transaction account corresponding to the user with an authorization account established for the user in the block chain network.
In an embodiment, associating the transaction account corresponding to the user with an authorized account created for the user in the blockchain network includes:
granting the authorization account to the transaction account to form an association relationship between the authorization account and the transaction account;
storing the association relationship into the authorized account to complete the association;
the synchronizing, in response to a transaction record synchronization request initiated by a user, a transaction record completed by the user in a third-party transaction account into an authorized account created for the user in the blockchain network includes:
and responding to a data writing request initiated by a user through a third-party transaction account and aiming at an authorized account created for the user in the block chain network, receiving a transaction record which is written by the user through the third-party transaction account and is completed by the user in the third-party transaction account, and sending the transaction record to the authorized account.
In an embodiment shown, before granting the authorization account the right to operate, the method further includes:
initiating a real person identity authentication request aiming at the user;
collecting the real identity authentication information of the user;
performing real person identity authentication based on the real person identity authentication information;
and if the physical identity authentication aiming at the user passes, granting the authorization account with the authority of operating the authorization account to the transaction account.
In an embodiment, associating the transaction account corresponding to the user with an authorized account created for the user in the blockchain network includes:
granting the authority for operating the transaction account to the authorization account to form an association relationship between the authorization account and the transaction account;
storing the association relationship into the authorized account to complete the association;
the synchronizing, in response to a transaction record synchronization request initiated by a user, a transaction record completed by the user in a third-party transaction account into an authorized account created for the user in the blockchain network includes:
and responding to a data reading request which is initiated by a user through an authorized account created for the user in the block chain network and aims at a transaction record completed in a third-party transaction account corresponding to the user, and reading the transaction record from the transaction account.
In an embodiment, the method further includes:
analyzing the transaction records synchronized to the authorized account to obtain an analysis result;
and carrying out multi-dimensional statistics on the transaction records based on the analysis result.
In one illustrative embodiment, the blockchain network includes a number of authorized accounts created for users; the plurality of authorized accounts maintain the distributed account book of the block chain together.
In one embodiment, the authorization account is associated with a transaction account registered by the user on a plurality of third party platforms
In an embodiment, the method further includes:
randomly selecting an authorization account, and sending an authorization request to the selected authorization account;
and in response to a response of receiving authorization returned by the authorization account, granting an audit authority to the authorization account so that the authorization account audits other authorization accounts.
The application also provides a transaction record sharing device based on the block chain network, which is applied to the node equipment in the block chain network; the above-mentioned device includes:
the synchronization module is used for responding to a transaction record synchronization request initiated by a user, synchronizing the transaction record completed by the user in a third-party transaction account into an authorization account established for the user in the block chain network; wherein, the transaction account and the authorization account are associated accounts;
the construction module is used for constructing the deposit transaction corresponding to the authorization account; wherein the deposit transaction comprises the transaction record;
and the sending module is used for sending the deposit and certificate transaction to other node equipment in the blockchain network so as to perform consensus processing on the transaction record, and storing the transaction record to a distributed account book of the blockchain network after the consensus is passed.
In an embodiment, the apparatus further includes:
and the association module is used for responding to an association request initiated by a user, and associating the transaction account corresponding to the user with the authorization account established for the user in the block chain network.
In an embodiment, the associating module includes:
the first authorization module grants the authorization account with the operation authority to form the association relationship between the authorization account and the transaction account;
the second storage module stores the association relationship into the authorized account to complete the association;
the above-mentioned synchronization module includes:
the receiving module is used for responding to a data writing request which is initiated by a user through a third-party transaction account and aims at an authorization account established for the user in the block chain network, receiving a transaction record which is written by the user through the third-party transaction account and is completed by the user in the third-party transaction account, and sending the transaction record to the authorization account.
In an embodiment, the associating module further includes:
the authentication module is used for initiating an identity authentication request of an actual person aiming at the user;
collecting the real identity authentication information of the user;
performing real person identity authentication based on the real person identity authentication information;
and if the physical identity authentication aiming at the user passes, granting the authorization account with the authority of operating the authorization account to the transaction account.
In an embodiment, the associating module includes:
the second authorization module grants the authorization account with the authority for operating the transaction account so as to form the association relationship between the authorization account and the transaction account;
the second storage module stores the association relationship into the authorized account to complete the association;
the above-mentioned synchronization module includes:
and the reading module is used for responding to a data reading request which is initiated by a user through an authorized account created for the user in the block chain network and aims at a transaction record completed in a third-party transaction account corresponding to the user, and reading the transaction record from the transaction account.
In an embodiment, the apparatus further includes:
the analysis module analyzes the transaction records synchronized to the authorized account to obtain an analysis result;
and the counting module is used for carrying out multi-dimensional counting on the transaction records based on the analysis result.
In one illustrative embodiment, the blockchain network includes a number of authorized accounts created for users; the plurality of authorized accounts maintain the distributed account book of the block chain together.
In an embodiment, the apparatus further includes:
the authorization account is associated with transaction accounts registered by the user at a plurality of third party platforms.
In an embodiment, the apparatus further includes:
the selection module randomly selects the authorization account and sends an authorization request to the selected authorization account;
and in response to a response of receiving authorization returned by the authorization account, granting an audit authority to the authorization account so that the authorization account audits other authorization accounts.
According to the technical scheme, on one hand, when a user needs to perform accounting in the distributed account book, only a transaction synchronization request needs to be initiated, and the node device corresponding to the user can respond to the transaction record synchronization request initiated by the user and synchronize a transaction record completed by the user in a third-party transaction account into an authorized account established for the user in the block chain network to complete automatic accounting, so that an administrator can be prevented from performing false accounting through the scheme recorded in the application, and the authenticity of the maintained account book is ensured;
on the other hand, due to the characteristic of distributed accounting of the blockchain network, the user node in the blockchain network cannot tamper the content recorded in the distributed account book by other user nodes, so that the user can be prevented from modifying the content in the distributed account book without permission, and the maintained account book is credible.
On the other hand, the user can initiate a data writing request aiming at the authorized account established for the user in the block chain network in real time through the transaction account, so that the scheme recorded by the application can be used for recording the occurred transaction into the account book in real time without opening other accounting tools by the user, and the user is prevented from forgetting
Drawings
Fig. 1 is a flowchart illustrating a method for sharing transaction records based on a blockchain network according to the present invention;
fig. 2 is a schematic diagram of a billing platform constructed based on a blockchain network according to the present application;
FIG. 3 is a block diagram of a transaction record sharing device based on a blockchain network according to the present application;
fig. 4 is a hardware structure diagram of a transaction record sharing device based on a blockchain network according to the present application.
Detailed Description
With the increasing popularity of the internet, more and more users choose to perform multi-person billing on the network. Especially in a scenario where multiple people maintain the same account book together, the user has to perform accounting through the network platform.
For example, in a equity funds management scenario, many users participating in funds management may be involved in network billing. When any user makes a transaction, the user typically records the transaction in a network book (e.g., random, circle, etc.).
However, at least the following disadvantages exist in the current network billing mode:
on one hand, when the user performs accounting on the network platform, the user inputs expense information in the network platform, so that the user can possibly make a false account, and the authenticity of the maintained account book cannot be ensured;
on the other hand, when the user performs accounting on the network platform, the existing records of other administrators may be modified without permission, so that the credibility of the maintained account book cannot be ensured;
on the other hand, users usually open other accounting tools for accounting after the actual transaction occurs, and therefore, the users may not be able to account in real time, and the users may miss the account.
Based on the above, the application provides a transaction record sharing method based on a blockchain network. According to the method, a transaction record sharing platform is built based on the blockchain network, so that transactions conducted by a user in a third party are distributed and recorded on nodes included in the blockchain network in real time, and real-time, transparent and credible accounting is achieved.
The method can be applied to node equipment in a block chain network, and specifically, the node can respond to a transaction record synchronization request initiated by a user and synchronize a transaction record completed by the user in a third-party transaction account into an authorization account created for the user in the block chain network; and the transaction account and the authorization account are associated accounts.
After receiving the transaction record, the node can also construct a deposit transaction corresponding to the authorized account. Wherein, the deposit transaction comprises the transaction record.
After the change ratio deposit transaction is constructed, the node can also send the deposit transaction to other node devices in the blockchain network to perform consensus processing on the transaction record, and store the transaction record to a distributed account book of the blockchain network after the consensus passes.
The technical solution proposed in the present application will be described below with reference to specific examples.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for sharing transaction records based on a blockchain network according to the present invention. The method can be applied to node devices in a blockchain network. As shown in fig. 1, the method may include:
s101, responding to a transaction record synchronization request initiated by a user, synchronizing a transaction record completed by the user in a third-party transaction account into an authorization account established for the user in the block chain network; wherein, the transaction account and the authorization account are associated accounts;
s102, establishing a deposit certificate transaction corresponding to the authorization account; wherein the deposit transaction comprises the transaction record;
and S103, sending the transaction record to other node devices in the blockchain network to perform consensus processing on the transaction record, and storing the transaction record to a distributed account book of the blockchain network after the consensus is passed.
The block chain network may be a public chain (public block chain), a Private chain (Private block chain), a federation chain (Consortium block chain), or any combination thereof, which is constructed based on a server or a server cluster. The above-described blockchain network system may include several nodes. The node can be a mobile phone, an IPAD and other terminal equipment.
The nodes can comprise an administrator node and a user node. The administrator node may execute an administrator role to manage the blockchain network. For example, when a user needs to join the blockchain network, the administrator node may assign an authorized account to the user.
The user node specifically refers to a node device used by a user. For example, after the user successfully registers in the blockchain network, the user may log in an authorized account allocated to the user through an accounting client carried by the node device, thereby completing one accounting.
The transaction record is specifically a transaction record completed by the user in the third-party transaction account. In a practical scenario, a user will typically register a transaction account with a third party platform (e.g., some e-commerce transaction platform). Through the transaction account, the user can perform transaction in the third-party platform. If the transaction of the user in the third-party platform needs to be recorded in the ledger, the user can initiate a request for synchronizing the transaction record to the blockchain network so as to complete the accounting.
The third party transaction account (hereinafter, referred to as the transaction account) and the authorization account are associated accounts. That is, transaction records occurring in the transaction account may be synchronized to the authorization account. In practical applications, a user may associate a transaction account owned by the user on a third-party platform with an authorization account allocated to the user on the blockchain network in advance, so that a transaction record of the user in the third-party transaction account may be synchronized with the authorization account.
Wherein the authorization account is associable with a plurality of third party transaction accounts owned by the user; the third party transaction accounts may be affiliated with different third party platforms. For example, in one scenario, the user may register a transaction account with each three-party transaction platform. In order to synchronize the transaction completed by the user in each transaction platform to the authorization account corresponding to the user, the user may initiate a request for associating the transaction account registered in each three-party transaction platform with the authorization account in advance. The user node may respond to the request to form an association relationship between the authorized account and each transaction account, and complete storage to complete the association.
The distributed account book (hereinafter referred to as an account book) may specifically be an account book maintained in the blockchain network and used for accounting for a user. In one case, the ledger may be maintained collectively by a plurality of user nodes authorized by the administrator node. The above-mentioned account book can be maintained the user of this account book to and auditor inquires.
When the user has a transaction in the third-party transaction account, the user can make real-time account in the account book through the node device used by the user.
If the user has to account for the transaction, a response confirming synchronization can be made in real time. At this time, the node device may synchronize, in response to the synchronization request initiated by the user, a transaction record completed by the user in a third-party transaction account into an authorized account created for the user in the blockchain network.
After the authorization account corresponding to the user receives the transaction record, a deposit transaction corresponding to the authorization account can be constructed, and the constructed deposit transaction is sent to other node devices in the block chain network. After receiving the deposit transaction, the node devices can perform consensus processing on transaction records included in the deposit transaction. When other nodes pass the consensus of the transaction record, the node device may store the transaction record in a distributed ledger of the blockchain network.
According to the scheme, on one hand, when a user needs to perform accounting in the distributed account book, only a transaction synchronization request needs to be initiated, and the node device corresponding to the user can respond to the transaction record synchronization request initiated by the user and synchronize a transaction record completed by the user in a third-party transaction account into an authorized account created for the user in the block chain network so as to complete automatic accounting, so that an administrator can be prevented from performing false accounting through the scheme recorded in the application, and the authenticity of the maintained account book is ensured;
on the other hand, due to the characteristic of distributed accounting of the blockchain network, the user node in the blockchain network cannot tamper the content recorded in the distributed account book by other user nodes, so that the user can be prevented from modifying the content in the distributed account book without permission, and the maintained account book is credible.
In an embodiment, the node device in the blockchain network may further associate, in response to an association request initiated by a user, a transaction account corresponding to the user with an authorization account created for the user in the blockchain network, so that a transaction record generated by the transaction account may be synchronized to the authorization account.
In one scenario, a user may initiate a request to grant authorization for an authorized account operation to the transaction account; so that the authorization account can receive the transaction record written by the transaction account to complete the synchronization of the transaction record.
For example, a user may log in an authorized account created for the blockchain network in the node device through an accounting client (the accounting client is a client corresponding to an accounting server configured by the blockchain network). After the verification login is completed, the user can authorize the account password of the authorized account to a transaction account (for example, an account of a certain e-commerce platform) selected by the user through related operations on an interface provided by the client, so that after the user completes a transaction in any transaction account, a third party platform corresponding to the transaction account can log in the authorized account through the acquired account password of the authorized account, and write the transaction into the authorized account.
At this time, after the user makes a transaction in the transaction account, the node device may prompt the user to select whether to synchronize the transaction record to the authorized account through the display module in real time.
If the user selects the condition that the synchronization is needed (for example, the condition that the synchronization is needed in the popup window), the transaction account can write the authorization account corresponding to the user through the corresponding third-party platform, so that the transaction record can be written into the authorization account.
Here, it should be noted that, on one hand, the application does not limit the implementation manner of synchronizing the transaction records into the authorized account, and the above is only an exemplary illustration; on the other hand, the present application also does not limit the manner for reminding the user of selecting whether to synchronize in real time.
In this case, on one hand, after a transaction occurs in a transaction account by a user, the node device may prompt the user to select whether to synchronize the transaction record into an authorized account through the display module in real time, so that the user may initiate a data write request for the authorized account created for the user in the blockchain network through the transaction account in real time.
On the other hand, the user can choose to enter the transaction of the account book into the account book, thereby increasing the convenience of accounting.
In the above situation, since the user needs to authorize the operation authority for the authorized account to the transaction account, in order to ensure the security of the above operation, before authorizing the operation authority for the authorized account to the transaction account, security authentication (e.g., real person authentication) needs to be performed on the transaction account.
In practical applications, the user node device may perform physical identity authentication on the user. If the user passes the physical identity authentication, the authorization account can be granted the authority to operate the authorization account.
For example, the facial recognition mechanism may be initiated when a user initiates a request to associate an authorization account with a transaction account. The mechanism may collect facial features of a user through a terminal camera and compare the facial features to facial features of a photograph on a user identification card (e.g., an identification card stored in a public security system). If the comparison is consistent, the result shows that the user is actually making the association request, so that the user passes the real person authentication.
When the user is authenticated, whether the transaction account is the account owned by the user can be verified. If yes, the authorization account is granted to the transaction account.
For example, when verifying whether the transaction account is an account owned by the user, the registration information of the transaction account may be compared with the user information of the user. If the two are consistent, the transaction account is described as owned by the user.
By carrying out real person verification on the user, the user can be ensured to carry out account association operation, so that the safety in the account association stage is improved. The above security authentication method may further include other security verification methods, such as fingerprint verification, password verification, and the like.
In another case, the user may initiate a request to grant the authorization account with the right to operate on the transaction account; so that the authorized account can read the transaction record from the transaction account to complete the synchronization of the transaction record.
For example, the user may log in the transaction account through a third-party client (the third-party client is a client corresponding to the transaction account) in the node device. After completing the authentication login, the user may authorize the account password of the transaction account (e.g., transaction account) to the authorized account.
At this time, on one hand, after the user has made a transaction in the transaction account, the transaction account may remind the user in real time whether to synchronize the transaction record to an authorized account.
If the user selects the condition that the transaction records need to be synchronized (for example, the condition that the transaction records need to be synchronized in a popup window), the transaction account can interact with the accounting platform through a corresponding third party platform (the accounting platform is an accounting platform constructed based on the blockchain network and corresponds to the account book), so that the authorization account corresponding to the user can read the transaction account, and the transaction records can be read to the authorization account.
On the other hand, when the user needs to record multiple transactions into the account book at one time, the related operation of accessing the transaction account associated with the authorized account can be performed on the authorized account. Then, among the plurality of transaction records recorded in the transaction account, the transaction record needing to be synchronized is selected. After the selection is finished, the authorization account can read the transaction record selected by the user from the transaction account at one time and write the transaction record into the blockchain network, so that the synchronous accounting of the multiple transactions is completed.
Here, it should be noted that, on one hand, the application does not limit the implementation manner of synchronizing the transaction records into the authorized account, and the above is only an exemplary illustration; on the other hand, the present application does not limit the manner in which the user selects whether to synchronize the transaction records.
In this case, on one hand, after a transaction occurs in the transaction account, the user can select whether to record the transaction in the account book in real time, so that the scheme described in the application can record the transaction which has occurred in the account book in real time without opening other accounting tools by the user, thereby avoiding the user from missing the record.
On the other hand, the user can select multiple transaction records to be recorded in the account book at one time, so that the convenience of accounting is improved.
In the above situation, since the user needs to authorize the operation right of the authorized account to the transaction account, in order to ensure the security of the above operation, before authorizing the operation right of the authorized account to the transaction account, the security authentication of the transaction account may be selected (the security authentication process may refer to the foregoing content, and will not be described in detail here).
In an embodiment, a user may initiate a request, grant the authorization account with the right to operate on the authorization account, and also grant the authorization account with the right to operate on the transaction account, so that the authorization account and the transaction account corresponding to the user may operate with each other. In this case, when synchronizing the transaction records, the user may synchronize the transaction occurring in the transaction account into the authorized account by completing the synchronization of the transaction records in the transaction account or accessing the transaction account through the authorized account. In this way, the convenience of user billing can be increased.
In an embodiment, in order to facilitate auditing the ledger, an auditing node may be further included in the blockchain network.
The audit node is specifically a node capable of auditing an accounting process of a user in the block chain network. And account information of the audit account corresponding to the audit node is confidential information.
The auditing node can audit the accounting process of each user node. In one case, the auditing node can perform trace auditing on the accounting process of the user node in real time. If the auditing node determines that the accounting process of a certain user node is abnormal during auditing (for example, transaction records are synchronized in an abnormal transaction record synchronization mode), the auditing node can optionally notify the abnormal accounting behavior of the user to other user nodes which commonly maintain the same account book.
In another case, the auditing node may audit the distributed ledger in response to an audit requirement. For example, the maintenance process of the distributed account book is audited, and if the auditing node determines that a certain transaction record is abnormal in the auditing process, the auditing node can select to notify the abnormal transaction record to a user node which maintains the account book together.
By adding the auditing node in the block chain network, the accounting process of the accounting user can be audited, thereby avoiding the user from accounting false accounts.
In practical application, after receiving a join request of an auditor, the blockchain network may create an audit account for the auditor in response to the request, and keep secret about related information of the audit account, so as to prevent other users from performing illegal operations such as bribing after obtaining the audit account information.
In an embodiment, the node in the blockchain network may further randomly designate each authorized account as an audit account, so that a user authorized to be an audit account can audit the accounting process of the ledger.
In practical application, the node may randomly select an authorization account and send an authorization request to the selected authorization account. Then, the node can grant an audit authority to the authorized account in response to a response of receiving the authorization returned by the authorized account, so that the authorized account can audit other authorized accounts.
By the method, the user can audit the accounting processes of other users, and mutual supervision of users maintaining the same account book is promoted, so that the counterfeiting risk is avoided, and the credibility of the account book is improved.
In one embodiment, the node may parse the transaction record received from the authorized account to obtain a parsing result. Then, based on the analysis result, the transaction records are subjected to multi-dimensional statistics, and the called transaction records can be subjected to statistics in various accounting modes.
For example, the node devices may count in dimension the date the transaction occurred. As another example, the node devices may count in the dimension of transaction types. It can be understood by those skilled in the art that the aforementioned billing method can be varied, and the billing method that can be conceived by those skilled in the art is within the scope of the present application.
The following describes embodiments of the present application in detail with reference to actual scenarios.
Referring to fig. 2, fig. 2 is a schematic diagram of a billing platform built based on a blockchain network according to the present application. As shown in fig. 2, the billing platform includes an administrator node, a user node, and an audit node. And the administrator node is used for performing daily management on the accounting platform. The user node may log in an authorized account associated with the transaction account to post transaction records generated by the transaction account to the billing platform. And the auditing node audits the accounting process of the user node.
The administrator node may enable a plurality of user nodes to maintain one account book in common in response to requests of the plurality of user nodes. The accounting platform adopts an authorization mode of opening an account password of the user authorization account to the transaction account, and associates the user authorization account with the transaction account.
Assume that user A, B is a worker of a public welfare organization. Users A, B need to keep track of their respective public expenditures maintained in the same ledger.
At this time, the user A, B may issue a request for applying for an authorized account to the administrator node through a billing platform client installed in each corresponding node device (e.g., a mobile phone). The administrator node, upon receiving the request, may assign an authorization account (i.e., authorization accounts 1, 2 of fig. 2) to each of users A, B. The authorized accounts can commonly maintain the same account book (the account book is used for recording the public welfare expenditure of the public welfare organization).
After obtaining the authorized accounts, the users A, B may log in the authorized accounts through the billing platform clients installed on the corresponding node devices (e.g., mobile phones). After logging in the authorized accounts, the user A, B may perform a related operation on the interface provided by the client, and develop the account password of the authorized account corresponding to the user to a plurality of transaction accounts corresponding to the user (for example, an XX e-commerce platform account, an XX bank account, an XX quick payment account, and the like), so that after the user completes a transaction in any one of the transaction accounts, the third party platform corresponding to the transaction account may log in the authorized account through the acquired account password of the authorized account, and write the transaction in the authorized account.
In the above scenario, suppose user A purchases a batch of masks for donation via the XX e-commerce account on day 1 of 3 months. When the transaction is complete, user A may choose to synchronize the note-book to his authorized account in response to the XX e-commerce client prompt message. At this time, the XX e-commerce background can log in an authorized account corresponding to the user a through a pre-acquired account password after receiving the synchronization request initiated by the user a, and write the transaction record of the transaction into the authorized account.
After the authorization account receives the transaction record, the node device corresponding to the user a may analyze the transaction record according to the entry shown in table 1 to obtain an analysis result. After obtaining the analysis result corresponding to the transaction record, the node device may construct a deposit certificate transaction according to the format shown in table 1. After the deposit transaction for the transaction record is completed, the node device may send the deposit transaction to other node devices in the blockchain network to perform consensus processing on the transaction record. When the other nodes agree on the deposit transaction, the transaction record may be maintained in the ledger. The storage format shown in table 1 is merely an illustrative example, and does not limit the present application.
Figure 335232DEST_PATH_IMAGE001
At this point, user a completes the real-time billing. Through the method, on one hand, the transaction records in the panning account of the user A are directly synchronized to the authorization account corresponding to the user A, so that the user A can be prevented from recording false accounts, and the authenticity of the maintained account book is ensured;
on the other hand, since the user node in the blockchain network cannot tamper the bill recorded in the account book by other user nodes, the user a can be prevented from modifying the account book without permission, thereby ensuring that the maintained account book is credible.
On the other hand, after a transaction occurs in the transaction account, the user A can select whether to record the transaction in the account book in real time, so that the scheme recorded in the application can record the occurred transaction in the account book in real time without opening other accounting tools by the user A, and the user A is prevented from being neglected.
The application also provides a transaction record sharing device based on the block chain network. Referring to fig. 3, fig. 3 is a structural diagram of a transaction record sharing device based on a blockchain network according to the present application.
As shown in fig. 3, the apparatus 300 may include:
a synchronization module 310, configured to synchronize, in response to a transaction record synchronization request initiated by a user, a transaction record completed by the user in a third-party transaction account into an authorization account created for the user in the blockchain network; wherein, the transaction account and the authorization account are associated accounts;
a construction module 320, which constructs the deposit transaction corresponding to the authorization account; wherein the deposit transaction comprises the transaction record;
the sending module 330 is configured to send the deposit and approval transaction to other node devices in the blockchain network to perform consensus processing on the transaction record, and store the transaction record into a distributed ledger of the blockchain network after the consensus is passed.
In an embodiment, the apparatus 300 further comprises:
the association module 340, in response to an association request initiated by a user, associates a transaction account corresponding to the user with an authorized account created for the user in the blockchain network.
In an embodiment, the associating module 340 includes:
the first authorization module grants the authorization account with the operation authority to form the association relationship between the authorization account and the transaction account;
the second storage module stores the association relationship into the authorized account to complete the association;
the synchronization module 310 includes:
the receiving module is used for responding to a data writing request which is initiated by a user through a third-party transaction account and aims at an authorization account established for the user in the block chain network, receiving a transaction record which is written by the user through the third-party transaction account and is completed by the user in the third-party transaction account, and sending the transaction record to the authorization account.
In an embodiment, the associating module 340 further includes:
the authentication module is used for initiating an identity authentication request of an actual person aiming at the user;
collecting the real identity authentication information of the user;
performing real person identity authentication based on the real person identity authentication information;
and if the physical identity authentication aiming at the user passes, granting the authorization account with the authority of operating the authorization account to the transaction account.
In an embodiment, the associating module 340 includes:
the second authorization module grants the authorization account with the authority for operating the transaction account so as to form the association relationship between the authorization account and the transaction account;
the second storage module stores the association relationship into the authorized account to complete the association;
the synchronization module 310 includes:
and the reading module is used for responding to a data reading request which is initiated by a user through an authorized account created for the user in the block chain network and aims at a transaction record completed in a third-party transaction account corresponding to the user, and reading the transaction record from the transaction account.
In an embodiment, the apparatus 300 further comprises:
the analysis module analyzes the transaction records synchronized to the authorized account to obtain an analysis result;
the statistic module 350 performs multidimensional statistics on the transaction records based on the analysis result.
In one illustrative embodiment, the blockchain network includes a number of authorized accounts created for users; the plurality of authorized accounts maintain the distributed account book of the block chain together.
In an embodiment, the apparatus 300 further comprises:
the authorization account is associated with transaction accounts registered by the user at a plurality of third party platforms.
In an embodiment, the apparatus 300 further comprises:
the selection module randomly selects the authorization account and sends an authorization request to the selected authorization account;
and in response to a response of receiving authorization returned by the authorization account, granting an audit authority to the authorization account so that the authorization account audits other authorization accounts.
The embodiment of the transaction record sharing device based on the blockchain network can be applied to transaction record sharing equipment based on the blockchain network. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading, by a processor of the electronic device where the device is located, a corresponding computer program instruction in the nonvolatile memory into the memory for operation. From a hardware aspect, as shown in fig. 4, a hardware structure diagram of a transaction record sharing device based on a blockchain network is shown in this application, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 4, an electronic device where the apparatus is located in the embodiment may also include other hardware according to an actual function of the electronic device, which is not described again.
Please refer to fig. 4, which illustrates a transaction record sharing device based on a blockchain network, the device includes: a processor;
a memory for storing processor-executable instructions;
the processor is configured to call the executable instructions stored in the memory to implement the transaction record sharing method based on the blockchain network disclosed in any of the embodiments.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the claims that follow.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (19)

1. A transaction record sharing method based on a block chain network is applied to node equipment in the block chain network; the method comprises the following steps:
responding to a data writing request initiated by a user participating in multi-person accounting through a third party transaction account and aiming at an authorization account established for the user in the blockchain network, receiving a target transaction record which is written by the user through the third party transaction account and is completed by the user in the third party transaction account, and sending the target transaction record to the authorization account; wherein the transaction account includes a right to operate on the authorized account;
establishing a deposit transaction corresponding to the authorized account; wherein the deposit transaction comprises the target transaction record;
and sending the evidence storage transaction to other node equipment in the blockchain network to perform consensus processing on the target transaction record, and storing the target transaction record to a distributed account book of the blockchain network after the consensus is passed.
2. The method of claim 1, further comprising:
and responding to an association request initiated by a user, and associating a transaction account corresponding to the user with an authorization account established for the user in the blockchain network.
3. The method of claim 2, associating the transaction account corresponding to the user with an authorized account created for the user in the blockchain network, comprising:
granting the authorization account to the transaction account to form an association relationship between the authorization account and the transaction account;
storing the association relationship in the authorized account to complete the association.
4. The method of claim 3, prior to granting the authorization account the right to operate on, further comprising:
initiating a real person identity authentication request aiming at the user;
acquiring the physical identity authentication information of the user;
performing entity identity authentication based on the entity identity authentication information;
and if the physical identity authentication aiming at the user passes, granting the authorization account to the transaction account.
5. The method of claim 2, associating the transaction account corresponding to the user with an authorized account created for the user in the blockchain network, comprising:
granting the authorization account with the authority to operate the transaction account so as to form an association relationship between the authorization account and the transaction account;
storing the association relationship into the authorized account to complete the association;
the synchronizing, in response to a synchronization request initiated by a user participating in multi-person billing for a target transaction record, the target transaction record completed by the user in a third party transaction account into an authorization account created for the user in the blockchain network includes:
and responding to a data reading request initiated by a user through an authorized account created for the user in the blockchain network and aiming at a target transaction record completed in a third-party transaction account corresponding to the user, and reading the target transaction record from the transaction account.
6. The method of claim 1, further comprising:
analyzing the transaction records synchronized to the authorized account to obtain an analysis result;
and carrying out multi-dimensional statistics on the transaction records based on the analysis result.
7. The method of any of claims 1-6, the blockchain network comprising a number of authorized accounts created for the user; the plurality of authorized accounts collectively maintain a distributed ledger for the blockchain.
8. The method of claim 7, the authorization account is associated with transaction accounts registered by the user at a plurality of third party platforms.
9. The method of claim 8, further comprising:
randomly selecting an authorization account, and sending an authorization request to the selected authorization account;
and in response to a response of receiving authorization returned by the authorized account, granting an audit authority to the authorized account so that the authorized account audits other authorized accounts.
10. A transaction record sharing device based on a block chain network is applied to node equipment in the block chain network; the device comprises:
the synchronization module responds to a data writing request which is initiated by a user participating in multi-person accounting through a third-party transaction account and aims at an authorization account established for the user in the block chain network, receives a target transaction record which is written by the user through the third-party transaction account and is completed by the user in the third-party transaction account, and sends the target transaction record to the authorization account; wherein the transaction account includes a right to operate on the authorized account;
the construction module is used for constructing the deposit transaction corresponding to the authorization account; wherein the deposit transaction comprises the target transaction record;
and the sending module is used for sending the evidence storing transaction to other node equipment in the blockchain network so as to perform consensus processing on the target transaction record, and storing the target transaction record to a distributed account book of the blockchain network after the consensus is passed.
11. The apparatus of claim 10, further comprising:
and the association module is used for responding to an association request initiated by a user, and associating the transaction account corresponding to the user with the authorization account established for the user in the block chain network.
12. The apparatus of claim 11, the association module comprising:
the first authorization module grants the authorization account with the authority to operate so as to form an association relationship between the authorization account and the transaction account;
and the second storage module stores the association relationship into the authorized account to complete the association.
13. The apparatus of claim 12, the association module further comprising:
the authentication module is used for initiating an identity authentication request of an actual person aiming at the user;
acquiring the physical identity authentication information of the user;
performing entity identity authentication based on the entity identity authentication information;
and if the physical identity authentication aiming at the user passes, granting the authorization account to the transaction account.
14. The apparatus of claim 11, the association module comprising:
the second authorization module grants the authorization account with the authority for operating the transaction account so as to form an association relationship between the authorization account and the transaction account;
the second storage module stores the association relationship into the authorized account to complete the association;
the synchronization module includes:
the reading module responds to a data reading request which is initiated by a user through an authorized account created for the user in the blockchain network and aims at a target transaction record completed in a third-party transaction account corresponding to the user, and reads the target transaction record from the transaction account.
15. The apparatus of claim 10, further comprising:
the analysis module analyzes the transaction records synchronized to the authorized account to obtain an analysis result;
and the counting module is used for carrying out multi-dimensional counting on the transaction record based on the analysis result.
16. The apparatus of any of claims 10-15, the blockchain network comprising a number of authorized accounts created for a user; the plurality of authorized accounts collectively maintain a distributed ledger for the blockchain.
17. The apparatus of claim 16, the authorization account is associated with transaction accounts registered by the user at a plurality of third party platforms.
18. The apparatus of claim 17, further comprising:
the selection module randomly selects the authorization account and sends an authorization request to the selected authorization account;
and in response to a response of receiving authorization returned by the authorized account, granting an audit authority to the authorized account so that the authorized account audits other authorized accounts.
19. A blockchain network based transaction record sharing device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to invoke executable instructions stored in the memory to implement the blockchain network based transaction record sharing method of any one of claims 1 to 9.
CN202010254521.5A 2020-04-02 2020-04-02 Transaction record sharing method and device based on block chain network and electronic equipment Active CN111159308B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010899612.4A CN111897879B (en) 2020-04-02 2020-04-02 Transaction record sharing method and device based on blockchain network and electronic equipment
CN202010254521.5A CN111159308B (en) 2020-04-02 2020-04-02 Transaction record sharing method and device based on block chain network and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010254521.5A CN111159308B (en) 2020-04-02 2020-04-02 Transaction record sharing method and device based on block chain network and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010899612.4A Division CN111897879B (en) 2020-04-02 2020-04-02 Transaction record sharing method and device based on blockchain network and electronic equipment

Publications (2)

Publication Number Publication Date
CN111159308A CN111159308A (en) 2020-05-15
CN111159308B true CN111159308B (en) 2020-07-24

Family

ID=70567681

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010899612.4A Active CN111897879B (en) 2020-04-02 2020-04-02 Transaction record sharing method and device based on blockchain network and electronic equipment
CN202010254521.5A Active CN111159308B (en) 2020-04-02 2020-04-02 Transaction record sharing method and device based on block chain network and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010899612.4A Active CN111897879B (en) 2020-04-02 2020-04-02 Transaction record sharing method and device based on blockchain network and electronic equipment

Country Status (1)

Country Link
CN (2) CN111897879B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783151A (en) * 2020-06-30 2020-10-16 平安科技(深圳)有限公司 Management method and device of block chain account book and computer equipment
CN111833066A (en) * 2020-07-01 2020-10-27 中国建设银行股份有限公司 Account authorization method, device and system
CN111882842B (en) * 2020-08-04 2022-12-02 珠海格力电器股份有限公司 Early warning method of sharing equipment and sharing equipment
CN113541965B (en) * 2021-01-27 2024-04-09 支付宝(杭州)信息技术有限公司 Communication authorization method, device, equipment and storage medium based on blockchain
CN114357080A (en) * 2021-12-31 2022-04-15 支付宝(杭州)信息技术有限公司 Account data reading and writing method and device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784570A (en) * 2016-08-24 2018-03-09 深圳市图灵奇点智能科技有限公司 A kind of sharing method of electronics account book
CN108446969A (en) * 2018-03-29 2018-08-24 张文昌 A kind of unified public transport book keeping operation and transaction system based on block chain
CN110490723A (en) * 2018-05-15 2019-11-22 全球智能股份有限公司 Loan administration method and system under block chain
CN108846752A (en) * 2018-06-06 2018-11-20 北京京东金融科技控股有限公司 Data processing method, system, block platform chain and readable storage medium storing program for executing
CN108833421A (en) * 2018-06-25 2018-11-16 万惠投资管理有限公司 Automatic synchronization bookkeeping methods and device
US10887081B2 (en) * 2018-06-28 2021-01-05 International Business Machines Corporation Audit trail configuration in a blockchain
CN109190400A (en) * 2018-09-06 2019-01-11 郑州云海信息技术有限公司 A kind of public good management method, platform, terminal and storage medium based on block chain
CN109410049A (en) * 2018-09-18 2019-03-01 深圳周百通科技有限公司 Block chain bookkeeping methods, device, computer equipment and storage medium
KR101962288B1 (en) * 2018-12-31 2019-03-26 주식회사 미탭스플러스 Apparatus for Sharing Economy using Blockchain
EP3893433B1 (en) * 2019-03-21 2023-12-27 Advanced New Technologies Co., Ltd. Data isolation in blockchain networks
CN110334489A (en) * 2019-07-12 2019-10-15 广州大白互联网科技有限公司 A kind of unified single sign-on system and method
CN110490700A (en) * 2019-08-08 2019-11-22 上海源庐加佳信息科技有限公司 A kind of staple commodities spot business system based on block chain intelligence contract
CN110717757A (en) * 2019-09-20 2020-01-21 徐克军 Block chain-based digital home distributed accounting system

Also Published As

Publication number Publication date
CN111897879B (en) 2024-03-26
CN111159308A (en) 2020-05-15
CN111897879A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN111159308B (en) Transaction record sharing method and device based on block chain network and electronic equipment
US20220052852A1 (en) Secure biometric authentication using electronic identity
US11416602B2 (en) Methods and systems for identity creation, verification and management
KR102054410B1 (en) Method for providing reward for delegating computing power for blockchain service management
US10902425B2 (en) System and method for biometric credit based on blockchain
US10958438B2 (en) Method, apparatus, and electronic device for blockchain-based recordkeeping
US10250583B2 (en) Systems and methods to authenticate users and/or control access made by users on a computer network using a graph score
US10789346B2 (en) Online identity scoring
US20180097790A1 (en) Systems and methods to authenticate users and/or control access made by users on a computer network based on scanning elements for inspection according to changes made in a relation graph
CN109768983B (en) Block chain-based multi-dimensional dynamic identity recognition method, device and system
JP2016181242A (en) System and method for enabling multi-party and multi-level authorization for accessing confidential information
US11924201B1 (en) Authentication for application downloads
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
KR20210058608A (en) History management method, apparatus and program for preventing fake using blockchain
CN112700250A (en) Identity authentication method, device and system in financial scene
KR20220136963A (en) System and method for non-face-to-face identification kyc solution having excellent security
US10867326B2 (en) Reputation system and method
KR101876672B1 (en) Digital signature method using block chain and system performing the same
US10990978B2 (en) Method of transaction without physical support of a security identifier and without token, secured by the structural decoupling of the personal and service identifiers
KR20210058091A (en) Method for providing history management system by assigning authentication mark and blockchain-based fake prevention
AU2021107510A4 (en) A method for electronic identity verification and management
KR101997511B1 (en) Agent program for processing bank affairs stored in record medium, system for processing bank affairs, and method for driving the same
US20230224309A1 (en) Method and system for digital identity and transaction verification
US20240112177A1 (en) Systems and methods for identity verification to authorize transactions in decentralized networks
US20230259602A1 (en) Method for electronic identity verification and management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40029932

Country of ref document: HK