Aging-friendly design methods and related equipment based on alliance chain
Through the dual hash table storage structure and smart contracts in the alliance chain, automatic adaptation of terminal device font sizes is achieved, solving the inconvenience caused by elderly people setting font sizes one by one and improving the convenience of terminal devices.
Patent Information
- Application Number
- CN202410544002.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-04-30
AI Technical Summary
In the prior art, the elderly need to set the font size of the terminal device one by one to meet their usage needs, which causes inconvenience in use and reduces the convenience of the terminal device.
Through the dual hash table storage structure with MAP in the alliance chain, the font size of the terminal device is automatically adapted, and the unified conversion and automatic configuration of font sizes are achieved by using smart contracts and the preset standard font size system.
It improves the convenience for the elderly to use terminal devices and reduces the complexity of setting font size for the elderly through automatic adaptation technology.
Smart Images

Figure CN118821389B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to an aging-friendly design method and related equipment based on a consortium chain. Background Art
[0002] For software products, the adaptation of different terminal devices to the elderly is also an issue that needs to be urgently addressed.
[0003] To address the issue of adapting different terminal devices to the needs of the elderly, related technologies have implemented elderly-friendly scenarios by providing a font size setting function. This allows elderly users to customize the font size of terminal content displayed using this function. However, since related technologies require elderly users to set the font size for each software application individually to meet their needs, this is very inconvenient for the elderly and reduces their convenience in using terminal devices. Summary of the Invention
[0004] The main purpose of this application is to provide an aging-friendly design method and related equipment based on a consortium chain, aiming to solve the technical problem of how to improve the convenience of using terminals for the elderly.
[0005] To achieve the above objectives, this application proposes an aging-friendly design method based on a consortium chain, which includes:
[0006] Acquiring aging-friendly configuration information, wherein the aging-friendly configuration information includes a first target font size and software information of a set font size;
[0007] Converting the first target font size into a standard font size;
[0008] Based on the standard font size and the set font size software information, a double hash table storage structure with a MAP is constructed;
[0009] Receiving software information for which font size is to be set, and based on the software information for which font size is to be set, performing conversion using the dual hash table storage structure with MAP and the standard font size as a reference, obtaining a second target font size for each software for which font size is to be set;
[0010] The second target font size is sent to the corresponding software for the font size to be set, so that the software for the font size to be set sets the current software font to the second target font size.
[0011] In one embodiment, the step of constructing a dual hash table storage structure with a MAP based on the standard font size and the set font size software information includes:
[0012] Determining the system software information and application software information in the software information with set font size;
[0013] The system software information and the application software information are respectively set as the first-level Hash primary key and the second-level Hash primary key; based on the first-level Hash primary key and the second-level Hash primary key, a dual Hash table is determined;
[0014] Establish a MAP structure and attach it to the second-level Hash primary key to obtain a second-level Hash primary key with a MAP structure;
[0015] Establishing a query relationship based on the double hash table and the font size system of the software information with set font sizes;
[0016] Based on the dual Hash table, the MAP structure and the query relationship, a dual Hash table storage structure with MAP is obtained.
[0017] In one embodiment, before the step of obtaining the aging-friendly configuration information, the following steps are included:
[0018] Obtain system software information and application software information;
[0019] Based on the system software information, the application software information and the preset blockchain, a consortium chain is constructed, wherein the consortium chain includes a main chain and a side chain, the main chain is used to mount a dual hash table storage structure with MAP, and the side chain is used to store the font size system in the system software information and the application software information.
[0020] In one embodiment, the step of converting the first target font size to a standard font size includes:
[0021] Determine the standard level based on the preset standard font size system;
[0022] Based on the preset smart contract and the standard level, a standard calculation is performed on the first target font size to obtain a standard font size.
[0023] In one embodiment, the step of receiving the software information to be set to a font size, and converting the software information to be set to a font size using the dual hash table storage structure with MAP and the standard font size as a reference to obtain the second target font size of each software to be set to a font size includes:
[0024] Based on the information of the software to be set, querying through the double hash table storage structure with MAP to obtain the font size system of the software to be set;
[0025] According to the standard font size and the font size system of the software to be set, a reverse conversion calculation is performed based on the standard font size through the preset smart contract to obtain the second target font size of each software to be set.
[0026] In one embodiment, after the step of sending the second target font size to the corresponding software for setting the font size so that the software for setting the font size sets the current software font to the second target font size, the following steps are included:
[0027] Perform heartbeat detection on the software to be used to set the font size and obtain the heartbeat detection result;
[0028] If the heartbeat detection result is that no heartbeat data is detected within the preset event, the dual Hash table storage structure with MAP is deleted.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes an aging-friendly design device based on a consortium chain, which includes:
[0030] Acquisition module, used to obtain aging-friendly configuration information;
[0031] a standard module, configured to convert the first target font size into a standard font size;
[0032] a conversion module, configured to receive information about software to be set to a font size, and based on the information about the software to be set to a font size, perform conversion using the dual hash table storage structure with MAP and the standard font size as a reference to obtain a second target font size for each software to be set to a font size;
[0033] The sending module is configured to send the second target font size to the corresponding software for the font size to be set, so that the software for the font size to be set sets the current software font to the second target font size.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes an aging-friendly design device based on a consortium chain, the device comprising: a memory, a processor, and a computer program stored on the memory and runnable on the processor, the computer program being configured to implement the steps of the aging-friendly design method based on the consortium chain as described above.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium for aging-friendly design based on a consortium chain, wherein the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the aging-friendly design method based on the consortium chain as described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the aging-friendly design method based on the alliance chain as described above.
[0037] One or more technical solutions proposed in this application have at least the following technical effects:
[0038] This application searches for the font size system of the software to be set in font size through the dual hash table blockchain main-side chain storage structure with MAP in the alliance chain, and obtains the font size of each software to be set in font size according to the font size system. The back-end of the terminal device and the back-end of the terminal device software can automatically adapt according to the font size, thereby improving the convenience of the elderly in using the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 A flowchart of the first embodiment of the aging-friendly design method based on the alliance chain of this application is provided;
[0042] Figure 2 This is a schematic diagram of the overall system design process of the alliance chain-based aging-friendly design method in this application;
[0043] Figure 3 This is a flow chart of the main-side chain storage structure of the dual-hash table blockchain with MAP in the aging-friendly design method based on the alliance chain of this application;
[0044] Figure 4 This is a schematic diagram of the module structure of the aging-friendly design method and device based on the alliance chain in this application;
[0045] Figure 5 This is a schematic diagram of the aging-friendly design method and equipment based on the alliance chain in this application.
[0046] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0048] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0049] The main solution of the embodiment of the present application is: obtaining aging-friendly configuration information, wherein the aging-friendly configuration information includes a first target font size and software information of set font size; converting the first target font size into a standard font size; constructing a dual Hash table storage structure with MAP based on the standard font size and the software information of set font size; receiving software information of the font size to be set, and based on the software information of the font size to be set, converting the standard font size through the dual Hash table storage structure with MAP to obtain the second target font size of each software of the font size to be set; sending the second target font size to the corresponding software of the font size to be set, so that each software of the font size to be set sets the current software font to the second target font size.
[0050] In related technologies, terminal devices offer a font size setting function to achieve aging-friendly scenarios. This allows elderly users to customize the font size of terminal content. However, since related technologies require elderly users to set the font size for each software application individually to meet their needs, this is very inconvenient for the elderly and reduces their convenience in using terminal devices.
[0051] This application searches for the font size system of the software to be set in font size through the dual hash table blockchain main-side chain storage structure with MAP in the alliance chain, and obtains the font size of each software to be set in font size according to the font size system. The back-end of the terminal device and the back-end of the terminal device software can automatically adapt according to the font size, thereby improving the convenience of the elderly in using the terminal device.
[0052] Reference Figure 1 , Figure 1 This is a flow chart of the first embodiment of the aging-friendly design method based on the alliance chain of this application.
[0053] In the first embodiment, the aging-friendly design based on the alliance chain includes the following steps. The overall system design diagram is as follows: Figure 2 As shown:
[0054] Step S100, obtaining aging-friendly configuration information, wherein the aging-friendly configuration information includes a first target font size and software information of a set font size;
[0055] It should be noted that the executor of this embodiment is the aging-friendly design device based on the alliance chain. Preferably, the aging-friendly design device based on the alliance chain is the server side to implement the aging-friendly design method based on the alliance chain. It can also be other terminals with data transmission and data processing functions. No specific restrictions are made here.
[0056] It can be understood that aging-friendly information refers to information uploaded to the consortium chain after users configure one or more software applications for aging-friendly settings on their terminal devices. The first target font size refers to the aging-friendly font size set by the user on the client. Software information with set font sizes refers to software that users have selected for aging-friendly settings.
[0057] The device receives the aging-friendly configuration information obtained by the user on the terminal device through SDK or HTTP API, where the aging-friendly configuration information mainly includes user ID, device ID, APPID and APP name, and set font size; after the device receives the aging-friendly configuration information, it packages it into a flow data type block and publishes the block to the alliance chain; after each node of the alliance chain in the device reaches a consensus on the flow data type block through the consensus algorithm, it stores it locally.
[0058] In a first feasible implementation manner, step S100 may further include the following steps:
[0059] Obtain system software information and application software information; build a consortium chain based on the system software information, the application software information and a preset blockchain, wherein the consortium chain includes a main chain and a side chain, wherein the main chain is used to mount a dual hash table storage structure with a MAP, and the side chain is used to store the font size system in the system software information and the application software information.
[0060] It should be noted that system software information refers to terminal device information. Application software information refers to app information. The default blockchain refers to the blockchain that does not include system software information and application software information. Multiple terminal device manufacturers and terminal software manufacturers join the consortium chain. The administrator configures the necessary information for each manufacturer on the operations platform corresponding to the consortium chain management node and distributes the configuration and consortium chain code to each manufacturer. Each manufacturer deploys the same consortium chain code with different configuration parameters on its own server, completing the consortium chain construction. If more manufacturers subsequently join the consortium chain, they repeat the above steps to join the consortium chain. After joining the consortium chain, the manufacturer first synchronizes the consortium chain data at the current time snapshot. Once synchronization is complete, the manufacturer becomes a normal node, receiving data and participating in the consensus process.
[0061] Step S200, converting the first target font size into a standard font size;
[0062] It is understood that a standard font size refers to a specific font size. The device's smart contract converts the user-defined age-friendly font size to a standard font size. The smart contract is edited by the operating platform corresponding to the consortium chain management node in the device. The smart contract primarily contains the standard font size system and the conversion algorithm for different font sizes. This conversion algorithm is used to calculate the standard font size and the corresponding terminal device in query scenarios when the user uploads the software's age-friendly configuration data to the chain.
[0063] In a first feasible implementation manner, step S200 may further include the following steps:
[0064] Based on a preset standard font size system, a standard level is determined; based on the preset smart contract and the standard level, a standard calculation is performed on the first target font size to obtain a standard font size.
[0065] It should be noted that the preset standard font size system refers to the prescribed standard font size system. The standard grade refers to the standard grade obtained by grading the standard font size system. The standard font size refers to the standard font size obtained by standardizing the font size.
[0066] The smart contract in this device divides the standard font size system into several levels, which can be mapped to the font size systems of different terminal devices and different software through a mapping algorithm. If the standard font size system is level N and the software font size system is level n, the mapping conversion algorithm is as follows:
[0067] f(i)=Ceiling(N / n)×i, where i is the i-th level in the manufacturer's brand system (1≤i≤n).
[0068] For example:
[0069] (1) Software font size system n<N
[0070] For example, if the standard font size system is N=5 and the manufacturer font size system is n=3, the following results are obtained according to the mapping algorithm:
[0071] Standard font size 2 4 5 Manufacturer's name 1 2 3
[0072] (2) Software font size system n>N
[0073] For example, if the standard font size system is N=5 and the manufacturer font size system is n=7, the following results are obtained according to the mapping algorithm:
[0074] Standard font size 1 2 3 3 3 4 5 Manufacturer's name 1 2 3 4 5 6 7
[0075] The reverse conversion algorithm is as follows:
[0076] i = Floor(n×f(i) / N), where i is the i-th level in the manufacturer's font size system (1≤i≤n)
[0077] The reverse conversion algorithm can also calculate the results of the above two tables.
[0078] When the device queries the required aging-friendly configuration parameters based on the SDK or API interface on the user side, the calculation logic of the blockchain in the device is carried out in the combination of the user terminal device and software. There are four main combinations:
[0079] (1) Same device and same APP;
[0080] (2) Different apps on the same device;
[0081] (3) The same APP on different devices;
[0082] (4) Different apps for different devices;
[0083] There are two situations in the above four combinations, that is, the aging-friendly configuration of the relevant APP has been uploaded to the blockchain. In this case, you can directly query the blockchain, that is, find the corresponding block in the main chain according to the user ID. The block contains the address of the multi-branch tree. In the multi-branch tree, you can query the historical aging-friendly configuration information saved in the blockchain according to the APP ID, and you can return directly at this time.
[0084] The second situation is that the aging-friendly configuration information has not been uploaded. In this case, calculations need to be performed based on the conversion algorithm. Since the APP will adapt to different terminal devices, it is only necessary to calculate the required font size. At this time, based on the mapping calculation results of the terminal software manufacturer's font size system and the standard system, both the same and different types of devices can be consistently mapped to the standard font size system. Therefore, based on this font size system, the font size of the corresponding terminal device can be calculated in reverse.
[0085] For example, if the APP of device A numbered A1 has not uploaded the aging-friendly configuration information to the blockchain, then according to the standard level with the most aging-friendly configuration statistics of device A in the blockchain, the font size system of A1 APP can be calculated according to the above reverse conversion algorithm;
[0086] For the scenario of the same APP on different devices, for example, the APP on device A, numbered A1, has uploaded the aging-friendly configuration information to the blockchain, while the APP on device B, numbered A1, has not uploaded the aging-friendly configuration information to the blockchain. Then, based on the standard level with the most aging-friendly configuration statistics of A1 APP in the blockchain, the font size system of A1 APP on device B can be calculated according to the above-mentioned reverse conversion algorithm. Even if the font size system is the same, different devices have adapted the APPs, so the text of the same font size will still be displayed in different sizes on different devices.
[0087] Step S300: constructing a dual Hash table storage structure with a MAP based on the standard font size and the set font size software information;
[0088] It is understandable that the device constructs a double Hash table storage structure with MAP for the information of the set font size software and the standard font size, and mounts the double Hash table storage structure with MAP on the main chain block, such as Figure 3 As shown. Each node of the alliance chain in the device packages the hash value of the dual hash table with MAP and the hash value of the main chain block into a flow data type block and publishes the block to the alliance chain. Each alliance chain node receives the flow data type block sent by other nodes and compares it with the hash value of the local corresponding block and the hash value of the mounted dual hash table with MAP. If no less than 2 / 3 are the same as the local ones, consensus is reached. The consensus result is packaged into a flow data type block and published to the alliance chain. If each alliance chain node receives the above consensus result, it confirms the completion of data on-chain.
[0089] In a first feasible implementation manner, step S300 may further include the following steps:
[0090] Determine the system software information and application software information in the set font size software information; set the system software information and the application software information as the first-level Hash primary key and the second-level Hash primary key, respectively; determine a double Hash table based on the first-level Hash primary key and the second-level Hash primary key; establish a MAP structure and mount it on the second-level Hash primary key to obtain a second-level Hash primary key with a MAP structure; establish a query relationship based on the double Hash table and the font size system of the set font size software information; obtain a double Hash table storage structure with MAP based on the double Hash table, the MAP structure and the query relationship.
[0091] It should be noted that a hash key is a special type of database primary key that uses a hash algorithm to store data. This type of primary key is often used in scenarios that require fast search and deletion because it provides very high search efficiency. A MAP structure is a data structure used to store key-value pairs.
[0092] When the device receives the aging-friendly configuration information submitted by the user, and the aging-friendly configuration information is saved locally after consensus through the consensus algorithm, the device extracts key information from the block, such as user ID, device ID, APP ID and APP name, and set font size. Similarly, when the user requests the key generation interface, the device extracts the user ID, device ID, APP ID and APP name, existing key and other information from the request parameters. At this time, if the dual hash table with MAP corresponding to the user ID block has not been established, then the dual hash table with MAP is established. The establishment process is as follows:
[0093] Step 1: Create a dual hash table, where the first-level hash key is device information and the second-level is app information;
[0094] Step 2: Create a MAP structure and attach it to the Value section of the second-level APP information. At this point, the dual hash table and MAP are associated.
[0095] Step 3: Create a mapping relationship between the primary key words and the value of the APP font size and other information based on the APP font size and other information;
[0096] Establish a mapping relationship between the primary key secret and the SDK secret key value based on the SDK new key and other information;
[0097] It should be pointed out that before updating the secret key in MAP, the device first compares the secret key information submitted in the interface with the historical secret key information in MAP. If the comparison is successful, the new secret key will be updated; otherwise, the comparison fails, there is a security risk, and the update will not be performed. That is, the subsequent decryption of the content reported by the SDK will fail, and the response data will not be uploaded to the chain.
[0098] When the construction of this part of the storage information is completed, the content of the double hash table with MAP is generated into a hash string, packaged into a block, and published to the alliance chain. The device compares the hash string with the local hash string and virtuality. If no less than 2 / 3 are the same as the local ones, a consensus is reached; if the consensus algorithm is reached, it is confirmed that the content generated locally by each node is consistent, otherwise the entire chain is rolled back.
[0099] Step S400: receiving software information to be set to a font size, and converting the software information to the font size to be set using the double hash table storage structure with MAP and the standard font size as a reference to obtain a second target font size for each software to be set to a font size;
[0100] It is understood that the software information for the to-be-set font size refers to the information about the software selected by the user for aging-friendly design. The second target font size refers to the font size corresponding to the aging-friendly configuration in each software application for the to-be-set font size. Based on the to-be-set font size information, a query is performed through the dual hash table storage structure with MAP to obtain the font size system of the software application for the to-be-set font size. Based on the standard font size and the font size system of the software application for the to-be-set font size, a reverse conversion calculation is performed using the preset smart contract with the standard font size as a benchmark to obtain the second target font size for each software application for the to-be-set font size.
[0101] Terminal software manufacturers and terminal equipment manufacturers obtain aging-friendly configuration information from the blockchain based on the SDK or HTTP API provided by this device. The details are as follows:
[0102] (1) When a user opens an APP, if the terminal software manufacturer of the APP has been connected to the blockchain alliance chain, the terminal software manufacturer will use the brand and ID, resolution, APP name, APP ID and other information of the mobile phone as query parameters, and call the blockchain's aging-friendly query interface through SDK or API. After receiving the request, the blockchain can find or calculate the corresponding font size by querying the double hash table with MAP of the corresponding device ID of the main chain, and return the SDK or API interface of the APP side so that the APP side can perform aging-friendly configuration; if the terminal software manufacturer of the APP has not been connected to the blockchain alliance chain, it will not make an interface call with the blockchain alliance chain because it has no SDK or API for docking.
[0103] (2) If the user configures all APPs of the device for aging through the unified aging-friendly configuration portal provided by the terminal device manufacturer, the terminal device manufacturer will use the brand and ID of the mobile phone, user ID, resolution, APP list, APP name, APP ID and other information as query parameters, and call the blockchain's aging-friendly query interface through the SDK or API. After receiving the request, the blockchain can find or calculate the corresponding font size by querying the double hash table with MAP of the corresponding device ID on the main chain, and return the SDK or API interface on the APP side so that the APP side can perform aging-friendly configuration.
[0104] This embodiment provides an aging-friendly design method based on a consortium chain. This embodiment first converts the font size set by the user through the smart contract in the consortium chain to obtain a standard font size, and searches the font size system of the software to be set with the font size through the main and side chain storage structure of the double hash table blockchain with MAP in the consortium chain. According to the font size system, the font size of the software to be set is calculated to obtain the font size of each software to be set. The back-end of the terminal device and the back-end of the terminal device software can automatically adapt according to the font size. The back-end of the terminal device and the back-end of the terminal device software can automatically adapt according to the suggestion, thereby improving the convenience of the elderly in using the terminal device.
[0105] In a feasible implementation, the aging-friendly design based on the alliance chain also includes the following steps:
[0106] A heartbeat detection is performed on the software for setting the font size to obtain a heartbeat detection result; if the heartbeat detection result is that no heartbeat data is detected within a preset event, the dual Hash table storage structure with MAP is deleted.
[0107] It should be noted that heartbeat data refers to data obtained by monitoring the app's liveness. Preset events refer to specified time periods. When terminal device or software manufacturers use an SDK for access, the SDK also uses a heartbeat function to notify the server of the corresponding device or app's liveness, allowing the blockchain to reclaim necessary space. If the SDK's last heartbeat exceeds a certain timeframe, such as if no heartbeat data is transmitted to the blockchain for a year, the app or device is considered decommissioned, and the dual hash table with the MAP is deleted to conserve space.
[0108] This embodiment provides an aging-friendly design method based on a consortium chain. This embodiment detects the APP's survival status by detecting the APP's heartbeat status, and deletes the dual hash tables with MAP related to non-surviving APPs to save space.
[0109] In a feasible implementation, the aging-friendly design method based on the alliance chain further includes the following steps:
[0110] The encrypted aging-friendly configuration information is obtained and new key information is generated, wherein the new key information stores a MAP structure; the encrypted aging-friendly configuration information is decrypted to obtain the set aging-friendly configuration data.
[0111] It is understood that the new key information refers to the new key information obtained by the alliance chain key generation interface through interaction with the alliance chain. Different users of different apps use different SDK encryption keys. Key generation is dynamic, and key updates are triggered when the key is first used, when it is resumed after a long period of inactivity, and when frequently reporting blockchain data.
[0112] The SDK in the device will use the SDK's default configured key when the APP is started for the first time. The key is generated when the SDK is distributed to the APP manufacturer. At this time, each user of the APP uses the default key for the first and only time. After encrypting the terminal device information, the default key calls the alliance chain key generation interface to interact with the alliance chain to generate a new key, and stores the new key in a double hash table with MAP. It is then returned to the SDK through the interface for storage, so that the data can be securely encrypted each subsequent interaction with the blockchain. At this time, different users of the same APP use different terminal keys.
[0113] When the SDK has not been used for a long time and the predetermined time limit is triggered, the local saved key is used again to encrypt the terminal device information, and the alliance chain key generation interface is called to interact with the alliance chain to generate a new key. The key is stored in a double hash table with MAP and returned to the SDK through the interface for storage, so that the data can be securely encrypted in each subsequent interaction with the blockchain. At this time, different users of the same APP use different terminal keys.
[0114] When the SDK reports blockchain data frequently, in order to prevent security risks, the SDK uses the locally saved key within the set frequency and period to encrypt the terminal device information, call the alliance chain key generation interface to interact with the alliance chain, generate a new key, store the key in a double hash table with MAP, and return it to the SDK through the interface for storage, so that the data can be securely encrypted in each subsequent interaction with the blockchain. At this time, different users of the same APP use different terminal keys.
[0115] The key is generated based on user device information, key request timestamp, user APP information, etc., ensuring that different keys are generated for the same user at different times, making the key difficult to forge and crack.
[0116] This embodiment provides an aging-friendly design method based on a consortium chain. This embodiment encrypts aging-friendly configuration information with a secret key and generates new secret key information, which can effectively prevent unauthorized users from accessing and interpreting data.
[0117] The present application also provides a device, such as Figure 4 As shown, the aging-friendly design device based on the alliance chain includes:
[0118] An acquisition module 10 is used to obtain aging-friendly configuration information;
[0119] A standard module 20, configured to convert the first target font size into a standard font size;
[0120] A construction module 30 is configured to construct a dual hash table storage structure with a MAP based on the standard font size and the set font size software information;
[0121] The conversion module 40 is configured to receive information about software to be set to a font size, and based on the information about the software to be set to a font size, perform conversion using the dual hash table storage structure with MAP and the standard font size as a reference to obtain a second target font size for each software to be set to a font size;
[0122] The sending module 50 is configured to send the second target font size to corresponding software for font size to be set, so that the software for font size to be set sets the current software font to the second target font size.
[0123] Optionally, the acquisition module includes:
[0124] The information module is used to obtain system software information and application software information; based on the system software information, the application software information and the preset blockchain, a consortium chain is constructed.
[0125] Optionally, the standard module includes:
[0126] The intelligent module is used to determine a standard level based on a preset standard font size system; based on the preset smart contract and the standard level, perform standard calculation on the first target font size to obtain a standard font size.
[0127] Optionally, the building blocks include:
[0128] A primary key module is used to determine the system software information and application software information in the set font size software information; set the system software information and the application software information as the first-level Hash primary key and the second-level Hash primary key respectively; determine a dual Hash table based on the first-level Hash primary key and the second-level Hash primary key; establish a MAP structure and mount it on the second-level Hash primary key to obtain a second-level Hash primary key with a MAP structure; establish a query relationship based on the dual Hash table and the font size system of the set font size software information; obtain a dual Hash table storage structure with MAP based on the dual Hash table, the MAP structure and the query relationship.
[0129] Optionally, the conversion module includes:
[0130] A query module is configured to query the information of the software to be set to a font size through the dual hash table storage structure with MAP to obtain the font size system of the software to be set to a font size; and to perform a reverse conversion calculation based on the standard font size and the font size system of the software to be set to a font size through the preset smart contract with the standard font size as a reference to obtain a second target font size for each software to be set to a font size.
[0131] This application also provides an aging-friendly design device based on the alliance chain, such as Figure 5 As shown, it shows a schematic diagram of the structure of an aging-friendly design device based on a consortium chain suitable for implementing the embodiment of the present application. The aging-friendly design device based on a consortium chain in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The aging-friendly design device based on the alliance chain shown is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present application.
[0132] like Figure 5As shown, the aging-friendly design device based on the alliance chain may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the aging-friendly design device based on the alliance chain are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other via a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the alliance chain-based aging-friendly design device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an alliance chain-based aging-friendly design device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0133] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0134] The alliance chain-based aging-friendly design device provided in this application adopts the alliance chain-based aging-friendly design method in the above-mentioned embodiment, which can solve the technical problems of alliance chain-based aging-friendly design. Compared with the existing technology, the beneficial effects of the alliance chain-based aging-friendly design device provided in this application are the same as the beneficial effects of the alliance chain-based aging-friendly design method provided in the above-mentioned embodiment, and the other technical features of the alliance chain-based aging-friendly design device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.
[0135] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0136] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0137] An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned alliance chain-based aging-friendly design methods.
[0138] The specific implementation methods of the storage medium of this application are basically the same as the above-mentioned embodiments of the aging-friendly design method based on the alliance chain, and will not be repeated here.
[0139] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0140] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0141] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus hardware platform, or by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM) and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0142] The above are only some embodiments of the present application and do not limit the scope of implementation of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification, or directly or indirectly applied in other related technical fields, are also included in the scope of protection of the present application.
Claims
1. A method for aging-friendly design based on alliance chain, characterized by: The aging-friendly design method based on alliance chain includes: Obtain system software information and application software information; Based on the system software information, the application software information, and a preset blockchain, a consortium chain is constructed, wherein the consortium chain includes a main chain and a side chain, the main chain is used to mount a dual hash table storage structure with a MAP, and the side chain is used to store the font size system in the system software information and the application software information; Acquiring aging-friendly configuration information, wherein the aging-friendly configuration information includes a first target font size and software information of a set font size; Converting the first target font size to obtain a standard font size; Based on the standard font size and the set font size software information, a double hash table storage structure with a MAP is constructed; Receiving software information for which font size is to be set, and based on the software information for which font size is to be set, performing conversion using the dual hash table storage structure with MAP and the standard font size as a reference, obtaining a second target font size for each software for which font size is to be set; The second target font size is sent to the corresponding software for the font size to be set, so that the software for the font size to be set sets the current software font to the second target font size.
2. The aging-friendly design method based on alliance chain according to claim 1, characterized in that: The step of constructing a dual Hash table storage structure with a MAP based on the standard font size and the set font size software information includes: Determining the system software information and application software information in the software information with set font size; The system software information and the application software information are respectively set as the first-level Hash primary key and the second-level Hash primary key; based on the first-level Hash primary key and the second-level Hash primary key, a dual Hash table is determined; Establish a MAP structure and attach it to the second-level Hash primary key to obtain a second-level Hash primary key with a MAP structure; Establishing a query relationship based on the double hash table and the font size system of the software information with set font sizes; Based on the dual Hash table, the MAP structure and the query relationship, a dual Hash table storage structure with MAP is obtained.
3. The aging-friendly design method based on alliance chain according to claim 1, characterized in that: The step of converting the first target font size into a standard font size comprises: Determine the standard level based on the preset standard font size system; Based on the preset smart contract and the standard level, a standard calculation is performed on the first target font size to obtain a standard font size.
4. The aging-friendly design method based on alliance chain according to claim 1, characterized in that: The step of receiving the software information to be set in font size, and converting the software information in font size to be set in font size using the dual hash table storage structure with MAP and the standard font size as a reference to obtain the second target font size of each software to be set in font size includes: Based on the information of the software to be set, querying through the double hash table storage structure with MAP to obtain the font size system of the software to be set; According to the standard font size and the font size system of the software to be set, a reverse conversion calculation is performed based on the standard font size through a preset smart contract to obtain the second target font size of each software to be set.
5. The aging-friendly design method based on alliance chain according to claim 1, characterized in that: After the step of sending the second target font size to the corresponding software for the font size to be set, so that the software for the font size to be set sets the current software font to the second target font size, the method further comprises: Perform heartbeat detection on the software to be used to set the font size and obtain the heartbeat detection result; If the heartbeat detection result is that no heartbeat data is detected within the preset event, the dual Hash table storage structure with MAP is deleted.
6. An aging-friendly design device based on alliance chain, characterized in that: The device comprises: Acquisition module, used to obtain system software information and application software information; Based on the system software information, the application software information, and a preset blockchain, a consortium chain is constructed, wherein the consortium chain includes a main chain and a side chain, the main chain is used to mount a dual hash table storage structure with a MAP, and the side chain is used to store the font size system in the system software information and the application software information; Acquiring aging-friendly configuration information, wherein the aging-friendly configuration information includes a first target font size and software information of a set font size; a standard module, configured to convert the first target font size into a standard font size; A construction module, configured to construct a dual Hash table storage structure with a MAP based on the standard font size and the software information of the set font size; a conversion module, configured to receive information about software to be set to a font size, and based on the information about the software to be set to a font size, perform conversion using the dual hash table storage structure with MAP and the standard font size as a reference to obtain a second target font size for each software to be set to a font size; The sending module is used to send the second target font size to the corresponding software for font size to be set, so that the software for font size to be set sets the current software font to the second target font size.
7. An aging-friendly design device based on alliance chain, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the alliance chain-based aging-friendly design method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the aging-friendly design method based on the alliance chain as described in any one of claims 1 to 5 are implemented.
9. A computer program product, characterized in that The computer program product includes a computer program, which, when executed by a processor, implements the steps of the alliance chain-based aging-friendly design method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Decentralized application starting method and device, equipment and storage medium
CN111339528A
Block chain side chain-based data storage system, method and device, and medium
CN115859362A