CN113704348A - Credit point management method based on distributed account book - Google Patents
Credit point management method based on distributed account book Download PDFInfo
- Publication number
- CN113704348A CN113704348A CN202110760522.1A CN202110760522A CN113704348A CN 113704348 A CN113704348 A CN 113704348A CN 202110760522 A CN202110760522 A CN 202110760522A CN 113704348 A CN113704348 A CN 113704348A
- Authority
- CN
- China
- Prior art keywords
- module
- information
- account
- supervision
- initialization
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Data Mining & Analysis (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Computing Systems (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Software Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a credit point management method based on a distributed account book. The technical scheme of the invention is as follows: the supervision module acquires an integral initialization application of a user; the supervision module authenticates the user identity contained in the integral initialization application, and generates initialization information according to the integral initialization application after the authentication is passed; the supervision module writes the corresponding information into a local database and informs the data module through a message queue; the data module analyzes the information to carry out uplink operation and writes the information into a local database of the data module; the data module feeds back the writing result to the supervision module through the message queue, and the supervision module feeds back the writing result to be written into the local database; the supervision module judges whether the initialization is successful according to the received writing result, and writes the initialization into a local account management database after the initialization is successful to distribute initial points to the accounts; and the supervision module informs the user gateway module of the account information in the local account management database through the message queue and writes the account information into the local database of the user gateway module.
Description
Technical Field
The invention relates to a credit point management method based on a distributed account book. The method is suitable for the technical field of distributed accounts.
Background
The distributed account book technology is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm, is essentially a distributed shared account book and database, has the characteristics of decentralization, no tampering, whole-course trace retention, traceability, collective maintenance, public transparency and the like, and can be applied to multiple fields such as finance, internet of things, government affairs, public services, digital copyright and the like.
With the development of strengthening government integrity, business integrity, social integrity and judicial publicity proposed in the report of the construction of the social credit system, the credit ecology is gradually improved, but the credit system has some defects in many aspects and industries, most credit data are stored in a common database at present, and the scheme can not solve the data security problem caused by the behavior that a database server is down or is attacked by hackers and maliciously falsifies the data.
The currently common distributed account book technology relies on the chain structure of a block chain, and usually adopts a mode of uplink and downlink data cooperation. This approach does not facilitate fast writing and validation of data, with higher latency for transaction validation.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: in order to solve the existing problems, a credit point management method based on a distributed ledger is provided.
The technical scheme adopted by the invention is as follows: a credit point management method based on a distributed account book is characterized in that:
the chain-free structure realizes the function of the distributed account book only through a consensus algorithm;
the distributed account book stores full data, and the integrity of the data is guaranteed without depending on a hash value;
the scheme consists of a monitoring module, a data module, a user network management module and a message queue;
the supervision module acquires an integral initialization application of a user;
the supervision module authenticates the user identity contained in the integral initialization application, and generates initialization information according to the integral initialization application after the authentication is passed;
the supervision module writes the corresponding information into a local database and informs the data module through a message queue;
the data module analyzes the information to carry out uplink operation and writes the information into a local database of the data module;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether the initialization is successful or not according to the received writing result, if the initialization is successful, otherwise, the initialization is failed, and if the initialization is successful, the initialization is written into a local account management database to distribute initial points to the accounts;
and the supervision module informs the user gateway module of the account information in the local account management database through the message queue and writes the account information into the local database of the user gateway module.
A credit point management method based on a distributed account book is characterized in that:
a user gateway module acquires a user's score updating application;
the user gateway module authenticates the user identity contained in the integral updating application, and generates transaction information according to the integral updating application after the authentication is passed;
the user gateway module verifies the transaction information, which mainly comprises inquiring whether the remaining points of the account are sufficient and whether the transaction times are correct, and informing the data module and the monitoring module through a message queue after the verification is passed;
the data module carries out secondary verification on the transaction information, and the secondary verification mainly comprises the steps of inquiring whether the residual points of the account are sufficient or not and whether the transaction times are correct or not, analyzing the information to carry out chain linking operation after the balance is achieved, and simultaneously writing the information into a local database of the data module;
the supervision module writes the corresponding transaction information into a local database;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether the updating is successful or not according to the received writing result, if the writing is successful, the updating is successful, otherwise, the updating is failed, and if the writing is successful, the updating is written into the local account management database to update the account points;
and the supervision module informs the user gateway module of the account information in the local account management database through the message queue and writes the account information into the local database of the user gateway module.
A credit point management method based on a distributed account book is characterized in that:
the supervision module acquires an integral clearing application of a user;
the supervision module authenticates the user identity contained in the integral clearing application, and generates clearing information according to the integral clearing application after the authentication is passed;
the supervision module writes the corresponding information into a local database and informs the data module through a message queue;
the data module analyzes the information to carry out uplink operation and writes the information into a local database of the data module;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether clearing is successful or not according to the writing result, if the writing is successful, clearing is successful, if the writing is not successful, clearing is failed, and if the writing is successful, the clearing is written into the local account management database to clear the account point;
and the supervision module informs the user gateway module of the account information in the local account management database through the message queue, writes the account information into the local database of the user gateway module, and performs zero clearing operation on the account integral.
A credit point management system based on a distributed account book is characterized in that: the credit point management method based on the distributed ledger comprises a supervision module, a data module and a user gateway module which are matched with each other to realize the credit point management method based on the distributed ledger.
The invention has the beneficial effects that: compared with the prior art, the method for realizing the integration initialization, the updating and the clearing does not need to use a chain structure, and realizes the functions of the distributed account book only through the coordination and the design of the consensus algorithm and the data structure. The distributed account book stores full data, the integrity of the data is guaranteed without depending on a hash value, and the application function of credit point management is realized on the basis of the basic function of the distributed account book.
The supervision module is responsible for coordination and management in the system, but not for storing data; the storage module is responsible for storing data and obeys the management of the supervision module; the user gateway module is responsible for accessing data to a user for accessing service, does not store data and obeys the management of the supervision module.
Drawings
FIG. 1 is a flowchart of integration initialization in an embodiment.
FIG. 2 is a flowchart illustrating an embodiment of an integration update process.
Fig. 3 is a flowchart of the point clearing in the embodiment.
FIG. 4 is a block diagram of the system in the example.
Detailed Description
The embodiment is a credit point management system based on a distributed account book, which is provided with a supervision module, a data module and a user gateway module connected to the distributed system, and can perform point management services such as point initialization, point updating, point clearing and the like based on the credit point management system.
As shown in fig. 1, the integration initialization method in this embodiment includes the following steps:
a supervision module on the distributed system acquires an integral initialization application of a user;
the supervision module authenticates the user identity contained in the integral initialization application, and generates initialization information according to the integral initialization application after the authentication is passed;
the supervision module writes the corresponding information into a local database and informs a data module on the distributed system through a message queue;
the data module analyzes the information to carry out uplink operation and writes the information into a local database of the data module;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether the initialization is successful or not according to the received writing result, if the initialization is successful, otherwise, the initialization is failed, and if the initialization is successful, the initialization is written into a local account management database to distribute initial points to the accounts;
the supervision module informs the user gateway module on the distributed system of the account information in the local account management database through a message queue and writes the account information into the local database of the user gateway module;
the supervision module records the operation log.
As shown in fig. 2, the method for updating the integral in this embodiment includes the following steps:
a user gateway module on the distributed system acquires a credit update application of a user;
the user gateway module authenticates the user identity contained in the integral updating application, and generates transaction information according to the integral updating application after the authentication is passed;
the user gateway module verifies the transaction information, which mainly comprises inquiring whether the remaining points of the account are sufficient and whether the transaction times are correct, and informing the data module and the monitoring module through a message queue after the verification is passed;
the data module carries out secondary verification on the transaction information, which mainly comprises the steps of inquiring whether the residual points of the account are sufficient or not and whether the transaction times are correct or not, analyzing the information to carry out chain linking operation after the balance is achieved, and simultaneously writing the information into a local database of the data module;
the supervision module writes the corresponding transaction information into a local database;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether the updating is successful or not according to the received writing result, if the writing is successful, the updating is successful, otherwise, the updating is failed, and if the writing is successful, the updating is written into the local account management database to update the account points;
the supervision module informs the user gateway module on the distributed system of the account information in the local account management database through a message queue and writes the account information into the local database of the user gateway module;
the supervision module records the operation log.
As shown in fig. 3 to 4, the integration updating method in this embodiment includes the following steps:
a supervision module on the distributed system acquires an integral clearing application of a user;
the supervision module authenticates the user identity contained in the integral clearing application, and generates clearing information according to the integral clearing application after the authentication is passed;
the supervision module writes the corresponding information into a local database and informs a data module on the distributed system through a message queue;
the data module analyzes the information to carry out uplink operation and writes the information into a local database of the data module;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether clearing is successful or not according to the writing result, if the writing is successful, clearing is successful, if the writing is not successful, clearing is failed, and if the writing is successful, the supervision module writes the clearing into a local account management database to perform zero clearing operation on the account point;
the supervision module informs the user gateway module of the account information in the local account management database through the message queue, writes the account information into the local database of the user gateway module, and performs zero clearing operation on the account integral;
the supervision module records the operation log.
Claims (4)
1. A credit point management method based on a distributed account book is characterized in that:
the supervision module acquires an integral initialization application of a user;
the supervision module authenticates the user identity contained in the integral initialization application, and generates initialization information according to the integral initialization application after the authentication is passed;
the supervision module writes the corresponding information into a local database and informs the data module through a message queue;
the data module analyzes the information to carry out uplink operation and writes the information into a local database of the data module;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether the initialization is successful or not according to the received writing result, if the initialization is successful, otherwise, the initialization is failed, and if the initialization is successful, the initialization is written into a local account management database to distribute initial points to the accounts;
and the supervision module informs the user gateway module of the account information in the local account management database through the message queue and writes the account information into the local database of the user gateway module.
2. A credit point management method based on a distributed account book is characterized in that:
a user gateway module acquires a user's score updating application;
the user gateway module authenticates the user identity contained in the integral updating application, and generates transaction information according to the integral updating application after the authentication is passed;
the user gateway module verifies the transaction information, which mainly comprises inquiring whether the remaining points of the account are sufficient and whether the transaction times are correct, and informing the data module and the monitoring module through a message queue after the verification is passed;
the data module carries out secondary verification on the transaction information, and the secondary verification mainly comprises the steps of inquiring whether the residual points of the account are sufficient or not and whether the transaction times are correct or not, analyzing the information to carry out chain linking operation after the balance is achieved, and simultaneously writing the information into a local database of the data module;
the supervision module writes the corresponding transaction information into a local database;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether the updating is successful or not according to the received writing result, if the writing is successful, the updating is successful, otherwise, the updating is failed, and if the writing is successful, the updating is written into the local account management database to update the account points;
and the supervision module informs the user gateway module of the account information in the local account management database through the message queue and writes the account information into the local database of the user gateway module.
3. A credit point management method based on a distributed account book is characterized in that:
the supervision module acquires an integral clearing application of a user;
the supervision module authenticates the user identity contained in the integral clearing application, and generates clearing information according to the integral clearing application after the authentication is passed;
the supervision module writes the corresponding information into a local database and informs the data module through a message queue;
the data module analyzes the information to carry out uplink operation and writes the information into a local database of the data module;
the data module feeds back the write-in result to the supervision module through the message queue, and the supervision module feeds back the write-in result to be written into the local database;
the supervision module judges whether clearing is successful or not according to the writing result, if the writing is successful, clearing is successful, if the writing is not successful, clearing is failed, and if the writing is successful, the clearing is written into the local account management database to clear the account point;
and the supervision module informs the user gateway module of the account information in the local account management database through the message queue, writes the account information into the local database of the user gateway module, and performs zero clearing operation on the account integral.
4. A credit point management system based on a distributed account book is characterized in that: the system comprises a supervision module, a data module and a user gateway module which are matched with each other to realize the credit point management method based on the distributed ledger of claim 1 or 2 or 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110760522.1A CN113704348B (en) | 2021-07-06 | 2021-07-06 | Credit score management method based on distributed account book |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110760522.1A CN113704348B (en) | 2021-07-06 | 2021-07-06 | Credit score management method based on distributed account book |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113704348A true CN113704348A (en) | 2021-11-26 |
CN113704348B CN113704348B (en) | 2023-06-30 |
Family
ID=78648302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110760522.1A Active CN113704348B (en) | 2021-07-06 | 2021-07-06 | Credit score management method based on distributed account book |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113704348B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109544426A (en) * | 2018-11-15 | 2019-03-29 | 杭州趣链科技有限公司 | A kind of enterprise Green integrating system based on block chain |
CN110659142A (en) * | 2019-08-02 | 2020-01-07 | 平安科技(深圳)有限公司 | Message queue processing method and device, electronic equipment and storage medium |
CN110691124A (en) * | 2019-09-24 | 2020-01-14 | 华润网络(深圳)有限公司 | Data processing method and system under remote multi-active architecture |
US20200057992A1 (en) * | 2018-08-20 | 2020-02-20 | Sap Se | Distributed ledger-based supplier evaluation |
CN111445294A (en) * | 2020-04-09 | 2020-07-24 | 北京沃达新创国际教育科技有限公司 | User score system based on block chain and fission |
CN111476601A (en) * | 2020-03-30 | 2020-07-31 | 嘉兴冰星市场营销策划有限公司 | Point and certificate marketing method and system based on block chain technology |
US10855475B1 (en) * | 2018-09-06 | 2020-12-01 | Facebook, Inc. | Systems and methods for securing data to an immutable distributed ledger |
CN112036920A (en) * | 2019-06-04 | 2020-12-04 | 东芝泰格有限公司 | Point management method and point management device |
CN113056759A (en) * | 2018-11-19 | 2021-06-29 | 瑞典爱立信有限公司 | Method and system for network devices to obtain a trusted status representation of the status of a distributed ledger technology network |
-
2021
- 2021-07-06 CN CN202110760522.1A patent/CN113704348B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200057992A1 (en) * | 2018-08-20 | 2020-02-20 | Sap Se | Distributed ledger-based supplier evaluation |
US10855475B1 (en) * | 2018-09-06 | 2020-12-01 | Facebook, Inc. | Systems and methods for securing data to an immutable distributed ledger |
CN109544426A (en) * | 2018-11-15 | 2019-03-29 | 杭州趣链科技有限公司 | A kind of enterprise Green integrating system based on block chain |
CN113056759A (en) * | 2018-11-19 | 2021-06-29 | 瑞典爱立信有限公司 | Method and system for network devices to obtain a trusted status representation of the status of a distributed ledger technology network |
CN112036920A (en) * | 2019-06-04 | 2020-12-04 | 东芝泰格有限公司 | Point management method and point management device |
CN110659142A (en) * | 2019-08-02 | 2020-01-07 | 平安科技(深圳)有限公司 | Message queue processing method and device, electronic equipment and storage medium |
CN110691124A (en) * | 2019-09-24 | 2020-01-14 | 华润网络(深圳)有限公司 | Data processing method and system under remote multi-active architecture |
CN111476601A (en) * | 2020-03-30 | 2020-07-31 | 嘉兴冰星市场营销策划有限公司 | Point and certificate marketing method and system based on block chain technology |
CN111445294A (en) * | 2020-04-09 | 2020-07-24 | 北京沃达新创国际教育科技有限公司 | User score system based on block chain and fission |
Non-Patent Citations (4)
Title |
---|
ALEXANDER LIPTON: "Blockchains and distributed ledgers in retrospective and perspective" * |
JIAHUI ZHANG 等: "A Blockchain Consensus for Message Queue Based on Byzantine Fault Tolerance" * |
朱忠宁: "基于DSL和区块链技术的可编程智能合约设计与实现" * |
郭冠华 等: "基于地理位置和多阶邻节点辅助的编码感知无线多跳网络路由协议" * |
Also Published As
Publication number | Publication date |
---|---|
CN113704348B (en) | 2023-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11290441B1 (en) | Systems and methods for blockchain validation of user identity and authority | |
CN111771194B (en) | System and method for generating and maintaining a non-variable digital conference record within a distributed network node | |
CN109791591B (en) | Method and system for identity and credential protection and verification via blockchain | |
US10891689B2 (en) | Consent management service system | |
WO2021213065A1 (en) | Blockchain data archiving method and apparatus, and computer readable storage medium | |
US20220156706A1 (en) | File vault and cloud based document notary service | |
US20160078565A1 (en) | Adaptive expense processing and management | |
JP2018533320A (en) | Data verification method and system using hash tree such as Merkle hash tree centered on time | |
US9843625B2 (en) | System and method for aggregating and providing data from enterprise systems to mobile devices | |
US12051063B2 (en) | Systems and methods for blockchain-based transaction break prevention | |
US11551229B2 (en) | Payslip verification for blockchain transaction | |
CN111444520A (en) | Service data processing method based on block chain | |
CN115964684A (en) | Method, system, device and medium for detecting authenticity of metadata of electronic file | |
CN111222974A (en) | Iterative credit calculation method | |
CN113191881A (en) | Financial business supervision data processing method, device and system based on block chain | |
US12056693B1 (en) | Auditable system for event tracking | |
CN103647650A (en) | Rule definition based automatic signature/signature verification device and method | |
CN113704348A (en) | Credit point management method based on distributed account book | |
KR20210117731A (en) | The blockchain-based transaction history confirmation system | |
CN113626842A (en) | Block chain system for realizing password service based on password card and storage medium | |
CN112905661A (en) | Data processing method, system, device, server and medium | |
CN107483210B (en) | Data verification method and system | |
US20240303643A1 (en) | Systems and methods for multi-entity blockchain-based event break prevention | |
CN116109407A (en) | Credit fraud identification method, device and storage medium based on blockchain | |
CN114386101A (en) | Method, system, storage medium and terminal device for digital file authentication and verification |
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 |