CN108322309B - Transaction processing method and device based on block chain - Google Patents
Transaction processing method and device based on block chain Download PDFInfo
- Publication number
- CN108322309B CN108322309B CN201711446767.7A CN201711446767A CN108322309B CN 108322309 B CN108322309 B CN 108322309B CN 201711446767 A CN201711446767 A CN 201711446767A CN 108322309 B CN108322309 B CN 108322309B
- Authority
- CN
- China
- Prior art keywords
- transaction
- application
- applications
- information
- processing
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3827—Use of message hashing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
Abstract
The invention discloses a kind of transaction processing method and device based on block chain, is related to technical field of data processing, improves the treatment effeciency that accounting nodes carry out verification processing to the more transaction applications received.The method comprise the steps that accounting nodes obtain multiple transaction applications;Apply for that corresponding Transaction Information applies for that corresponding digital signature carries out parallel check processing to multiple transaction according to each transaction;According to verification, successfully each transaction applies for that corresponding Transaction Information is grouped multiple transaction application, N number of set is obtained, so that the multiple transaction applications for including in each set are the transaction application of different transaction initiators creation;Parallel proof processing successively is carried out to the corresponding Transaction Information of the multiple transaction applications for including in each set;The multiple transaction applications being proved to be successful are put into block and are stored.During the present invention is suitable for accounting nodes to the more transaction applications progress verification processing received.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of transaction processing method and dress based on block chain
It sets.
Background technique
Block chain technology (Blockchain Technology, BT) is a kind of distributed storage technology of decentralization, because
To have many advantages, such as that decentralization, process of exchange are transparent, information can not distort, traceable, and it is widely used in financial field.
Under block chain common recognition mechanism, each node in network can create transaction, when some node creates a new transaction
When, which can broadcast the transaction application to the whole network, and there are the accounting nodes of processing trading capacity to receive this friendship
Easily after application, can carry out verification processing to the transaction application will be put into itself for the transaction application when the authentication succeeds
It is stored in the block of creation, when the quantity of the transaction application stored in block reaches preset threshold, accounting nodes will
This block is packaged, and by the transaction application broadcast stored in the block in other nodes into network.
Currently, accounting nodes are to reception in order to avoid the case where same fund is for paying two transaction applications occurs
The more transaction applications arrived carry out serial verification processing, i.e. accounting nodes every time can only carry out at verifying a transaction application
Reason.However, in practical applications, when the transaction application quantity that accounting nodes receive is excessive, accounting nodes are according to reception
To more transaction applications time sequencing successively to every transaction application carry out verification processing when, can take considerable time, thus
The treatment effeciency for causing accounting nodes to carry out verification processing to the more transaction applications received is lower.
Summary of the invention
In view of this, the transaction processing method and device provided by the invention based on block chain, main purpose are to improve
Accounting nodes carry out the treatment effeciency of verification processing to the more transaction applications received.
To solve the above-mentioned problems, present invention generally provides following technical solutions:
In a first aspect, the present invention provides a kind of transaction processing methods based on block chain, this method comprises:
Accounting nodes obtain multiple transaction applications, wherein multiple transaction applications are the accounting nodes when default
Between the transaction application that receives in interval, the transaction application includes Transaction Information and digital signature, and the Transaction Information is by handing over
Easy promoter creates transaction and generates;
According to each transaction apply corresponding Transaction Information to the corresponding digital signature of multiple transaction applications into
The processing of row parallel check;
According to verification, successfully each transaction applies for that corresponding Transaction Information divides multiple transaction applications
Group obtains N number of set, so that the multiple transaction applications for including in each set are different transaction initiator's wounds
The transaction application built;
Corresponding Transaction Information, which carries out parallel proof, successively to be applied for the multiple transaction for including in each set
Processing;
The multiple transaction applications being proved to be successful are put into block and are stored.
Optionally, the transaction application further include: corresponding public key is applied in the transaction;It is described according to each transaction
Apply for that corresponding Transaction Information applies for that corresponding digital signature carries out parallel check processing to multiple transaction, including
Respectively using each transaction apply corresponding public key to the corresponding digital signature of each transaction application into
Row decryption applies for corresponding first summary info to obtain each transaction;
Corresponding Transaction Information, which carries out Hash processing, to be applied to each transaction, each transaction application is generated and corresponds to
The second summary info;
Judge each transaction applies for whether corresponding first summary info and the second summary info are identical;
If they are the same, it is determined that corresponding digital signature verification success is applied in the transaction.
Optionally, the Transaction Information includes: that corresponding transaction initiator address is applied in the transaction;It is described according to verification
Successfully each transaction applies for that corresponding Transaction Information is grouped multiple transaction applications, obtains N number of set, makes
Obtain the transaction application that the multiple transaction applications for including in each set create for the different transaction initiators, packet
It includes:
According to verification, successfully each transaction applies for that multiple transaction are applied in corresponding transaction initiator address
It is grouped, obtains N number of set, so that the multiple transaction applications for including in each set are the different transaction hairs
Play the transaction application of person's creation.
Optionally, the Transaction Information further include: corresponding transaction amount is applied in the transaction;It is described successively to each institute
It states the multiple transaction for including in set and applies for that corresponding Transaction Information carries out parallel proof processing, comprising:
The multiple transaction applications for including in each set are successively extracted, so that the accounting nodes are to N number of institute
It states set and carries out serial process;
Judge each of to include that the transaction applies for whether corresponding transaction initiator address has payment in the set
The ability of corresponding transaction amount;
If so, determining that the transaction applies for that corresponding Transaction Information is proved to be successful.
Optionally, corresponding Transaction Information successively is applied for the multiple transaction for including in each set described
After carrying out parallel proof processing, the method also includes:
The transaction application of verification failure and the transaction application of authentication failed are subjected to delete processing.
Second aspect, the present invention also provides a kind of traction processing apparatus based on block chain, which includes:
Acquiring unit obtains multiple transaction applications for accounting nodes, wherein multiple transaction applications are the book keeping operation
The transaction application that node receives within a preset time interval, the transaction application includes Transaction Information and digital signature, described
Transaction Information creates transaction by transaction initiator and generates;
Verification unit, for applying corresponding Transaction Information to more according to each of the acquiring unit acquisition transaction
A transaction applies for that corresponding digital signature carries out parallel check processing;
Grouped element, for successfully corresponding Transaction Information to be applied in each transaction according to verification unit verification
Multiple transaction applications are grouped, N number of set are obtained, so that the multiple transaction Shens for including in each set
It please be the transaction application of different transaction initiator's creations;
Authentication unit, for multiple transaction successively to including in each of the grouped element division set
Apply for that corresponding Transaction Information carries out parallel proof processing;
Storage unit, multiple transaction applications for the authentication unit to be proved to be successful, which are put into block, deposits
Storage.
Optionally, the transaction application further include: corresponding public key is applied in the transaction;The verification unit includes:
Deciphering module, for applying for that corresponding public key corresponds to each transaction application using each transaction respectively
Digital signature be decrypted, apply for corresponding first summary info to obtain each transaction;
Generation module generates each institute for applying for that corresponding Transaction Information carries out Hash processing to each transaction
It states transaction and applies for corresponding second summary info;
First judgment module, for judging that corresponding first summary info and the second summary info are applied in each transaction
It is whether identical;
First determining module, for judging that corresponding first summary info is applied in the transaction when the first judgment module
When identical as the second summary info, determine that corresponding digital signature verification success is applied in the transaction.
Optionally, the Transaction Information includes: that corresponding transaction initiator address is applied in the transaction;The grouping is single
Member is specifically used for applying corresponding transaction initiator address to multiple transaction Shens according to the successful each transaction of verification
It please be grouped, obtain N number of set, so that the multiple transaction applications for including in each set are the different transaction
The transaction application of promoter's creation.
Optionally, the Transaction Information further include: corresponding transaction amount is applied in the transaction;The authentication unit packet
It includes:
Extraction module, for successively extracting the multiple transaction applications for including in each set, so that the note
Account node carries out serial process to N number of set;
Second judgment module, for judging each of to include that corresponding transaction initiator is applied in the transaction in the set
Whether address has the ability for paying corresponding transaction amount;
Second determining module, for judging the transaction with applying for corresponding transaction initiator when second judgment module
When location has the ability for paying corresponding transaction amount, determine that the transaction applies for that corresponding Transaction Information is proved to be successful.
Optionally, described device further include:
Unit is deleted, for successively applying the multiple transaction for including in each set in the authentication unit
It, will be described in the transaction application and authentication failed of verification failure after corresponding Transaction Information carries out parallel proof processing
Transaction application carries out delete processing.
To achieve the goals above, according to the third aspect of the invention we, a kind of storage medium, the storage medium are provided
Program including storage, wherein equipment where controlling the storage medium in described program operation executes base described above
In the transaction processing method of block chain.
To achieve the goals above, according to the fourth aspect of the invention, a kind of processor is provided, the processor is used for
Run program, wherein described program executes the transaction processing method described above based on block chain when running.
By above-mentioned technical proposal, technical solution provided by the invention is at least had the advantage that
A kind of transaction processing method and device based on block chain provided by the invention, and in the prior art, accounting nodes
It carries out serial verification processing to more transaction applications according to the time sequencing of the more transaction applications received to compare, energy of the present invention
Enough after accounting nodes get the more transaction applications received in prefixed time interval, number corresponding to more transaction applications
Word signature carries out parallel check processing, and is grouped to successfully more transaction applications are verified, so that each collection after grouping
The more transaction applications for including in conjunction are the transaction application of different transaction initiators creation, then successively to including in each set
More transaction applications carry out parallel proof processing.Since the more transaction applications for including in each set after grouping are not
With the transaction application of transaction initiator's creation, to be carried out to the corresponding Transaction Information of more transaction applications in some set
When parallel proof processing, the case where same fund of some transaction initiator is for paying two transaction applications not will cause
Occur, and then improves the treatment effeciency that accounting nodes carry out verification processing to the more transaction applications received.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of transaction processing method flow chart based on block chain provided in an embodiment of the present invention;
Fig. 2 shows another transaction processing method flow charts based on block chain provided in an embodiment of the present invention;
Fig. 3 shows a kind of composition block diagram of traction processing apparatus based on block chain provided in an embodiment of the present invention;
Fig. 4 shows the composition block diagram of another traction processing apparatus based on block chain provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of transaction processing methods based on block chain, as shown in Figure 1, this method is to more
Transaction applies for that corresponding digital signature carries out parallel check processing, and is grouped to successfully more transaction applications are verified, and makes
The more transaction applications for including in each set after must being grouped are the transaction of different transaction initiators creation, then successively to every
The more transaction applications for including in a set carry out parallel proof processing, improve accounting nodes to the more transaction Shens received
The treatment effeciency for row verification processing that come in, this method comprises:
101, accounting nodes obtain multiple transaction applications.
Wherein, multiple transaction applications are the transaction application that accounting nodes receive within a preset time interval, transaction application
In include the information such as Transaction Information and digital signature.Transaction Information is generated in creation process of exchange by transaction initiator,
Transaction Information includes but is not limited to: transaction initiator address, transaction acceptance person address, exchange hour and transaction amount etc..Area
Some node (i.e. transaction initiator) under block chain common recognition mechanism, will be by the corresponding transaction of the transaction after one transaction of creation
The information such as information, digital signature are broadcasted as transaction application to the whole network, right after receiving the transaction application so as to accounting nodes
The transaction application carries out verification processing.Accounting nodes are specifically divided into two when carrying out verification processing to certain transaction application
Step, one, the corresponding digital signature of transaction application is verified, that is, judge whether the transaction application is that transaction is initiated
Person signs and broadcasts to the whole network, and determines whether the corresponding Transaction Information of transaction application is complete;Two, to the transaction Shen
Please corresponding Transaction Information verified, i.e., whether the transaction application is judged according to the corresponding Transaction Information of transaction application
It being capable of successful execution.
In embodiments of the present invention, accounting nodes can in real-time reception network different node broadcasts transaction application, when arriving
When applying for carrying out the time point of verification processing to transaction up to accounting nodes, the more transactions received in prefixed time interval are obtained
Application, carries out at verifying more transaction applications according to the corresponding digital signature of every transaction application and Transaction Information so as to subsequent
Reason.
For example, prefixed time interval is 5 minutes, if accounting nodes last time applies for that the time for carrying out verification processing is to transaction
On December 20th, 2017 10:00:00, then this to transaction apply carry out verification processing time point be on December 20th, 2017
10:05:00 is received at this point, accounting nodes obtain in 10:00:00-2017 on December 20th, 2017 10:04:59 on December 20
The more transaction applications arrived, so as to it is subsequent according to the corresponding digital signature of every transaction application and Transaction Information to more transaction Shens
Row verification processing that come in.It needs to be illustrated, prefixed time interval can be redefined for 1 minute, 5 minutes, 10 minutes
Etc., the embodiment of the present invention is to this without limiting.
102, apply for that corresponding Transaction Information applies for that corresponding digital signature carries out simultaneously to multiple transaction according to each transaction
Row checking treatment.
In embodiments of the present invention, accounting nodes are acquiring the more transaction applications received in prefixed time interval
Afterwards, parallel check processing is carried out to the corresponding digital signature of the more transaction applications received, i.e., simultaneously according to every transaction Shen
Please corresponding Transaction Information checking treatment is carried out to the corresponding digital signature of every transaction application, when determining that certain transaction application is
The corresponding transaction initiator of the transaction application signs and broadcasts to the whole network, and determines the corresponding transaction letter of the transaction application
When ceasing complete, the corresponding digital signature verification success of the transaction application can be determined.
103, according to verification, successfully each transaction applies for that corresponding Transaction Information is grouped multiple transaction application, obtains
To N number of set, so that the multiple transaction applications for including in each set are the transaction application of different transaction initiators creation.
In embodiments of the present invention, accounting nodes carry out at parallel check to the corresponding digital signature of more transaction applications
After reason, according to verification, successfully the corresponding Transaction Information of every transaction application is grouped to successfully more transaction applications are verified
Operation, obtains N number of set, so that the more transaction applications for including in each set are the transaction Shen of different transaction initiators creation
Please, i.e., so that more transaction applications of same transaction initiator creation are stored in different sets, wherein N is positive integer.
For example, accounting nodes have 6 friendships after carrying out parallel check processing to the corresponding digital signature of more transaction applications
Easily application verifies successfully, this corresponding Transaction Information of 6 transaction application is respectively as follows: 1, A of transaction application and 10 bit coin are transferred accounts
To B;2, A of transaction application transfers accounts 5 bit coin to C;3, A of transaction application transfers accounts 15 bit coin to D;Transaction application 4, B
7 bit coin are transferred accounts to A;5, B of transaction application transfers accounts 4 bit coin to C;6, C of transaction application transfers accounts 12 bit coin
To A, wherein A, B, C and D are the corresponding transaction initiator of this 6 transaction application or transaction acceptance person.At this point, being handed over according to every
Easily apply for that corresponding Transaction Information is grouped this 6 transaction application, obtains 3 set, respectively set X, set Y sum aggregate
Close Z, wherein set X includes: transaction application 1, transaction application 4 and transaction application 6;Set Y includes: transaction application 2 and transaction Shen
It please 5;Set Z includes: transaction application 3.
It needs to be illustrated, the verification quantity and every transaction that successfully transaction is applied that above-described embodiment refers to
Apply for that the content that corresponding Transaction Information is included is only to be convenient for expressing, in actual application, the transaction Shen being proved to be successful
Quantity please can may include arbitrary content for any number and the corresponding Transaction Information of every transaction application.
104, parallel proof processing successively is carried out to the corresponding Transaction Information of the multiple transaction applications for including in each set.
In embodiments of the present invention, accounting nodes are grouped to the more transaction applications being proved to be successful, and obtain N number of collection
After conjunction, parallel proof processing successively is carried out to the corresponding Transaction Information of the more transaction applications for including in each set, i.e., to the
After the corresponding Transaction Information progress parallel proof of more transaction applications in one set is disposed, then in second set
The corresponding Transaction Information of more transaction applications carry out parallel proof processing, and so on.When corresponding according to certain transaction application
Transaction Information determine the transaction application can successful execution when, can determine the corresponding Transaction Information of transaction application
It is proved to be successful.
It needs to be illustrated, since the more transaction applications for including in each set are different transaction initiators wound
Therefore the transaction application built is carrying out parallel proof processing to the corresponding Transaction Information of more transaction applications in some set,
When carrying out verification processing to the corresponding Transaction Information of every transaction application in some set simultaneously, some friendship not will cause
The case where same fund of easy promoter is for paying two transaction applications occurs.
105, the multiple transaction applications being proved to be successful are put into block and are stored.
In the present invention is implemented, accounting nodes are successively testing the more transaction applications for including in each set parallel
After card processing, the more transaction applications being proved to be successful is put into the block of the accounting nodes itself creation and is stored, so as to
It is subsequent that when the quantity of the transaction application stored in the block reaches preset threshold, the block is packaged by accounting nodes, and
By it is being stored in the block, have verified that in successfully other nodes into network of transaction application broadcast.
A kind of transaction processing method based on block chain provided in an embodiment of the present invention, and in the prior art, accounting nodes
It carries out serial verification processing to more transaction applications according to the time sequencing of the more transaction applications received to compare, the present invention is real
Applying example can be after accounting nodes gets the more transaction applications received in prefixed time interval, to more transaction applications pair
The digital signature answered carries out parallel check processing, and is grouped to successfully more transaction applications are verified, so that after grouping
The more transaction applications for including in each set are the transaction application of different transaction initiators creation, then successively to each set
In include more transaction applications carry out parallel proof processing.Due to the more transaction Shens for including in each set after grouping
It please be the transaction application of different transaction initiators creation, to believe to the corresponding transaction of more transaction applications in some set
When breath carries out parallel proof processing, the same fund of some transaction initiator not will cause for paying two transaction applications
The case where occur, and then improve the treatment effeciency that accounting nodes carry out verification processing to more transaction applications for receiving.
Trading processing side below in order to be explained in more detail, the embodiment of the invention provides another kind based on block chain
Method especially carries out the specific method of parallel check processing to the corresponding digital signature of more transaction applications, and to same collection
The corresponding Transaction Information of the more transaction applications for including in conjunction carries out the specific method of parallel proof processing, it is specific as shown in Fig. 2,
This method comprises:
201, accounting nodes obtain multiple transaction applications.
Wherein, multiple transaction applications are obtained about 201, accounting nodes, the description of Fig. 1 corresponding part, this hair can be referred to
Bright embodiment will not be described in great detail herein.
202, apply for that corresponding Transaction Information applies for that corresponding digital signature carries out simultaneously to multiple transaction according to each transaction
Row checking treatment.
Wherein, in every transaction application further include: the corresponding public key of transaction application.Transaction initiator trades in creation
In the process, corresponding Transaction Information can be generated, at this point, transaction initiator is firstly, carry out Hash processing to the Transaction Information of generation,
Obtain the corresponding summary info of the transaction;Then, the summary info is encrypted using the private key of itself to obtain the transaction pair
The digital signature answered, and corresponding public key is generated by preset algorithm according to the private key of itself;Finally, transaction initiator should
The corresponding Transaction Information of transaction, digital signature and public key are broadcasted as transaction application to the whole network, so that accounting nodes are connecing
After receiving the transaction application, the corresponding digital signature of the transaction application is carried out by the transaction application corresponding public key
Checking treatment.
In embodiments of the present invention, accounting nodes are acquiring the more transaction applications received in prefixed time interval
Afterwards, parallel check processing is carried out to the corresponding digital signature of the more transaction applications received.Below will to accounting nodes how
Parallel check processing is carried out to the corresponding digital signature of the more transaction applications received to be described in detail.
(1) the corresponding digital signature of every transaction application is solved using the corresponding public key of every transaction application respectively
It is close, to obtain corresponding first summary info of every transaction application.
In embodiments of the present invention, accounting nodes are first when verifying to the corresponding digital signature of more transaction applications
First the corresponding digital signature of every transaction application is decrypted using the corresponding public key of every transaction application, to obtain every
Corresponding first summary info is applied in transaction.
(2) Hash processing is carried out to the corresponding Transaction Information of every transaction application, generates every transaction application corresponding the
Two summary infos.
In embodiments of the present invention, accounting nodes are after obtaining corresponding first summary info of every transaction application, to every
The corresponding Transaction Information of transaction application carries out Hash processing, generates corresponding second summary info of every transaction application.
(3) judge whether corresponding first summary info of every transaction application and the second summary info are identical.
In embodiments of the present invention, accounting nodes are obtaining corresponding first summary info of every transaction application and respectively
After two summary infos, accounting nodes judge whether are corresponding first summary info of every transaction application and the second summary info respectively
It is identical.
(4) if they are the same, it is determined that corresponding digital signature verification success is applied in transaction.
In embodiments of the present invention, when corresponding first summary info of certain transaction application is identical as the second summary info
When, it can determine that the transaction application is signed and broadcasted to the whole network for the corresponding transaction initiator of the transaction application, and
It can determine that the corresponding Transaction Information of transaction application is complete Transaction Information, it can determine that the transaction application is corresponding
Digital signature verification success.
203, according to verification, successfully each transaction applies for that corresponding transaction initiator address applies carrying out to multiple transaction
Grouping, obtains N number of set, so that the multiple transaction applications for including in each set are the transaction Shen of different transaction initiators creation
Please.
It wherein, include: the transaction initiator for creating the transaction application in the corresponding Transaction Information of every transaction application
Transaction initiator address.
In embodiments of the present invention, accounting nodes carry out at parallel check to the corresponding digital signature of more transaction applications
After reason, according to verification successfully the corresponding transaction initiator address of every transaction application to verify successfully more transaction applications into
Row division operation obtains N number of set, so that the more transaction applications for including in each set after grouping are different transaction initiation
The transaction application of person's creation, i.e., so that more transaction applications of same transaction initiator creation are stored in different sets, wherein
N is positive integer.
204, parallel proof processing successively is carried out to the corresponding Transaction Information of the multiple transaction applications for including in each set.
Wherein, in the corresponding Transaction Information of every transaction application further include: the corresponding transaction amount of transaction application.
In embodiments of the present invention, accounting nodes are grouped to the more transaction applications being proved to be successful, and obtain N number of collection
After conjunction, parallel proof processing successively is carried out to the corresponding Transaction Information of the more transaction applications for including in each set.Below will
How accounting nodes successively carry out at parallel proof the corresponding Transaction Information of the more transaction applications for including in each set
Reason is described in detail.
(1) the more transaction applications for including in each set are successively extracted, so that accounting nodes carry out serially N number of set
Processing.
In embodiments of the present invention, accounting nodes are tested to the corresponding Transaction Information of transaction application in different sets
Card processing when, be serial process, i.e., accounting nodes to first set in the corresponding Transaction Information of more transaction applications into
After row parallel proof is disposed, then parallel proof is carried out to the corresponding Transaction Information of more transaction applications in second set
Processing, and so on.Therefore, accounting nodes need successively to extract the more transaction applications for including in each set, so that
Accounting nodes can carry out serial process to N number of set.
(2) judge whether the corresponding transaction initiator address of more transaction applications for including in set has payment corresponding
The ability of transaction amount.
In embodiments of the present invention, after more transaction applications that accounting nodes include in extracting some set, sentence parallel
Break the corresponding transaction initiator address of every transaction application in the set whether have pay the corresponding friendship of transaction application
The ability of the easy amount of money, i.e., obtain corresponding transaction initiator's according to the corresponding transaction initiator address of every transaction application respectively
The balance of funding, then judges whether the balance of funding of the corresponding transaction initiator of every transaction application is greater than or equal to correspondence respectively
Transaction amount, when the balance of funding of the corresponding transaction initiator of certain transaction application is corresponding more than or equal to the transaction application
Transaction amount when, it is determined that the corresponding transaction initiator address of the transaction application have pay the transaction application it is corresponding
The ability of transaction amount.
(3) if so, determining that transaction applies for that corresponding Transaction Information is proved to be successful.
In embodiments of the present invention, when determine the corresponding transaction initiator address of certain transaction application have pay this hand over
When easily applying for the ability of corresponding transaction amount, it can determine that the corresponding Transaction Information of transaction application is proved to be successful.
It needs to be illustrated, since the more transaction applications for including in each set are different transaction initiators wound
Therefore the transaction application built is carrying out parallel proof processing to the corresponding Transaction Information of more transaction applications in some set,
When carrying out verification processing to the corresponding Transaction Information of every transaction application in some set simultaneously, some friendship not will cause
The case where same fund of easy promoter is for paying two transaction applications occurs.
205, the transaction application and the transaction application of authentication failed of verification failure are subjected to delete processing.
In embodiments of the present invention, accounting nodes are carrying out school to the corresponding digital signature of more transaction applications got
Test processing, and to verification after successfully the corresponding Transaction Information of more transaction applications carries out verification processing, it will verification failure
Transaction application and the transaction application of authentication failed carry out delete processing, so as to avoid the friendship of verification failure and authentication failed
Easily the case where memory space resource of the excessive occupancy accounting nodes of application, occurs.
206, the multiple transaction applications being proved to be successful are put into block and are stored.
Wherein, about 206, the multiple transaction applications being proved to be successful be put into block store, Fig. 1 pairs can be referred to
The description of part is answered, the embodiment of the present invention will not be described in great detail herein.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of storage Jie
Matter, the storage medium include the program of storage, wherein equipment where controlling the storage medium in described program operation is held
The row transaction processing method described above based on block chain.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of processor,
The processor is for running program, wherein described program executes the trading processing described above based on block chain when running
Method.
Further, as the realization to method shown in above-mentioned Fig. 1 and Fig. 2, another embodiment of the present invention additionally provides one
Traction processing apparatus of the kind based on block chain.The Installation practice is corresponding with preceding method embodiment, is easy to read, the present apparatus
Embodiment no longer repeats the detail content in preceding method embodiment one by one, it should be understood that the dress in the present embodiment
The full content realized in preceding method embodiment can be corresponded to by setting.It is more to what is received that the device is applied to raising accounting nodes
Transaction application carries out the treatment effeciency of verification processing, specifically as shown in figure 3, the device includes:
Acquiring unit 31 obtains multiple transaction applications for accounting nodes, wherein multiple transaction applications are the note
The transaction application that account node receives within a preset time interval, the transaction application includes Transaction Information and digital signature, institute
It states Transaction Information and transaction generation is created by transaction initiator;
Verification unit 32, for applying corresponding Transaction Information to more according to each of the acquisition of acquiring unit 31 transaction
A transaction applies for that corresponding digital signature carries out parallel check processing;
Grouped element 33 applies for corresponding Transaction Information for verifying successfully each transaction according to verification unit 32
Multiple transaction applications are grouped, N number of set are obtained, so that the multiple transaction Shens for including in each set
It please be the transaction application of different transaction initiator's creations;
Authentication unit 34, for multiple transaction successively to including in each of the division of grouped element 33 set
Apply for that corresponding Transaction Information carries out parallel proof processing;
Storage unit 35, multiple transaction applications for authentication unit 34 to be proved to be successful, which are put into block, deposits
Storage.
Further, as shown in figure 4, the transaction is applied further include: corresponding public key is applied in the transaction;Verification unit
32 include:
Deciphering module 321, for applying for that corresponding public key applies for each transaction using each transaction respectively
Corresponding digital signature is decrypted, and applies for corresponding first summary info to obtain each transaction;
Generation module 322 generates each for applying for that corresponding Transaction Information carries out Hash processing to each transaction
Corresponding second summary info is applied in the transaction;
First judgment module 323, for judging that corresponding first summary info and the second abstract are applied in each transaction
Whether information is identical;
First determining module 324, for judging the corresponding first abstract letter of the transaction application when first judgment module 323
When ceasing identical as the second summary info, determine that corresponding digital signature verification success is applied in the transaction.
Further, as shown in figure 4, the Transaction Information includes: that corresponding transaction initiator address is applied in the transaction;
Grouped element 33 is specifically used for applying corresponding transaction initiator address to multiple institutes according to the successful each transaction of verification
It states transaction application to be grouped, obtains N number of set, so that the multiple transaction applications for including in each set are difference
The transaction application of transaction initiator's creation.
Further, as shown in figure 4, the Transaction Information further include: corresponding transaction amount is applied in the transaction;Verifying
Unit 34 includes:
Extraction module 341, for successively extracting the multiple transaction applications for including in each set, so that described
Accounting nodes carry out serial process to N number of set;
Second judgment module 342, for judging each of to include that the transaction applies for that corresponding transaction is sent out in the set
Play whether person address has the ability for paying corresponding transaction amount;
Second determining module 343, for judging that corresponding transaction initiator is applied in the transaction when the second judgment module 342
When address has the ability for paying corresponding transaction amount, determine that the transaction applies for that corresponding Transaction Information is proved to be successful.
Further, as shown in figure 4, the device further include:
Unit 36 is deleted, for successively applying the multiple transaction for including in each set in authentication unit 34
It, will be described in the transaction application and authentication failed of verification failure after corresponding Transaction Information carries out parallel proof processing
Transaction application carries out delete processing.
A kind of traction processing apparatus based on block chain provided in an embodiment of the present invention, and in the prior art, accounting nodes
It carries out serial verification processing to more transaction applications according to the time sequencing of the more transaction applications received to compare, the present invention is real
Applying example can be after accounting nodes gets the more transaction applications received in prefixed time interval, to more transaction applications pair
The digital signature answered carries out parallel check processing, and is grouped to successfully more transaction applications are verified, so that after grouping
The more transaction applications for including in each set are the transaction application of different transaction initiators creation, then successively to each set
In include more transaction applications carry out parallel proof processing.Due to the more transaction Shens for including in each set after grouping
It please be the transaction application of different transaction initiators creation, to believe to the corresponding transaction of more transaction applications in some set
When breath carries out parallel proof processing, the same fund of some transaction initiator not will cause for paying two transaction applications
The case where occur, and then improve the treatment effeciency that accounting nodes carry out verification processing to more transaction applications for receiving.Together
When, accounting nodes are carrying out checking treatment to the corresponding digital signature of more transaction applications, and to verification successfully more friendships
After easily applying for that corresponding Transaction Information carries out verification processing, the transaction application that can verify failure and authentication failed is carried out at deletion
Reason, so as to avoid verification from failing and the feelings of the transaction application of the authentication failed excessively memory space resource of occupancy accounting nodes
Condition occurs.
The traction processing apparatus based on block chain includes processor and memory, above-mentioned acquiring unit, verification unit,
Grouped element, authentication unit and storage unit etc. store in memory as program unit, are stored in by processor execution
Above procedure unit in memory realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, the processing of verification processing is carried out to improve accounting nodes to the more transaction applications received by adjusting kernel parameter
Efficiency.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM), memory includes at least one storage
Chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
Transaction processing method based on block chain described in any one of existing above embodiments.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation
Transaction processing method based on block chain described in any one of Shi Zhihang above embodiments.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor perform the steps of when executing program
Accounting nodes obtain multiple transaction applications, wherein multiple transaction applications are the accounting nodes when default
Between the transaction application that receives in interval, the transaction application includes Transaction Information and digital signature, and the Transaction Information is by handing over
Easy promoter creates transaction and generates;
According to each transaction apply corresponding Transaction Information to the corresponding digital signature of multiple transaction applications into
The processing of row parallel check;
According to verification, successfully each transaction applies for that corresponding Transaction Information divides multiple transaction applications
Group obtains N number of set, so that the multiple transaction applications for including in each set are different transaction initiator's wounds
The transaction application built;
Corresponding Transaction Information, which carries out parallel proof, successively to be applied for the multiple transaction for including in each set
Processing;
The multiple transaction applications being proved to be successful are put into block and are stored.
Further, the transaction application further include: corresponding public key is applied in the transaction;It is described according to each friendship
Easily apply for that corresponding Transaction Information applies for that corresponding digital signature carries out parallel check processing to multiple transaction, including
Respectively using each transaction apply corresponding public key to the corresponding digital signature of each transaction application into
Row decryption applies for corresponding first summary info to obtain each transaction;
Corresponding Transaction Information, which carries out Hash processing, to be applied to each transaction, each transaction application is generated and corresponds to
The second summary info;
Judge each transaction applies for whether corresponding first summary info and the second summary info are identical;
If they are the same, it is determined that corresponding digital signature verification success is applied in the transaction.
Further, the Transaction Information includes: that corresponding transaction initiator address is applied in the transaction;It is described according to school
It tests successfully each transaction and applies for that corresponding Transaction Information is grouped multiple transaction applications, obtain N number of set,
So that transaction application of the multiple transaction applications for including in each set for different transaction initiator's creations, packet
It includes:
According to verification, successfully each transaction applies for that multiple transaction are applied in corresponding transaction initiator address
It is grouped, obtains N number of set, so that the multiple transaction applications for including in each set are the different transaction hairs
Play the transaction application of person's creation.
Further, the Transaction Information further include: corresponding transaction amount is applied in the transaction;It is described successively to each
The multiple transaction for including in the set apply for that corresponding Transaction Information carries out parallel proof processing, comprising:
The multiple transaction applications for including in each set are successively extracted, so that the accounting nodes are to N number of institute
It states set and carries out serial process;
Judge each of to include that the transaction applies for whether corresponding transaction initiator address has payment in the set
The ability of corresponding transaction amount;
If so, determining that the transaction applies for that corresponding Transaction Information is proved to be successful.
Further, corresponding transaction, which is believed, successively to be applied for the multiple transaction for including in each set described
After breath carries out parallel proof processing, the method also includes:
The transaction application of verification failure and the transaction application of authentication failed are subjected to delete processing.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program code of beginningization there are as below methods step: accounting nodes obtain multiple transaction applications, wherein multiple transaction apply be
The transaction application that the accounting nodes receive within a preset time interval, the transaction application include Transaction Information and number label
Name, the Transaction Information create transaction by transaction initiator and generate;Apply for corresponding Transaction Information pair according to each transaction
Multiple transaction apply for that corresponding digital signature carries out parallel check processing;According to verification successfully each transaction application
Corresponding Transaction Information is grouped multiple transaction applications, N number of set is obtained, so that including in each set
The transaction application that multiple transaction applications create for the different transaction initiators;Successively to including in each set
Multiple transaction apply for that corresponding Transaction Information carries out parallel proof processing;The multiple transaction applications being proved to be successful are put
Enter in block and is stored.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (12)
1. a kind of transaction processing method based on block chain characterized by comprising
Accounting nodes obtain multiple transaction applications, wherein multiple transaction applications are the accounting nodes between preset time
Every the interior transaction application received, the transaction application includes Transaction Information and digital signature, and the Transaction Information is sent out by transaction
It plays person and creates transaction generation;
Apply for that corresponding Transaction Information applies for that corresponding digital signature carries out simultaneously to multiple transaction according to each transaction
Row checking treatment;
According to verification, successfully each transaction applies for that corresponding Transaction Information is grouped multiple transaction applications, obtains
To N number of set, so that the multiple transaction applications for including in each set create for the different transaction initiators
Transaction application;
Corresponding Transaction Information, which carries out parallel proof processing, successively to be applied for the multiple transaction for including in each set,
After applying for that corresponding Transaction Information progress parallel proof is disposed to the multiple transaction for including in first set, then
Corresponding Transaction Information, which carries out parallel proof processing, to be applied to the multiple transaction for including in second set, and so on;
The multiple transaction applications being proved to be successful are put into block and are stored.
2. the method according to claim 1, wherein the transaction is applied further include: the transaction application corresponds to
Public key;It is described to apply for that corresponding Transaction Information applies for corresponding digital signature to multiple transaction according to each transaction
Parallel check processing is carried out, including
Apply for that corresponding public key applies for that corresponding digital signature solves to each transaction using each transaction respectively
It is close, apply for corresponding first summary info to obtain each transaction;
Corresponding Transaction Information, which carries out Hash processing, to be applied to each transaction, each transaction is generated and applies for corresponding the
Two summary infos;
Judge each transaction applies for whether corresponding first summary info and the second summary info are identical;
If they are the same, it is determined that corresponding digital signature verification success is applied in the transaction.
3. according to the method described in claim 2, it is characterized in that, the Transaction Information includes: that the transaction application is corresponding
Transaction initiator address;It is described that according to verification, successfully each transaction applies corresponding Transaction Information to multiple transaction
Application is grouped, and obtains N number of set, so that the multiple transaction applications for including in each set are the different friendships
The transaction application of easy promoter's creation, comprising:
According to verification, successfully each transaction applies for that corresponding transaction initiator address carries out multiple transaction applications
Grouping, obtains N number of set, so that the multiple transaction applications for including in each set are the different transaction initiators
The transaction application of creation.
4. according to the method described in claim 3, it is characterized in that, the Transaction Information further include: the transaction application corresponds to
Transaction amount;It is described that corresponding Transaction Information, which carries out simultaneously, successively to be applied for the multiple transaction for including in each set
Row verification processing, comprising:
The multiple transaction applications for including in each set are successively extracted, so that the accounting nodes are to N number of collection
It closes and carries out serial process;
Judge each of to include that the transaction applies for whether corresponding transaction initiator address there is payment to correspond in the set
Transaction amount ability;
If so, determining that the transaction applies for that corresponding Transaction Information is proved to be successful.
5. method according to any of claims 1-4, which is characterized in that described successively in each set
After the multiple transaction for including apply for that corresponding Transaction Information carries out parallel proof processing, the method also includes:
The transaction application of verification failure and the transaction application of authentication failed are subjected to delete processing.
6. a kind of traction processing apparatus based on block chain characterized by comprising
Acquiring unit obtains multiple transaction applications for accounting nodes, wherein multiple transaction applications are the accounting nodes
The transaction application received within a preset time interval, the transaction application includes Transaction Information and digital signature, the transaction
Information creates transaction by transaction initiator and generates;
Verification unit, for applying corresponding Transaction Information to multiple institutes according to each of the acquiring unit acquisition transaction
It states transaction and applies for that corresponding digital signature carries out parallel check processing;
Grouped element, for successfully each transaction to apply corresponding Transaction Information to more according to verification unit verification
A transaction application is grouped, and obtains N number of set, so that the multiple transaction applications for including in each set are
The transaction application of different transaction initiator's creations;
Authentication unit, for successively applying the multiple transaction for including in each of the grouped element division set
Corresponding Transaction Information carries out parallel proof processing, i.e., applies for corresponding friendship to the multiple transaction for including in first set
After easy information progress parallel proof is disposed, then corresponding transaction is applied for the multiple transaction for including in second set
Information carries out parallel proof processing, and so on;
Storage unit, multiple transaction applications for the authentication unit to be proved to be successful, which are put into block, to be stored.
7. device according to claim 6, which is characterized in that the transaction application further include: the transaction application corresponds to
Public key;The verification unit includes:
Deciphering module, for applying for that corresponding public key applies for corresponding number to each transaction using each transaction respectively
Word signature is decrypted, and applies for corresponding first summary info to obtain each transaction;
Generation module generates each friendship for applying for that corresponding Transaction Information carries out Hash processing to each transaction
Easily apply for corresponding second summary info;
First judgment module, for judging that each transaction applies for whether are corresponding first summary info and the second summary info
It is identical;
First determining module, for judge corresponding first summary info of transaction application and the when the first judgment module
When two summary infos are identical, determine that corresponding digital signature verification success is applied in the transaction.
8. device according to claim 7, which is characterized in that the Transaction Information includes: that the transaction application is corresponding
Transaction initiator address;The grouped element is specifically used for according to the verification successfully corresponding transaction of each transaction application
Originator address is grouped multiple transaction applications, N number of set is obtained, so that include in each set is multiple
The transaction application that the transaction application creates for the different transaction initiators.
9. device according to claim 8, which is characterized in that the Transaction Information further include: the transaction application corresponds to
Transaction amount;The authentication unit includes:
Extraction module, for successively extracting the multiple transaction applications for including in each set, so that the book keeping operation saves
Point carries out serial process to N number of set;
Second judgment module, for judging each of to include that corresponding transaction initiator address is applied in the transaction in the set
Whether there is the ability for paying corresponding transaction amount;
Second determining module, for judging that corresponding transaction initiator address tool is applied in the transaction when second judgment module
When having the ability for paying corresponding transaction amount, determine that the transaction applies for that corresponding Transaction Information is proved to be successful.
10. the device according to any one of claim 6-9, which is characterized in that described device further include:
Unit is deleted, for successively corresponding to the multiple transaction applications for including in each set in the authentication unit
Transaction Information carry out parallel proof processing after, will verification failure the transaction application and authentication failed the transaction
Application carries out delete processing.
11. a kind of storage medium, which is characterized in that the storage medium stores program, wherein controlled in described program operation
Equipment perform claim where the storage medium requires 1 at the transaction based on block chain described in any one of claim 5
Reason method.
12. a kind of traction processing apparatus based on block chain, which is characterized in that the traction processing apparatus packet based on block chain
Memory and processor are included, the memory is for storing program, and the processor is for running program, wherein described program
Perform claim requires 1 to the transaction processing method based on block chain described in any one of claim 5 when operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711446767.7A CN108322309B (en) | 2017-12-27 | 2017-12-27 | Transaction processing method and device based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711446767.7A CN108322309B (en) | 2017-12-27 | 2017-12-27 | Transaction processing method and device based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108322309A CN108322309A (en) | 2018-07-24 |
CN108322309B true CN108322309B (en) | 2019-10-11 |
Family
ID=62893399
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711446767.7A Active CN108322309B (en) | 2017-12-27 | 2017-12-27 | Transaction processing method and device based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108322309B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109165324A (en) * | 2018-08-20 | 2019-01-08 | 深圳市元征科技股份有限公司 | A kind of transaction data packaging method and relevant apparatus |
CN109242663A (en) * | 2018-09-05 | 2019-01-18 | 金蝶软件(中国)有限公司 | A kind of bookkeeping methods and system based on block chain technology |
CN109377362B (en) * | 2018-09-19 | 2022-05-13 | 联动优势科技有限公司 | Transaction data processing method and device |
CN110929288B (en) * | 2018-12-07 | 2021-06-01 | 深圳市智税链科技有限公司 | Method for generating public key certificate, certificate authority and medium |
CN110135985B (en) * | 2019-04-04 | 2021-07-27 | 杭州抖音科技有限公司 | Parallel execution method and system for transactions on block chain |
CN110197372A (en) * | 2019-05-24 | 2019-09-03 | 杭州复杂美科技有限公司 | Means of defence, equipment and the storage medium of trading group attack |
CN110781196A (en) * | 2019-09-06 | 2020-02-11 | 深圳壹账通智能科技有限公司 | Block chain transaction processing method and device, computer equipment and storage medium |
CN111144887A (en) * | 2019-12-20 | 2020-05-12 | 辽宁振兴银行股份有限公司 | Protection method for block chain shared data |
CN112884481A (en) * | 2020-09-15 | 2021-06-01 | 刘明明 | Block chain payment processing method based on cloud computing and big data service center |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106682984A (en) * | 2016-10-27 | 2017-05-17 | 上海亿账通区块链科技有限公司 | Block chain-based transaction business processing method and system |
CN106980649A (en) * | 2017-02-28 | 2017-07-25 | 阿里巴巴集团控股有限公司 | The method and apparatus and business subclass for writing block chain business datum determine method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102467726B (en) * | 2010-11-04 | 2015-07-29 | 阿里巴巴集团控股有限公司 | A kind of data processing method based on online trade platform and device |
CN105654277A (en) * | 2014-12-08 | 2016-06-08 | 阿里巴巴集团控股有限公司 | Transaction operation identification method and server |
US10515409B2 (en) * | 2016-03-23 | 2019-12-24 | Domus Tower, Inc. | Distributing work load of high-volume per second transactions recorded to append-only ledgers |
-
2017
- 2017-12-27 CN CN201711446767.7A patent/CN108322309B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106682984A (en) * | 2016-10-27 | 2017-05-17 | 上海亿账通区块链科技有限公司 | Block chain-based transaction business processing method and system |
CN106980649A (en) * | 2017-02-28 | 2017-07-25 | 阿里巴巴集团控股有限公司 | The method and apparatus and business subclass for writing block chain business datum determine method |
Also Published As
Publication number | Publication date |
---|---|
CN108322309A (en) | 2018-07-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108322309B (en) | Transaction processing method and device based on block chain | |
CN108053211A (en) | Transaction processing method and device based on block chain | |
CN107392040B (en) | A kind of method and device of common recognition verifying | |
US20190266584A1 (en) | Closed-loop testing of integrated circuit card payment terminals | |
CN108171494A (en) | A kind of data processing method and device | |
CN109063985A (en) | A kind of Application of risk decision method and device of business | |
CN108985742A (en) | Transaction processing method, device and block catenary system | |
CN109359971A (en) | Block chain method of commerce and device, electronic equipment | |
CN105678192B (en) | A kind of key application method and application apparatus based on smart card | |
CN106021091B (en) | Internet bank's simulation system and method | |
CN110147990A (en) | Payment based on block chain withholds contracting method and device, electronic equipment | |
CN110245475A (en) | Auth method and device | |
CN108234385A (en) | A kind of method for authenticating user identity and device | |
CN111818095B (en) | Tax refunding method and device based on block chain and electronic equipment | |
CN107833037A (en) | A kind of method that business by stages is realized based on credit | |
CN109377224A (en) | Block chain method of commerce and device, electronic equipment | |
CN109194483A (en) | Data verification method based on block chain | |
CN109257366A (en) | The method and apparatus that authentication is carried out to user | |
CN110263582A (en) | A kind of account checking method based on alliance's chain, device and electronic equipment | |
CN109345267A (en) | The method for anti-counterfeit and system of wine based on block chain | |
CN105139197A (en) | Business processing unit and vehicle-mounted unit | |
CN109961288A (en) | Method of commerce and device based on Proxy Signature | |
CN107169854B (en) | Data processing method and device | |
CN110147999A (en) | A kind of transaction risk recognition methods and device | |
CN110009353A (en) | A kind of account register method, device and electronic equipment based on block chain |
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 |