CN109685507A - The identification of transactions requests validity and initiating method, device, equipment and medium - Google Patents

The identification of transactions requests validity and initiating method, device, equipment and medium Download PDF

Info

Publication number
CN109685507A
CN109685507A CN201811605444.2A CN201811605444A CN109685507A CN 109685507 A CN109685507 A CN 109685507A CN 201811605444 A CN201811605444 A CN 201811605444A CN 109685507 A CN109685507 A CN 109685507A
Authority
CN
China
Prior art keywords
transactions requests
block chain
validity
value
check value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811605444.2A
Other languages
Chinese (zh)
Inventor
肖伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811605444.2A priority Critical patent/CN109685507A/en
Publication of CN109685507A publication Critical patent/CN109685507A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of identification of transactions requests validity and initiating method, device, equipment and media.Wherein, the recognition methods of transactions requests validity is applied to block chain node, this method comprises: obtaining the transactions requests and validity check value transmitted in block chain network;According to the data of the transactions requests and the validity check value, signature operation is carried out, to generate the signature unique value of the transactions requests;According to the local record case to signature value of block chain node, the validity of the transactions requests is determined.It using the technical solution of the embodiment of the present invention, realizes for the transactions requests independent of UTXO, also can accurately carry out validity identification, and then guarantee the correct execution of transactions requests, determine that the validity of transactions requests provides a kind of new approaches.

Description

The identification of transactions requests validity and initiating method, device, equipment and medium
Technical field
The present embodiments relate to block chain data processing technique more particularly to a kind of identification of transactions requests validity and hairs Play method, apparatus, equipment and medium.
Background technique
There are many implementations, such as popular bit coin system and super alliance's linkwork for current block catenary system System etc..Partial Block catenary system is by not spending transaction output (Unspent Transaction Output, abbreviation UTXO) Realize what transaction was transferred accounts, while also there are many block catenary systems is come by intelligent contract, or in conjunction with intelligent contract and UTXO Handle transactions requests.
Need to carry out the judgement of transactions requests validity before executing transactions requests.Validity has included at least the affairs Request was not performed, if be executed, illustrated to be invalid transactions requests.For depending on the affairs of UTXO Request, can be by identifying whether relied on UTXO is effective.It is no longer just effective after UTXO is spent by transactions requests State, therefore, it is impossible to be executed once again.
But in the block catenary system much without coin, the not instead of Money transfer of UTXO handles other affairs and asks It asks, then the validity of transactions requests is difficult to be judged.If cannot effectively judge the validity of transactions requests, it would be possible to allow One legitimate transactions request is repeatedly performed, and has violated the original idea for initiating transaction requestor, or may encroach on and arrive requestor's Interests.
Summary of the invention
The embodiment of the present invention provides a kind of identification of transactions requests validity and initiating method, device, equipment and medium, with reality Referring now to the transactions requests independent of UTXO, validity identification also can be accurately carried out, guarantees the correct execution of transactions requests.
In a first aspect, being applied to the embodiment of the invention provides a kind of transactions requests validity recognition methods of block chain Block chain node, this method comprises:
Obtain the transactions requests and validity check value transmitted in block chain network;
According to the data of the transactions requests and the validity check value, signature operation is carried out, to generate the thing The signature unique value of business request;
According to the local record case to signature value of block chain node, the validity of the transactions requests is determined.
Second aspect, the embodiment of the invention also provides the initiations of the transactions requests of block chain, this method comprises:
Generate transactions requests;
Validity check value is generated, validity check value and the transactions requests are bound;
The transactions requests and the validity check value are initiated in block chain network;
Wherein, the validity check value is used for for block chain link point according to the data of the transactions requests and described has Effect property check value carries out signature operation, to generate the signature unique value of the transactions requests, and it is locally right according to block chain node The record case of signature value determines the validity of the transactions requests.
The third aspect, the embodiment of the invention also provides the transactions requests validity identification devices of block chain, are configured at area Block chain node, the device include:
Module is obtained, for obtaining the transactions requests transmitted in block chain network and validity check value;
Computing module carries out signature operation for the data and the validity check value according to the transactions requests, To generate the signature unique value of the transactions requests;
Validity determining module, for determining the affairs according to the local record case to signature value of block chain node The validity of request.
Fourth aspect, the embodiment of the invention also provides the transactions requests originating device of block chain, which includes:
Generation module is requested, for generating transactions requests;
Data generate binding module and tie up validity check value and the transactions requests for generating validity check value It is fixed;
Initiation module, for initiating the transactions requests and the validity check value in block chain network;
Wherein, the validity check value is used for for block chain link point according to the data of the transactions requests and described has Effect property check value carries out signature operation, to generate the signature unique value of the transactions requests, and it is locally right according to block chain node The record case of signature value determines the validity of the transactions requests.
5th aspect, the embodiment of the invention also provides a kind of equipment, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the transactions requests validity recognition methods of any block chain in first aspect, or realizes in second aspect and appoint The transactions requests initiating method of the meaning block chain.
6th aspect, the embodiment of the invention also provides a kind of storage mediums, are stored thereon with computer program, the program The transactions requests validity recognition methods of any block chain in first aspect is realized when being executed by processor, or is realized The transactions requests initiating method of any block chain in second aspect.
The transactions requests validity identification of block chain provided in an embodiment of the present invention and initiating method, device, equipment and Jie Matter, before the transactions requests transmitted in block chain network are executed by block chain node, block chain node can be calculated by signature Method, data and validity check value to the transactions requests of acquisition carry out signature operation, to generate the uniqueness of transactions requests Signature value;It is then that can determine the validity of transactions requests according to the local record case to signature value of block chain node.It compares In existing technical solution, the present embodiment is realized to determine that the validity of transactions requests provides a kind of new approaches for not Dependent on the transactions requests of UTXO, validity identification also can be accurately carried out, and then guarantee the correct execution of transactions requests.
Detailed description of the invention
Fig. 1 is a kind of process of the transactions requests validity recognition methods of the block chain provided in the embodiment of the present invention one Figure;
Fig. 2 is a kind of process of the transactions requests validity recognition methods of the block chain provided in the embodiment of the present invention two Figure;
Fig. 3 is a kind of flow chart of the transactions requests initiating method of the block chain provided in the embodiment of the present invention three;
Fig. 4 is the transactions requests initiation and validity recognition methods of a kind of block chain provided in the embodiment of the present invention four Flow chart;
Fig. 5 is that a kind of structure of the transactions requests validity identification device of the block chain provided in the embodiment of the present invention five is shown It is intended to;
Fig. 6 is a kind of structural schematic diagram of the transactions requests originating device of the block chain provided in the embodiment of the present invention six;
Fig. 7 is a kind of structural schematic diagram of the equipment provided in the embodiment of the present invention seven.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the transactions requests validity recognition methods for block chain that the embodiment of the present invention one provides, The present embodiment be applicable to the transactions requests transmitted in block chain network by block chain node execute before, to the transactions requests Validity the case where being identified, be particularly suitable for the field identified to the transactions requests validity independent of UTXO Scape.The scheme of the embodiment of the present invention is applied to the block chain node in block chain network, and this method can be by the affairs of block chain Validity identification device is requested to execute, which can be used hardware and/or the mode of software is realized, and can be integrated in supporting region In the calculating equipment of block chain node.Referring to Fig. 1, this is specifically included:
S110 obtains the transactions requests and validity check value transmitted in block chain network.
In the present embodiment, transactions requests can be transaction request or other requests, such as copyright registration information process request. The transactions requests can be the locally generated issued transaction demand of block chain node, or receive a certain trigger mechanism such as third party When the issued transaction demand that equipment (such as client, terminal device or server) is sent, asked to transmitted by block chain network It asks;It can not also be block chain node, such as terminal device, but data interaction platform that block chain node provides can be passed through (such as visitor Family end interface or webpage etc.) to request transmitted by block chain network.
Validity check value can be a numerical value or character string with uniqueness effect, can be used in verification affairs and asks Seeking Truth is no effectively;Illustratively, validity check value can be random value, and the promoter that specifically can be transactions requests is initiating It before transactions requests, generates, or is generated after a certain intelligent contract by executing at random in advance.Optionally, validity school It tests value and transactions requests corresponds, that is to say, that a transactions requests have the validity check value uniquely determined.The validity Check value has a uniqueness, which can be globally unique, and it is unique to be also possible to part.Such as in setting amount field It is to guarantee uniquely within the scope of block or within the scope of setting time.
In the present embodiment, block chain node can be locally generated a random value before initiating transactions requests in advance, Such as random number, bound as validity check value, and by validity check value with transactions requests;To then have binding to close The validity check value and transactions requests of system are sent to block chain network.Can also be third party device initiate transactions requests it Before, the data interaction platform with block chain node is first passed through, forms transactions requests, and control the block chain node in advance in local A random value is generated, to determine validity check value, then feeds back to transactions requests promoter, the third party used such as user Equipment;Third party device is packaged after validity check data and transactions requests binding, then pass through area by user's signature Block chain node is sent to block chain network.
The available transactions requests transmitted in block chain network of localized nodes and validity check value, then can foundation Validity check value executes the verification operation to the transactions requests validity.
S120 carries out signature operation according to the data of transactions requests and validity check value, to generate transactions requests Signature unique value.
In the present embodiment, the data of transactions requests may include intelligence corresponding to transactions requests itself and transactions requests The parameter etc. of contract;Signature operation is a kind of method of calculate the signature, can be the signature scheme specified in transactions requests as sent out Person's private key or Hash operation are played, is also possible to the signature algorithm such as Hash operation that block chain network is arranged, can also be block Public key or private key of chain node itself etc..Signature value refers to data and validity school using signature algorithm, to transactions requests It tests value and carries out sign generated value, such as cryptographic Hash.
For the ease of to block chain network management, the confidence level and reduction block chain node for increasing signature value are played tricks general Rate etc., in the present embodiment, the signature operation signature algorithm that preferably uses block chain network to be arranged;And since Hash operation has High security, optionally, in the present embodiment, signature operation can be Hash operation, such as SHA256 (Secure Hash Algorithm, secure hash algorithm) algorithm or MD5 algorithm etc..
Specifically, localized nodes after getting transactions requests and validity check value, can use hash algorithm, to thing The data of request of being engaged in and validity check value carry out Hash operation, cryptographic Hash are generated, using the cryptographic Hash as the transactions requests Signature unique value.
S130 determines the validity of transactions requests according to the local record case to signature value of block chain node.
Optionally, localized nodes can locally safeguard the mapping table between a transactions requests and signature value, after being convenient for Continuous inquiry.Specifically, after the uniqueness signature value of transactions requests of the localized nodes acquired in determining, it can be defeated by the signature value Enter into local mapping table and matched, if successful match, illustrates that the signature value has stored, and then can determine the thing Business request had been performed;If non-successful match, illustrate that the signature value is not stored, and then can determine that the transactions requests are not held It went.
Illustratively, according to the local record case to signature value of block chain node, determine that the validity of transactions requests can To include: if that signature value has been locally stored, it is determined that transactions requests are invalid;If locally not stored have signature value, it is determined that Transactions requests are effective, execute transactions requests, and record signature value.
Specifically, after the uniqueness signature value of transactions requests of the localized nodes acquired in determining, if be locally stored The signature value can then determine that the transactions requests be performed, that is, determine that the transactions requests are invalid, then can be by the affairs Request abandons;If locally not stored have the signature value, it can determine that the transactions requests were not performed, that is, determine the affairs Request effectively, then can execute the transactions requests according to normal transaction process flow, be stored in block to generate Transaction Information In chain, while by the transactions requests and its value of signature corresponding record in local mapping table.
It should be noted that the signature unique value in the present embodiment based on transactions requests, it can be determined that initiator node is No to there is phenomenon of playing tricks, repetition has sent the transactions requests of user's signature packing, and if it exists, these are against initiation user's original idea Transactions requests should be regarded as not executing in vain.
Technical solution provided in an embodiment of the present invention, the transactions requests transmitted in block chain network are held by block chain node Before row, block chain node can be by signature algorithm, and data and validity check value to the transactions requests of acquisition carry out Signature operation, to generate the uniqueness signature value of transactions requests;Then according to the local record feelings to signature value of block chain node Condition is that can determine the validity of transactions requests.Compared to existing technical solution, the present embodiment is the effective of determining transactions requests Property provides a kind of new approaches, realizes for the transactions requests independent of UTXO, also can accurately carry out validity identification, into And guarantee the correct execution of transactions requests.
Embodiment two
Fig. 2 is a kind of flow chart of the transactions requests validity recognition methods of block chain provided by Embodiment 2 of the present invention, The present embodiment on the basis of the above embodiments, further to the transactions requests transmitted in block chain network of acquisition and effectively Property check value is explained.Referring to fig. 2, this is specifically included:
S210 obtains the transactions requests transmitted in block chain network.
S220 extracts character string from the preset field of transactions requests, as validity check value.
In the present embodiment, preset field is the field of any null field or specific position in transactions requests;For the ease of It reads, preset field is preferably the field of specific position in transactions requests.Character string is the content being stored in preset field, For one kind of random value.
Specifically, block chain node can be locally generated a random value, and will before initiating transactions requests in advance The random value, which is added in the preset field of transactions requests, is sent to block chain network;Localized nodes are available in block link network The transactions requests transmitted in network then extract random value from the preset field of transactions requests, and using the random value as effectively Property check value.
It can also be that third party device before initiating transactions requests, is passing through the data interaction platform with block chain node After forming transactions requests, control block chain link point locally generates a random value and feeds back;Third party device receives block chain After the random value of node feeding back, which is added in the preset field in transactions requests, then passes through private key for user etc. Signature is packaged, then is sent to block chain network by block chain node.Localized nodes are available in block chain network The transactions requests of transmission, and signed using client public key, random value is then extracted from the preset field of transactions requests, and should Random value is as validity check value.
S230 carries out signature operation according to the data of transactions requests and validity check value, to generate transactions requests Signature unique value.
S240 determines the validity of transactions requests according to the local record case to signature value of block chain node.
Technical solution provided in an embodiment of the present invention, the transactions requests transmitted in block chain network are held by block chain node Before row, validity check value is first obtained from the preset field of the transactions requests of acquisition, it then can be right by signature algorithm The data and validity check value of the transactions requests of acquisition carry out signature operation, to generate the uniqueness signature of transactions requests Value;And then it can determine the validity of transactions requests according to the local record case to signature value of block chain node.Compared to existing Some technical solutions, the present embodiment realize to determine that the validity of transactions requests provides a kind of new approaches for not depending on In the transactions requests of UTXO, validity identification also can be accurately carried out, and then guarantee the correct execution of transactions requests.
Embodiment three
Fig. 3 is a kind of flow chart of the transactions requests initiating method for block chain that the embodiment of the present invention three provides, this implementation Example is applicable to block chain node or third party device etc. when generating transactions requests, initiates transactions requests to block chain network Situation.After other block chain nodes obtain the transactions requests in block chain network, side provided by above-described embodiment can be used Formula identifies the validity of the transactions requests.The scheme of the embodiment of the present invention can be applied to the block in block chain network Chain node, applies also for third party device such as terminal device etc., and this method can be by the transactions requests originating device of block chain It executes, which can be used hardware and/or the mode of software is realized, and can be integrated in terminal device, or be integrated in carrying In the calculating equipment of block chain node.Referring to Fig. 3, this method is specifically included:
S310 generates transactions requests.
In the present embodiment, transactions requests can be the locally generated issued transaction demand of block chain node, or receive certain When the issued transaction demand that one trigger mechanism such as third party device (such as client, terminal device or server) is sent, to area Request transmitted by block chain network;It can not also be block chain node such as terminal device, but can be provided by block chain node Data interaction platform (such as client end interface or webpage etc.) is to request transmitted by block chain network.
S320 generates validity check value, and validity check value and transactions requests are bound.
In the present embodiment, validity check value can be a numerical value or character string etc. with uniqueness effect, can It is whether effective for verifying transactions requests;Illustratively, validity check value can be random value, specifically can be transactions requests Promoter generated at random in advance before initiating transactions requests, or generated after a certain intelligent contract by executing.It can Choosing, validity check value and transactions requests correspond, that is to say, that a transactions requests have the validity school uniquely determined Test value.
Validity check value is referred to transactions requests binding and establishes being associated between validity check value and transactions requests Relationship specifically can be and validity check value be added in transactions requests.Illustratively, validity check value is asked with affairs Asking binding may include: that validity check value is added in the preset field of transactions requests.In the present embodiment, preset field can Think the field of any null field or specific position in transactions requests;For the ease of reading, preset field is preferably that affairs are asked Seek the field of middle specific position.
Specifically, block chain node can be locally generated a random value in advance, as validity check value;And will have Effect property check value is bound with transactions requests;Then the validity check value with binding relationship is sent to transactions requests Block chain network.It can also be that by the data interaction platform with block chain node, transactions requests are sent to for third party device Block chain node, to request the block chain node to be locally generated a random value in advance, to generate validity check value and anti- Present third party device;Third party device after being packaged by user's signature, is sent after validity check value and transactions requests binding To block chain network.
If validity check value is to execute a certain intelligent contract based on block chain node to generate, illustratively, have Effect property check value, by validity check value and transactions requests binding may include: by the intelligent contract of block chain node deployment, Validity check value is generated for transactions requests, and validity check value and transactions requests are bound.
In the present embodiment, intelligent contract be can be for realizing the code segment of a certain function, specially determine transactions requests Validity check value corresponding to code segment;It makes an appointment, is stored in wound generation block when can be block chain creation;Also It can be and create what process dynamics added in block chain, be stored in a certain block;It can also be stored in independently of block chain Block chain node is local.
Specifically, block chain node can be obtained from the intelligent contract that it is locally disposed for determining transactions requests Validity check value intelligent contract, then execute the intelligence contract, determine validity check value for the transactions requests, and will Validity check data and transactions requests are bound.Can also be that third party device is sent to block chain node includes transactions requests Validity check value determines request, so that block chain node passes through the intelligent contract of its local disposition, has for transactions requests determination Effect property check value is simultaneously fed back;It, can be by validity check value and transactions requests after third party device receives validity check value Binding.
S330 initiates transactions requests and validity check value in block chain network.
Wherein, validity check value be used for for block chain link point according to the data of transactions requests and validity check value into Row signature operation, to generate the signature unique value of transactions requests, and the locally record case to signature value according to block chain node, Determine the validity of transactions requests.Illustratively, signature operation can be Hash operation.
Specifically, can be block chain node after by transactions requests and the binding of validity check value, it can be to block chain Network initiates transactions requests and validity check value.It can also be that third party device is tied up by transactions requests and validity check value After fixed, by data interaction platform provided by block chain node, transactions requests and validity check are initiated to block chain network Value.It, can be according to transactions requests after other nodes in block chain network receive the transactions requests and validity check value Data and validity check value carry out signature operation, to generate the signature unique value of transactions requests, then according to block chain link The local record case to signature value of point, determines the validity of transactions requests.
Technical solution provided in an embodiment of the present invention, after generating transactions requests, the corresponding validity school for generating transactions requests Value is tested, and by after the transactions requests and the binding of validity check value, block chain network is sent to, so that its in block chain network His node first passes through signature algorithm, data and validity school to the transactions requests of acquisition before handling transactions requests It tests value and carries out signature operation, to generate the uniqueness signature value of transactions requests;It is then local to signature value according to block chain node Record case be that can determine the validity of transactions requests.Compared to existing technical solution, the present embodiment is to determine that affairs are asked The validity asked provides a kind of new approaches, realizes for the transactions requests independent of UTXO, also can accurately carry out effectively Property identification, and then guarantee transactions requests correct execution.
Example IV
Fig. 4 is a kind of stream of the transactions requests initiation and validity recognition methods for block chain that the embodiment of the present invention four provides Cheng Tu, the present embodiment on the basis of the above embodiments, provide a kind of preferable example.Referring to fig. 4, this method specifically includes:
S410, block chain node generate transactions requests.
S420, block chain node generate validity check value, and validity check value and transactions requests are bound.
S430, block chain node initiate transactions requests and validity check value in block chain network.
S440, other block chain nodes obtain the transactions requests and validity check value transmitted in block chain network.
S450, other block chain nodes carry out signature operation according to the data and validity check value of transactions requests, with Generate the signature unique value of transactions requests.
S460, other block chain nodes determine transactions requests according to the local record case to signature value of block chain node Validity.
Technical solution provided in an embodiment of the present invention, block chain node after generating transactions requests, ask by the corresponding affairs that generate The validity check value asked, and by after the transactions requests and the binding of validity check value, it is sent to block chain network, so that block Other nodes in chain network first pass through signature algorithm before handling transactions requests, to the data of the transactions requests of acquisition And validity check value carries out signature operation, to generate the uniqueness signature value of transactions requests;Then according to block chain node The local record case to signature value is that can determine the validity of transactions requests.Compared to existing technical solution, the present embodiment To determine that the validity of transactions requests provides a kind of new approaches, realizes for the transactions requests independent of UTXO, also can It is accurate to carry out validity identification, and then guarantee the correct execution of transactions requests.
Embodiment five
Fig. 5 is a kind of structural representation of the transactions requests validity identification device for block chain that the embodiment of the present invention five provides Figure, the device are configured in block chain node, which can be performed block chain provided by the embodiment of the present invention one and two Transactions requests validity recognition methods has the corresponding functional module of execution method and beneficial effect.As shown in figure 5, the device Include:
Module 510 is obtained, for obtaining the transactions requests transmitted in block chain network and validity check value;
Computing module 520 carries out signature operation for the data and validity check value according to transactions requests, to produce The signature unique value of raw transactions requests;
Validity determining module 530, for determining that affairs are asked according to the local record case to signature value of block chain node The validity asked.
Technical solution provided in an embodiment of the present invention, the transactions requests transmitted in block chain network are held by block chain node Before row, block chain node can be by signature algorithm, and data and validity check value to the transactions requests of acquisition carry out Signature operation, to generate the uniqueness signature value of transactions requests;Then according to the local record feelings to signature value of block chain node Condition is that can determine the validity of transactions requests.Compared to existing technical solution, the present embodiment is the effective of determining transactions requests Property provides a kind of new approaches, realizes for the transactions requests independent of UTXO, also can accurately carry out validity identification, into And guarantee the correct execution of transactions requests.
Illustratively, validity check value is random value;Signature operation is Hash operation.
Illustratively, obtaining module 510 specifically can be used for:
Obtain the transactions requests transmitted in block chain network;
Character string is extracted from the preset field of transactions requests, as validity check value.
Illustratively, validity determining module 530 specifically can be used for:
If the signature value has been locally stored, it is determined that transactions requests are invalid;
If locally not stored have the signature value, it is determined that transactions requests are effective, execute transactions requests, and record signature Value.
Embodiment six
Fig. 6 is a kind of structural schematic diagram of the transactions requests originating device for block chain that the embodiment of the present invention six provides, should The transactions requests initiating method of block chain provided by the embodiment of the present invention three can be performed in device, has the corresponding function of execution method It can module and beneficial effect.As shown in fig. 6, the device includes:
Generation module 610 is requested, for generating transactions requests;
Data generate binding module 620 and tie up validity check value with transactions requests for generating validity check value It is fixed;
Initiation module 630, for initiating the transactions requests and validity check value in block chain network;
Wherein, validity check value be used for for block chain link point according to the data of transactions requests and validity check value into Row signature operation, to generate the signature unique value of transactions requests, and the locally record case to signature value according to block chain node, Determine the validity of transactions requests.
Technical solution provided in an embodiment of the present invention, after generating transactions requests, the corresponding validity school for generating transactions requests Value is tested, and by after the transactions requests and the binding of validity check value, block chain network is sent to, so that its in block chain network His node first passes through signature algorithm, data and validity school to the transactions requests of acquisition before handling transactions requests It tests value and carries out signature operation, to generate the uniqueness signature value of transactions requests;It is then local to signature value according to block chain node Record case be that can determine the validity of transactions requests.Compared to existing technical solution, the present embodiment is to determine that affairs are asked The validity asked provides a kind of new approaches, realizes for the transactions requests independent of UTXO, also can accurately carry out effectively Property identification, and then guarantee transactions requests correct execution.
Illustratively, validity check value is random value;Signature operation is Hash operation.
Illustratively, data generate binding module 620 when binding validity check value and the transactions requests, can be with For:
Validity check value is added in the preset field of transactions requests.
Illustratively, data generate binding module 620 and specifically can be used for:
By the intelligent contract of block chain node deployment, validity check value is generated for transactions requests, and by validity school It tests value and transactions requests is bound.
Embodiment seven
Fig. 7 is a kind of structural schematic diagram for equipment that the embodiment of the present invention seven provides.Fig. 7, which is shown, to be suitable for being used to realizing this The block diagram of the example devices 12 of invention embodiment.The equipment 12 that Fig. 7 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.Equipment 12 typically can be the meter for undertaking block chain network nodal function Calculate equipment.
As shown in fig. 7, equipment 12 is showed in the form of universal computing device.If 12 component can include but is not limited to: One or more processor or processing unit 16, system storage 28 connect different system components (including system storage 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 7, use can be provided In the disc driver read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.System storage 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store and store in such as system In device 28, such program module 42 includes but is not limited to operating system, one or more application program, other program modules And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 42 Usually execute the function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in the drawings, can combine Equipment 12 use other hardware and/or software module, including but not limited to: microcode, device driver, redundant processing unit, External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the recognition methods of transactions requests validity and/or the block of block chain provided by the embodiment of the present invention The transactions requests initiating method of chain.
Embodiment eight
The embodiment of the present invention eight additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should Program can realize the recognition methods of transactions requests validity and/or the area of block chain described in above-described embodiment when being executed by processor The transactions requests initiating method of block chain.The computer readable storage medium can be configured on block chain node.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (12)

1. a kind of transactions requests validity recognition methods of block chain, which is characterized in that be applied to block chain node, the method Include:
Obtain the transactions requests and validity check value transmitted in block chain network;
According to the data of the transactions requests and the validity check value, signature operation is carried out, is asked with generating the affairs The signature unique value asked;
According to the local record case to signature value of block chain node, the validity of the transactions requests is determined.
2. according to the method described in claim 1, it is characterized by: the validity check value is random value;The signature fortune Calculating is Hash operation.
3. the method according to claim 1, wherein obtaining the transactions requests transmitted in block chain network and having Effect property check value, comprising:
Obtain the transactions requests transmitted in block chain network;
Character string is extracted from the preset field of the transactions requests, as the validity check value.
4. the method according to claim 1, wherein according to the local record feelings to signature value of block chain node Condition determines the validity of the transactions requests, comprising:
If the signature value has been locally stored, it is determined that the transactions requests are invalid;
If locally not stored have the signature value, it is determined that the transactions requests are effective, execute the transactions requests, and record The signature value.
5. a kind of transactions requests initiating method of block chain characterized by comprising
Generate transactions requests;
Validity check value is generated, validity check value and the transactions requests are bound;
The transactions requests and the validity check value are initiated in block chain network;
Wherein, the validity check value is used for for block chain link point according to the data and the validity of the transactions requests Check value carries out signature operation, to generate the signature unique value of the transactions requests, and it is local to signature according to block chain node The record case of value determines the validity of the transactions requests.
6. according to the method described in claim 5, it is characterized in that, the validity check value is random value;The signature fortune Calculating is Hash operation.
7. according to the method described in claim 5, it is characterized in that, validity check value and the transactions requests are bound, packet It includes:
The validity check value is added in the preset field of the transactions requests.
8. according to any method of claim 5-7, which is characterized in that validity check value is generated, by validity check Value is bound with the transactions requests, comprising:
By the intelligent contract of block chain node deployment, validity check value is generated for the transactions requests, and by validity school It tests value and the transactions requests is bound.
9. a kind of transactions requests validity identification device of block chain, which is characterized in that be configured at block chain node, described device Include:
Module is obtained, for obtaining the transactions requests transmitted in block chain network and validity check value;
Computing module carries out signature operation for the data and the validity check value according to the transactions requests, to produce The signature unique value of the raw transactions requests;
Validity determining module, for determining the transactions requests according to the local record case to signature value of block chain node Validity.
10. a kind of transactions requests validity identification device of block chain characterized by comprising
Generation module is requested, for generating transactions requests;
Data generate binding module, and for generating validity check value, validity check value and the transactions requests are bound;
Initiation module, for initiating the transactions requests and the validity check value in block chain network;
Wherein, the validity check value is used for for block chain link point according to the data and the validity of the transactions requests Check value carries out signature operation, to generate the signature unique value of the transactions requests, and it is local to signature according to block chain node The record case of value determines the validity of the transactions requests.
11. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now transactions requests validity recognition methods of the block chain as described in any in claim 1-4, or realize claim 5-8 In any block chain transactions requests initiating method.
12. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor The transactions requests validity recognition methods of block chain as described in any in claim 1-4, or realize in claim 5-8 The transactions requests initiating method of any block chain.
CN201811605444.2A 2018-12-26 2018-12-26 The identification of transactions requests validity and initiating method, device, equipment and medium Pending CN109685507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811605444.2A CN109685507A (en) 2018-12-26 2018-12-26 The identification of transactions requests validity and initiating method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811605444.2A CN109685507A (en) 2018-12-26 2018-12-26 The identification of transactions requests validity and initiating method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN109685507A true CN109685507A (en) 2019-04-26

Family

ID=66189860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811605444.2A Pending CN109685507A (en) 2018-12-26 2018-12-26 The identification of transactions requests validity and initiating method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109685507A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070360A (en) * 2019-04-28 2019-07-30 百度在线网络技术(北京)有限公司 A kind of transactions requests processing method, device, equipment and storage medium
CN110310205A (en) * 2019-06-28 2019-10-08 百度在线网络技术(北京)有限公司 A kind of block chain data monitoring method, device, equipment and medium
CN113935069A (en) * 2021-12-10 2022-01-14 北京百度网讯科技有限公司 Data verification method, device and equipment based on block chain and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103473A (en) * 2017-04-27 2017-08-29 电子科技大学 A kind of intelligent contract implementation method based on block chain
CN107145768A (en) * 2016-03-01 2017-09-08 华为技术有限公司 Copyright managing method and system
CN107330694A (en) * 2017-07-03 2017-11-07 重庆小犀智能科技有限公司 Copyright trading system and method for commerce based on block chain
CN107342867A (en) * 2017-07-07 2017-11-10 北京牛链科技有限公司 Signature sign test method and apparatus
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN108595607A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Processing method, device, equipment, system and the storage medium of register information
CN108920514A (en) * 2018-05-31 2018-11-30 百度在线网络技术(北京)有限公司 A kind of information storage means based on block chain, device, equipment and storage medium
CN108985100A (en) * 2018-08-15 2018-12-11 百度在线网络技术(北京)有限公司 Element Security Proof method, apparatus, equipment and medium based on block chain
CN109033760A (en) * 2018-08-27 2018-12-18 北京奥曼特奇科技有限公司 A kind of music copyright identification authentication method and Verification System based on block chain

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145768A (en) * 2016-03-01 2017-09-08 华为技术有限公司 Copyright managing method and system
CN107103473A (en) * 2017-04-27 2017-08-29 电子科技大学 A kind of intelligent contract implementation method based on block chain
CN107330694A (en) * 2017-07-03 2017-11-07 重庆小犀智能科技有限公司 Copyright trading system and method for commerce based on block chain
CN107342867A (en) * 2017-07-07 2017-11-10 北京牛链科技有限公司 Signature sign test method and apparatus
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN108595607A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Processing method, device, equipment, system and the storage medium of register information
CN108920514A (en) * 2018-05-31 2018-11-30 百度在线网络技术(北京)有限公司 A kind of information storage means based on block chain, device, equipment and storage medium
CN108985100A (en) * 2018-08-15 2018-12-11 百度在线网络技术(北京)有限公司 Element Security Proof method, apparatus, equipment and medium based on block chain
CN109033760A (en) * 2018-08-27 2018-12-18 北京奥曼特奇科技有限公司 A kind of music copyright identification authentication method and Verification System based on block chain

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070360A (en) * 2019-04-28 2019-07-30 百度在线网络技术(北京)有限公司 A kind of transactions requests processing method, device, equipment and storage medium
CN110310205A (en) * 2019-06-28 2019-10-08 百度在线网络技术(北京)有限公司 A kind of block chain data monitoring method, device, equipment and medium
CN110310205B (en) * 2019-06-28 2022-02-25 百度在线网络技术(北京)有限公司 Block chain data monitoring method, device, equipment and medium
CN113935069A (en) * 2021-12-10 2022-01-14 北京百度网讯科技有限公司 Data verification method, device and equipment based on block chain and storage medium
CN113935069B (en) * 2021-12-10 2022-04-05 北京百度网讯科技有限公司 Data verification method, device and equipment based on block chain and storage medium

Similar Documents

Publication Publication Date Title
CN110414268A (en) Access control method, device, equipment and storage medium
CN108985772A (en) A kind of verification method, device, equipment and the storage medium of block chain
CN108183907A (en) A kind of authentication method, server and Verification System
CN109710695A (en) The identification of transactions requests validity and initiating method, device, equipment and medium
CN108923908A (en) authorization processing method, device, equipment and storage medium
CN109951547A (en) Transactions requests method for parallel processing, device, equipment and medium
CN108920514A (en) A kind of information storage means based on block chain, device, equipment and storage medium
CN109981297A (en) Block chain processing method, device, equipment and storage medium
CN104113551A (en) Platform authorization method, platform server side, application client side and system
JP2005062556A (en) Authentication system, server, authentication method, and program
CN109685507A (en) The identification of transactions requests validity and initiating method, device, equipment and medium
CN109542980A (en) A kind of data processing method, device, equipment and the medium of block chain
CN108960830A (en) Dispositions method, device, equipment and the storage medium of intelligent contract
CN109840398A (en) Software authorization method, device, equipment and storage medium
CN109995523B (en) Activation code management method and device and activation code generation method and device
KR20170099154A (en) Method and server for registering stockholder's list, recording transfer of stock ownership and verifying the registered stockholder's list file
CN112073235B (en) Multifunctional mutual-help system of virtual machine
CN109213901A (en) A kind of method of data synchronization, device, equipment and the medium of block chain
CN110084600A (en) Processing, verification method, device, equipment and the medium for transactions requests of resolving
CN110324416A (en) Download path tracking, device, server, terminal and medium
CN108960797A (en) Block generates and verification method, device, equipment and storage medium
CN109447636A (en) A kind of assets transfer method and device
CN109101664A (en) A kind of data transmission method, device, equipment and the medium of lightweight node
CN115102744B (en) Data access method and device
CN109710675A (en) A kind of storing data library switching method, device, server and storage medium

Legal Events

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