Method, apparatus, equipment and block catenary system of the block chain across chain transaction verification

文档序号:1756503 发布日期:2019-11-29 浏览:12次 中文

阅读说明:本技术 区块链跨链交易验证的方法、装置、设备及区块链系统 (Method, apparatus, equipment and block catenary system of the block chain across chain transaction verification ) 是由 辛佳骏 张骁 来鑫 于 2019-08-29 设计创作,主要内容包括:本申请公开了一种区块链跨链交易验证的方法,应用于交易请求方,包括:通过RSA累加器记录区块链中每一笔交易的状态值;获取跨链交易请求,跨链交易请求包括当前交易的状态值的记录值,当前交易的状态值的记录值由RSA累加器记录;将跨链交易请求发送至交易验证方,以使交易验证方对当前交易的状态值的记录值进行验证,若验证通过,则交易验证方确认跨链交易。本申请利用RSA累加器存储的交易的状态值进行验证,可以有效减小跨链交易过程中的带宽占用,进而不会造成过高的性能开销,而且验证时间恒定,不会随着存储内容的增加而受到影响。本申请同时还提供了一种区块链跨链交易验证的方法、装置、设备及区块链系统,具有上述有益效果。(This application discloses a kind of method of the block chain across chain transaction verification, are applied to transaction requestor, comprising: the state value of each transaction in block chain is recorded by RSA accumulator;Across chain transaction request is obtained, across chain transaction request includes the record value for the state value currently traded, and the record value for the state value currently traded is recorded by RSA accumulator;Across chain transaction request is sent to transaction verification side, so that transaction verification side verifies the record value for the state value currently traded, if being verified, transaction verification side confirms across chain transaction.The state value for the transaction that the application is stored using RSA accumulator is verified, and the bandwidth occupancy in across chain process of exchange can be effectively reduced, and then not will cause excessively high performance cost, and the verification time is constant, will not be affected with the increase of storage content.The application additionally provides a kind of method, apparatus, equipment and block catenary system of the block chain across chain transaction verification simultaneously, has above-mentioned beneficial effect.)

1. a kind of method of the block chain across chain transaction verification is applied to transaction requestor characterized by comprising

The state value of each transaction in block chain is recorded by RSA accumulator;

Across chain transaction request is obtained, across the chain transaction request includes the record value for the state value currently traded, the current friendship The record value of easy state value is recorded by the RSA accumulator;

Across the chain transaction request is sent to transaction verification side, so that the transaction verification side is to the state currently traded The record value of value is verified, if being verified, the transaction verification side confirms across chain transaction.

2. the method according to claim 1, wherein described record each pen in block chain by RSA accumulator The state value of transaction, comprising:

According to formula Acc0=g determines that the initial value of the RSA accumulator, g are the arbitrary integer in (1, N), and N is predetermined A positive integer;

According to formulaThe state value of i+1 transaction in the block chain is recorded;

Wherein, Acc0For the initial value of the RSA accumulator, Acci+1For the i+1 transaction of RSA accumulator record State value record value, si+1For the state value of the i+1 transaction, AcciIt is i-th of RSA accumulator record The record value of the state value of transaction, HpFor the hash function that arbitrary value is mapped to big prime number.

3. the method according to claim 1, wherein across the chain transaction request further includes the state currently traded The proof value of value and the state value currently traded, the proof value are calculated according to the following formula:

Wherein, siFor the state value of i-th transaction, πiFor the proof value of the state value of i-th transaction.

4. a kind of method of the block chain across chain transaction verification is applied to transaction verification side characterized by comprising

Across the chain transaction request that transaction requestor sends is received, across the chain transaction request includes the note for the state value currently traded The record value of record value, the state value currently traded is recorded by RSA accumulator;

The record value of the state value currently traded is verified;

If being verified, across chain transaction is confirmed.

5. according to the method described in claim 4, it is characterized in that, across the chain transaction request further includes the state currently traded The proof value of value and the state value currently traded;

The record value to the state value currently traded is verified, comprising:

The record value of the state value of the i-th transaction, the state value of the i-th transaction and described are determined according to across the chain transaction request The proof value of the state value of i-th transaction;

Pass through formula according to the proof value of the state value of i-th transaction and the state value of i-th transactionCalculate validation value;

Judge whether the validation value and the record value of the state value of i-th transaction are equal;

If so, determination is verified;

If not, it is determined that verifying does not pass through;

Wherein, Acci' it is the validation value that the transaction verification side is calculated, HpFor the Hash that arbitrary value is mapped to big prime number Function, siFor the state value of i-th transaction, πiFor the proof value of the state value of i-th transaction.

6. a kind of device of the block chain across chain transaction verification is applied to transaction requestor characterized by comprising

Logging modle, for recording the state value of each transaction in block chain by RSA accumulator;

Module is obtained, for obtaining across chain transaction request, across the chain transaction request includes the record for the state value currently traded Value, the record value of the state value currently traded are recorded by the RSA accumulator;

Sending module, for across the chain transaction request to be sent to transaction verification side, so that the transaction verification side is to described The record value for the state value currently traded is verified, if being verified, the transaction verification side confirms across chain transaction.

7. device according to claim 6, which is characterized in that the logging modle includes:

First determines submodule, for according to formula Acc0=g determines that the initial value of the RSA accumulator, g are appointing in (1, N) Meaning integer, N are a predetermined positive integer;

Record sub module, for according to formulaTo the state value of i+1 transaction in the block chain into Row record;

Wherein, Acc0For the initial value of the RSA accumulator, Acci+1For the i+1 transaction of RSA accumulator record State value record value, si+1For the state value of the i+1 transaction, AcciIt is i-th of RSA accumulator record The record value of the state value of transaction, HpFor the hash function that arbitrary value is mapped to big prime number.

8. a kind of device of the block chain across chain transaction verification is applied to transaction verification side characterized by comprising

Receiving module, for receiving across the chain transaction request of transaction requestor's transmission, across the chain transaction request includes current hands over The record value of the record value of easy state value, the state value currently traded is recorded by RSA accumulator;

Authentication module is verified for the record value to the state value currently traded;

Confirmation module, for confirming across chain transaction when being verified.

9. a kind of across chain transaction verification apparatus of block chain is applied to transaction requestor characterized by comprising

Memory, for storing computer program;

Processor is realized when for executing the computer program and is applied to transaction request as described in any one of claims 1 to 3 Side block chain across chain transaction verification method the step of.

10. a kind of across chain transaction verification apparatus of block chain is applied to transaction verification side characterized by comprising

Memory, for storing computer program;

Processor realizes the area for being applied to transaction verification side as described in claim 4 or 5 when for executing the computer program Block chain across chain transaction verification method the step of.

11. a kind of block catenary system, which is characterized in that the block catenary system includes at least two block chains, the block chain System supports across chain transaction, and transaction requestor and transaction verification side across chain transaction belong to different block chains, in which:

The transaction requestor is used to record the state value of each transaction in block chain by RSA accumulator;Obtain across chain friendship Easily request, across the chain transaction request includes the record value for the state value currently traded, the note of the state value currently traded Record value is recorded by the RSA accumulator;Across the chain transaction request is sent to the transaction verification side;

The transaction verification side is used to receive across the chain transaction request that the transaction requestor sends;To the shape currently traded The record value of state value is verified;If being verified, across chain transaction is confirmed.

Technical field

This application involves block chain field, in particular to method, apparatus of a kind of block chain across chain transaction verification, equipment and Block catenary system.

Background technique

In a block catenary system based on account model, when carrying out across the chain transaction of block chain, such as one of chain A User A1A transaction is sent to a user B of chain B1When, B1It needs to verify the transaction.Verifying includes verifying this Whether the digital signature in transaction can use A1Public key verified and A1The whether enough payment transactions of remaining sum the amount of money.

Summary of the invention

The purpose of the application is to provide a kind of method, apparatus, equipment and block catenary system of the block chain across chain transaction verification, For reducing performance cost caused by verification process.

In order to solve the above technical problems, the application provides a kind of method of the block chain across chain transaction verification, it is applied to transaction Requesting party, this method comprises:

The state value of each transaction in block chain is recorded by RSA accumulator;

Across chain transaction request is obtained, across the chain transaction request includes the record value for the state value currently traded, described to work as The record value of the state value of preceding transaction is recorded by the RSA accumulator;

Across the chain transaction request is sent to transaction verification side, so that the transaction verification side currently trades to described The record value of state value is verified, if being verified, the transaction verification side confirms across chain transaction.

Optionally, the state value that each transaction in block chain is recorded by RSA accumulator, comprising:

According to formula Acc0=g determines that the initial value of the RSA accumulator, g are the arbitrary integer in (1, N), and N is preparatory A determining positive integer;

According to formulaThe state value of i+1 transaction in the block chain is recorded;

Wherein, Acc0For the initial value of the RSA accumulator, Acci+1For the i+1 of RSA accumulator record The record value of the state value of transaction, si+1For the state value of the i+1 transaction, AcciFor RSA accumulator record The record value of the state value of i-th transaction, HpFor the hash function that arbitrary value is mapped to big prime number.

Optionally, across the chain transaction request further includes the card of the state value currently traded and the state value currently traded Bright value, the proof value are calculated according to the following formula:

Wherein, siFor the state value of i-th transaction, πiFor the proof value of the state value of i-th transaction.

The application also provides a kind of method of the block chain across chain transaction verification, is applied to transaction verification side, this method comprises:

Across the chain transaction request that transaction requestor sends is received, across the chain transaction request includes the state value currently traded Record value, the record value of the state value currently traded records by RSA accumulator;

The record value of the state value currently traded is verified;

If being verified, across chain transaction is confirmed.

Optionally, across the chain transaction request further includes the card of the state value currently traded and the state value currently traded Bright value;

The record value to the state value currently traded is verified, comprising:

According to across the chain transaction request determine the record value of the state value of the i-th transaction, the i-th transaction state value and The proof value of the state value of i-th transaction;

Pass through formula according to the proof value of the state value of i-th transaction and the state value of i-th transactionCalculate validation value;

Judge whether the validation value and the record value of the state value of i-th transaction are equal;

If so, determination is verified;

If not, it is determined that verifying does not pass through;

Wherein, Acci' it is the validation value that the transaction verification side is calculated, HpFor arbitrary value is mapped to big prime number Hash function, siFor the state value of i-th transaction, πiFor the proof value of the state value of i-th transaction.

The application also provides a kind of device of the block chain across chain transaction verification, is applied to transaction requestor, which includes:

Logging modle, for recording the state value of each transaction in block chain by RSA accumulator;

Module is obtained, for obtaining across chain transaction request, across the chain transaction request includes the state value currently traded The record value of record value, the state value currently traded is recorded by the RSA accumulator;

Sending module, for across the chain transaction request to be sent to transaction verification side, so that the transaction verification side pair The record value of the state value currently traded is verified, if being verified, the transaction verification side confirms across chain transaction.

Optionally, the logging modle includes:

First determines submodule, for according to formula Acc0=g determines the initial value of the RSA accumulator,gFor in (1, N) Arbitrary integer, N be a predetermined positive integer;

Record sub module, for according to formulaTo the state of i+1 transaction in the block chain Value is recorded;

Wherein, Acc0For the initial value of the RSA accumulator, Acci+1For the i+1 of RSA accumulator record The record value of the state value of transaction, si+1For the state value of the i+1 transaction, AcciFor RSA accumulator record The record value of the state value of i-th transaction, HpFor the hash function that arbitrary value is mapped to big prime number.

The application also provides a kind of device of the block chain across chain transaction verification, is applied to transaction verification side, which includes:

Receiving module, for receiving across the chain transaction request of transaction requestor's transmission, across the chain transaction request includes working as The record value of the record value of the state value of preceding transaction, the state value currently traded is recorded by RSA accumulator;

Authentication module is verified for the record value to the state value currently traded;

Confirmation module, for confirming across chain transaction when being verified.

The application also provides a kind of across chain transaction verification apparatus of block chain, is applied to transaction requestor, the block chain is across chain Transaction verification apparatus includes:

Memory, for storing computer program;

Processor is realized as described in any of the above-described when for executing the computer program applied to transaction requestor Block chain across chain transaction verification method the step of.

The application also provides a kind of across chain transaction verification apparatus of block chain, is applied to transaction verification side, the block chain is across chain Transaction verification apparatus includes:

Memory, for storing computer program;

Processor is realized as described in any of the above-described when for executing the computer program applied to transaction verification side Block chain across chain transaction verification method the step of.

The application also provides a kind of block catenary system, and the block catenary system includes at least two block chains, the block Catenary system supports across chain transaction, and transaction requestor and transaction verification side across chain transaction belong to different block chains, in which:

The transaction requestor is used to record the state value of each transaction in block chain by RSA accumulator;Obtain across Chain transaction request, across the chain transaction request include the record value for the state value currently traded, the state value currently traded Record value recorded by the RSA accumulator;Across the chain transaction request is sent to the transaction verification side;

The transaction verification side is used to receive across the chain transaction request that the transaction requestor sends;To the current transaction The record value of state value verified;If being verified, across chain transaction is confirmed.

Method of the block chain across chain transaction verification provided herein is applied to transaction requestor, comprising: tired by RSA Add the state value of each transaction in device record block chain;Across chain transaction request is obtained, across chain transaction request includes current transaction State value record value, the record value for the state value currently traded records by RSA accumulator;Across chain transaction request is sent to It, if being verified, trades so that transaction verification side verifies the record value for the state value currently traded transaction verification side Authentication confirms across chain transaction.

Technical solution provided herein records the state value of each transaction in block chain, phase by RSA accumulator Than in Merkle Tree as storage content becomes more and scale becomes larger, the application using the transaction of RSA accumulator storage state Value is verified, since the increase of storage content not will lead to the increase of the verify data of offer, can effectively reduce across Bandwidth occupancy in chain process of exchange, and then not will cause excessively high performance cost, and the verification time is constant, will not be with depositing It stores up the increase of content and is affected.The application additionally provides a kind of method, apparatus across chain transaction verification of block chain simultaneously, sets Standby and block catenary system has above-mentioned beneficial effect, and details are not described herein.

Detailed description of the invention

In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.

Fig. 1 is a kind of flow chart of method of the block chain across chain transaction verification provided by the embodiment of the present application;

Fig. 2 is the flow chart of method of the another kind block chain across chain transaction verification provided by the embodiment of the present application;

Fig. 3 is a kind of structure chart of device of the block chain across chain transaction verification provided by the embodiment of the present application;

Fig. 4 is the structure chart of device of the another kind block chain across chain transaction verification provided by the embodiment of the present application;

Fig. 5 is a kind of structure chart of the block chain across chain transaction verification apparatus provided by the embodiment of the present application;

Fig. 6 is a kind of structure chart of block catenary system provided by the embodiment of the present application.

Specific embodiment

The core of the application is to provide a kind of method, apparatus, equipment and block catenary system of the block chain across chain transaction verification, For reducing performance cost caused by verification process.

To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.

Referring to FIG. 1, Fig. 1 is a kind of process of method of the block chain across chain transaction verification provided by the embodiment of the present application Figure.

Applied to transaction requestor, specifically comprise the following steps:

S101: the state value of each transaction in block chain is recorded by RSA accumulator;

Based in the prior art, certification when across chain transaction needs to be proved by Merkle Tree, and due to The reason of Merkle Tree self attributes, leads to the increase with storage content, and the scale of Merkle Tree also becomes larger, It proves to calculate existing for state using Merkle Tree and also become increasingly complex, the verification time is also increasingly longer, this gives across chain friendship Very big performance cost is easily increased, therefore this application provides a kind of method of the block chain across chain transaction verification, for solving State problem;

Optionally, the state value mentioned herein that each transaction in block chain is recorded by RSA accumulator, realization side Method is specifically as follows additionally adds a RSA accumulator in each block, and the record value and phase of RSA accumulator are sent when across chain The state for proving i.e. provable user is closed, so that across chain transaction no longer needs the StateRoot based on Merkle Tree;

The purpose mentioned herein for recording the state value of each transaction in block chain by RSA accumulator is that RSA is tired Add device that all state values can be compressed into the record value of single fixed size, so that according to given data and the record value Proof value can be constructed, is all a part of the data of record value mark, this pole with any particular value proved in data The big space hold for reducing data;

Optionally, the state value mentioned herein that each transaction in block chain is recorded by RSA accumulator, specifically may be used With are as follows:

According to formula Acc0=g determines that the initial value of RSA accumulator, g are the arbitrary integer in (1, N), and N is predetermined A positive integer;

According to formulaThe state value of i+1 transaction in block chain is recorded;

Wherein, Acc0For the initial value of RSA accumulator, Acci+1For the state of the i+1 transaction of RSA accumulator record The record value of value, si+1For the state value of i+1 transaction, AcciFor the state value of i-th transaction of RSA accumulator record Record value, HpFor the hash function that arbitrary value is mapped to big prime number;

N=pq mentioned herein, p and q are two big prime numbers, and p and q can be unknown, and the embodiment of the present application only needs Want one can not the big N that decomposes of prime factor, and the method for finding N include but is not limited to pass through trusted third party generate N, The public key lost by some RSA private keys finds N as N, according to class group technology;

Acc0For indicating the original state of RSA accumulator, formula can be passed throughBy the first transaction State value s1Increase in RSA accumulator, and so on, until the state value of each transaction in the block chain is stored It is put into block into RSA accumulator, and by the final record value of RSA accumulator.

S102: obtaining across chain transaction request, and across chain transaction request includes the record value for the state value currently traded, current to hand over The record value of easy state value is recorded by RSA accumulator;

S103: across chain transaction request is sent to transaction verification side, so that transaction verification side is to the state value currently traded Record value verified, if being verified, transaction verification side confirms across chain transaction.

Preferably, being somebody's turn to do across chain transaction request can also include the state value currently traded and the state value currently traded Proof value, the proof value can be calculated according to the following formula:

Wherein, siFor the state value of the i-th transaction, πiFor the proof value of the state value of the i-th transaction.

The embodiment of the present application first calculates the proof value of the state value of the i-th transaction, then will tire out again comprising proof value, RSA After adding the transaction request of the record value of device and the state value of the i-th transaction to be sent to transaction verification side, so that transaction verification root It is demonstrated that value and the state value of the i-th transaction calculate validation value, then judge again validation value and RSA accumulator record value whether It is equal, if equal, it is verified, transaction verification side confirms across chain transaction at this time.

Based on the above-mentioned technical proposal, a kind of method of the block chain across chain transaction verification provided herein, it is tired by RSA The state value for adding each transaction in device record block chain, compared to Merkle Tree as storage content becomes mostly and scale change Greatly, the state value for the transaction that the application is stored using RSA accumulator is verified, and is mentioned since the increase of storage content not will lead to The increase of the verify data of confession, therefore the bandwidth occupancy in across chain process of exchange can be effectively reduced, and then not will cause excessively high Performance cost, and the verification time is constant, will not be affected with the increase of storage content.

Referring to FIG. 2, Fig. 2 is the stream of method of the another kind block chain across chain transaction verification provided by the embodiment of the present application Cheng Tu.

Applied to transaction verification side, specifically comprise the following steps:

S201: across the chain transaction request that transaction requestor sends is received, across chain transaction request includes the state currently traded The record value of the record value of value, the state value currently traded is recorded by RSA accumulator;

S202: the record value for the state value currently traded is verified;

Optionally, across chain transaction request mentioned herein can also include the state value currently traded and currently trade The proof value of state value;

On this basis, the record value of RSA accumulator is verified, is specifically as follows:

The record value of the state value of the i-th transaction, the state value and i-th of the i-th transaction are determined according to across chain transaction request The proof value of the state value of transaction;

Pass through formula according to the proof value of the state value of the i-th transaction and the state value of the i-th transactionMeter Calculate validation value;

Judge whether validation value is equal with the record value of the state value of the i-th transaction;

If so, determination is verified;

If not, it is determined that verifying does not pass through;

Wherein, Acci' it is the validation value that transaction verification side is calculated, HpFor the Hash that arbitrary value is mapped to big prime number Function, siFor the state value of the i-th transaction, πiFor the proof value of the state value of the i-th transaction.

S203: if being verified, confirm across chain transaction.

Optionally, transaction verification side, can also be first to transaction request before the record value to RSA accumulator is verified The digital signature of side is verified, to ensure the correctness of transaction requestor.

Based on the above-mentioned technical proposal, the embodiment of the present application is verified by the record value to RSA accumulator, due to storage The increase of content not will lead to the increase of the verify data of offer, therefore can be constant with the verification time, will not be with storage content Increase and be affected.

Referring to FIG. 3, Fig. 3 is a kind of structure of device of the block chain across chain transaction verification provided by the embodiment of the present application Figure.

Applied to transaction requestor, the apparatus may include:

Logging modle 100, for recording the state value of each transaction in block chain by RSA accumulator;

Module 200 is obtained, for obtaining across chain transaction request, across chain transaction request includes the note for the state value currently traded The record value of record value, the state value currently traded is recorded by RSA accumulator;

Sending module 300, for across chain transaction request to be sent to transaction verification side, so that transaction verification side is handed over current The record value of easy state value is verified, if being verified, transaction verification side confirms across chain transaction.

Optionally, which may include:

First determines submodule, for according to formula Acc0=g determines that the initial value of RSA accumulator, g are in (1, N) Arbitrary integer, N are a predetermined positive integer;

Record sub module, for according to formulaTo the state value of i+1 transaction in block chain into Row record;

Wherein, Acc0For the initial value of RSA accumulator, Acci+1For the state of the i+1 transaction of RSA accumulator record The record value of value, si+1For the state value of i+1 transaction, AcciFor the state value of i-th transaction of RSA accumulator record Record value, HpFor the hash function that arbitrary value is mapped to big prime number.

Optionally, across chain transaction request further includes the proof of the state value currently traded and the state value currently traded Value, it was demonstrated that value is calculated according to the following formula:

Wherein, siFor the state value of the i-th transaction, πiFor the proof value of the state value of the i-th transaction.

Embodiment due to being applied to the device part of transaction requestor and the method part applied to transaction requestor Embodiment corresponds to each other, therefore the embodiment for being applied to the device part of transaction requestor is referred to applied to transaction requestor's The description of the embodiment of method part wouldn't repeat here.

Referring to FIG. 4, Fig. 4 is the knot of device of the another kind block chain across chain transaction verification provided by the embodiment of the present application Composition.

Applied to transaction verification side, the apparatus may include:

Receiving module 400, for receiving across the chain transaction request of transaction requestor's transmission, across chain transaction request includes current The record value of the record value of the state value of transaction, the state value currently traded is recorded by RSA accumulator;

Authentication module 500 is verified for the record value to the state value currently traded;

Confirmation module 600, for confirming across chain transaction when being verified.

Optionally, across chain transaction request can also include the card for the state value and state value currently traded currently traded Bright value;

On this basis, which may include:

Second determines submodule, the record value of the state value for determining the i-th transaction according to across chain transaction request, i-th The proof value of the state value of transaction and the state value of the i-th transaction;

Computational submodule, the proof value for the state value according to the state value and the i-th transaction of the i-th transaction pass through public affairs FormulaCalculate validation value;

Judging submodule, for judging whether validation value is equal with the record value of the state value of the i-th transaction;

Third determines submodule, for determining verifying when validation value is equal with the record value of the state value of the i-th transaction Pass through;

4th determines submodule, for when the record value of validation value and the state value of the i-th transaction is unequal, determination to be tested Card does not pass through.

Wherein, Acci' it is the validation value that transaction verification side is calculated, HpFor the Hash that arbitrary value is mapped to big prime number Function, siFor the state value of the i-th transaction, πiFor the proof value of the state value of the i-th transaction.

Embodiment due to being applied to the device part of transaction verification side and the method part applied to transaction verification side Embodiment corresponds to each other, therefore the embodiment for being applied to the device part of transaction verification side is referred to applied to transaction verification side The description of the embodiment of method part wouldn't repeat here.

Referring to FIG. 5, Fig. 5 is a kind of structure of the block chain across chain transaction verification apparatus provided by the embodiment of the present application Figure.

Applied to transaction requestor, across the chain transaction verification apparatus 700 of the block chain can be generated because configuration or performance are different Bigger difference may include one or more processor (central processing units, CPU) 722 (examples Such as, one or more processors) and memory 732, one or more storage application programs 742 or data 744 Storage medium 730 (such as one or more mass memory units).Wherein, memory 732 and storage medium 730 can be Of short duration storage or persistent storage.The program for being stored in storage medium 730 may include that one or more modules (do not mark by diagram Out), each module may include to the series of instructions operation in device.Further, processor 722 can be set to Storage medium 730 communicates, and the series of instructions behaviour in storage medium 730 is executed in across the chain transaction verification apparatus 700 of block chain Make.

Across the chain transaction verification apparatus 700 of block chain can also include one or more power supplys 727, one or one with Upper wired or wireless network interface 750, one or more input/output interfaces 758, and/or, one or more behaviour Make system 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..

The described block chain applied to transaction requestor of above-mentioned Fig. 1 is across the step in the method for chain transaction verification by area Across the chain transaction verification apparatus of block chain is based on the structure shown in fig. 5 and realizes.

Present invention also provides another across the chain transaction verification apparatus of block chain, are applied to transaction verification side, the block chain Across chain transaction verification apparatus includes:

Memory, for storing computer program;

Processor realizes that any one of above-described embodiment such as is applied to the area of transaction verification side when for executing computer program Block chain across chain transaction verification method the step of.

Referring to FIG. 6, Fig. 6 is a kind of structure chart of block catenary system provided by the embodiment of the present application.

The block catenary system includes at least two block chains, and block catenary system supports across chain transaction, the transaction across chain transaction Requesting party 800 and transaction verification side 900 belong to different block chains, in which:

Transaction requestor 800 is used to record the state value of each transaction in block chain by RSA accumulator;It obtains across chain Transaction request, across chain transaction request include the record value for the state value currently traded, the record value of the state value currently traded by RSA accumulator record;Across chain transaction request is sent to transaction verification side 900;

Transaction verification side 900 is used to receive across the chain transaction request of the transmission of transaction requestor 800;To the state currently traded The record value of value is verified;If being verified, across chain transaction is confirmed.

Since the embodiment of method part of the embodiment with block chain across chain transaction verification of block catenary system part is mutual It is corresponding, therefore the embodiment of block catenary system part refers to retouching for the embodiment of method part of the block chain across chain transaction verification It states, wouldn't repeat here.

It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of equipment and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.

In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be with In conjunction with or be desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or module or Communication connection can be electrical property, mechanical or other forms.

Module may or may not be physically separated as illustrated by the separation member, show as module Component may or may not be physical module, it can and it is in one place, or may be distributed over multiple networks In module.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.

It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.

If integrated module is realized and when sold or used as an independent product in the form of software function module, can To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.

Method, apparatus, equipment and block linkwork to a kind of block chain provided herein across chain transaction verification above System is described in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept.It should be pointed out that for the art Those of ordinary skill for, under the premise of not departing from the application principle, can also to the application carry out it is several improvement and repair Decorations, these improvement and modification are also fallen into the protection scope of the claim of this application.

It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种游戏软件开发系统及其支付方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!