CN110209737B - Data reporting method, parallel chain creating method, equipment and storage medium - Google Patents

Data reporting method, parallel chain creating method, equipment and storage medium Download PDF

Info

Publication number
CN110209737B
CN110209737B CN201910431195.8A CN201910431195A CN110209737B CN 110209737 B CN110209737 B CN 110209737B CN 201910431195 A CN201910431195 A CN 201910431195A CN 110209737 B CN110209737 B CN 110209737B
Authority
CN
China
Prior art keywords
transaction
parallel
parallel chain
chain
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910431195.8A
Other languages
Chinese (zh)
Other versions
CN110209737A (en
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.)
Nanjing Benchain Information Technology Co ltd
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Nanjing Benchain Information Technology Co ltd
Hangzhou Fuzamei 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 Nanjing Benchain Information Technology Co ltd, Hangzhou Fuzamei Technology Co Ltd filed Critical Nanjing Benchain Information Technology Co ltd
Priority to CN201910431195.8A priority Critical patent/CN110209737B/en
Publication of CN110209737A publication Critical patent/CN110209737A/en
Application granted granted Critical
Publication of CN110209737B publication Critical patent/CN110209737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a data reporting method, a parallel chain establishing method, equipment and storage, wherein the method comprises the following steps: receiving a second transaction sent by the first user terminal; and constructing an incomplete first transaction group according to the parallel chain data and the second transaction, returning the incomplete first transaction group to the first user terminal, enabling the first user terminal to sign the second transaction in the first transaction group to construct a complete first transaction group, sending the complete first transaction group to the main chain node, and recording the parallel chain data on the main chain after the main chain node receives and executes the complete first transaction group. The invention is convenient for the user to obtain the parallel chain data from the main chain and provides good user experience for the user.

Description

Data reporting method, parallel chain creating method, equipment and storage medium
Technical Field
The present application relates to the field of block chain technology, and in particular, to a data reporting method, a parallel chain creating method, a device, and a storage medium.
Background
At present, users cannot well acquire parallel chain data from a main chain, so that inconvenience is caused; when a new parallel chain is created, a user cannot know which parallel chains exist, and the parallel chains have the characteristics of being capable of being randomly accessed to a main chain and being randomly named, so that a data hybridization problem is generated among different parallel chains; for example, a user A creates a parallel chain named chainA, a user B can not know that the chainA is used, the user B applies for creating a parallel chain to a main chain, the parallel chain also uses the chainA as a name, and therefore the parallel chain of the user A and the parallel chain of the user B are mixed together.
Disclosure of Invention
In view of the foregoing defects or shortcomings in the prior art, it is desirable to provide a data reporting method, a parallel chain creating method, a device and a storage medium for conveniently acquiring parallel chain data.
In a first aspect, the present invention provides a data reporting method, which is applicable to parallel link nodes, and includes:
receiving a second transaction sent by the first user terminal;
and constructing an incomplete first transaction group according to the parallel chain data and the second transaction, returning the incomplete first transaction group to the first user terminal, enabling the first user terminal to sign the second transaction in the first transaction group to construct a complete first transaction group, sending the complete first transaction group to the main chain node, and recording the parallel chain data on the main chain after the main chain node receives and executes the complete first transaction group.
In a second aspect, the present invention provides a data reporting method, which is applicable to a user terminal, and includes:
sending a second transaction to the first parallel link node, so that the first parallel link node constructs an incomplete first transaction group according to the parallel link data and the second transaction and returns the incomplete first transaction group to the user terminal;
and signing the second transaction in the first transaction group to construct a complete first transaction group, sending the complete first transaction group to the main chain node, receiving and executing the complete first transaction group by the main chain node, and recording the parallel chain data on the main chain.
In a third aspect, the present invention provides a parallel chain creating method, which is applicable to a main chain node, and includes:
receiving first request information for creating a first parallel chain sent by a second user terminal, triggering a first contract to traverse all parallel chain data recorded on a main chain according to the data reporting method of the first aspect or the second aspect, and judging whether the name of the second parallel chain is the same as the name of the first parallel chain in each parallel chain data:
if not, a first parallel chain is established according to the first request information;
if yes, returning error information to the second user terminal.
In a fourth aspect, the present invention further provides an apparatus, including one or more processors and a memory, where the memory contains instructions executable by the one or more processors to cause the one or more processors to execute the data reporting method and the parallel chain creation method provided in the embodiments of the present invention.
In a fifth aspect, the present invention further provides a storage medium storing a computer program, where the computer program enables a computer to execute the data reporting method and the parallel chain creating method according to the embodiments of the present invention.
The data reporting method, the parallel chain creating method, the device and the storage medium provided by the embodiments of the invention receive the second transaction sent by the first user terminal; and constructing an incomplete first transaction group according to the parallel chain data and the second transaction, returning the incomplete first transaction group to the first user terminal, so that the first user terminal signs a signature on the second transaction in the first transaction group to construct a complete first transaction group, and sending the complete first transaction group to the main chain node, so that after the main chain node receives and executes the complete first transaction group, the main chain node records the parallel chain data on the main chain.
The data reporting method, the parallel chain creation method, the device and the storage medium provided by some embodiments of the present invention further include, before receiving a second transaction sent by a first user terminal: regularly judging whether the data are in accordance with a pre-configured data reporting rule: if so, generating and executing a first transaction according to the current first parallel chain data of the parallel chain, and recording the first parallel chain data to the parallel chain; constructing an incomplete first transaction group according to the first parallel chain data and the second transaction and returning the incomplete first transaction group to the first user terminal, wherein the incomplete first transaction group comprises: traversing the parallel chain block forwards and finding the latest first transaction to obtain the latest first parallel chain data, and generating a third transaction according to the latest first parallel chain data; wherein the third transaction comprises signature information of the main chain deduction account; according to the method for constructing the incomplete first transaction group according to the third transaction and the second transaction and returning the incomplete first transaction group to the first user terminal, the parallel chain data to be reported are recorded on the parallel chain, the problem that the parallel chain data are recorded by the main chain node due to the fact that the transaction group is constructed by the parallel chain data which are unreal is prevented, and a data reporting mode is optimized.
The data reporting method, the parallel chain creation method, the device, and the storage medium provided in the embodiments of the present invention trigger the first contract to traverse all parallel chain data recorded on the main chain according to the data reporting method in the first aspect or the second aspect by receiving the first request information for creating the first parallel chain sent by the second user terminal, and determine whether the name of the second parallel chain is the same as the name of the first parallel chain in each parallel chain data: if not, a first parallel chain is established according to the first request information; and if so, returning error information to the second user terminal to avoid generating two parallel chains with the same name, thereby avoiding the problem of data confusion generated between the two parallel chains with the same name.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a data reporting method according to an embodiment of the present invention.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1.
Fig. 3 is a flowchart of step S14 in a preferred embodiment of the method shown in fig. 1.
Fig. 4 is a flowchart of a data reporting method according to an embodiment of the present invention.
Fig. 5 is a flowchart of a parallel chain creating method according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The mechanism of constructing transaction groups in the present application can be referred to in the patent document CN201810695527.9 filed by the applicant, and in order to unify the deduction of the procedure fees of parallel chain transactions, all parallel chain transactions are constructed in the form of transaction groups, and the procedure fees are deducted from the main chain deduction account, which is not described herein again.
Fig. 1 is a flowchart of a data reporting method according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a data reporting method, which is applicable to a parallel chain node, and includes:
s12: receiving a second transaction sent by the first user terminal;
s14: and constructing an incomplete first transaction group according to the parallel chain data and the second transaction, returning the incomplete first transaction group to the first user terminal, enabling the first user terminal to sign the second transaction in the first transaction group to construct a complete first transaction group, sending the complete first transaction group to the main chain node, and recording the parallel chain data on the main chain after the main chain node receives and executes the complete first transaction group.
Specifically, the second parallel chain data is used as the name of the present parallel chain, so that the incomplete first transaction group is constructed according to the parallel chain data and the second transaction tx2 and returned to the first user terminal, and the method is configured to: generating a fourth transaction according to the second parallel chain data; for example, a first incomplete transaction group is constructed according to a fourth transaction and a second transaction, and the first incomplete transaction group is returned to the first user terminal, assuming that a parallel chain node is a, a main chain node is A, a user corresponding to the first user terminal is a user A, the block height of the current parallel chain is 10001, the name of second parallel chain data, namely the parallel chain, is chain1, the second transaction is tx2, and the fourth transaction is sigwithhold(tx4), the incomplete first transaction group is (sig)withhold(tx4), tx2), the complete first transaction group is (sig)withhold(tx4),sigFirst of all(tx2))。
In step S12, a receives tx2 sent by user a;
in step S14, a generates sig from chain1withhold(tx 4); a according to sigwithhold(tx4) and the th with incomplete tx2 structureA transaction group (sig)withhold(tx4), tx2) and returned to user a; user first pair (sig)withholdTx2 signatures in (tx4), tx2) to construct a complete first transaction group (sig)withhold(tx4),sigFirst of all(tx2)), and will (sig)withhold(tx4),sigFirst of all(tx2)) to a; a receive and execute (sig)withhold(tx4),sigFirst of all(tx2)), chain1 is recorded onto the backbone.
In further embodiments, the second parallel-chain data may be configured to include at least one of the following according to actual needs: the name of the parallel chain, the current block height of the parallel chain, the application introduction of the parallel chain, the initial height of the synchronous main chain of the parallel chain, the address of the issuer of the parallel chain, the timestamp of the current block of the parallel chain and the total number of transactions processed by the parallel chain can realize the same technical effect.
The embodiment facilitates the user to acquire the parallel chain data from the main chain, and provides good user experience for the user.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1. In a preferred embodiment, as shown in fig. 2, the method comprises:
s11: regularly judging whether the data are in accordance with a pre-configured data reporting rule: if so, generating and executing a first transaction according to the current first parallel chain data of the parallel chain, and recording the first parallel chain data to the parallel chain;
s12: receiving a second transaction sent by the first user terminal;
s142: traversing the parallel chain block forwards and finding the latest first transaction to obtain the latest first parallel chain data, and generating a third transaction according to the latest first parallel chain data; wherein the third transaction comprises signature information of the main chain deduction account;
s144: and constructing an incomplete first transaction group according to the third transaction and the second transaction, returning the incomplete first transaction group to the first user terminal, enabling the first user terminal to sign a second transaction in the first transaction group to construct a complete first transaction group, sending the complete first transaction group to the main chain node, and recording the parallel chain data on the main chain after the main chain node receives and executes the complete first transaction group.
Specifically, the first parallel chain data is used as the name of the present parallel chain and the current block height of the present parallel chain, so as to configure the configuration that whether the periodic judgment meets the preconfigured data reporting rule as: taking a block as a unit, reporting parallel chain information once every 5000 blocks as an example; assume that the initial block height of the blockchain is 1, the current block height is 5001, the current first parallel chain data of the parallel chain is (chain1,5001), and the first transaction is siga(tx1), the third transaction is sigwithhold(tx3), the incomplete first transaction group is (sig)withhold(tx4), tx2), the complete first transaction group is (sig)withhold(tx3),sigFirst of all(tx2))。
In step S11, a periodically determines whether the rule conforms to the preconfigured data reporting rule, and the periodically determining whether the rule conforms to the preconfigured data reporting rule is configured as: taking a block as a unit, reporting parallel chain information once every 5000 blocks, wherein the initial block height of a block chain is 1, the current block height is 5001, and then generating sig according to the current first parallel chain data (chain1,5001) of the parallel chaina(tx1), a performs siga(tx1), recording (chain1,5001) onto parallel chains;
in step S12, a receives tx2 sent by user a;
in step S142, a traverses the parallel chain tiles forward and finds the latest first transaction to obtain the latest first parallel chain data, since the initial tile height of the tile chain is 1, the current tile height is 5001, and the latest first transaction is sig generated according to (chain1,5001)a(tx1), a finds siga(tx1) to obtain the latest first parallel chain data (chain1,5001); a generates sig from (chain1,5001)withhold(tx3);
In step S144, a is according to sigwithhold(tx3) and tx2 construct an incomplete first transaction group (sig)withhold(tx4), tx2) and returned to user a; user first pair (sig)withhold(tx4), tx2) to construct a complete first transaction group (sig)withhold(tx3),sigFirst of all(tx2)), and will (sig)withhold(tx3),sigFirst of all(tx2)) to a; a receive and execute (sig)withhold(tx3),sigFirst of all(tx2)), then (chain1,5001) is recorded onto the backbone.
In more embodiments, the periodic determination of whether the data reporting rule conforms to the pre-configuration may be configured according to actual requirements, and the parallel chain information is reported every M blocks by using a block as a unit, where M is a positive integer, so that the same technical effect can be achieved.
The embodiment records the parallel chain data to be reported on the parallel chain, prevents the parallel chain nodes from adopting unreal parallel chain data to construct a transaction group, and solves the problem that the main chain nodes record unreal parallel chain data, and optimizes the mode of data reporting.
Fig. 3 is a flowchart of step S14 in a preferred embodiment of the method shown in fig. 1. As shown in fig. 3, in a preferred embodiment, step S14 includes:
s146: generating a fourth transaction according to the second parallel chain data;
s148: and constructing an incomplete first transaction group according to the fourth transaction and the second transaction and returning the incomplete first transaction group to the first user terminal.
The data reporting principle of the above embodiment may refer to the method shown in fig. 1, and is not described herein again.
In a preferred embodiment, the second parallel chain data is configured as the current parallel chain data of the present parallel chain.
The data reporting principle of the above embodiment may refer to the method shown in fig. 1, and is not described herein again.
In a preferred embodiment, the parallel-chain data comprises at least one of: the name of the parallel chain, the current block height of the parallel chain, the application introduction of the parallel chain, the initial height of the synchronous main chain of the parallel chain, the address of a publisher of the parallel chain, the timestamp of the current block of the parallel chain and the total number of transactions processed by the parallel chain.
The data reporting principle of the above embodiment may refer to the method shown in fig. 1, and is not described herein again.
Fig. 4 is a flowchart of a data reporting method according to an embodiment of the present invention. As shown in fig. 4, in this embodiment, the present invention provides a data reporting method, which is applicable to a user terminal, and includes:
s22: sending a second transaction to the first parallel link node, so that the first parallel link node constructs an incomplete first transaction group according to the parallel link data and the second transaction and returns the incomplete first transaction group to the user terminal;
s24: and signing the second transaction in the first transaction group to construct a complete first transaction group, sending the complete first transaction group to the main chain node, receiving and executing the complete first transaction group by the main chain node, and recording the parallel chain data on the main chain.
The data reporting principle of the above embodiment may refer to the method shown in fig. 1, and is not described herein again.
Fig. 5 is a flowchart of a parallel chain creating method according to an embodiment of the present invention. As shown in fig. 5, in this embodiment, the present invention provides a parallel chain creation method, which is applicable to a main chain node, and includes:
s32: receiving first request information for creating a first parallel chain sent by a second user terminal, triggering a first contract to traverse all parallel chain data recorded on a main chain according to the data reporting method of the first aspect or the second aspect, and judging whether the name of the second parallel chain is the same as the name of the first parallel chain in each parallel chain data:
otherwise, step S33 is executed: creating a first parallel chain according to the first request information;
if yes, go to step S34: and returning error information to the second user terminal.
Specifically, assume that the user corresponding to the second user terminal is user b, the names of the parallel chains existing on the main chain are chain1, chain2, and chain3, and the first request information for creating the first parallel chain sent by user b is the name of chain 1.
In step S32, a receives first request information for creating a first parallel chain sent by the user b, triggers the first contract to traverse all parallel chain data recorded on the main chain according to the data reporting method, and determines whether the name of the second parallel chain is the same as the name of the first parallel chain in each parallel chain data:
since the names of the parallel chains already existing on the main chain are chain1, chain2 and chain3, the name of the parallel chain requested to be created by the first request information sent by the user b for creating the first parallel chain is chain1, and if the same name exists, the step S34 is executed: and returning error information to the user B.
The embodiment avoids generating two parallel chains with the same name, thereby causing a data hybridization problem between the two parallel chains with the same name.
Fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 6, as another aspect, the present application also provides an apparatus 600 including one or more Central Processing Units (CPUs) 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the apparatus 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the data reporting method and the parallel chain creating method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing a data reporting method and a parallel chain creation method. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer-readable storage medium stores one or more programs, which are used by one or more processors to execute the data reporting method and the parallel chain creation method described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A data reporting method is applicable to parallel link nodes, and the method comprises the following steps:
receiving a second transaction sent by the first user terminal;
constructing an incomplete first transaction group according to parallel chain data and the second transaction, returning the incomplete first transaction group to the first user terminal, enabling the first user terminal to sign the second transaction in the first transaction group to construct a complete first transaction group, sending the complete first transaction group to a main chain node, and recording the parallel chain data on a main chain after the main chain node receives and executes the complete first transaction group.
2. The method of claim 1, wherein before receiving the second transaction sent by the first user terminal, further comprising:
regularly judging whether the data are in accordance with a pre-configured data reporting rule: if so, generating and executing a first transaction according to the current first parallel chain data of the parallel chain, and recording the first parallel chain data to the parallel chain;
the constructing and returning to the first user terminal an incomplete first transaction set from parallel chain data and the second transaction comprises:
traversing the parallel chain block forwards and finding the latest first transaction to obtain the latest first parallel chain data, and generating a third transaction according to the latest first parallel chain data; wherein the third transaction comprises signature information of a main chain deduction account;
and constructing an incomplete first transaction group according to the third transaction and the second transaction and returning the incomplete first transaction group to the first user terminal.
3. The method of claim 1, wherein constructing an incomplete first transaction group from parallel chain data and the second transaction and returning to the first user terminal comprises:
generating a fourth transaction according to the second parallel chain data; wherein the fourth transaction comprises signature information of a principal deduction account;
and constructing an incomplete first transaction group according to the fourth transaction and the second transaction and returning the incomplete first transaction group to the first user terminal.
4. The method of claim 3, wherein the second parallel-chain data is configured as current parallel-chain data of the present parallel chain.
5. The method of any of claims 1-4, wherein the parallel-chain data comprises at least one of: the name of the parallel chain, the current block height of the parallel chain, the application introduction of the parallel chain, the initial height of the synchronous main chain of the parallel chain, the address of a publisher of the parallel chain, the timestamp of the current block of the parallel chain and the total number of transactions processed by the parallel chain.
6. A data reporting method is characterized in that the method is suitable for a user terminal, and the method comprises the following steps:
sending a second transaction to a first parallel link node, so that the first parallel link node constructs an incomplete first transaction group according to parallel link data and the second transaction and returns the incomplete first transaction group to the user terminal;
and signing the second transaction in the first transaction group to construct a complete first transaction group, and sending the complete first transaction group to a main chain node, so that after the main chain node receives and executes the complete first transaction group, the parallel chain data is recorded on a main chain.
7. A parallel chain creation method, adapted for a main chain node, the method comprising:
receiving first request information for creating a first parallel chain sent by a second user terminal, triggering a first contract to traverse all parallel chain data recorded on a main chain according to the data reporting method of any one of claims 1 to 6, and judging whether a second parallel chain name is the same as the first parallel chain name in each parallel chain data:
if not, the first parallel chain is established according to the first request information;
and if so, returning error information to the second user terminal.
8. The method of claim 7, wherein the first request information further comprises a usage introduction of the first parallel chain and an address of a publisher of the first parallel chain.
9. A computer device, the device comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-8.
10. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-8.
CN201910431195.8A 2019-05-22 2019-05-22 Data reporting method, parallel chain creating method, equipment and storage medium Active CN110209737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910431195.8A CN110209737B (en) 2019-05-22 2019-05-22 Data reporting method, parallel chain creating method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910431195.8A CN110209737B (en) 2019-05-22 2019-05-22 Data reporting method, parallel chain creating method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110209737A CN110209737A (en) 2019-09-06
CN110209737B true CN110209737B (en) 2021-02-09

Family

ID=67788126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910431195.8A Active CN110209737B (en) 2019-05-22 2019-05-22 Data reporting method, parallel chain creating method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110209737B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111292192A (en) * 2020-02-18 2020-06-16 杭州复杂美科技有限公司 Transaction parallel execution method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347486A (en) * 2018-02-12 2018-07-31 众安信息技术服务有限公司 Across chain communication means, device and system based on block chain
TW201837821A (en) * 2017-04-07 2018-10-16 張華升 Blockchain network and method of operation thereof

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10255108B2 (en) * 2016-01-26 2019-04-09 International Business Machines Corporation Parallel execution of blockchain transactions
WO2018006072A1 (en) * 2016-06-30 2018-01-04 Clause, Inc. Systems and method for forming, storing, managing,and executing contracts
US11146380B2 (en) * 2017-08-03 2021-10-12 Parity Technologies Ltd. Methods and systems for a heterogeneous multi-chain framework
WO2019055585A1 (en) * 2017-09-12 2019-03-21 Kadena Llc Parallel-chain architecture for blockchain systems
CN108200210B9 (en) * 2018-02-12 2021-06-18 众安信息技术服务有限公司 Block chain-based chain management method, block chain-based chain management device and computer-readable medium
CN109035016B (en) * 2018-06-28 2020-10-23 杭州复杂美科技有限公司 Multi-chain concurrent transaction method
CN109033422B (en) * 2018-08-08 2020-05-22 云南天之游科技股份有限公司 Method and device for generating block chain and block chain
CN109165205A (en) * 2018-08-21 2019-01-08 甲骨文科技时代(深圳)有限公司 A kind of date storage method and device based on block chain
CN109271446B (en) * 2018-08-30 2020-10-23 杭州复杂美科技有限公司 Parallel chain data synchronization method, equipment and storage medium
CN109325762B (en) * 2018-08-30 2020-07-10 杭州复杂美科技有限公司 Parallel chain cross-chain transaction method, equipment and storage medium
CN109584072B (en) * 2018-11-28 2023-01-13 杭州复杂美科技有限公司 Transaction sending method, device and storage medium for parallel chain consensus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201837821A (en) * 2017-04-07 2018-10-16 張華升 Blockchain network and method of operation thereof
CN108347486A (en) * 2018-02-12 2018-07-31 众安信息技术服务有限公司 Across chain communication means, device and system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链共识算法的发展现状与展望;袁勇等;《自动化学报》;20190123;第44卷(第11期);第2011-2022页 *

Also Published As

Publication number Publication date
CN110209737A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
US20200151017A1 (en) Event-driven blockchain workflow processing
CN110609872B (en) Method and apparatus for synchronizing node data
CN110751475A (en) Cross-chain method, system, equipment and storage medium for blockchain transaction
CN110677441B (en) Access method and device of object storage cluster
KR20090099549A (en) Propagation of conflict knowledge
CN110070359A (en) Verification of data system, method, calculating equipment and storage medium based on block chain
CN109104336A (en) Service request processing method, device, computer equipment and storage medium
CN109687953B (en) Transaction classification method, apparatus and storage medium
CN113535721B (en) Data writing method and device
CN110083745B (en) Data query method, device and storage medium
CN107181821A (en) A kind of information push method and device based on SSE specifications
US20140122576A1 (en) Setting support apparatus, setting support system and setting support method
US20220038258A1 (en) Preventing an erroneous transmission of a copy of a record of data to a distributed ledger system
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN114827280B (en) Request processing method, device, equipment and medium
CN110209737B (en) Data reporting method, parallel chain creating method, equipment and storage medium
CN111259074A (en) Block synchronization method, device and storage medium
CN105450449A (en) File operation methods and devices
US20140365430A1 (en) Information processing apparatus, system, and control method
CN111343220B (en) Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment
US20230269085A1 (en) Systems and methods for using secure, encrypted communications across distributed computer networks to efficiently update cryptography-based digital repositories for performing blockchain operations in decentralized applications
CN111768202A (en) Payment verification method, payment verification node, full-amount node and storage medium
US20190171512A1 (en) Error handling
CN116263926A (en) Accounting method, device and system based on blockchain
CN114549137A (en) Request processing method and device

Legal Events

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