CN114338770A - Cross-block-chain data processing method and device, storage medium and terminal equipment - Google Patents

Cross-block-chain data processing method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN114338770A
CN114338770A CN202111613218.0A CN202111613218A CN114338770A CN 114338770 A CN114338770 A CN 114338770A CN 202111613218 A CN202111613218 A CN 202111613218A CN 114338770 A CN114338770 A CN 114338770A
Authority
CN
China
Prior art keywords
data
data transmission
initiating
target
terminals
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111613218.0A
Other languages
Chinese (zh)
Inventor
汪小益
邱炜伟
夏立伟
徐才巢
李伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202111613218.0A priority Critical patent/CN114338770A/en
Publication of CN114338770A publication Critical patent/CN114338770A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a data processing method, a device, a storage medium and a terminal device for a cross-block chain, wherein the method comprises the following steps: receiving data transmission requests initiated by at least one initiator within preset time, and determining the number of initiators initiating the data transmission requests within the preset time; determining attribute information of data to be acquired according to the data transmission request; establishing data transmission channels corresponding to the number of the initiating terminals on the basis of the initiating terminals and the target calling terminals; and carrying out parallel processing on the target data stored in different target calling ends through data transmission channels corresponding to different initiating ends. According to the embodiment of the application, the number of the initiating terminals which initiate the data transmission request to the relay chain within the preset time is identified, the corresponding data transmission channels are established according to the identified number of the initiating terminals, data transmission is simultaneously carried out by utilizing a plurality of data transmission channels, a traditional serial transmission mode is converted into a parallel transmission mode, and the efficiency of calling service across the block chain can be improved to the maximum extent.

Description

Cross-block-chain data processing method and device, storage medium and terminal equipment
Technical Field
The present application relates to the field of electronic communications technologies, and in particular, to a method and an apparatus for processing data across a block chain, a storage medium, and a terminal device.
Background
The inter-block chain technology needs to ensure the security between different block chain systems and ensure the data consistency of the inter-block chain. For example, a map chain is provided with data services of road current information, data services of road historical information, data services of road real-time road conditions, landmark data services, merchant data services and the like, and a user can perform data checking or data modification and other operations aiming at any services.
In order to implement data interaction between different block chains, data interaction between different block chains is usually established based on a relay chain system, and in a service scenario of a relay mode block chain, different cross-chain services often need to be called.
Disclosure of Invention
The embodiment of the application provides a data processing method and device for a cross-block chain, a storage medium and a terminal device.
An embodiment of the present application provides a method for processing data across a block chain, including:
receiving data transmission requests initiated by at least one initiator within preset time, and determining the number of initiators initiating the data transmission requests within the preset time;
determining attribute information of the data to be acquired according to the data transmission request, wherein the attribute information comprises the data type of the data to be acquired and a target calling terminal;
establishing data transmission channels corresponding to the number of the initiating terminals on the basis of the initiating terminals and the target calling terminals;
and carrying out parallel processing on the target data stored in different target calling ends through data transmission channels corresponding to different initiating ends.
In the data processing method across the block chain in the embodiment of the application, the attribute information further includes at least one user identifier, and each user identifier corresponds to an execution operation type of the data to be acquired, and the execution operation type includes a viewing operation and a modifying operation.
In the data processing method across a block chain according to the embodiment of the present application, when there are a plurality of user identifiers and the types of execution operations are the same, after the data transmission channels corresponding to different initiators pass through, the method further includes:
creating a plurality of sub-transmission channels corresponding to the number of the user identifications on the basis of the data transmission channel;
and carrying out parallel processing on the target data stored in different target calling ends through the plurality of sub-transmission channels.
In the data processing method across a block chain according to the embodiment of the present application, when the execution operation types are all modification operations, the parallel processing of the target data stored in different target invoking ends through the plurality of sub-transmission channels includes:
sequencing the operation sequence of different modification operations according to the operation initiation time of the data to be acquired corresponding to the user identification;
and performing parallel processing on the target data stored in different target calling ends based on the sorting mode.
In the data processing method across a block chain according to the embodiment of the present application, when the execution operation category includes a viewing operation and a modifying operation at the same time, the parallel processing of the target data stored in different target invoking terminals through the plurality of sub-transmission channels includes:
defining a priority of the modify operation to be greater than a priority of the view operation;
temporarily closing the subdata channel corresponding to the viewing operation;
and restarting the subdata channel corresponding to the viewing operation after the modifying operation is completed.
In the data processing method across a block chain according to the embodiment of the present application, after the temporarily closing the sub data channel corresponding to the viewing operation, the method further includes:
starting to calculate the operation duration corresponding to the modification operation from the closing of the sub-data channel corresponding to the viewing operation;
if the operation duration corresponding to the modification operation is greater than or equal to a preset threshold, closing the sub-data channel corresponding to the modification operation, and restarting the sub-data channel corresponding to the viewing operation.
In the data processing method across a block chain according to the embodiment of the present application, after the sub-data channel corresponding to the modification operation is closed, the method further includes:
and giving a cooling time to the sub-data channel with the operation time length being more than or equal to the preset threshold value.
Correspondingly, another aspect of the embodiments of the present application further provides a data processing apparatus across a block chain, including:
the data receiving module is used for receiving data transmission requests initiated by at least one initiating terminal within preset time and determining the number of the initiating terminals initiating the data transmission requests within the preset time;
the attribute determining module is used for determining attribute information of the data to be acquired according to the data transmission request, wherein the attribute information comprises the data type of the data to be acquired and a target calling end;
the first establishing module is used for establishing data transmission channels corresponding to the number of the initiating terminals on the basis of the initiating terminals and the target calling terminals;
and the data processing module is used for carrying out parallel processing on the target data stored in different target calling ends through the data transmission channels corresponding to different initiating ends.
Accordingly, another aspect of the embodiments of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the method for processing data across a block chain as described above.
Correspondingly, another aspect of the embodiments of the present application further provides a terminal device, including a processor and a memory, where the memory stores multiple instructions, and the processor loads the instructions to execute the method for processing data across block chains as described above.
The embodiment of the application provides a data processing method, a device, a storage medium and a terminal device of a cross-block chain, wherein the method receives a data transmission request initiated by at least one initiator within a preset time, and determines the number of the initiators initiating the data transmission request within the preset time; determining attribute information of the data to be acquired according to the data transmission request, wherein the attribute information comprises the data type of the data to be acquired and a target calling terminal; establishing data transmission channels corresponding to the number of the initiating terminals on the basis of the initiating terminals and the target calling terminals; and carrying out parallel processing on the target data stored in different target calling ends through data transmission channels corresponding to different initiating ends. According to the embodiment of the application, the number of the initiating terminals which initiate the data transmission request to the relay chain within the preset time is identified, the corresponding data transmission channels are established according to the identified number of the initiating terminals, data transmission is simultaneously carried out by utilizing a plurality of data transmission channels, a traditional serial transmission mode is converted into a parallel transmission mode, and the efficiency of calling service across the block chain can be improved to the maximum extent.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of a data processing method across a block chain according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a data processing apparatus across a block chain according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data processing apparatus across a block chain according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a data processing method of a cross-block chain, which can be applied to terminal equipment. The terminal equipment can be equipment such as a smart phone and a computer.
The inter-block chain technology needs to ensure the security between different block chain systems and ensure the data consistency of the inter-block chain. For example, a map chain is provided with data services of road current information, data services of road historical information, data services of road real-time road conditions, landmark data services, merchant data services and the like, and a user can perform data checking or data modification and other operations aiming at any services.
In order to implement data interaction between different block chains, data interaction between different block chains is usually established based on a relay chain system, and in a service scenario of a relay mode block chain, different cross-chain services often need to be called.
In order to solve the foregoing technical problem, an embodiment of the present application provides a data processing method across a block chain. By using the data processing method of the trans-block chain provided by the embodiment of the application, the number of the initiating terminals initiating the data transmission request to the relay chain within the preset time is identified, the corresponding data transmission channels are established according to the identified number of the initiating terminals, and the data transmission is simultaneously performed by using a plurality of data transmission channels, so that the traditional serial transmission mode is converted into the parallel transmission mode, and the efficiency of calling the service by the trans-block chain can be maximally improved.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a data processing method across a block chain according to an embodiment of the present disclosure. The data processing method of the trans-block chain is applied to terminal equipment, and the method can comprise the following steps:
step 101, receiving a data transmission request initiated by at least one initiator within a preset time, and determining the number of initiators initiating the data transmission request within the preset time.
It should be noted that the technology of crossing blockchains needs to ensure the security between different blockchain systems and to ensure the data consistency across blockchains. The blockchain system may be a road system, a ticketing system, a banking system, a stock system, an insurance system, a school system, an enterprise system, a government system, etc., and is not limited herein.
The scheme is mainly applied to a data interaction scene among block chains, one or more services such as a map chain are integrated on each block chain, a data service of road current information, a data service of road historical information, a data service of road real-time road conditions, a landmark data service, a merchant data service and the like are arranged on the map chain, and a user can perform data viewing or data modification and other operations aiming at any service.
It should be noted that each blockchain is shared by multiple users, but may be used by a single user.
In order to implement data interaction between different block chains, data interaction between different block chains is usually established based on a relay chain system, and in a service scenario in which a relay mode is adopted to cross a block chain, different cross-chain services often need to be called.
Therefore, in order to solve the above technical problem, the present solution identifies the number of the initiators that initiate the data transmission request to the relay link within a preset time (e.g. 1s), that is, the blockchain that issues the data transmission request. And corresponding data transmission channels are established according to the number of the identified initiating terminals, a plurality of data transmission channels are utilized to transmit data simultaneously, the traditional serial transmission mode is converted into a parallel transmission mode, and the efficiency of calling service by crossing block chains can be improved to the maximum extent.
And step 102, determining attribute information of the data to be acquired according to the data transmission request, wherein the attribute information comprises the data type of the data to be acquired and a target calling terminal.
In this embodiment, after receiving a data transmission request initiated by an initiator, a relay chain obtains attribute information of data to be acquired included in the data transmission request by analyzing the data transmission request, where the attribute information specifically includes a data type of the data to be acquired and a target invoking end.
It should be explained that, because different types of data may be stored in the same block chain, and the relay chain needs to clarify the type of the data required by the initiator when acquiring the data from the target invoking terminal, the data transmission request initiated by the initiator needs to include the data type of the data to be acquired and the target invoking terminal, so that the data transmission operation between the initiator and the target invoking terminal can be smoothly performed.
In some embodiments, the attribute information further includes at least one user identifier, and each user identifier corresponds to an execution operation category of the data to be acquired, where the execution operation category includes a viewing operation and a modifying operation, and the user identifier is used to distinguish an initiator of the execution operation.
And 103, creating data transmission channels corresponding to the number of the initiating terminals based on the initiating terminals and the target calling terminals.
In this embodiment, after the initiator and the target initiator corresponding to the initiator are determined, the creation operation of the data transmission channels may be performed, and the number of the data transmission channels is determined according to the number of the initiators. The data transmission is carried out by utilizing a plurality of data transmission channels simultaneously, the traditional serial transmission mode is converted into the parallel transmission mode, and the efficiency of calling the service by crossing the block chain can be improved to the maximum extent.
And 104, performing parallel processing on the target data stored in different target calling ends through the data transmission channels corresponding to different initiating ends.
In this embodiment, each initiating end corresponds to one data transmission channel, and the multiple data transmission channels can satisfy the requirement that multiple initiating ends perform parallel processing on target data at the same time. The method and the device enable the multiple transactions which need to be processed in multiple unit time to be processed in 1 unit time, and improve the efficiency of calling the service across the block chain to the maximum extent.
In some embodiments, when there are a plurality of the user identifiers and the types of the executed operations are the same, after the data transmission channels corresponding to different initiating terminals are passed, the method further includes:
creating a plurality of sub-transmission channels corresponding to the number of the user identifications on the basis of the data transmission channel;
and carrying out parallel processing on the target data stored in different target calling ends through the plurality of sub-transmission channels.
In this embodiment, a plurality of sub-transmission channels corresponding to the number of user identifiers (i.e., the number of users intending to perform viewing operation or modification operation on the target data) may be created based on the data transmission channels, and the target data stored in different target retrieval terminals may be processed in parallel through the plurality of sub-transmission channels.
In some embodiments, when the multiple execution operation types included in the data transmission request initiated by the same initiator within the preset time are modification operations, in order to avoid a system error when the multiple modification operations are processed in parallel, the execution sequence of different modification operations needs to be specified. Specifically, the operation sequences of different modification operations are sorted according to the operation initiation time of the data to be acquired corresponding to the user identifier, and the target data stored in different target calling ends are processed in parallel based on the sorting mode.
In some embodiments, when multiple execution operation categories included in a data transmission request initiated by the same initiator within a preset time include a viewing operation and a modifying operation, if the viewing operation and the modifying operation are allowed to be performed simultaneously, it may occur that target data seen by one user is before modification and target data seen by another user is after modification, which results in data inconsistency. Therefore, in order to avoid this, the execution order of the viewing operation and the modifying operation needs to be specified. Specifically, the priority of the modification operation is limited to be greater than the priority of the viewing operation, when the viewing operation and the modification operation are identified to exist at the same time, the sub-data channel corresponding to the viewing operation is temporarily closed, and after the modification operation is completed, the sub-data channel corresponding to the viewing operation is restarted.
In some embodiments, after the temporarily closing the sub data channel corresponding to the viewing operation, the method further includes: starting to calculate the operation duration corresponding to the modification operation from the closing of the sub-data channel corresponding to the viewing operation; if the operation duration corresponding to the modification operation is greater than or equal to a preset threshold, closing the sub-data channel corresponding to the modification operation, and restarting the sub-data channel corresponding to the viewing operation.
In this embodiment, if the modification operation is performed for too long, the waiting time for the viewing operation may be too long, which may affect the user experience of the viewing operation on the target data. Therefore, in this embodiment, the operation duration of the modification operation is calculated from the time when the sub-data channel corresponding to the viewing operation is closed, and if the operation duration corresponding to the modification operation is greater than or equal to the preset threshold (for example, 10s), the sub-data channel corresponding to the modification operation is closed, and the sub-data channel corresponding to the viewing operation is restarted. In some embodiments, a cooling time may also be given to the sub-data channel having an operating time greater than or equal to a preset threshold as a warning.
In some embodiments, in order to avoid that part of users modify the target data maliciously and it is difficult to ensure the stability of the data, in some embodiments, it may be further specified that the modification operation needs to be continued after waiting for a preset time period after the modification operation is performed on the target data.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the data processing method across a block chain provided in the embodiment of the present application, a data transmission request initiated by at least one initiator within a preset time is received, and the number of initiators initiating the data transmission request within the preset time is determined; determining attribute information of the data to be acquired according to the data transmission request, wherein the attribute information comprises the data type of the data to be acquired and a target calling terminal; establishing data transmission channels corresponding to the number of the initiating terminals on the basis of the initiating terminals and the target calling terminals; and carrying out parallel processing on the target data stored in different target calling ends through data transmission channels corresponding to different initiating ends. According to the embodiment of the application, the number of the initiating terminals which initiate the data transmission request to the relay chain within the preset time is identified, the corresponding data transmission channels are established according to the identified number of the initiating terminals, data transmission is simultaneously carried out by utilizing a plurality of data transmission channels, a traditional serial transmission mode is converted into a parallel transmission mode, and the efficiency of calling service across the block chain can be improved to the maximum extent.
The embodiment of the application also provides a data processing device of the cross-block chain, and the data processing device of the cross-block chain can be integrated in the terminal equipment. The terminal equipment can be a television, a smart phone, a tablet computer and the like.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data processing apparatus across a block chain according to an embodiment of the present disclosure. The data processing apparatus 30 across block chains may comprise:
the data receiving module 31 is configured to receive a data transmission request initiated by at least one initiator within a preset time, and determine the number of initiators that initiate data transmission requests within the preset time;
an attribute determining module 32, configured to determine attribute information of the data to be acquired according to the data transmission request, where the attribute information includes a data type of the data to be acquired and a target invoking end;
a first creating module 33, configured to create data transmission channels corresponding to the number of the initiating terminals based on the initiating terminals and the target invoking terminals;
and the data processing module 34 is configured to perform parallel processing on the target data stored in different target invoking terminals through data transmission channels corresponding to different initiating terminals.
In some embodiments, the attribute information further includes at least one user identifier, and each user identifier corresponds to an execution operation category of the data to be acquired, where the execution operation category includes a viewing operation and a modifying operation.
In some embodiments, the apparatus further comprises a second creating module, configured to create, based on the data transmission channel, a plurality of sub-transmission channels corresponding to the number of the user identifiers; and carrying out parallel processing on the target data stored in different target calling ends through the plurality of sub-transmission channels.
In some embodiments, the data processing module 34 is configured to sort the operation sequences of different modification operations according to the operation initiation time of the data to be acquired corresponding to the user identifier; and performing parallel processing on the target data stored in different target calling ends based on the sorting mode.
In some embodiments, the data processing module 34 is configured to define that the priority of the modify operation is greater than the priority of the view operation; temporarily closing the subdata channel corresponding to the viewing operation; and restarting the subdata channel corresponding to the viewing operation after the modifying operation is completed.
In some embodiments, the apparatus further includes a closing module, configured to calculate an operation duration corresponding to the modification operation from when the sub data channel corresponding to the viewing operation is closed; if the operation duration corresponding to the modification operation is greater than or equal to a preset threshold, closing the sub-data channel corresponding to the modification operation, and restarting the sub-data channel corresponding to the viewing operation.
In some embodiments, the apparatus further includes a cooling module for providing a cooling time to the sub-data channel having an operating time greater than or equal to a predetermined threshold.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, the data processing apparatus 30 across a block chain provided in the embodiment of the present application receives, through the data receiving module 31, a data transmission request initiated by at least one initiator within a preset time, and determines the number of initiators that initiate data transmission requests within the preset time; the attribute determining module 32 determines attribute information of the data to be acquired according to the data transmission request, wherein the attribute information includes a data type of the data to be acquired and a target calling terminal; the first creating module 33 creates data transmission channels corresponding to the number of the initiating terminals based on the initiating terminals and the target calling terminals; the data processing module 34 performs parallel processing on the target data stored in different target invoking terminals through data transmission channels corresponding to different initiating terminals.
Referring to fig. 3, fig. 3 is another structural diagram of a data processing apparatus across a block chain according to an embodiment of the present application, where the data processing apparatus 30 across a block chain includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a data receiving module 31, an attribute determining module 32, a first creating module 33, and a data processing module 34. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
the data receiving module 31 is configured to receive a data transmission request initiated by at least one initiator within a preset time, and determine the number of initiators that initiate data transmission requests within the preset time;
an attribute determining module 32, configured to determine attribute information of the data to be acquired according to the data transmission request, where the attribute information includes a data type of the data to be acquired and a target invoking end;
a first creating module 33, configured to create data transmission channels corresponding to the number of the initiating terminals based on the initiating terminals and the target invoking terminals;
and the data processing module 34 is configured to perform parallel processing on the target data stored in different target invoking terminals through data transmission channels corresponding to different initiating terminals.
In some embodiments, the attribute information further includes at least one user identifier, and each user identifier corresponds to an execution operation category of the data to be acquired, where the execution operation category includes a viewing operation and a modifying operation.
In some embodiments, the apparatus further comprises a second creating module, configured to create, based on the data transmission channel, a plurality of sub-transmission channels corresponding to the number of the user identifiers; and carrying out parallel processing on the target data stored in different target calling ends through the plurality of sub-transmission channels.
In some embodiments, the data processing module 34 is configured to sort the operation sequences of different modification operations according to the operation initiation time of the data to be acquired corresponding to the user identifier; and performing parallel processing on the target data stored in different target calling ends based on the sorting mode.
In some embodiments, the data processing module 34 is configured to define that the priority of the modify operation is greater than the priority of the view operation; temporarily closing the subdata channel corresponding to the viewing operation; and restarting the subdata channel corresponding to the viewing operation after the modifying operation is completed.
In some embodiments, the apparatus further includes a closing module, configured to calculate an operation duration corresponding to the modification operation from when the sub data channel corresponding to the viewing operation is closed; if the operation duration corresponding to the modification operation is greater than or equal to a preset threshold, closing the sub-data channel corresponding to the modification operation, and restarting the sub-data channel corresponding to the viewing operation.
In some embodiments, the apparatus further includes a cooling module for providing a cooling time to the sub-data channel having an operating time greater than or equal to a predetermined threshold.
The embodiment of the application also provides the terminal equipment. The terminal equipment can be equipment such as a smart phone, a computer and a tablet computer.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application, where the terminal device may be used to implement the data processing method across a block chain provided in the foregoing embodiment. The terminal device 1200 may be a television, a smart phone, or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown in the figure), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown in the figure), and a power supply 190. Those skilled in the art will appreciate that the terminal device 1200 configuration shown in fig. 4 does not constitute a limitation of terminal device 1200, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be configured to store a software program and a module, such as a program instruction/module corresponding to the data processing method of the cross-block chain in the foregoing embodiment, and the processor 180 executes various functional applications and data processing by operating the software program and the module stored in the memory 120, and may automatically select a vibration alert mode according to a current scene where the terminal device is located to perform the data processing of the cross-block chain, so as to ensure that scenes such as a conference and the like are not disturbed, ensure that a user can perceive an incoming call, and improve intelligence of the terminal device. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal apparatus 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the terminal device 1200, detailed descriptions thereof are omitted.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 1200.
The terminal device 1200, which may assist the user in sending and receiving e-mails, browsing web pages, accessing streaming media, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal device 1200 also includes a power supply 190 for powering the various components, which in some embodiments may be logically coupled to processor 180 via a power management system to manage power discharge and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
the data receiving instruction is used for receiving data transmission requests initiated by at least one initiating terminal within preset time and determining the number of the initiating terminals initiating the data transmission requests within the preset time;
an attribute determining instruction, configured to determine attribute information of the data to be acquired according to the data transmission request, where the attribute information includes a data type of the data to be acquired and a target invoking end;
a first creating instruction, configured to create, based on the initiator and the target invoking terminal, data transmission channels corresponding to the number of the initiators;
and the data processing instruction is used for carrying out parallel processing on the target data stored in different target calling ends through the data transmission channels corresponding to different initiating ends.
In some embodiments, the attribute information further includes at least one user identifier, and each user identifier corresponds to an execution operation category of the data to be acquired, where the execution operation category includes a viewing operation and a modifying operation.
In some embodiments, the program further includes second creation instructions for creating a plurality of sub-transmission channels corresponding to the number of the user identifications based on the data transmission channel; and carrying out parallel processing on the target data stored in different target calling ends through the plurality of sub-transmission channels.
In some embodiments, the data processing instruction is configured to sequence operation sequences of different modification operations according to operation initiation time of the data to be acquired corresponding to the user identifier; and performing parallel processing on the target data stored in different target calling ends based on the sorting mode.
In some embodiments, the data processing instructions are for defining the priority of the modify operation to be greater than the priority of the view operation; temporarily closing the subdata channel corresponding to the viewing operation; and restarting the subdata channel corresponding to the viewing operation after the modifying operation is completed.
In some embodiments, the program further includes a closing instruction, configured to start to calculate an operation duration corresponding to the modification operation from when the sub data channel corresponding to the viewing operation is closed; if the operation duration corresponding to the modification operation is greater than or equal to a preset threshold, closing the sub-data channel corresponding to the modification operation, and restarting the sub-data channel corresponding to the viewing operation.
In some embodiments, the program further includes cooling instructions for providing a cooling time for the sub-data channel having an operating time greater than or equal to a predetermined threshold.
The embodiment of the application also provides the terminal equipment. The terminal equipment can be equipment such as a smart phone and a computer.
As can be seen from the above, an embodiment of the present application provides a terminal device 1200, where the terminal device 1200 executes the following steps:
an embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the data processing method across a block chain according to any of the above embodiments.
It should be noted that, for the data processing method across a block chain described in this application, a person having ordinary skill in the art may understand that all or part of the process of implementing the data processing method across a block chain described in the embodiment of this application may be completed by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and the process of executing the process may include the process of the embodiment of the data processing method across a block chain, such as the process of the embodiment of the data processing method across a block chain. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the data processing apparatus across a block chain in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The method, the apparatus, the storage medium, and the terminal device for processing data across block chains provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for processing data across block chains, comprising:
receiving data transmission requests initiated by at least one initiator within preset time, and determining the number of initiators initiating the data transmission requests within the preset time;
determining attribute information of the data to be acquired according to the data transmission request, wherein the attribute information comprises the data type of the data to be acquired and a target calling terminal;
establishing data transmission channels corresponding to the number of the initiating terminals on the basis of the initiating terminals and the target calling terminals;
and carrying out parallel processing on the target data stored in different target calling ends through data transmission channels corresponding to different initiating ends.
2. The data processing method of claim 1, wherein the attribute information further comprises at least one user identifier, and each user identifier corresponds to an execution operation category of the data to be acquired, and the execution operation category comprises a viewing operation and a modifying operation.
3. The data processing method according to claim 2, wherein when there are a plurality of said subscriber identities and said classes of execution operations are the same, after said passing through data transmission channels corresponding to different said initiators, said method further comprises:
creating a plurality of sub-transmission channels corresponding to the number of the user identifications on the basis of the data transmission channel;
and carrying out parallel processing on the target data stored in different target calling ends through the plurality of sub-transmission channels.
4. The data processing method according to claim 3, wherein when the execution operation categories are all modification operations, the parallel processing of the target data stored in different target invoking terminals through the plurality of sub transmission channels comprises:
sequencing the operation sequence of different modification operations according to the operation initiation time of the data to be acquired corresponding to the user identification;
and performing parallel processing on the target data stored in different target calling ends based on the sorting mode.
5. The data processing method of claim 3, wherein when the execution operation category includes both a view operation and a modify operation, the parallel processing of the target data stored in different target invoking terminals through the plurality of sub-transmission channels comprises:
defining a priority of the modify operation to be greater than a priority of the view operation;
temporarily closing the subdata channel corresponding to the viewing operation;
and restarting the subdata channel corresponding to the viewing operation after the modifying operation is completed.
6. The data processing method of claim 5, wherein after the temporarily closing the sub-data channel corresponding to the view operation, the method further comprises:
starting to calculate the operation duration corresponding to the modification operation from the closing of the sub-data channel corresponding to the viewing operation;
if the operation duration corresponding to the modification operation is greater than or equal to a preset threshold, closing the sub-data channel corresponding to the modification operation, and restarting the sub-data channel corresponding to the viewing operation.
7. The data processing method of claim 6, wherein after said closing the sub-data channel corresponding to the modify operation, the method further comprises:
and giving a cooling time to the sub-data channel with the operation time length being more than or equal to the preset threshold value.
8. A data processing apparatus across a blockchain, comprising:
the data receiving module is used for receiving data transmission requests initiated by at least one initiating terminal within preset time and determining the number of the initiating terminals initiating the data transmission requests within the preset time;
the attribute determining module is used for determining attribute information of the data to be acquired according to the data transmission request, wherein the attribute information comprises the data type of the data to be acquired and a target calling end;
the first establishing module is used for establishing data transmission channels corresponding to the number of the initiating terminals on the basis of the initiating terminals and the target calling terminals;
and the data processing module is used for carrying out parallel processing on the target data stored in different target calling ends through the data transmission channels corresponding to different initiating ends.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method of data processing across a blockchain of any one of claims 1 to 7.
10. A terminal device comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the method of data processing across a chain of blocks of any one of claims 1 to 7.
CN202111613218.0A 2021-12-27 2021-12-27 Cross-block-chain data processing method and device, storage medium and terminal equipment Pending CN114338770A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111613218.0A CN114338770A (en) 2021-12-27 2021-12-27 Cross-block-chain data processing method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111613218.0A CN114338770A (en) 2021-12-27 2021-12-27 Cross-block-chain data processing method and device, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN114338770A true CN114338770A (en) 2022-04-12

Family

ID=81013000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111613218.0A Pending CN114338770A (en) 2021-12-27 2021-12-27 Cross-block-chain data processing method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN114338770A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116127148A (en) * 2023-04-04 2023-05-16 之江实验室 Data trusted storage method and device, storage medium and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088881A (en) * 2018-09-12 2018-12-25 杭州趣链科技有限公司 A kind of shared platform chain and method for interchanging data for realizing cross-platform data exchange
CN109167811A (en) * 2018-07-27 2019-01-08 阿里巴巴集团控股有限公司 A kind of across chain data access method and device based on block chain
CN109934592A (en) * 2019-03-22 2019-06-25 深圳市网心科技有限公司 A kind of across the chain communication means of block chain, system, electronic equipment and storage medium
CN110245951A (en) * 2019-06-19 2019-09-17 西南交通大学 A kind of alliance's chain principal and subordinate's multichain common recognition method based on tree structure
WO2019217598A1 (en) * 2018-05-10 2019-11-14 Alibaba Group Holding Limited Blockchain data processing methods, apparatuses, devices, and systems
US20200044823A1 (en) * 2018-07-31 2020-02-06 EMC IP Holding Company LLC Enterprise storage of customer transaction data using a blockchain
US20200228345A1 (en) * 2019-01-15 2020-07-16 Dell Products L.P. Self-governed secure attestation policy for server data privacy logs
CN111767568A (en) * 2020-06-23 2020-10-13 中国工商银行股份有限公司 Charitable project management method, node and system based on alliance chain
CN112667647A (en) * 2020-12-11 2021-04-16 深圳前海微众银行股份有限公司 Block chain transaction data transmission method and device
CN113194141A (en) * 2021-04-29 2021-07-30 杭州链网科技有限公司 Chain-crossing network bridge construction method based on heterogeneous block chain

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019217598A1 (en) * 2018-05-10 2019-11-14 Alibaba Group Holding Limited Blockchain data processing methods, apparatuses, devices, and systems
CN109167811A (en) * 2018-07-27 2019-01-08 阿里巴巴集团控股有限公司 A kind of across chain data access method and device based on block chain
US20200044823A1 (en) * 2018-07-31 2020-02-06 EMC IP Holding Company LLC Enterprise storage of customer transaction data using a blockchain
CN109088881A (en) * 2018-09-12 2018-12-25 杭州趣链科技有限公司 A kind of shared platform chain and method for interchanging data for realizing cross-platform data exchange
US20200228345A1 (en) * 2019-01-15 2020-07-16 Dell Products L.P. Self-governed secure attestation policy for server data privacy logs
CN109934592A (en) * 2019-03-22 2019-06-25 深圳市网心科技有限公司 A kind of across the chain communication means of block chain, system, electronic equipment and storage medium
CN110245951A (en) * 2019-06-19 2019-09-17 西南交通大学 A kind of alliance's chain principal and subordinate's multichain common recognition method based on tree structure
CN111767568A (en) * 2020-06-23 2020-10-13 中国工商银行股份有限公司 Charitable project management method, node and system based on alliance chain
CN112667647A (en) * 2020-12-11 2021-04-16 深圳前海微众银行股份有限公司 Block chain transaction data transmission method and device
CN113194141A (en) * 2021-04-29 2021-07-30 杭州链网科技有限公司 Chain-crossing network bridge construction method based on heterogeneous block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116127148A (en) * 2023-04-04 2023-05-16 之江实验室 Data trusted storage method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN107743108B (en) Method and device for identifying medium access control address
CN108270757B (en) User account switching method, device, client and system
CN114338770A (en) Cross-block-chain data processing method and device, storage medium and terminal equipment
CN106709330B (en) Method and device for recording file execution behaviors
CN110225106B (en) Data transmission method, device and storage medium
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN112415367A (en) Drive chip abnormality detection method and device, electronic equipment and readable storage medium
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN108319409B (en) Application program control method and mobile terminal
CN111026457A (en) Hardware configuration method and device, storage medium and terminal equipment
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN112867171B (en) WIFI connection method and device, storage medium and mobile terminal
CN110955365B (en) Application identifier display method and electronic equipment
CN110061813B (en) Data encoding method, data decoding method and related devices
CN109976610B (en) Application program identifier classification method and terminal equipment
CN109558731B (en) Feature code processing method, device and storage medium
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN111027406A (en) Picture identification method and device, storage medium and electronic equipment
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN111488123B (en) Storage space management method and device, storage medium and mobile terminal
CN111638897B (en) System updating method, device, terminal equipment and storage medium
CN114095585B (en) Data transmission method, device, storage medium and electronic equipment
CN110972221B (en) Communication signal processing method and device and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination