CN114741446A - Data uplink method, device, terminal and storage medium - Google Patents

Data uplink method, device, terminal and storage medium Download PDF

Info

Publication number
CN114741446A
CN114741446A CN202210224265.4A CN202210224265A CN114741446A CN 114741446 A CN114741446 A CN 114741446A CN 202210224265 A CN202210224265 A CN 202210224265A CN 114741446 A CN114741446 A CN 114741446A
Authority
CN
China
Prior art keywords
transaction
uplink
information
transaction information
chain
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
CN202210224265.4A
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 CN202210224265.4A priority Critical patent/CN114741446A/en
Publication of CN114741446A publication Critical patent/CN114741446A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of block chains, and provides a data chaining method, a device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring multi-signature information of N participants, wherein N is an integer greater than or equal to 2; sending a first calling request of an intelligent contract on a chain to a block chain node based on multi-signature information; after signature uplink feedback information fed back by a block chain node based on a first call request is obtained, obtaining a plurality of pieces of to-be-uplink transaction information generated by different participant combinations in N participants and execution dependency relationships among the pieces of to-be-uplink transaction information; and sending a second call request of the intelligent contract on the chain to the block chain link point based on the transaction information to be linked and the execution dependency relationship. The scheme can improve the processing efficiency, meet the uplink requirement of batch data and realize the expansion of the block chain application scene.

Description

Data uplink method, device, terminal and storage medium
Technical Field
The present application relates to the field of block chaining technologies, and in particular, to a data chaining method, apparatus, terminal and storage medium.
Background
The rapid development of the block chain technology makes it possible to apply the block chain to various industries, and when the block chain is actually applied, data is generally uploaded to the block chain, and the data cannot be tampered by the characteristics of the block chain, which is called data uplink.
In the prior art, some basic data are linked up along with each transaction through the transaction process of the blockchain, and in this way, one transaction is required to be carried out for each linked data, so that the process is very slow, and the quantity of linked data is very limited.
The uplink mode causes low efficiency of the data uplink process and limited uplink data quantity, a large amount of voting transaction data can be frequently generated under a plurality of practical application scenes, such as a multi-party voting bankruptcy clearing conference voting, and the like, the existing data uplink mode is difficult to be applied to the scenes, and the block chain application scene expansion is limited.
Disclosure of Invention
The embodiment of the application provides a data chaining method, a device, a terminal and a storage medium, which are used for solving the problems that the efficiency of a data chaining process is low, the quantity of data to be chained is limited, the data chaining method is difficult to apply under a plurality of practical application scenes such as a multiparty conference voting scene, and the expansion of a block chain application scene is limited in the prior art.
A first aspect of an embodiment of the present application provides a data uplink method, including:
acquiring multi-signature information of N participants, wherein N is an integer greater than or equal to 2;
sending a first call request of an intelligent contract on a chain to a block link point based on the multi-signature information;
after signature uplink feedback information fed back by the block link point based on the first call request is obtained, obtaining a plurality of to-be-uplink transaction information generated by different participant combinations in the N participants and execution dependency relationships among the to-be-uplink transaction information;
and sending a second calling request of the intelligent contract on the chain to the block chain node based on the transaction information to be linked and the execution dependency relationship, wherein the second calling request is used for verifying the transaction information to be linked according to the multi-signature information and the execution dependency relationship after the intelligent contract on the chain is executed, and carrying out transaction linking after the verification is correct.
A second aspect of the embodiments of the present application provides a data uplink apparatus, including:
the first acquisition module is used for acquiring multi-signature information of N participants, wherein N is an integer greater than or equal to 2;
the first sending module is used for sending a first calling request of an intelligent contract on a chain to a block link point based on the multi-signature information;
a second obtaining module, configured to obtain, after obtaining the signature uplink feedback information fed back by the block link point based on the first call request, multiple pieces of to-be-uplink transaction information that are generated by different participant combinations among the N participants, and an execution dependency relationship between the to-be-uplink transaction information;
and the second sending module is used for sending a second calling request of the intelligent contract on the chain to the block chain node based on the transaction information to be linked and the execution dependency relationship, wherein the second calling request is used for verifying the transaction information to be linked according to the multi-signature information and the execution dependency relationship after the intelligent contract on the chain is executed, and carrying out transaction linking after the transaction information to be linked is verified to be correct.
A third aspect of embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, which computer program, when executed by a processor, performs the steps of the method according to the first aspect.
A fifth aspect of the present application provides a computer program product, which, when run on a terminal, causes the terminal to perform the steps of the method of the first aspect described above.
From the above, in the embodiment of the application, by acquiring the multi-signature information of the N participants, the linked intelligent contract is called, after the uplink of the multi-signature information is ensured, acquiring a plurality of to-be-uplink transaction information and execution dependency relationships among the to-be-uplink transaction information respectively generated by different participant combinations in the N participants, the chain intelligent contract is called again, the chain intelligent contract is verified according to the multi-signature information and the execution dependency relationship after being executed, the transaction chain is carried out after the verification is correct, the process reduces frequent calling of the intelligent contracts on the chain, frequent verification of transaction data and blocking operation times by using the intelligent contracts on the chain, improves the processing efficiency of a data chain winding process under the scene of frequently generating a large amount of transaction data, meets the chain winding requirement of batch data, and realizes the expansion of a block chain application scene.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a first flowchart of a data uplink method according to an embodiment of the present application;
fig. 2 is a flowchart of a data uplink method according to an embodiment of the present application;
fig. 3 is a block diagram of a data uplink apparatus according to an embodiment of the present application;
fig. 4 is a structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a first flowchart of a data uplink method according to an embodiment of the present application. As shown in fig. 1, a data uplink method includes the following steps:
step 101, acquiring multi-signature information of N participants.
N is an integer greater than or equal to 2.
In the embodiment of the application, transactions participated in by a plurality of participants randomly occur among N participants. When a transaction is conducted between the N participants, the transaction can be conducted between part of the N participants, or all the N participants can participate in the incoming transaction.
Therefore, it is necessary to acquire multi-signature information of N participants. And verifying the multiple batches of transactions participated in by a random participant in the N participants in the subsequent process by borrowing a multiple signature technology based on the multiple signature information, thereby realizing the verification of the transaction data during the data uplink.
The multi-signature information specifically includes multiple signatures formed on the basis of private keys of different parties.
The private keys of the N participants can be acquired when transaction requests of the N participants for conference resolution voting are received, and generation of multi-signature information is achieved.
And 102, sending a first calling request of the intelligent contract on the chain to a block link point based on the multi-signature information.
The first call request carries the multi-signature information.
And calling the intelligent contract on the chain through the first calling request so as to upload the multi-signature information to the block chain and realize signature checking processing during uplink of batch transaction data between the subsequent N participants.
Where an intelligent contract often refers to a piece of code running on a blockchain network.
When a first call request of an intelligent contract on a chain is sent to a block link point based on multi-signature information, the multi-signature information can be packaged into a corresponding first call request after one transaction, the multi-signature information is entered into the intelligent contract on the chain, the intelligent contract on the chain is called and executed to realize the verification processing of the uplink transaction of the multi-signature information, after the processing is finished, each node on the block chain is triggered to carry out common identification, the multi-signature information is blocked after the common identification, and the conclusion is obtained, so that the subsequent centralized uplink processing process of the batch transaction under the chain and the batch transaction can be started.
103, after obtaining the signature uplink feedback information fed back by the block link point based on the first call request, obtaining a plurality of to-be-uplink transaction information generated by different participant combinations among the N participants and an execution dependency relationship among the to-be-uplink transaction information;
after the first call request is responded to the multi-signature information to complete the uplink, the signature uplink feedback information of the block chain node is obtained, and at the moment, the downlink program can perform downlink logic processing to obtain a plurality of pieces of to-be-uplink transaction information generated by different participant combinations in the N participants and execution dependency relationships among the to-be-uplink transaction information.
Wherein, different transaction information to be linked up is generated in a participant combination formed by a plurality of participants in the N participants.
Different groups of participants may contain the same member of the participant, and different groups of participants may contain members of different participants, but the transactions performed by different groups of participants are different transactions. And there may be some dependency between the batch transactions that selected ones of the N participants participate in, or all of the participants participate in.
The information of the transaction to be linked includes transaction result, transaction processing procedure, signature of each participant in the transaction, etc.
Specific transactions are for example transfers, votes, etc.
In the process, calculation and account transfer can be carried out for any time by aiming at a calculation part under a transaction chain in a multi-signature mode, multiple signatures are used as signature verification marks after the calculation process is finally finished, batch transaction data under the line are verified on the chain through intelligent combination on the chain, transaction changes under the chain are finally executed on the chain, and final chain-winding processing of transaction information to be subjected to chain winding is realized.
And 104, sending a second call request of the intelligent contract on the chain to the blockchain node based on the transaction information to be linked and the execution dependency relationship.
And the second calling request is used for verifying the transaction information to be linked according to the multi-signature information and the execution dependency relationship after the intelligent contract on the link is executed, and linking the transaction after the verification is correct.
When a second calling request is sent to the block chain node, a plurality of to-be-uplink transaction information and execution dependency relationships generated by different participant combinations in the N participants are packaged and embedded into the calling request, one-time uplink verification processing of batch transaction information is provided, and the frequency of calling intelligent contracts on chains and the frequency of transaction data verification and block entering operation performed by using the intelligent contracts on chains are reduced.
The method comprises the steps of reporting multi-signature information of N participants to a block chain through primary on-chain intelligent contract calling before batch transaction, calling the on-chain intelligent contract again after the batch transaction chain is processed, enabling the on-chain intelligent contract to use the multi-signature information of the N participants who have been linked to carry out signature verification processing on transaction information to be linked up corresponding to the batch transaction, achieving verification of the transaction information to be linked up, carrying out uplink processing on the transaction information after the transaction information is verified to be correct, improving processing efficiency of uplink data process under the scene that a large amount of transaction data are frequently generated, meeting requirements of batch data and achieving expansion of application scenes of the block chain.
In the embodiment of the application, the intelligent contract on the chain is called by acquiring the multi-signature information of N participants, after the uplink of the multi-signature information is ensured, acquiring a plurality of to-be-uplink transaction information and execution dependency relationships among the to-be-uplink transaction information respectively generated by different participant combinations in the N participants, the chain intelligent contract is called again, the chain intelligent contract is verified according to the multi-signature information and the execution dependency relationship after being executed, the transaction chain is carried out after the verification is correct, the process reduces frequent calling of the intelligent contracts on the chain, frequent verification of transaction data and blocking operation times by using the intelligent contracts on the chain, improves the processing efficiency of a data chain winding process under the scene of frequently generating a large amount of transaction data, meets the chain winding requirement of batch data, and realizes the expansion of a block chain application scene.
In the embodiments of the present application, different embodiments of a data uplink method are also provided.
Referring to fig. 2, fig. 2 is a second flowchart of a data uplink method according to an embodiment of the present application. As shown in fig. 2, a data uplink method includes the following steps:
step 201, acquiring multiple signature information of N participants.
Wherein N is an integer greater than or equal to 2;
the implementation process of this step is the same as that of step 101 in the foregoing embodiment, and is not described here again.
And 202, sending a first call request of the intelligent contract on the chain to a block link point based on the multi-signature information.
The implementation process of this step is the same as that of step 102 in the foregoing embodiment, and is not described here again.
Step 203, after signature uplink feedback information fed back by the block link point based on the first call request is obtained, obtaining transaction information respectively generated by different participant combinations in the N participants;
such as the amount of money transferred, the transfer originator, the transfer recipient, the transfer time, transaction details to which the transfer is subject, etc., to which the transfer transaction relates, or such as the voter, the choice in the vote, the voting time, the details to which the vote is subject, etc., to which the vote relates.
Step 204, respectively acquiring signature information of each participant contained in each participant combination;
step 205, performing signature processing on the transaction information based on the signature information to obtain the to-be-uplink transaction information generated by each of the participant combinations, and determining an execution dependency relationship between the transaction information as an execution dependency relationship between the to-be-uplink transaction information.
In order to ensure that the uplink verification mechanism is adapted when the downlink transaction is linked up, in the embodiment of the present application, signature processing needs to be performed on the transaction information respectively generated by each participant combination, so as to ensure that information marking is performed on each transaction information and verification information is provided for verification processing during subsequent uplink transaction.
This process also implements an under-chain attestation mechanism for batch transaction processing, avoiding the possibility of under-chain computation doing malicious at a lesser cost.
Step 206, based on the to-be-linked transaction information and the execution dependency relationship, sending a second call request of the intelligent contract on the link to the blockchain node.
And the second calling request is used for verifying the transaction information to be linked according to the multi-signature information and the execution dependency relationship after the intelligent contract on the link is executed, and linking the transaction after the verification is correct.
The implementation process of this step is the same as that of step 104 in the foregoing embodiment, and is not described here again.
Further, in an optional implementation manner, in step 203, obtaining transaction information generated by different participant combinations in the N participants respectively includes:
when the transaction is triggered by different participant combinations in the N participants, recording the processing process of the transaction to obtain a transaction record and a transaction state corresponding to the transaction record;
and for each participant combination, obtaining the transaction information containing the corresponding transaction record and the transaction state respectively.
The transaction record is a record of transaction processing actions and corresponding transaction processing information occurring in the transaction processing process, and the acquisition of the transaction record may be to record the transaction processing actions and the transaction processing information occurring in a certain time length according to the time length, or to record one transaction processing action and one transaction processing information for each transaction processing step according to a specific transaction processing item.
The transaction state corresponding to the transaction record is that each transaction record corresponds to a transaction state, and the transaction state indicates the transaction processing state at the transaction time point after the transaction processing action corresponding to one transaction record occurs, for example, after the transaction processing action, the current balance of both parties of the transfer transaction is what, after the voting transaction, the current vote number of each voting option is what, and the like.
The transaction records form a state certificate of the corresponding transaction state, and the correctness of the transaction state can be verified through the transaction records.
Correspondingly, the step 206 of sending a second invocation request of the intelligent contract on the chain to the blockchain node based on the information of the transaction to be linked and the execution dependency relationship includes:
packaging the plurality of to-be-uplink transaction information and the execution dependency relationship among the to-be-uplink transaction information to obtain to-be-uplink transaction data packets;
and sending a second call request of the intelligent contract on the chain carrying the transaction data packet to be linked to the block chain node.
When a second call request for the intelligent contract on the chain is sent to the block chain link point, all transaction information to be linked generated in the batch transaction process needs to be packaged and then entered into the participating network.
At this time, when the transaction information in the to-be-uplink transaction information includes the transaction record and the transaction state, after the second call request carrying the to-be-uplink transaction data packet is sent to the block chain node, after the called on-chain intelligent contract is executed, the transaction state in the to-be-uplink transaction information needs to be verified by combining the multi-signature information, the execution dependency relationship among the to-be-uplink transaction information and the transaction record, and the transaction uplink transaction is performed after the transaction state is verified to be correct.
That is, at this time, the second invocation request is used for verifying the transaction state in the transaction information to be linked according to the multi-signature information, the execution dependency relationship and the transaction record after the intelligent contract on the link is executed, and performing the transaction linking after the verification is correct.
In the process, for the problem of dispute and dispute possibly existing in the calculation process of the downlink transaction, a set of downlink-uplink interaction mode is designed to carry out downlink record and uplink verification judgment and uplink execution of transaction data by introducing a downlink transaction state S, a transaction record SP and a downlink calculation condition execution dependency relation C (which can be realized by a directed acyclic graph).
The concept of S is similar to the concept of world state on the chain, and changes instantly with the execution of the trade action under the chain, and is the trade state under the chain after the accumulation of the execution action under the chain.
The execution dependency relationship is information such as an expiration time and a duration time of a certain transaction, a start time of another transaction having a dependency relationship with a sequence of execution order with the transaction, and the like, and when the intelligent contract on the chain is called to perform transaction chaining, the intelligent contract on the chain is executed and then whether a time conflict exists between the transactions is checked, for example, whether a certain voting result is selected before a block number n (n is used as an entry parameter, and the voting result is used as an execution result) is checked through the execution dependency relationship, so that verification of the transaction information to be chained is realized.
In an alternative embodiment, after acquiring the signed uplink feedback information fed back by the block link point based on the first call request, the step 203 acquires the transaction information generated by different combinations of the N participants, including:
after signature uplink feedback information fed back by the block link point based on the first call request is obtained, a temporary interaction space is opened up;
and acquiring transaction information generated by different participants in the N participants based on the temporary interaction space.
The temporary interaction space is used for different participants in the N participants to combine and execute the transaction, and provides service resources required by execution for the triggered transaction.
When the temporary interaction space is opened up, resources occupied by the procedure under the chain are prepared for N participants to execute batch transaction, and the execution of a large amount of frequently generated transaction data under the chain is ensured.
In the process, for the part of the transaction under the chain, a temporary interaction space is opened for multiple parties interacting under the chain in a multi-signature mode, calculation and transfer can be carried out for any time in the interaction space, the multiple signatures are used as marks to calculate the final change of the world state on the chain after the calculation process is finally finished, and finally the transaction data and the state change under the chain are executed on the chain through an intelligent contract on the chain to realize the data chaining.
Correspondingly, after sending the second invocation request of the intelligent contract on the chain to the blockchain node based on the information of the transaction to be linked and the execution dependency relationship, the method further includes:
and after acquiring the uplink transaction feedback information fed back by the block link point based on the second call request, closing the temporary interaction space.
After acquiring the transaction uplink feedback information fed back by the blockchain node based on the second call request and determining that the batch transaction data is successfully uplink, releasing the resources occupied by the downlink program, closing the temporary interactive space and realizing the interactive space life cycle management.
In the embodiment of the application, the intelligent contract on the chain is called by acquiring the multi-signature information of N participants, after the uplink of the multi-signature information is ensured, acquiring a plurality of to-be-uplink transaction information and execution dependency relationships among the to-be-uplink transaction information respectively generated by different participant combinations in the N participants, the chain intelligent contract is called again, the chain intelligent contract is verified according to the multi-signature information and the execution dependency relationship after being executed, the transaction chain is carried out after the verification is correct, the process reduces frequent calling of the intelligent contracts on the chain, frequent verification of transaction data and blocking operation times by using the intelligent contracts on the chain, improves the processing efficiency of a data chain winding process under the scene of frequently generating a large amount of transaction data, meets the chain winding requirement of batch data, and realizes the expansion of a block chain application scene.
Referring to fig. 3, fig. 3 is a block diagram of a data uplink apparatus according to an embodiment of the present application, and for convenience of description, only a portion related to the embodiment of the present application is shown.
The data uplink apparatus 300 comprises:
a first obtaining module 301, configured to obtain multi-signature information of N participants, where N is an integer greater than or equal to 2;
a first sending module 302, configured to send a first invocation request of an on-chain smart contract to a block link point based on the multi-signature information;
a second obtaining module 303, configured to obtain, after obtaining the signature uplink feedback information fed back by the block link point based on the first call request, multiple pieces of to-be-uplink transaction information that are respectively generated by different participant combinations among the N participants and an execution dependency relationship between the to-be-uplink transaction information;
a second sending module 304, configured to send a second invocation request of the intelligent contract on the chain to the blockchain node based on the to-be-uplink transaction information and the execution dependency, where the second invocation request is used to verify the to-be-uplink transaction information according to the multi-signature information and the execution dependency after the intelligent contract on the chain is executed, and perform uplink transaction after the verification is correct.
The second obtaining module 303 is specifically configured to:
after signature uplink feedback information fed back by the block link point based on the first calling request is obtained, transaction information respectively generated by different participant combinations in the N participants is obtained;
respectively acquiring signature information of each participant contained in each participant combination;
and performing signature processing on the transaction information based on the signature information to obtain the to-be-uplink transaction information generated by each participant combination, and determining an execution dependency relationship between the transaction information as the execution dependency relationship between the to-be-uplink transaction information.
The second obtaining module 303 is further specifically configured to:
when the transaction is triggered by different participant combinations in the N participants, recording the processing process of the transaction to obtain a transaction record and a transaction state corresponding to the transaction record;
and for each participant combination, obtaining the transaction information containing the corresponding transaction record and the transaction state respectively.
Correspondingly, the second sending module 304 is specifically configured to:
packaging the plurality of to-be-uplink transaction information and the execution dependency relationship among the to-be-uplink transaction information to obtain to-be-uplink transaction data packets;
and sending a second call request of the intelligent contract on the chain carrying the transaction data packet to be linked to the block chain node.
The second obtaining module 303 is further specifically configured to:
after signature uplink feedback information fed back by the block link point based on the first call request is obtained, a temporary interaction space is opened up;
and acquiring transaction information generated by different participants in the N participants based on the temporary interaction space.
Correspondingly, the apparatus 300 further comprises:
and the space closing module is used for closing the temporary interaction space after acquiring the uplink transaction feedback information fed back by the block link point based on the second call request.
The data uplink device provided in the embodiment of the present application can implement each process of the above-mentioned data uplink method, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
Fig. 4 is a structural diagram of a terminal according to an embodiment of the present application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 (only one shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the steps of any of the various method embodiments described above being implemented when the computer program 42 is executed by the processor 40.
The terminal 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal 4 may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of a terminal 4 and does not constitute a limitation of terminal 4 and may include more or less components than those shown, or some components in combination, or different components, for example, the terminal may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical function division, and other division manners may exist in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
The present application realizes all or part of the processes in the method of the above embodiments, and may also be implemented by a computer program product, when the computer program product runs on a terminal, the steps in the above method embodiments may be implemented when the terminal executes the computer program product.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.

Claims (10)

1. A method for data uplink, comprising:
acquiring multi-signature information of N participants, wherein N is an integer greater than or equal to 2;
sending a first call request of an intelligent contract on a chain to a block link point based on the multi-signature information;
after signature uplink feedback information fed back by the block link point based on the first call request is obtained, obtaining a plurality of to-be-uplink transaction information generated by different participant combinations in the N participants and execution dependency relationships among the to-be-uplink transaction information;
and sending a second calling request of the intelligent contract on the chain to the block chain node based on the transaction information to be linked and the execution dependency relationship, wherein the second calling request is used for verifying the transaction information to be linked according to the multi-signature information and the execution dependency relationship after the intelligent contract on the chain is executed, and carrying out transaction linking after the verification is correct.
2. The method of claim 1, wherein obtaining the plurality of to-be-uplink transaction information and the execution dependency relationship between the to-be-uplink transaction information respectively generated by different participant combinations among the N participants after obtaining the signed uplink feedback information fed back by the block link point based on the first call request comprises:
after signature uplink feedback information fed back by the block link point based on the first calling request is obtained, transaction information respectively generated by different participant combinations in the N participants is obtained;
respectively acquiring signature information of each participant contained in each participant combination;
and performing signature processing on the transaction information based on the signature information to obtain the to-be-uplink transaction information generated by each participant combination, and determining an execution dependency relationship between the transaction information as the execution dependency relationship between the to-be-uplink transaction information.
3. The method of claim 2, wherein obtaining transaction information generated by different ones of the N participants in combination comprises:
when the transaction is triggered by different participant combinations in the N participants, recording the processing process of the transaction to obtain a transaction record and a transaction state corresponding to the transaction record;
and for each participant combination, obtaining the transaction information containing the corresponding transaction record and the transaction state respectively.
4. The method according to claim 1 or 3, wherein said sending a second invocation request of an on-chain intelligent contract to the blockchain node based on the to-be-uplink transaction information and the execution dependency comprises:
packaging the plurality of to-be-uplink transaction information and the execution dependency relationship among the to-be-uplink transaction information to obtain to-be-uplink transaction data packets;
and sending a second call request of the intelligent contract on the chain carrying the transaction data packet to be linked to the blockchain node.
5. The method of claim 2, wherein obtaining transaction information generated by different combinations of the N participants after obtaining the signed uplink feedback information fed back by the block link point based on the first call request comprises:
after signature uplink feedback information fed back by the block link point based on the first call request is obtained, a temporary interaction space is opened up;
and acquiring transaction information generated by different participants in the N participants based on the temporary interaction space respectively.
6. The method according to claim 5, wherein after sending a second invocation request for an on-chain intelligent contract to the blockchain node based on the to-be-uplink transaction information and the execution dependency, further comprising:
and after acquiring the uplink transaction feedback information fed back by the block link point based on the second call request, closing the temporary interaction space.
7. An apparatus for data uplink, comprising:
the first acquisition module is used for acquiring multi-signature information of N participants, wherein N is an integer greater than or equal to 2;
the first sending module is used for sending a first calling request of an intelligent contract on a chain to a block chain node point based on the multi-signature information;
a second obtaining module, configured to obtain, after obtaining the signature uplink feedback information fed back by the block link point based on the first call request, multiple pieces of to-be-uplink transaction information that are generated by different participant combinations among the N participants, and an execution dependency relationship between the to-be-uplink transaction information;
and the second sending module is used for sending a second calling request of the intelligent contract on the chain to the block chain node based on the transaction information to be linked and the execution dependency relationship, wherein the second calling request is used for verifying the transaction information to be linked according to the multi-signature information and the execution dependency relationship after the intelligent contract on the chain is executed, and carrying out transaction linking after the transaction information to be linked is verified to be correct.
8. The apparatus of claim 7, wherein the second obtaining module is specifically configured to:
after signature uplink feedback information fed back by the block link point based on the first calling request is obtained, transaction information respectively generated by different participant combinations in the N participants is obtained;
respectively acquiring signature information of each participant contained in each participant combination;
and performing signature processing on the transaction information based on the signature information to obtain the to-be-uplink transaction information generated by each participant combination, and determining an execution dependency relationship between the transaction information as the execution dependency relationship between the to-be-uplink transaction information.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202210224265.4A 2022-03-07 2022-03-07 Data uplink method, device, terminal and storage medium Pending CN114741446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210224265.4A CN114741446A (en) 2022-03-07 2022-03-07 Data uplink method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210224265.4A CN114741446A (en) 2022-03-07 2022-03-07 Data uplink method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114741446A true CN114741446A (en) 2022-07-12

Family

ID=82274986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210224265.4A Pending CN114741446A (en) 2022-03-07 2022-03-07 Data uplink method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114741446A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251889A (en) * 2023-11-13 2023-12-19 腾讯科技(深圳)有限公司 Block chain consensus method, related device and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251889A (en) * 2023-11-13 2023-12-19 腾讯科技(深圳)有限公司 Block chain consensus method, related device and medium
CN117251889B (en) * 2023-11-13 2024-03-01 腾讯科技(深圳)有限公司 Block chain consensus method, related device and medium

Similar Documents

Publication Publication Date Title
US11902450B2 (en) Blockchain generation method and system, and related device
CN111382168B (en) Node group creating method and node group-based transaction method in alliance chain network
CN111309745B (en) Virtual resource processing method and device, electronic equipment and storage medium
AU2018425723A1 (en) Blockchain-based information processing method and device, and blockchain network
CN111899008B (en) Resource transfer method, device, equipment and system
CN110400217B (en) Rule change processing method and device for intelligent contract
CN111985007A (en) Contract signing and executing method and device based on block chain
CN110263580B (en) Data processing method and device based on block chain and block chain link points
CN110598460B (en) Block chain-based electronic signature method and device and storage medium
CN109635572A (en) A kind of contract signing method, apparatus and terminal device based on block chain
CN113489671A (en) Cross-alliance-link communication method and device, computer equipment and storage medium
CN109684786A (en) A kind of copyright registration method, apparatus and terminal device based on block chain
CN112600830B (en) Service data processing method and device, electronic equipment and storage medium
Garcia Bringas et al. BlockChain platforms in financial services: current perspective
CN108289028A (en) A kind of signature authentication method, relevant device and computer readable storage medium
CN114741446A (en) Data uplink method, device, terminal and storage medium
CN114092253A (en) Block chain batch transaction method, device, equipment and readable storage medium
CN114003973A (en) Data processing method and device, electronic equipment and storage medium
CN110033188A (en) Business scheduling method, device, calculating equipment and medium based on block chain
CN111259411B (en) Block chain management method, device, electronic equipment and readable storage medium
CN108520186A (en) Record screen method, mobile terminal and computer readable storage medium
CN112181817B (en) Test method and test device for SOA architecture platform
WO2023273832A1 (en) Data verification method and apparatus
CN110443596A (en) Data processing method, device, computer equipment and storage medium
WO2023066258A1 (en) Data processing method and apparatus for private data, computer device and 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