Method, device and storage medium for managing business authority
Managing the business permissions of commercial banks through blockchain nodes solves the problem that the central bank cannot flexibly configure some business permissions of commercial banks, realizes dynamic adjustment and customized management of commercial bank interfaces, and improves the user experience.
Patent Information
- Application Number
- CN202211700396.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-12-28
AI Technical Summary
Under existing technologies, the central bank is unable to flexibly configure some of the business permissions of commercial banks, resulting in a poor user experience for commercial banks.
The business authority of the commercial bank is managed through the smart contract stored in the blockchain node. The first electronic device monitors the blockchain node and sends a synchronization request message to obtain business authority change information and update the business configuration information, including the management of display permissions and functional modules.
It realizes the dynamic adjustment of the commercial bank business interface, ensures the synchronization of the functional areas and permissions displayed on the interface, realizes the customized management of commercial banks, and improves the user experience.
Smart Images

Figure CN115859244B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of mobile payment, and particularly relates to a business permission management method and device, equipment and a storage medium. BACKGROUND
[0002] At present, in an electronic payment system (hereinafter referred to as a payment system) of a digital currency, a business executor can include a device of a central bank (or a currency authority) and a device of another bank (such as a commercial bank). The device of the central bank and the device of the commercial bank can complete corresponding businesses, such as payment businesses, transfer businesses, cancellation businesses, and supervision businesses, through the payment system.
[0003] At present, the central bank can manage the business permissions of the commercial bank through the device, for example, the central bank can add payment businesses of the commercial bank through the device, and cancel transfer businesses of the commercial bank. However, in the current technical solution, when the device of the central bank manages the business permissions of the commercial bank, the device of the central bank configures all the business permissions of the commercial bank as a whole to manage the business permissions of the commercial bank. In this way, the device of the central bank cannot manage part of the business permissions of the commercial bank, the flexible configuration of the function is not achieved, and the use experience of the commercial bank is also affected. SUMMARY
[0004] The present application provides a business permission management method, device, equipment and storage medium to at least solve the problem that part of the business permissions of the commercial bank cannot be managed in the related art. The technical solution of the present application is as follows:
[0005] According to a first aspect of an embodiment of the present application, a business permission management method is provided, applied to a first electronic device, the first electronic device being an electronic device of a business executor, and the method comprises: the first electronic device listens to a block chain node, and the block chain node stores a plurality of smart contracts corresponding to businesses one by one. In the case that business permission change information is added in the block chain node, the first electronic device sends a synchronization request message to the block chain node, the synchronization request message being used to request the business permission change information, and the business permission change information being used to indicate that the business permission of a first business changes. The block chain node stores the business permission change information configured by a second electronic device. The first electronic device receives the business permission change information from the block chain node. The first electronic device updates business configuration information according to the business permission change information, and the updated business configuration information includes business permission information of the first business after the change.
[0006] In a possible implementation, the service configuration information includes usage permission information of the service. The method for managing the service permission further includes: receiving, by the first electronic device, a service handling request, the service handling request being used to request processing of a target service. In response to the service handling request, the first electronic device determines, from the updated service configuration information, the usage permission information of the target service. If the usage permission information of the target service indicates that the target service is supported, the first electronic device sends a contract invocation request to the blockchain node, the contract invocation request being used to request invoking a smart contract of the target service.
[0007] In another possible implementation, the service configuration information includes display permission information of the service, and the updated service configuration information includes changed display permission information of the first service. The display permission information is used to indicate whether to display a function area of the service. The method for managing the service permission further includes: updating, by the first electronic device, a service interface according to the updated service configuration information; and wherein the updated service interface displays the function area of the first service, or the updated service interface hides the function area of the first service. The function area of the service corresponds to the service permission one by one.
[0008] In another possible implementation, the method for managing the service permission further includes: if the service permission change information indicates that the first electronic device supports the first service, setting, by the first electronic device, the display permission information of the first service in the service configuration information to a first identifier, the first identifier being used to indicate displaying the function area. If the service permission change information indicates that the first electronic device does not support the first service, setting, by the first electronic device, the display permission information of the first service in the service configuration information to a second identifier, the second identifier being used to indicate hiding the function area.
[0009] In another possible implementation, the service configuration information further includes a plurality of function modules, and one function module corresponds to one service. The method for managing the service permission further includes: if the service permission change information indicates that the first electronic device supports the first service, adding, by the first electronic device, a function module of the first service. If the service permission change information indicates that the first electronic device does not support the first service, deleting, by the first electronic device, the function module of the first service.
[0010] In another possible implementation, the service permission change information is further used to indicate that a service quota permission of the first service is changed. The service configuration information further includes: quota permission information of the service and usage permission information of the service. The method for managing the service permission further includes: updating, by the first electronic device, the quota permission information of the first service and the usage permission information of the first service according to the service permission change information.
[0011] In another possible implementation, the second electronic device is an electronic device that supervises the service usage permission of the first electronic device.
[0012] According to a second aspect of embodiments of the present application, a method for managing business authority is provided, which is applied to a blockchain node, and the blockchain node stores a plurality of smart contracts corresponding to a plurality of businesses. The method for managing business authority comprises: receiving, by the blockchain node, business authority change information from a second electronic device, the business authority change information being used to indicate that business authority of a first business has changed; saving, by the blockchain node, the business authority change information; receiving, by the blockchain node, a synchronization request message from a first electronic device, the synchronization request message being used to request the business authority change information; and sending, by the blockchain node, the business authority change information to the first electronic device, the first electronic device being an electronic device of a business performer.
[0013] In a possible implementation, the method for managing business authority can further comprise: receiving, by the blockchain node, a business change message from the second electronic device, the business change message being used to indicate that a second business is added or revoked; generating, by the blockchain node, a smart contract of the second business if the business change message is used to indicate that the second business is added; and deleting, by the blockchain node, the smart contract of the second business if the business change message is used to indicate that the second business is revoked.
[0014] According to a third aspect of embodiments of the present application, a device for managing business authority is provided, which is applied to a first electronic device, the first electronic device being an electronic device of a business performer, and the device comprises: a processing module configured to perform monitoring of a blockchain node, wherein the blockchain node stores a plurality of smart contracts corresponding to a plurality of businesses; a sending module configured to perform sending, to the blockchain node, a synchronization request message in a case where business authority change information is added in the blockchain node, the synchronization request message being used to request the business authority change information, and the business authority change information being used to indicate that business authority of a first business has changed, wherein the blockchain node stores the business authority change information configured by a second electronic device; and a receiving module configured to perform receiving the business authority change information from the blockchain node. The processing module is further configured to perform updating, according to the business authority change information, of business configuration information, and the updated business configuration information comprises business authority information of the first business after the change.
[0015] In a possible implementation, the business configuration information comprises usage authority information of the business. The receiving module is further configured to perform receiving a business handling request, the business handling request being used to request processing of a target business. The processing module is further configured to perform determining, in response to the business handling request, the usage authority information of the target business from the updated business configuration information. The sending module is further configured to perform sending, to the blockchain node, a contract calling request if the usage authority information of the target business is used to indicate that the target business is supported, the contract calling request being used to request calling of a smart contract of the target business.
[0016] In another possible implementation, the service configuration information includes display permission information of the service, and the updated service configuration information includes changed display permission information of the first service, the display permission information being used to indicate whether to display a function area of the service. The processing module is further configured to update the service interface according to the updated service configuration information, wherein the updated service interface displays the function area of the first service, or the updated service interface hides the function area of the first service. The function area of the service corresponds to the service permission one by one.
[0017] In another possible implementation, the processing module is further configured to set the display permission information of the first service in the service configuration information as a first identifier if the service permission change information indicates that the first electronic device supports the first service, the first identifier being used to indicate to display the function area. The processing module is further configured to set the display permission information of the first service in the service configuration information as a second identifier if the service permission change information indicates that the first electronic device does not support the first service, the second identifier being used to indicate to hide the function area.
[0018] In another possible implementation, the service configuration information further includes a plurality of function modules, and one function module corresponds to one service. The processing module is further configured to add the function module of the first service if the service permission change information indicates that the first electronic device supports the first service. The processing module is further configured to delete the function module of the first service if the service permission change information indicates that the first electronic device does not support the first service.
[0019] In another possible implementation, the service permission change information is further used to indicate that the service quota permission of the first service is changed, and the service configuration information further includes service quota permission information and service use permission information. The processing module is further configured to update the service quota permission information of the first service and the service use permission information of the first service according to the service permission change information.
[0020] In another possible implementation, the second electronic device is an electronic device that supervises the service use permission of the first electronic device.
[0021] According to a fourth aspect of the embodiments of the present application, a service permission management apparatus is provided, which is applied to a blockchain node, the blockchain node storing a plurality of smart contracts corresponding to services one by one, and the apparatus comprises: a receiving module configured to receive service permission change information from a second electronic device, the service permission change information being used to indicate that service use permission of a first service has changed; a processing module configured to save the service permission change information; the receiving module is further configured to receive a synchronization request message from a first electronic device, the synchronization request message being used to request the service permission change information; and a sending module configured to send the service permission change information to the first electronic device, the first electronic device being an electronic device of a service performer.
[0022] In a possible implementation, the receiving module is further configured to receive a service change message from the second electronic device, the service change message being used to indicate that a second service is added or revoked; the processing module is further configured to generate a smart contract of the second service if the service change message is used to indicate that the second service is added; and the processing module is further configured to delete the smart contract of the second service if the service change message is used to indicate that the second service is revoked.
[0023] In another possible implementation, the second electronic device is an electronic device supervising service use permission of the first electronic device.
[0024] According to a fifth aspect of the embodiments of the present application, an electronic device is provided, which comprises: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of the first aspect or the second aspect and any possible implementation thereof.
[0025] According to a sixth aspect of the embodiments of the present application, a computer-readable storage medium is provided, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the method of the first aspect or the second aspect and any possible implementation thereof.
[0026] According to a seventh aspect of the embodiments of the present application, a computer program product is provided, the computer program product comprising computer instructions, when the computer instructions are run on an electronic device, the electronic device executes the method of the first aspect or the second aspect and any possible implementation thereof.
[0027] The embodiments of the present application provide the technical solutions of the first aspect, which at least bring the following beneficial effects: the first electronic device listens to the blockchain node. In the case that the business permission change information is added in the blockchain node, the first electronic device sends a synchronization request message to the blockchain node, the synchronization request message is used to request the business permission change information, and the business permission change information is used to indicate that the business use permission of the first business changes, wherein the blockchain node stores the business permission change information configured by the second electronic device, and the second electronic device is an electronic device of a regulatory party. Then, the first electronic device can receive the business permission change information from the blockchain node, and update the business configuration information according to the business permission change information, the business configuration information includes display permission information of the business, the updated business configuration information includes display permission information of the first business after the change, and the display permission information is used to indicate whether to display the function area of the business. Then, the first electronic device can update the business interface according to the updated business configuration information, and the updated business interface displays the function area of the first business, or the updated business interface hides the function area of the first business. In this way, the first electronic device can dynamically adjust the business interface in combination with the business use permission set by the second electronic device, so that the function area of the business displayed by the business interface is synchronized with the business use permission, and the modular management is realized.
[0028] It should be noted that the technical effects brought by any one of the implementation manners of the second aspect to the seventh aspect can refer to the technical effects brought by the corresponding implementation manners in the first aspect, which will not be repeated here.
[0029] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0030] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application; they should not be regarded in any way as being unduly limiting of the application.
[0031] Figure 1A is a schematic diagram of an implementation architecture according to an exemplary embodiment;
[0032] Figure 1B is a schematic diagram of another implementation architecture according to an exemplary embodiment;
[0033] Figure 2 is a flowchart of a business permission management method according to an exemplary embodiment;
[0034] Figure 3 is an interface schematic diagram according to an exemplary embodiment;
[0035] Figure 4is another interface schematic diagram according to an exemplary embodiment;
[0036] Figure 5 is another interface schematic diagram according to an exemplary embodiment;
[0037] Figure 6 is a flowchart of another method for managing business authority according to an exemplary embodiment;
[0038] Figure 7 is another interface schematic diagram according to an exemplary embodiment;
[0039] Figure 8 is a flowchart of another method for managing business authority according to an exemplary embodiment;
[0040] Figure 9 is a flowchart of another method for managing business authority according to an exemplary embodiment;
[0041] Figure 10 is a flowchart of another method for managing business authority according to an exemplary embodiment;
[0042] Figure 11 is a flowchart of another method for managing business authority according to an exemplary embodiment;
[0043] Figure 12 is a block diagram of a device for managing business authority according to an exemplary embodiment;
[0044] Figure 13 is a block diagram of another device for managing business authority according to an exemplary embodiment;
[0045] Figure 14 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0046] In order to make the ordinary person skilled in the art better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings.
[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application, as detailed in the appended claims.
[0048] Before the management method of the service authority provided by the present application is described in detail, the related elements, application scenarios and implementation environment involved in the present application are introduced.
[0049] First, the related elements involved in the present application are briefly introduced.
[0050] 1. Central bank: a dominant financial center institution. The central bank can formulate and implement national monetary credit policy and has the right to issue currency. In addition, the central bank can implement financial supervision, such as the central bank can supervise commercial banks.
[0051] 2. Commercial bank: a type of bank. Commercial banks can handle deposit, loan, exchange, savings and other businesses. Commercial banks can act as business executors in the digital currency electronic payment system, and are supervised by the central bank (or monetary authority).
[0052] Secondly, the application scenarios involved in the present application are briefly introduced.
[0053] In the related art, the central bank can act as a business executor and supervisor of the payment system, supervising commercial banks. In addition, the central bank can manage the business of commercial banks, for example, the central bank increases the payment business of commercial banks, revokes the transfer business of commercial banks. However, in the current technical solution, the commercial bank does not split functions according to business types, and only manages the overall functions uniformly. All commercial banks are the same set of settings, and when the business authority needs to be adjusted, it cannot be customized for management and configuration according to the situation; moreover, when the authority function is adjusted, the system interface cannot be updated in time, resulting in a mismatch between the business function area in the system interface and the business managed by the commercial bank, affecting the use experience of the commercial bank.
[0054] This solution adopts a modular design concept, splitting an overall function into multiple relatively independent functions, and reflecting different functional blocks in the menu management interface. Each functional block includes several specific sub-functions, thereby realizing the separate management, configuration and display of relatively independent sub-functions, and realizing customized management of different commercial bank permissions.
[0055] The present application provides a method for managing business permissions, in which a first electronic device monitors a blockchain node, and a plurality of smart contracts corresponding to one business are stored in the blockchain node. When new business permission change information is added to the blockchain node, the first electronic device sends a synchronization request message to the blockchain node, and the synchronization request message is used to request the business permission change information, and the business permission change information is used to indicate that the business permissions of the first business have changed. The blockchain node stores the business permission change information configured by the second electronic device. The first electronic device receives the business permission change information from the blockchain node. The first electronic device updates the business configuration information based on the business permission change information, and the updated business configuration information includes: the business permission information of the first business after the change.
[0056] Based on the technical solution of this application, a first electronic device monitors a blockchain node, which stores multiple smart contracts corresponding to specific services. In other words, the blockchain node can separate services, with each service corresponding to a smart contract, which can then execute the related services. When new service permission change information is added to the blockchain node, the first electronic device can send a synchronization request message to the blockchain node to request the service permission change information. The service permission change information indicates a change in the service permissions of the first service. Furthermore, the blockchain node stores service permission change information configured by a second electronic device. That is, the second electronic device can configure service permission information for the first electronic device through the blockchain node. After the first electronic device receives the service permission change information from the blockchain node, it can adjust only the service permission information for the first service based on the service permission change information. This ensures that the second electronic device can manage some of the service permissions of the first electronic device, enabling customized management of different commercial bank permissions and improving the user experience of commercial banks.
[0057] Finally, a brief introduction to the implementation environment (implementation architecture) involved in this application is given.
[0058] like Figure 1A As shown, a communication system provided in an embodiment of the present application includes multiple electronic devices and a blockchain system. For example, the multiple electronic devices may include at least one first electronic device 101 and at least one second electronic device 102, and the blockchain system may include at least one blockchain node 103.
[0059] In the embodiments of the present application, the first electronic device 101 and the second electronic device 102 can be electronic devices of a business execution party (such as a commercial bank, a financial institution, etc.).
[0060] Optionally, the second electronic device 102 can be an electronic device of a regulatory party (such as a central bank or a monetary authority). The second electronic device 102 can manage the business rights of the first electronic device 101. The first electronic device 101 can be connected to the blockchain node 103 in a wired manner, the second electronic device 102 can be connected to the blockchain node 103 in a wired manner, and the first electronic device 101 and the second electronic device 102 can be connected in a wired or wireless manner.
[0061] The first electronic device 101 can handle a plurality of businesses, such as deposit, loan, exchange, savings, etc. The first electronic device 101 can include a plurality of function modules, one function module corresponding to one business, and the function module can execute the related business. The first electronic device 101 can display a business interface, and the business interface includes a plurality of function areas of businesses. The staff of the business execution party can input operations in the function area of the business to trigger the first electronic device 101 to process the corresponding business. Specifically, the first electronic device 101 can send a request for calling a smart contract to the blockchain node 103, so that the blockchain node 103 calls the smart contract of the business.
[0062] The second electronic device 102 can manage the business rights of the business execution party. For example, the second electronic device 102 can add or revoke the business rights of the first electronic device 101. For example, the electronic device of the central bank adds the payment business rights of the electronic device of the commercial bank, and revokes the transfer business rights of the electronic device of the commercial bank. Alternatively, the second electronic device 102 can modify the business quota of the first electronic device 101. For example, the second electronic device 102 can adjust the business quota of the business A managed by the first electronic device 101 to 10000.
[0063] The blockchain node 103 can store a plurality of storage transactions, which can include: change information of business use rights (such as supporting to handle a business, not supporting to handle a business, change of a business quota), information of handling a business, right information, etc. The blockchain node 103 can also deploy the smart contract of the business. The blockchain node 103 can also manage the smart contract of the business. Specifically, the blockchain node 103 can receive a business management message from the second electronic device 102, add or delete the smart contract of the business. The blockchain node 103 can also execute the business. When the blockchain node 103 receives a request for calling a smart contract, the blockchain node 103 executes the contract code corresponding to the smart contract of the business.
[0064] For example,Figure 1B As shown, the communication system includes a plurality of electronic devices and a blockchain system, and the plurality of electronic devices can include a first electronic device A, a first electronic device B, a first electronic device C, a first electronic device D, a second electronic device A, and a second electronic device B. The second electronic device A and the second electronic device B can change the business interface (such as the order of the business function area, the display of the business function area, etc.) of the first electronic device A, the first electronic device B, the first electronic device C, and the first electronic device D through the blockchain node. The plurality of electronic devices can implement the customization function of the business interface (such as obtaining the business interface of the current account, sorting the business function area, updating the business function area, and resetting the business function area).
[0065] It should be noted that the electronic device is not limited in the embodiments of the present application. For example, the electronic device can be a terminal. For another example, the electronic device can be a server. The blockchain node can be a server.
[0066] The terminal can be a device with transceiving function. The terminal can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; can also be deployed on water surface (such as ships, etc.); and can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal includes handheld devices, vehicle-mounted devices, wearable devices or computing devices with wireless communication function. Exemplarily, the terminal can be a mobile phone, a tablet computer or a computer with wireless transceiving function. The terminal device can also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in smart grid, a wireless terminal in smart city, a wireless terminal in smart home, etc.
[0067] The server can be a physical server or a cloud server. The server can be any server or server cluster, and the present application does not limit this.
[0068] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, user bank card information, etc.) involved in the present application is information authorized by the user or authorized by all parties.
[0069] For ease of understanding, the method for managing business authority provided by the present application is specifically introduced below in combination with the drawings.
[0070] Figure 2is a flowchart of a business permission management method according to an exemplary embodiment, which is applied to an electronic device. Alternatively, the method is applied to a client installed on the electronic device. Alternatively, the method is applied to an application installed on the electronic device. As shown in Figure 2 The business permission management method includes the following steps:
[0071] S201: The second electronic device acquires business permission change information.
[0072] The business permission change information is used to indicate that the business use permission of the first business is changed, and the second electronic device is an electronic device of a supervisor.
[0073] In the embodiments of the present application, the second electronic device manages the business use permissions of a plurality of businesses, and the first business is any one of the plurality of businesses.
[0074] Optionally, the second electronic device is an electronic device that supervises the business use permission of the first electronic device.
[0075] In a possible implementation, the second electronic device can receive a permission change operation of a user, the permission change operation being used to trigger adjustment of the business use permission of the first business. In response to the permission change operation, the second electronic device can generate business permission change information.
[0076] For example, the permission change operation of the user is used to trigger revocation of the use permission of the transfer business, and the second electronic device generates business permission change information, which is used to indicate that the use permission of the transfer business is revoked, i.e., the transfer business cannot be handled.
[0077] In a possible design, the business permission change information can include: an identifier of the first business, and use permission information. The use permission information is a first use permission identifier or a second use permission identifier, the first use permission identifier being used to indicate that the business is supported, and the second use permission identifier being used to indicate that the business is not supported.
[0078] For example, if the business permission change information includes a business identifier A and a first use permission identifier (such as "0"), the business permission change information is used to indicate that the business corresponding to the business identifier A is supported. If the business permission change information includes the business identifier A and a second use permission identifier (such as "1"), the business permission change information is used to indicate that the business corresponding to the business identifier A is not supported.
[0079] Optionally, the business permission change information can include an identifier of a target device, the target device being an electronic device managed by a supervisee (such as the second electronic device), and the first electronic device being an electronic device of a business executor.
[0080] For example, if the service permission change information includes: the identifier of the device A, the service identifier A, and the first use permission identifier (e.g., 0), the service permission change information indicates that the device A is allowed to handle the service corresponding to the service identifier A.
[0081] In some embodiments, the second electronic device stores service use permission information of a plurality of services. After the second electronic device obtains the service permission change information, the second electronic device can update the stored service use permission information.
[0082] S202: The second electronic device sends the service permission change information to the blockchain node.
[0083] In a possible implementation, the second electronic device can send, to the blockchain node, a first notarization transaction, where the first notarization transaction includes the service permission change information.
[0084] In a possible design, the service permission change information can further include an identifier of the second electronic device.
[0085] S203: The blockchain node receives the service permission change information from the second electronic device.
[0086] S204: The blockchain node saves the service permission change information.
[0087] In a possible implementation, the blockchain node can store the first notarization transaction through a consensus process.
[0088] S205: The first electronic device listens to the blockchain node.
[0089] In a possible implementation, the first electronic device can periodically send, to the blockchain node, a first listening request message, where the first listening request message is used to request to listen to an added notarization transaction related to the first electronic device.
[0090] In a possible design, the listening request message can include an identifier of the first electronic device.
[0091] Optionally, the listening request message can further include a preset time period.
[0092] It should be noted that the preset time period can be adjusted periodically. For example, the preset time period can include: 10:00-11:00, 11:00-12:00, and 12:00-13:00.
[0093] In some embodiments, when the service permission change information is added in the blockchain node, the first electronic device listening to the blockchain node can obtain an identifier of the added notarization transaction.
[0094] S206: In the case that the business permission change information is added in the blockchain node, the first electronic device sends a synchronization request message to the blockchain node.
[0095] The synchronization request message is used to request the business permission change information, and the business permission change information is used to indicate that the business use permission of the first business is changed.
[0096] In the embodiment of the application, the blockchain node stores the business permission change information configured by the second electronic device.
[0097] In a possible implementation, the first electronic device can determine whether there is newly added business permission change information related to the first electronic device in the blockchain node by listening to the blockchain node. If the first electronic device determines that there is newly added business permission change information in the blockchain node, the first electronic device sends a synchronization request message to the blockchain node.
[0098] For example, it is assumed that the blockchain node stores business permission change information A and business permission change information B. In the case that business permission change information C is newly added in the blockchain node, and the business permission change information C is information related to the first electronic device, the first electronic device can send a synchronization request message to the blockchain node to request to obtain the business permission change information C.
[0099] S207: The blockchain node receives the synchronization request message from the first electronic device.
[0100] In some embodiments, the synchronization request message can include an identifier of the first notarization transaction. After the blockchain node receives the synchronization request message from the first electronic device, the blockchain node can determine the business permission change information according to the identifier of the first notarization transaction.
[0101] S208: The blockchain node sends the business permission change information to the first electronic device.
[0102] In some embodiments, the blockchain node can send the first notarization transaction to the first electronic device.
[0103] S209: The first electronic device receives the business permission change information from the blockchain node.
[0104] S210: The first electronic device updates the business configuration information according to the business permission change information.
[0105] In the embodiment of the application, the updated business configuration information can include the business permission information of the first business after the change.
[0106] In a possible design, the service configuration information can include display permission information of the service, where the display permission information is used to indicate whether to display the function area of the service. That is, the service permission information includes the display permission information of the service.
[0107] In a possible design, the first electronic device stores display permission information of a plurality of services. The display permission information can be a first identifier or a second identifier. The first identifier is used to indicate to display the function area. The second identifier is used to indicate to hide the function area, i.e., not to display the function area of the service.
[0108] It should be noted that the embodiments of the present application do not limit the form of the display permission information. For example, the display permission information can be represented by numbers (e.g., the first identifier is 0 and the second identifier is 1). For another example, the display permission information can be represented by letters (e.g., the first identifier is a and the second identifier is b).
[0109] For example, as shown in FIG. 3, if the display permission information of the service A, the service B and the service C is the first identifier, and the display permission information of the service D is the second identifier, the service interface 301 of the first electronic device can display the function area 302 of the service A, the function area 303 of the service B and the function area 304 of the service C, and hide the function area 305 of the service D, i.e., the dashed area is not displayed in the service interface 301. Figure 3
[0110] In the embodiments of the present application, the updated service configuration information includes the display permission information of the first service after the change.
[0111] In a possible implementation, the first electronic device updates the display permission information of the service according to the service permission change information. If the service permission change information is used to indicate that the first electronic device supports the first service, the first electronic device sets the display permission information of the first service in the service configuration information as the first identifier. If the service permission change information is used to indicate that the service execution party does not support the first service, the first electronic device sets the display permission information of the first service in the service configuration information as the second identifier.
[0112] For example, if the first electronic device does not support the first service, the display permission information of the first service is the second identifier. If the service permission change information is used to indicate that the first electronic device supports the first service, the display permission information of the first service is changed to the first identifier, i.e., the display permission information of the first service in the updated service configuration information is changed to the first identifier.
[0113] It should be noted that, in the embodiments of the present application, the first electronic device supporting the first service means that the first electronic device has the right to handle the first service, i.e., the staff can handle the first service through the first electronic device. The service execution party not supporting the first service means that the first electronic device does not have the right to handle the first service, i.e., the staff cannot handle the first service through the first electronic device.
[0114] It can be understood that, in the case that the service authority change information is used to indicate that the first electronic device supports the first service, the display authority information of the first service in the service configuration information is set to the first identifier. In the case that the service authority change information is used to indicate that the service execution party does not support the first service, the display authority information of the first service in the service configuration information is set to the second identifier. That is, the service execution party can adjust the display authority of the service in combination with the use authority of the service. In this way, the supervisor can dynamically adjust the service interface of the service execution party by adjusting the service use authority of the service execution party, so as to achieve the purpose of customized supervision of the supervisor on the service execution party.
[0115] Based on the technical solutions of the present application, the first electronic device listens to the blockchain node, and the blockchain node stores a plurality of smart contracts corresponding to the services one by one. That is, the blockchain node can separately divide the services, one service corresponding to one smart contract, and the smart contract can execute the related service. In the case that the service authority change information is added in the blockchain node, the first electronic device can send a synchronization request message to the blockchain node to request the service authority change information, and the service authority change information is used to indicate that the service authority of the first service has changed. Moreover, the blockchain node stores the service authority change information configured by the second electronic device, i.e., the second electronic device can configure the service authority information for the first electronic device through the blockchain node. After the first electronic device receives the service authority change information from the blockchain node, the first electronic device can adjust only the service authority information of the first service in combination with the service authority change information. In this way, it is ensured that the second electronic device can manage part of the service authority in the first electronic device to realize customized management of different commercial bank authorities, and the use experience of the commercial bank is improved.
[0116] In some embodiments, the first electronic device can update the service interface according to the updated service configuration information.
[0117] In the embodiments of the present application, the service interface includes at least one function area of a service, and the function area of the service corresponds to the service authority. The updated service interface displays the function area of the first service, or the updated service interface hides the function area of the first service.
[0118] It can be understood that the first electronic device updates the service interface according to the updated service configuration information. In this way, the second electronic device can adjust the service interface of the first electronic device by adjusting the service use permission of the first electronic device, so that the service function area displayed by the service interface is synchronized with the service use permission. In this way, the effect that the second electronic device manages the service interface of the first electronic device can be achieved.
[0119] In a possible implementation, if the display permission information of the first service after the change indicates that the function area of the first service is displayed, the first electronic device displays the function area of the first service on the service interface. If the display permission information of the first service after the change indicates that the function area of the first service is hidden, the first electronic device hides the function area of the first service on the service interface.
[0120] For example, in combination with Figure 3 As Figure 4 shown, if the display permission information of the service A after the change indicates that the function area of the service A is hidden, the service interface 401 hides the function area 402 of the service A. If the display permission information of the service D after the change indicates that the function area of the service D is displayed, the service interface 401 displays the function area 403 of the service D.
[0121] It can be understood that if the display permission information of the first service after the change indicates that the function area of the first service is displayed, the first electronic device displays the function area of the first service on the service interface. If the display permission information of the first service after the change indicates that the function area of the first service is hidden, the first electronic device hides the function area of the first service on the service interface. That is, the first electronic device can adjust the service interface through the display permission information. In this way, in the case where the first service is not supported, the first electronic device hides the function area of the first service and cannot trigger the processing of the first service; in the case where the first service is supported, the first electronic device displays the function area of the first service and can trigger the processing of the first service.
[0122] In some embodiments, the service configuration information further includes a plurality of function modules, and one function module corresponds to one service. The function module can be used to execute the service corresponding to the function module.
[0123] For example, the first electronic device can include a transfer function module, and the transfer function module can execute the transfer service.
[0124] In the embodiments of the present application, the first electronic device updates the service configuration information according to the service permission change information, and can further include: if the service permission change information is used to indicate that the first electronic device supports the first service, the first electronic device adds a function module of the first service. If the service permission change information is used to indicate that the first electronic device does not support the first service, the first electronic device deletes the function module of the first service.
[0125] For example, if the first electronic device currently does not support the transfer service, the service permission change information is used to indicate that the first electronic device supports the transfer service, and the first electronic device can add the transfer function module. If the first electronic device currently supports the supervision service (i.e., the function module corresponding to the supervision service exists in the service configuration information), the service permission change information is used to indicate that the first electronic device does not support the supervision service, and the first electronic device can delete the function module corresponding to the supervision service.
[0126] Optionally, the function module can correspond to a service combination, and a service combination can include multiple services. That is, multiple services can be combined as a service executed by a function module.
[0127] For example, the function module A can support the transfer service and the storage service.
[0128] In this way, it is convenient to simultaneously update the function modules corresponding to part of the services in the first electronic device, and the updating efficiency is improved.
[0129] It should be noted that if the second electronic device adjusts the service use permission of the first electronic device, it can only adjust the service interface of the first electronic device to manage the service use permission of the first electronic device through the service interface. However, only adjusting the service interface can still cause the first electronic device to be unable to completely process the service according to the adjusted service use permission.
[0130] In some embodiments, the service configuration information further includes: service use permission information. The service use permission information is a first use permission identifier or a second use permission identifier, the first use permission identifier is used to indicate that the service is supported, and the second use permission identifier is used to indicate that the service is not supported.
[0131] In the embodiments of the present application, the first electronic device updates the service configuration information according to the service permission change information, and can further include: if the service permission change information is used to indicate that the first electronic device supports the first service, the first electronic device adds a function module of the first service. If the service permission change information is used to indicate that the first electronic device does not support the first service, the first electronic device deletes the function module of the first service.
[0132] In some embodiments, the service authority change information further indicates that the service quota authority of the first service is changed, and the service authority change information further comprises: a first quota threshold and / or a second quota threshold, the second quota threshold being greater than the first quota threshold. The first quota threshold is a minimum quota value of the first service, and the second quota threshold is a maximum quota value of the first service. The service configuration information further comprises: quota authority information of the service.
[0133] In the embodiments of the present application, the first electronic device updates the service configuration information according to the service authority change information, and can further comprise: the first electronic device can update the quota authority information of the first service according to the first quota threshold and / or the second quota threshold.
[0134] For example, assuming that the first quota threshold of the service A is 100,000, and the second quota threshold of the service A is 1,000,000. The first quota threshold of the service A in the service authority change information is 50,000, and the second quota threshold of the service A is 2,000,000. Then, the updated quota authority information of the service A is 50,000 and 2,000,000.
[0135] In some embodiments, the service configuration information further comprises: quota authority information of the service and usage authority information of the service. The first electronic device updates the service configuration information according to the service authority change information, and can further comprise: the first electronic device can update the quota authority information of the first service and the usage authority information of the first service according to the service authority change information.
[0136] It can be understood that the service configuration information further comprises: quota authority information of the service and usage authority information of the service. The first electronic device updates the quota authority information of the first service and the usage authority information of the first service according to the service authority change information. In this way, the first electronic device can adjust the quota and usage authority of the service, and the management of the second electronic device on the first electronic device is strengthened.
[0137] In some embodiments, after the service configuration information is updated, the first electronic device can determine whether to process the service according to the updated service configuration information.
[0138] In the embodiments of the present application, the smart contract of the business is stored in the blockchain node, and the processing event of the business is stored in the smart contract of the business. The first electronic device can receive a business handling request, the business handling request being used to request to process a target business, and the business handling request including the amount of the target business, the target business being any one of the plurality of businesses. In response to the business handling request, the first electronic device can determine the quota permission information of the target business and the use permission information of the target business from the updated business configuration information. Then, the first electronic device can determine whether the target business meets a preset condition, the preset condition including that the use permission of the business is a first use permission identifier (i.e., the business is supported), the quota of the business is greater than a first quota threshold, and / or the quota of the business is less than a second quota threshold.
[0139] In a possible design, if the use permission information of the target business indicates that the target business is supported, and the amount of the target business meets the condition of the quota permission information of the target business, the first electronic device sends a contract calling request to the blockchain node, the contract calling request being used to request to call the smart contract of the target business.
[0140] In a possible design, if the use permission information of the target business indicates that the target business is supported, and the amount of the target business meets the condition of the quota permission information of the target business, the first electronic device sends a contract calling request to the blockchain node, the contract calling request being used to request to call the smart contract of the target business.
[0141] For example, if the target business is business A, and the amount of business A is 150,000. If the use permission information of business A is the first use permission identifier, the first quota threshold of business A is 50,000, and the second quota threshold of business A is 1,000,000, the first electronic device calls the smart contract of business A.
[0142] In a possible design, if the use permission information of the target business indicates that the target business is not supported, and / or the amount of the target business does not meet the condition of the quota permission information of the target business, the first electronic device sends a failure prompt message, the failure prompt message being used to indicate that the target business cannot be processed.
[0143] For example, if the target business is business A, and the amount of business A is 150,000. If the use permission information of business A is the first use permission identifier, the first quota threshold of business A is 50,000, and the second quota threshold of business A is 1,000,000, the first electronic device calls the smart contract of business A. Figure 5As shown, if the target service is service A and the amount of service A is 150,000, and the usage permission information of service A is the first usage permission identifier, and the first quota threshold of service A is 50,000 and the second quota threshold of service A is 1,000,000, the first electronic device sends a prompt message 501, for example, the prompt message 501 can be "the current amount is too high, and service A cannot be handled". Alternatively, if the target service is service A and the amount of service A is 150,000, and the usage permission information of service A is the second usage permission identifier, and the first quota threshold of service A is 50,000 and the second quota threshold of service A is 1,000,000, the first electronic device sends a prompt message, such as "the current service A is not supported".
[0144] Optionally, the first electronic device can receive a service handling request, and the service handling request is used to request to process the target service. In response to the service handling request, the first electronic device can determine the usage permission information of the target service from the updated service configuration information. If the usage permission information of the target service is used to indicate that the target service is supported, the first electronic device can send a contract calling request to the blockchain node, and the contract calling request is used to request to call the smart contract of the target service.
[0145] In some embodiments, the blockchain node can receive the contract calling request from the first electronic device. Then, the blockchain node can call the smart contract of the target service and execute the smart contract of the target service.
[0146] Optionally, after the blockchain node executes the smart contract of the target service, the blockchain node can generate a second notarization transaction, and the second notarization transaction can include information of executing the smart contract of the target service. That is, the second notarization transaction can include the result of processing the target service.
[0147] In other embodiments, the blockchain node can receive the contract calling request from the first electronic device. Then, the blockchain node can send the smart contract of the target service to the first electronic device. Then, the first electronic device can call the smart contract of the target service and execute the smart contract of the target service.
[0148] It should be noted that in the embodiments of the present application, the smart contract stores the processing event of the service. Therefore, executing the smart contract of the target service can execute the processing event of the target service, that is, handling the target service.
[0149] Based on the above technical solutions, the first electronic device verifies whether the smart contract of the target service can be called, that is, whether the target service can be handled, based on the quota permission information of the target service and the usage permission information of the target service. In this way, the first electronic device can execute the service according to the permission, and the security of the service execution party executing the service is guaranteed.
[0150] In some embodiments, a second electronic device can adjust the smart contract for a service in a blockchain node. The second electronic device can send a service change message to the blockchain node, which can indicate the addition or removal of a second service. The blockchain node can then receive the service change message from the second electronic device. The blockchain node can then determine whether the service change message indicates the addition or removal of the second service. If the service change message indicates the addition of the second service, the blockchain node generates a smart contract for the second service. If the service change message indicates the removal of the second service, the blockchain node deletes the smart contract for the second service.
[0151] In one possible implementation, the service change message may include an identifier of the second service and a processing event for the second service. If the service change message indicates the addition of a new second service, the blockchain node generates a smart contract for the second service based on the identifier of the second service and the processing event for the second service.
[0152] Optionally, the service change message may further include: information on the permission of the device of the service executor to use the second service.
[0153] In another possible implementation, the service change message may include an identifier of the second service. If the service change message indicates the cancellation of the second service, the blockchain node deletes the smart contract for the second service based on the identifier of the second service.
[0154] It is understood that the blockchain node receives a service change message from the second electronic device, where the service change message indicates the addition or cancellation of the second service. In this way, the blockchain node can adjust the service's smart contract based on the service change message from the second electronic device, thereby enhancing the second electronic device's management of the service in the system.
[0155] The following describes the management method of business permissions in the embodiment of the present application with reference to specific examples. Figure 6 As shown, the second electronic device can initiate a proof transaction to change the business usage rights. Afterwards, the blockchain node can upload the proof transaction to the chain. In addition, the first electronic device can monitor the blockchain node and synchronize the proof transaction to update the business configuration information of the first electronic device (such as business usage rights and display permission information). Then, the first electronic device can call the interface for updating the business configuration information, and the back-end system of the first electronic device can update the database and synchronously update the business configuration information. Then, when the first electronic device processes the business, it can verify the relevant permissions of the first electronic device.
[0156] It should be noted that after the first electronic device updates the service interface, a new service function area may be added or hidden in the service interface, which may cause the service interface to be quite confusing.
[0157] In some embodiments, the business interface includes a plurality of function areas of the plurality of businesses. The first electronic device can receive an interface configuration operation of the user, the interface configuration operation being used to adjust the layout of the plurality of function areas of the plurality of businesses in the business interface. Thereafter, in response to the interface configuration operation of the user, the first electronic device can adjust the layout of the plurality of function areas of the plurality of businesses in the business interface.
[0158] In some embodiments, adjusting the layout of the plurality of function areas of the plurality of businesses in the business interface refers to adjusting the arrangement order, the arrangement position, the area size of the function areas, etc.
[0159] It should be noted that the interface configuration operation is not limited in the embodiments of the present application. For example, the interface configuration operation can be a drag operation (which can adjust the arrangement order or the arrangement position of the function areas). For another example, the interface configuration operation can be a zoom operation (which can adjust the area size of the function areas). For another example, the interface configuration operation can be an operation of inputting an adjustment parameter (which can adjust the area size of the function areas).
[0160] For example, as shown in FIG. 3A, the function area 302 of the business A displayed in the interface 301 is located above the function area 303 of the business B. Figure 3 For example, as shown in FIG. 7A, the function area 703 of the business A displayed in the business interface 701 is located below the function area 702 of the business B. Figure 7
[0161] It can be understood that, in response to the interface configuration operation of the user, the first electronic device can adjust the layout of the plurality of function areas of the plurality of businesses in the business interface. In this way, the user of the first electronic device can autonomously adjust the layout of the business interface, thereby improving the user experience.
[0162] Optionally, after the first electronic device can adjust the layout of the plurality of function areas of the plurality of businesses in the business interface, the first electronic device can update the business configuration information. The business configuration information can further include business layout information, the business layout information being used to indicate the layout of the business.
[0163] For example, the business layout information can indicate the arrangement order of the function areas of the business. As shown in Table 1, the business layout information of the business is shown.
[0164] Table 1
[0165]
[0166]
[0167] For example, if the business layout information of the business shown in Table 1 is shown in the business interface, in combination with Table 1 and FIG. 3A, the function area 302 of the business A displayed in the interface 301 is located above the function area 303 of the business B. Figure 3 For example, if the business layout information of the business shown in Table 1 is shown in the business interface, in combination with Table 1 and FIG. 7A, the function area 703 of the business A displayed in the business interface 701 is located below the function area 702 of the business B.Figure 3 It can be known that the service layout information of service A is "0", the service layout information of service B is "1", and it is indicated that the function area of service A is located above the function area of service B. The service layout information of service C is "2", and it is indicated that the function area of service C is located on the right side of the service interface.
[0168] In the embodiment of the present application, after the first electronic device adjusts the layout of the function areas of the plurality of services in the service interface, the layout change information can be generated, which can be used to indicate that the layout of the function areas of the services has changed. Then, the first electronic device can update the service layout information according to the layout change information.
[0169] For example, if the function area 302 of service A displayed in the interface 301 is changed from being above the function area 303 of service B to being below the function area 303 of service B, as shown in the service interface 701 of Figure 3 and Figure 7 , the layout change information includes: the service layout information of service A is "1", and the service layout information of service B is "0". Then, the first electronic device can change the service layout information of service A and service B. Figure 7
[0170] For example, as shown in Table 2, the updated service layout information is shown.
[0171] Table 2
[0172] Functional areas of a service Service layout information Functional areas of service A 1 Functional areas of service B 0 Functional areas of service C 2
[0173] In combination with Table 1, Table 2 is the updated service layout information (corresponding to the service interface shown in Figure 7 ). Among them, the service layout information of service A is "1", and the service layout information of service B is "0", indicating that the function area of service B is located above the function area of service A.
[0174] In some embodiments, in the case that the first electronic device logs in the first account, in response to the save configuration operation, the first electronic device can save the updated service layout information.
[0175] Based on the above technical solution, the first electronic device receives the interface configuration operation of the user, and adjusts the layout of the function areas of the plurality of services in the service interface. In response to the interface configuration operation of the user, the first electronic device can adjust the layout of the function areas of the plurality of services in the service interface and update the service layout information. In this way, the user of the first electronic device can independently adjust the layout of the service interface, and save the adjusted layout result, improving the user experience.
[0176] It should be noted that the first electronic device may have multiple users. If different users have different layout habits for the service interface, the user may need to adjust the layout of the service interface every time they use the first electronic device, which reduces the user experience.
[0177] In some embodiments, the first electronic device stores multiple accounts, each corresponding to a business layout information. When a target account logs into the first electronic device, the first electronic device can obtain the business layout information corresponding to the target account, where the target account is any one of the multiple accounts. The first electronic device can then display a business interface based on the business layout information corresponding to the target account.
[0178] For example, if account A corresponds to the business layout information in Table 1, and Table 1 is Figure 3 The layout of the business interface shown in FIG. 1 corresponds to the layout of the business interface shown in FIG. 1 . After account A logs in to the first electronic device, the first electronic device may display the following Figure 3 As shown in the business interface 301. If account B corresponds to the business layout information in Table 2, and Table 2 is Figure 7 The layout of the business interface shown in FIG. 1 corresponds to the layout of the business interface shown in FIG. 1 , then after account B logs in to the first electronic device, the first electronic device may display the following Figure 7 Business interface 701 is shown.
[0179] Based on the above technical solution, the first electronic device can display the service interface according to the service layout information corresponding to the target account. In this way, the service interface can be configured in combination with the user account, thereby improving the user experience.
[0180] The following describes the process of displaying and updating the service interface in the embodiment of the present application with reference to specific examples. Figure 8 As shown, after the target account logs in, the front-end page of the first electronic device can call the interface for obtaining the layout information. Afterwards, the back-end system of the first electronic device can obtain the business layout information corresponding to the target account from the database, and then the database can return the business layout information of the target account to the back-end system. Then, the back-end system can return the business layout information corresponding to the target account to the front-end page. Then, the first electronic device can cache the business layout information, and display the functional area of the business on the front-end page according to the business layout information corresponding to the target account. Afterwards, the front-end page of the first electronic device can receive the user's interface configuration operation, update the layout of the functional area of the business, and generate layout change information. Then, the first electronic device can call the interface for updating the layout information, and the back-end system can update the business layout information in the database. Then, the database can return the update result to the back-end system and the front-end page.
[0181] It should be noted that the second electronic device uploads the information related to the first electronic device to the blockchain, which may cause other devices to obtain the information related to the first electronic device from the blockchain, resulting in poor privacy of the information.
[0182] In some embodiments, as shown in Figure 9 The second electronic device can update the stored permission information of the first electronic device. Then, the second electronic device can obtain the encryption public key of the first electronic device. Then, the second electronic device can generate a first evidence transaction and encrypt the first evidence transaction according to the encryption public key, and upload the encrypted first evidence transaction to the blockchain node. Then, the blockchain node can store the encrypted first evidence transaction. And the first electronic device can listen to the blockchain node to obtain the encrypted first evidence transaction. Then, the first electronic device can parse the first evidence transaction by using the encryption private key of the first electronic device to obtain the business permission change information. Then, the first electronic device can update the business configuration information according to the business permission change information.
[0183] It should be noted that the encryption public key of the first electronic device corresponds to the encryption private key of the first electronic device. The first electronic device can send the encryption public key of the first electronic device to the second electronic device for storage.
[0184] Optionally, before the second electronic device obtains the encryption public key of the first electronic device, the second electronic device can check parameters (such as business permission change information, identification of the first electronic device, encryption public key of the first electronic device, etc.).
[0185] It can be understood that after the second electronic device uploads the business permission change information encrypted by the encryption public key of the first electronic device to the blockchain node, only the first electronic device can use the encryption private key to decrypt to obtain the business permission change information. In this way, the privacy of the information is improved, and information leakage is avoided.
[0186] In some embodiments, as shown in Figure 10 The business permission management method can further include the following steps:
[0187] S1001: The first electronic device listens to the blockchain node.
[0188] For details, please refer to S205, which will not be repeated here.
[0189] S1002: In the case of adding business permission change information in the blockchain node, the first electronic device sends a synchronization request message to the blockchain node.
[0190] For details, please refer to S206, which will not be repeated here.
[0191] S1003: The first electronic device receives the service permission change information from the blockchain node.
[0192] For details, please refer to S209, which will not be repeated here.
[0193] S1004: The first electronic device updates the service configuration information according to the service permission change information.
[0194] For details, please refer to S210, which will not be repeated here.
[0195] Based on the above technical solution, the first electronic device listens to the blockchain node. In the case of adding service permission change information in the blockchain node, the first electronic device sends a synchronization request message to the blockchain node, the synchronization request message is used to request the service permission change information, the service permission change information is used to indicate that the service use permission of the first service has changed, wherein the blockchain node stores the service permission change information configured by the second electronic device, and the second electronic device is an electronic device of a regulatory party. Then, the first electronic device can receive the service permission change information from the blockchain node. Then, the first electronic device can update the service configuration information according to the service permission change information, the service configuration information includes the display permission information of the service, and the updated service configuration information includes the display permission information of the first service after the change. The display permission information is used to indicate whether to display the function area of the service. In this way, the first electronic device can adjust part of the service use permission in combination with the service use permission set by the second electronic device.
[0196] In some embodiments, as shown in Figure 11 The method for managing the service permission can further include the following steps:
[0197] S1101: The blockchain node receives the service permission change information from the second electronic device.
[0198] For details, please refer to S203, which will not be repeated here.
[0199] S1102: The blockchain node saves the service permission change information.
[0200] For details, please refer to S204, which will not be repeated here.
[0201] S1103: The blockchain node receives the synchronization request message from the first electronic device.
[0202] For details, please refer to S207, which will not be repeated here.
[0203] S1104: The blockchain node sends the service permission change information to the first electronic device.
[0204] For details, please refer to S208, which will not be repeated here.
[0205] It can be understood that the second electronic device uploads the service permission change information to the blockchain node, and the first electronic device can obtain the service permission change information from the blockchain node. In this way, the first electronic device can be synchronized with the service permission change information in time, and the supervision of the second electronic device on the first electronic device is strengthened.
[0206] The above mainly introduces the scheme provided by the embodiments of the application from the perspective of the method. In order to implement the above functions, the service permission management apparatus or the electronic device comprises a hardware structure and / or a software module for executing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in the present application, the application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.
[0207] The embodiments of the application can divide the service permission management apparatus or the electronic device into functional modules according to the above method. For example, the service permission management apparatus or the electronic device can comprise functional modules corresponding to each functional division, or two or more functions can be integrated into one processing module. The integrated module can be realized in the form of hardware or software functional module. It should be noted that the division of modules in the embodiments of the application is illustrative, and is only a logical functional division. Actual implementation can have another division manner.
[0208] For example, the embodiments of the application also provide a service permission management apparatus.
[0209] Figure 12 is a block diagram of a service permission management apparatus according to an exemplary embodiment. Referring to FIG. 12, Figure 12 The service permission management apparatus 1200 is applied to a first electronic device, and the first electronic device is an electronic device of a service performer. The service permission management apparatus 1200 comprises a processing module 1201, a sending module 1202 and a receiving module 1203.
[0210] The processing module 1201 is configured to execute the listening blockchain node, wherein the blockchain node stores a plurality of smart contracts corresponding to a plurality of businesses. The sending module 1202 is configured to execute, in a case where the business permission change information is added in the blockchain node, sending a synchronization request message to the blockchain node, the synchronization request message being used to request the business permission change information, and the business permission change information being used to indicate that the business permission of the first business is changed. The blockchain node stores the business permission change information configured by the second electronic device. The receiving module 1203 is configured to execute receiving the business permission change information from the blockchain node. The processing module 1201 is further configured to execute updating the business configuration information according to the business permission change information, and the updated business configuration information includes the business permission information of the first business after the change.
[0211] In a possible implementation, the business configuration information includes usage permission information of the business. The receiving module 1203 is further configured to execute receiving a business handling request, the business handling request being used to request processing of the target business. The processing module 1201 is further configured to execute, in response to the business handling request, determining the usage permission information of the target business from the updated business configuration information. The sending module 1202 is further configured to execute, if the usage permission information of the target business indicates that the target business is supported, sending a contract calling request to the blockchain node, the contract calling request being used to request calling the smart contract of the target business.
[0212] In another possible implementation, the business configuration information includes display permission information of the business, and the updated business configuration information includes the display permission information of the first business after the change, the display permission information being used to indicate whether to display the function area of the business. The processing module 1201 is further configured to execute updating the business interface according to the updated business configuration information, wherein the updated business interface displays the function area of the first business, or the updated business interface hides the function area of the first business. The function area of the business corresponds to the business permission one by one.
[0213] In another possible implementation, the processing module 1201 is further configured to execute, if the business permission change information indicates that the first electronic device supports the first business, setting the display permission information of the first business in the business configuration information as a first identifier, the first identifier being used to indicate displaying the function area. The processing module 1201 is further configured to execute, if the business permission change information indicates that the first electronic device does not support the first business, setting the display permission information of the first business in the business configuration information as a second identifier, the second identifier being used to indicate hiding the function area.
[0214] In another possible implementation, the service configuration information further includes a plurality of function modules, one function module corresponding to one service. The processing module 1201 is further configured to execute the following: if the service permission change information is used to indicate that the first electronic device supports the first service, adding the function module of the first service. The processing module 1201 is further configured to execute the following: if the service permission change information is used to indicate that the first electronic device does not support the first service, deleting the function module of the first service.
[0215] In another possible implementation, the service permission change information is further used to indicate that the service quota permission of the first service is changed. The service configuration information further includes: quota permission information of the service and usage permission information of the service. The processing module 1201 is further configured to execute the following: according to the service permission change information, updating the quota permission information of the first service and the usage permission information of the first service.
[0216] In another possible implementation, the second electronic device is an electronic device supervising the service usage permission of the first electronic device.
[0217] Figure 13 FIG. 13 is a block diagram of a service permission management apparatus according to an example embodiment. Referring to FIG. 13, the service permission management apparatus 1300 is applied to a blockchain node, and the blockchain node stores a plurality of smart contracts corresponding to services one by one. The service permission management apparatus 1300 includes a receiving module 1301, a processing module 1302, and a sending module 1303. Figure 13
[0218] The receiving module 1301 is configured to execute the following: receiving service permission change information from a second electronic device, the service permission change information being used to indicate that service usage permission of a first service is changed. The processing module 1302 is configured to execute the following: saving the service permission change information. The receiving module 1301 is configured to execute the following: receiving a synchronization request message from a first electronic device, the synchronization request message being used to request the service permission change information. The sending module 1303 is configured to execute the following: sending the service permission change information to the first electronic device, the first electronic device being an electronic device of a service executor.
[0219] In a possible implementation, the receiving module 1301 is further configured to execute the following: receiving a service change message from the second electronic device, the service change message being used to indicate that a second service is added / revoked. The processing module 1302 is further configured to execute the following: if the service change message is used to indicate that the second service is added, generating a smart contract of the second service. The processing module 1302 is further configured to execute the following: if the service change message is used to indicate that the second service is revoked, deleting the smart contract of the second service.
[0220] In another possible implementation, the second electronic device is an electronic device supervising the service usage permission of the first electronic device.
[0221] As to the apparatus in the above-mentioned embodiments, the specific manners in which the respective modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.
[0222] Figure 14 is a block diagram of an electronic device according to an exemplary embodiment. As shown in Figure 14 The electronic device 1400 includes, but is not limited to, a processor 1401 and a memory 1402.
[0223] The memory 1402 described above is configured to store executable instructions of the processor 1401 described above. It can be understood that the processor 1401 is configured to execute the instructions to implement the service permission management method in the above-mentioned embodiments.
[0224] It should be noted that those skilled in the art can understand that Figure 14 The electronic device structure shown in Figure 14 may include more or fewer components than those shown, or combine some components, or arrange the components differently.
[0225] The processor 1401 is the control center of the electronic device, connects all parts of the electronic device through various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 1402 and calling data stored in the memory 1402, thereby overall monitoring the electronic device. The processor 1401 can include one or more processing units; optionally, the processor 1401 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the modem processor can also not be integrated into the processor 1401.
[0226] The memory 1402 can be used to store software programs and various data. The memory 1402 can mainly include a program storage area and a data storage area, wherein the program storage area can store the operating system, application programs (such as receiving modules, obtaining modules, and payment modules, etc.) required by at least one functional module, etc. In addition, the memory 1402 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.
[0227] In an example embodiment, a computer readable storage medium including instructions, for example, the memory 1402 including instructions, is also provided, which can be executed by the processor 1401 of the electronic device 1400 to implement the method for managing service authority in the above embodiment.
[0228] In actual implementation, the processing functions of the processing module 1201, the sending module 1202, the receiving module 1203, the processing module 1301, the processing module 1302 and the sending module 1303 can be implemented by the processor 1401 in the electronic device 1400 calling the computer program stored in the memory 1402. The specific execution process can refer to the description of the method for managing service authority in the above embodiment, which will not be described here. Figure 14
[0229] Optionally, the computer readable storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk and an optical data storage device, etc.
[0230] In an example embodiment, the embodiment of the present application also provides a computer program product including one or more instructions, which can be executed by the processor 1401 of the electronic device 1400 to complete the method for managing service authority in the above embodiment.
[0231] It should be noted that the instructions in the above computer readable storage medium or the one or more instructions in the computer program product are executed by the processor 1401 of the electronic device 1400 to implement each process of the above method for managing service authority, and can achieve the same technical effect as the above method for managing service authority. To avoid repetition, it will not be described here.
[0232] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete the above described full classification part or part of the function.
[0233] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of the modules or units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.
[0234] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or a plurality of physical units, that is, can be located in one place, or can be distributed to a plurality of different places. Part or all of the classification units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0235] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0236] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the part of the prior art that contributes to the technical solutions or the whole classification or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making a device (which can be a single chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method of the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various storage program codes.
[0237] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for managing business permissions, characterized in that: Applied to a first electronic device, where the first electronic device is a service execution party electronic device, the method includes: Monitor blockchain nodes, which store multiple smart contracts corresponding to each business; When new business authority change information is added to the blockchain node, a synchronization request message is sent to the blockchain node, where the synchronization request message is used to request the business authority change information, and the business authority change information is used to indicate that the business authority of the first business has changed; The blockchain node stores the service authority change information configured by the second electronic device; Receiving the business authority change information from the blockchain node; Update the service configuration information according to the service authority change information, wherein the updated service configuration information includes: the service authority information of the changed first service, and the service configuration information includes: service usage authority information; receiving a business processing request, wherein the business processing request is used to request processing of a target business; In response to the service processing request, determining usage permission information of the target service from the updated service configuration information; If the usage permission information of the target business is used to indicate support for the target business, a contract call request is sent to the blockchain node, where the contract call request is used to request the call of the smart contract of the target business.
2. The method according to claim 1, characterized in that The service configuration information includes display permission information of the service, and the updated service configuration information includes the changed display permission information of the first service, wherein the display permission information is used to indicate whether to display the function area of the service; The method further comprises: Update the service interface according to the updated service configuration information; wherein the updated service interface displays the function area of the first service, or the updated service interface hides the function area of the first service; Among them, the functional areas of the business correspond one to one with the business permissions.
3. The method according to claim 2, characterized in that The updating of the service configuration information according to the service authority change information includes: If the service authority change information is used to indicate that the first electronic device supports the first service, setting the display authority information of the first service in the service configuration information to a first identifier, where the first identifier is used to indicate a display function area; If the service authority change information is used to indicate that the first electronic device does not support the first service, the display authority information of the first service in the service configuration information is set to a second identifier, and the second identifier is used to indicate a hidden function area.
4. The method according to claim 1, wherein The service configuration information further includes a plurality of function modules, one function module corresponding to one service; and updating the service configuration information according to the service authority change information further includes: If the service authority change information is used to indicate that the first electronic device supports the first service, adding a functional module of the first service; If the service authority change information is used to indicate that the first electronic device does not support the first service, the functional module of the first service is deleted.
5. The method according to claim 1, wherein The business authority change information is further used to indicate that the business quota authority of the first business has changed. The business configuration information also includes: business quota authority information and business usage authority information; and updating the business configuration information according to the business authority change information also includes: According to the business authority change information, the quota authority information of the first business and the usage authority information of the first business are updated.
6. The method according to claim 1, characterized in that The second electronic device is an electronic device that supervises the service usage authority of the first electronic device.
7. A method for managing business permissions, characterized in that: Applied to a blockchain node, wherein the blockchain node stores multiple smart contracts corresponding to one of the businesses; the method includes: receiving service permission change information from a second electronic device, where the service permission change information indicates that a service usage permission of a first service has changed; Saving the business authority change information; receiving a synchronization request message from a first electronic device, wherein the synchronization request message is used to request the service authority change information; Sending the service authority change information to a first electronic device, where the first electronic device is an electronic device of a service executor; receiving a service change message from the second electronic device, where the service change message is used to indicate adding / cancelling a second service; If the service change message indicates the addition of the second service, generating a smart contract for the second service; If the service change message is used to indicate the cancellation of the second service, the smart contract of the second service is deleted.
8. A device for managing business rights, characterized in that: Applied to a first electronic device, where the first electronic device is an electronic device of a service execution party, the apparatus includes: A processing module is configured to execute and monitor a blockchain node, wherein the blockchain node stores a plurality of smart contracts corresponding to the services; a sending module, configured to, when new business authority change information is added to the blockchain node, send a synchronization request message to the blockchain node, wherein the synchronization request message is used to request the business authority change information, and the business authority change information is used to indicate that the business authority of the first business has changed; The blockchain node stores the service authority change information configured by the second electronic device; A receiving module is configured to receive the business authority change information from the blockchain node; The processing module is further configured to update the service configuration information according to the service authority change information, wherein the updated service configuration information includes: the service authority information of the changed first service, and the service configuration information includes: the service usage authority information; The receiving module is configured to receive a service processing request, wherein the service processing request is used to request processing of a target service; The processing module is further configured to determine, in response to the service processing request, usage permission information of the target service from the updated service configuration information; The sending module is configured to send a contract call request to the blockchain node if the usage permission information of the target business is used to indicate support for the target business, and the contract call request is used to request to call the smart contract of the target business.
9. A device for managing business rights, characterized in that: Applied to a blockchain node, wherein the blockchain node stores multiple smart contracts corresponding to one of the services; the device comprises: a receiving module configured to receive service permission change information from a second electronic device, wherein the service permission change information is used to indicate that a service usage permission of the first service has changed; A processing module is configured to execute and save the business authority change information; The receiving module is configured to receive a synchronization request message from the first electronic device, where the synchronization request message is used to request the service authority change information; a sending module configured to send the service authority change information to a first electronic device, where the first electronic device is an electronic device of a service executor; The receiving module is configured to receive a service change message from the second electronic device, where the service change message is used to indicate adding / cancelling the second service; The processing module is configured to generate a smart contract for the second service if the service change message indicates the addition of the second service; The processing module is configured to delete the smart contract of the second service if the service change message is used to indicate the cancellation of the second service.
10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can perform the method according to any one of claims 1 to 7.
12. A computer program product, characterized in that The computer program product comprises computer instructions. When the computer instructions are run on an electronic device, the electronic device performs the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Information processing method and device based on block chain, electronic equipment and medium
CN111596956A
Supervision method and device based on block chain, electronic equipment and storage medium
CN112269838A
Cited By
Service permission management method and apparatus, and device
EP4645128A2