CN111797106B - Contract authority setting method and system compatible with multi-version contract parallelism - Google Patents
Contract authority setting method and system compatible with multi-version contract parallelism Download PDFInfo
- Publication number
- CN111797106B CN111797106B CN202010586315.4A CN202010586315A CN111797106B CN 111797106 B CN111797106 B CN 111797106B CN 202010586315 A CN202010586315 A CN 202010586315A CN 111797106 B CN111797106 B CN 111797106B
- Authority
- CN
- China
- Prior art keywords
- contract
- version
- factory
- authority
- entity
- 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
Links
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/23—Updating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6227—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
-
- 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/01—Customer relationship services
-
- 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- General Engineering & Computer Science (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Bioethics (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a method and a system for setting contract authority compatible with multi-version contract parallelism. In a business system, a factory contract of a V1 version can call an interface of an entity contract of a V1 version, and after the contract is upgraded, the factory contract of a V2 version cannot operate the entity contract of the V1 version, so that the method and the system for setting the contract authority compatible with the parallel multi-version contracts, provided by the invention, divide the established public authority into different authority groups according to business types, so that the function of calling the entity contract of a low version by adopting the factory contract of a high version is realized.
Description
Technical Field
The invention relates to the field of contract authority calling, in particular to a method and a system for setting contract authorities for parallel multi-version contracts.
Background
An intelligent contract is a computer protocol that aims to propagate, verify, or execute contracts in an informative manner. Smart contracts allow trusted transactions to be made without third parties, which transactions are traceable and irreversible.
After the intelligent contract is upgraded, the old version contract service in the process cannot exist, and the data in the old version contract process only runs out of the process on the basis of the old version contract and cannot influence the new service process. Otherwise dirty data can be generated and even the stability of the whole business system is affected. However, after the contract is upgraded, many operations that need to ensure business consistency need to be operated on the new version contract, and the factory contract of the new version contract cannot call the old version entity contract, so that the data in the old version contract flow cannot be guaranteed to run through the old version contract, which has the problem that the factory contract of the new version contract cannot call the entity contract of the old version contract.
Disclosure of Invention
The invention aims to provide a contract authority setting method and a system compatible with multi-version contract parallelism, which are used for solving the problem that a factory contract of a new version contract cannot call an entity contract of an old version contract under the condition of multi-version contract parallelism.
In order to achieve the above object, the present invention provides the following solutions:
a contract authority setting method compatible with multi-version contract parallelism comprises the following steps:
establishing a public authority contract;
dividing the public authority combination into different authority groups according to the service type; each of the permission groups includes an entity contract and a factory contract address corresponding to the business type; the factory contract address is the version of the factory contract;
when a user calls a low-version entity contract by adopting a high-version factory contract, the public authority contract is called by adopting the low-version entity contract to judge whether a factory contract address corresponding to a user query service type exists in the authority group, if so, the high-version factory contract can call the low-version entity contract, otherwise, the high-version factory contract cannot call the low-version entity contract.
Preferably, the method further comprises:
adding, deleting, modifying and querying the factory contract address in the rights group.
Preferably, each authority group is a key value pair with an entity combination of about key and a factory contract of value.
Preferably, the method further comprises:
the factory contracts are classified according to business type.
Preferably, when the service type is accounts receivable, the authority group includes: accounts receivable set of authority for opening accounts receivable set of authority for circulation accounts receivable set of authority for financing accounts receivable and authority for cashing accounts receivable set of authority for payment.
A multi-version contract parallel compatible contract rights setting system, comprising:
the public authority contract establishing module is used for establishing public authority contracts;
the permission group dividing module is used for dividing the public permission into different permission groups according to the service type; each of the permission groups includes an entity contract and a factory contract address corresponding to the business type; the factory contract address is the version of the factory contract;
and the calling module is used for calling the public authority contract by adopting the low-version entity contract when the user adopts the high-version factory contract to call the low-version entity contract so as to judge whether the factory contract address corresponding to the user query service type exists in the authority group, if so, the high-version factory contract can call the low-version entity contract, otherwise, the high-version factory contract cannot call the low-version entity contract.
Preferably, the system further comprises:
and the adding, deleting, modifying and inquiring module is used for adding, deleting, modifying and inquiring the factory contract address in the authority group.
Preferably, the system further comprises:
and the factory contract classification module is used for classifying the factory contracts according to the service types.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the method and the system for setting the contract authority compatible with the parallel multi-version contracts divide the established public authority into different authority groups according to the service types, so that when a user adopts a high-version factory contract to call a low-version entity contract, the low-version entity contract can be adopted to finish according to the calling authority of the public authority contract, and the problem that the factory contract of the new-version contract in the prior art cannot call the entity contract of the old-version contract is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for setting contract rights compatible with multi-version contract parallelism provided by the invention;
FIG. 2 is a diagram illustrating interaction of permission calls when the service type is accounts receivable in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a system for setting contract permissions compatible with multi-version contract parallelism.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In a business system, a factory contract of a V1 version can call an interface of an entity contract of a V1 version, and after the contract is upgraded, the factory contract of a V2 version cannot operate the entity contract of the V1 version, so that the invention provides a contract authority setting method and a contract authority setting system compatible with multi-version contract parallelism for solving the problem.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Fig. 1 is a flowchart of a method for setting contract permissions compatible with multi-version contract parallelism, as shown in fig. 1, and the method for setting contract permissions compatible with multi-version contract parallelism includes:
step 100: a common rights contract is established. Preferably, the established public rights contract is a global public rights contract permission.
Step 110: and dividing the public authority combination into different authority groups according to the service type. Each of the permission groups includes an entity contract and a factory contract address corresponding to the business type. The factory contract address is the version of the factory contract. Preferably, each authority group is a key value pair with an entity combination of about key and a factory contract of value.
Step 120: when a user calls a low-version entity contract by adopting a high-version factory contract, the public authority contract is called by adopting the low-version entity contract to judge whether a factory contract address corresponding to a user query service type exists in the authority group, if so, the high-version factory contract can call the low-version entity contract, otherwise, the high-version factory contract cannot call the low-version entity contract.
In order to facilitate the user to modify the factory contract while increasing the convenience of the public rights contract, the method in the technical scheme provided by the invention can further comprise the following steps:
adding, deleting, modifying and querying the factory contract address in the rights group.
Further, in order to ensure that the factory contract address and the service type are consistent and to facilitate division of the permission group, in the contract permission setting method provided by the invention, the factory contracts can be classified according to the service type.
The following provides a specific embodiment to further illustrate the scheme of the present invention, in which the specific embodiment of the present invention is illustrated by taking the accounts receivable service type as an example, and the scheme of the present invention is also applicable to other service types when the present invention is applied in specific applications.
When the service type is accounts receivable, the authority group includes: accounts receivable set of authority for opening accounts receivable set of authority for circulation accounts receivable set of authority for financing accounts receivable and authority for cashing accounts receivable set of authority for payment.
The factory contract address of the corresponding business is stored in each authority group, for example, the address of the V1 version of the factory contract is stored in the receivables issuing authority group.
In the actual calling process, each authority group provides a modifier for checking the authorities for the entity contract to call. Taking the accounts receivable opening permission group as an example, the modifier is named as creditorRightsAccess, the accounts receivable opening permission group contains two versions of opening contracts of V1 and V2, and the interface of the accounts receivable opening entity contract of the V1 version only needs to realize the creditorRightsAccess, so that the accounts receivable opening factory contract of the V2 version also has calling permission on the opening entity contract of the V1 version. The specific rights calling interaction process is shown in fig. 2.
Specifically, for example, the version of the entity contract in the accounts receivable opening authority group is V1, and the version of the factory contract is V3, then, in the actual calling process, only the version V3 is the factory contract, and the entity contract with the version V1 can be called.
In addition, aiming at the method for setting the contract authority of the compatible multi-version contract parallelism, the invention correspondingly provides a system for setting the contract authority of the compatible multi-version contract parallelism. As shown in fig. 3, the contract authority setting system includes: a public rights contract establishment module 200, a rights group partitioning module 210, and a calling module 220.
Wherein the public rights contract establishing module 200 is used for establishing public rights contracts.
The rights group dividing module 210 is configured to divide the common rights combination into different rights groups according to the service type. Each of the permission groups includes an entity contract and a factory contract address corresponding to the business type. The factory contract address is the version of the factory contract.
The calling module 220 is configured to, when a user uses a high-version factory contract to call a low-version entity contract, call the public authority contract using the low-version entity contract to determine whether a factory contract address corresponding to a user query service type exists in the authority group, if so, the high-version factory contract can call the low-version entity contract, otherwise, the high-version factory contract cannot call the low-version entity contract.
As a preferred embodiment of the present invention, the above system further comprises: and an add-delete-revise module for adding, deleting, modifying and querying the factory contract address in the permission set.
As another preferred embodiment of the present invention, the above system may also include: and the factory contract classification module is used for classifying the factory contracts according to the service types.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present invention and the core ideas thereof; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In view of the foregoing, this description should not be construed as limiting the invention.
Claims (8)
1. A contract authority setting method compatible with multi-version contract parallelism, characterized by comprising the following steps:
establishing a public authority contract;
dividing the public authority combination into different authority groups according to the service type; each of the permission groups includes an entity contract and a factory contract address corresponding to the business type; the factory contract address is the version of the factory contract;
when a user calls a low-version entity contract by adopting a high-version factory contract, the public authority contract is called by adopting the low-version entity contract to judge whether a factory contract address corresponding to a user query service type exists in the authority group, if so, the high-version factory contract can call the low-version entity contract, otherwise, the high-version factory contract cannot call the low-version entity contract.
2. The method for setting contract rights compatible with multi-version contract parallelism according to claim 1, characterized in that the method further comprises:
adding, deleting, modifying and querying the factory contract address in the rights group.
3. The method of claim 1, wherein each of the rights groups is a key-value pair with an entity combination of about key and a factory contract of value.
4. The multi-version contract-compatible parallel contract authority setting method according to claim 1, characterized in that the method further includes:
the factory contracts are classified according to business type.
5. The method of claim 1, wherein when the service type is accounts receivable, the rights group includes: accounts receivable set of authority for opening accounts receivable set of authority for circulation accounts receivable set of authority for financing accounts receivable and authority for cashing accounts receivable set of authority for payment.
6. A multi-version contract parallel compatible contract rights setting system, comprising:
the public authority contract establishing module is used for establishing public authority contracts;
the permission group dividing module is used for dividing the public permission into different permission groups according to the service type; each of the permission groups includes an entity contract and a factory contract address corresponding to the business type; the factory contract address is the version of the factory contract;
and the calling module is used for calling the public authority contract by adopting the low-version entity contract when the user adopts the high-version factory contract to call the low-version entity contract so as to judge whether the factory contract address corresponding to the user query service type exists in the authority group, if so, the high-version factory contract can call the low-version entity contract, otherwise, the high-version factory contract cannot call the low-version entity contract.
7. The multi-version contract parallel compatible contract rights setting system of claim 6, characterized in that the system further includes:
and the adding, deleting, modifying and inquiring module is used for adding, deleting, modifying and inquiring the factory contract address in the authority group.
8. The compatible multi-version contract parallel contract rights setting system as claimed in claim 6, characterized in that the system further includes:
and the factory contract classification module is used for classifying the factory contracts according to the service types.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010586315.4A CN111797106B (en) | 2020-06-24 | 2020-06-24 | Contract authority setting method and system compatible with multi-version contract parallelism |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010586315.4A CN111797106B (en) | 2020-06-24 | 2020-06-24 | Contract authority setting method and system compatible with multi-version contract parallelism |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111797106A CN111797106A (en) | 2020-10-20 |
CN111797106B true CN111797106B (en) | 2023-09-01 |
Family
ID=72804172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010586315.4A Active CN111797106B (en) | 2020-06-24 | 2020-06-24 | Contract authority setting method and system compatible with multi-version contract parallelism |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111797106B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109978477A (en) * | 2017-12-27 | 2019-07-05 | 现代财富控股有限公司 | Intelligent contract version keyholed back plate system and method based on block chain |
CN110544097A (en) * | 2019-09-06 | 2019-12-06 | 杭州复杂美科技有限公司 | Intelligent contract version control, calling and upgrading method, equipment and storage medium |
CN110602227A (en) * | 2019-09-19 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Intelligent contract management method and related device |
CN110941679A (en) * | 2019-12-05 | 2020-03-31 | 腾讯科技(深圳)有限公司 | Contract data processing method, related equipment and medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107464148A (en) * | 2017-08-23 | 2017-12-12 | 众安信息技术服务有限公司 | A kind of intelligent contract upgrade method and system based on alliance's chain |
-
2020
- 2020-06-24 CN CN202010586315.4A patent/CN111797106B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109978477A (en) * | 2017-12-27 | 2019-07-05 | 现代财富控股有限公司 | Intelligent contract version keyholed back plate system and method based on block chain |
CN110544097A (en) * | 2019-09-06 | 2019-12-06 | 杭州复杂美科技有限公司 | Intelligent contract version control, calling and upgrading method, equipment and storage medium |
CN110602227A (en) * | 2019-09-19 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Intelligent contract management method and related device |
CN110941679A (en) * | 2019-12-05 | 2020-03-31 | 腾讯科技(深圳)有限公司 | Contract data processing method, related equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN111797106A (en) | 2020-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11550763B2 (en) | Versioning schemas for hierarchical data structures | |
US11341118B2 (en) | Atomic application of multiple updates to a hierarchical data structure | |
CN111782668B (en) | Data structure reading and updating method and device and electronic equipment | |
CN111858615A (en) | Database table generation method, system, computer system and readable storage medium | |
US8874601B2 (en) | SADL query view—a model-driven approach to speed-up read-only use cases | |
CN111091358B (en) | Unified processing method and system for multiple payment channels | |
CN111125106B (en) | Batch running task execution method, device, server and storage medium | |
CN114065296A (en) | Authority control method and device based on interceptor, computer equipment and medium | |
US9971794B2 (en) | Converting data objects from multi- to single-source database environment | |
CN103345501A (en) | Method and device for updating database | |
CN105373631A (en) | SQLSever-based automatic upgrading method for database structure | |
CA3159237A1 (en) | Method and system for converting database applications into blockchain applications | |
CN115470128A (en) | Method, device and equipment for detecting connectivity of database and storage medium | |
CN111797106B (en) | Contract authority setting method and system compatible with multi-version contract parallelism | |
CN102215264A (en) | Method and device for supporting multi-tenancy data and service customized running | |
KR102454665B1 (en) | Resource processing method and device for block chain, equipment and medium | |
CN114116678A (en) | Data migration method, device, equipment, medium and program product | |
WO2021129005A1 (en) | Blockchain state change-based transaction tracking method and device | |
CN115687503A (en) | Method, device and equipment for synchronizing data among databases and storage medium | |
CN113220762A (en) | Method, device, processor and storage medium for realizing general record processing of key service field change in big data application | |
CN103220336B (en) | The implementation method of vector clock and system in a kind of file synchronization | |
CN115357284A (en) | Multi-dimensional data authority control configuration system and method | |
CN112804216B (en) | Multi-granularity self-adaptive service flow access control method and device | |
CN109582330B (en) | Data model upgrading method, device, equipment and readable storage medium | |
US7747643B2 (en) | Installed base data hub |
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 |