CN110533429A - Transaction endorsement method, apparatus and block chain network in block chain - Google Patents

Transaction endorsement method, apparatus and block chain network in block chain Download PDF

Info

Publication number
CN110533429A
CN110533429A CN201910825496.9A CN201910825496A CN110533429A CN 110533429 A CN110533429 A CN 110533429A CN 201910825496 A CN201910825496 A CN 201910825496A CN 110533429 A CN110533429 A CN 110533429A
Authority
CN
China
Prior art keywords
endorsement
content
cochain
result
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910825496.9A
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201910825496.9A priority Critical patent/CN110533429A/en
Publication of CN110533429A publication Critical patent/CN110533429A/en
Priority to PCT/CN2020/097398 priority patent/WO2021036440A1/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/40Authorisation, 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/401Transaction verification
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

The present invention provides the transaction endorsement method, apparatus and block chain network in a kind of block chain, wherein this method is applied to the endorsement node in block chain, this method comprises: receiving the transaction motion from client;Simulation executes the intelligent contract on block chain, to cochain content, to obtain auditing result in audit transaction motion;Endorsement is generated according to auditing result as a result, endorsement result is back to client.The intelligent contract that the present invention is endorsed on node by block chain is audited to cochain content, it is not controlled by the full powers of any individual or entity, thus the auditing flow is open and clear, auditing result is avoided by interference caused by subjective factors, to improve the fairness and reasonability of block chain cochain content auditing.

Description

Transaction endorsement method, apparatus and block chain network in block chain
Technical field
The present invention relates to block chain technical field, more particularly, in a kind of block chain transaction endorsement method, apparatus and Block chain network.
Background technique
Due to the characteristic that the decentralization of block chain can not distort, once illegal contents cochain, it will be personal to society and correlation Cause irremediable loss, it is therefore desirable to audit to the content for being uploaded to block chain.In the related technology, pass through enterprise mostly The algorithm audit or manual examination and verification of industry customization, auditing result is larger by interference caused by subjective factors, is short of fairness and reasonability.
Summary of the invention
The purpose of the present invention is to provide the transaction endorsement method, apparatus and block chain network in a kind of block chain, to mention The fairness and reasonability of high block chain cochain content auditing.
In a first aspect, the embodiment of the invention provides a kind of transaction endorsement method in block chain, this method is applied to area Endorsement node in block chain, this method comprises: receiving the transaction motion from client;Wherein, include in the transaction motion to Cochain content;Simulation executes the intelligent contract on block chain, to audit to cochain content, obtains auditing result;It is tied according to audit Fruit generates endorsement as a result, endorsement result is back to client.
In preferred embodiments of the present invention, above-mentioned simulation executes the intelligent contract on block chain, to audit in cochain The step of appearance, comprising: by the intelligent contract on block chain, call preset content auditing algorithm;Wherein, which calculates Method operates on endorsement node;By content auditing algorithm, judge to whether include preset sensitive word in cochain content;If To not include sensitive word in cochain content, determine that auditing result is legal;If determining and examining to include sensitive word in cochain content Core result is illegal.
In preferred embodiments of the present invention, above-mentioned judgement in cochain content whether include preset sensitive word step Suddenly, comprising: will be matched to cochain content sensitive dictionary corresponding with content auditing algorithm, and obtain matching result;Wherein, quick The cryptographic Hash for feeling dictionary and sensitive dictionary, is stored on block chain;If matching result is that it fails to match, determine to cochain Sensitive word is not included in content;If matching result is successful match, determine to include sensitive word in cochain content.
In preferred embodiments of the present invention, above-mentioned determining auditing result is legal step, comprising: if in cochain Do not include sensitive word in appearance, by preset network interface, calls third party's service audit to cochain content;If third party takes Business audit passes through, and determines that auditing result is legal.
In preferred embodiments of the present invention, above-mentioned the step of endorsement result is generated according to auditing result, comprising: to audit As a result signature processing, the auditing result after being signed are carried out;Auditing result after signature is determined as result of endorsing.
Second aspect, the embodiment of the invention provides a kind of transaction endorsement method in block chain, this method is applied to area Client in block chain, this method comprises: generating transaction motion according to cochain content if received to cochain content;Its In, it include to cochain content in the transaction motion;The transaction motion is sent to the endorsement node in endorsement strategy included, with logical It crosses the intelligent contract that endorsement node simulation executes on block chain and obtains auditing result to audit to cochain content;According to the audit As a result endorsement result is generated.
It is above-mentioned that motion of trading is sent to the endorsement node in endorsement strategy included in preferred embodiments of the present invention After step, this method further include: receive the endorsement result that endorsement node returns;Judge whether the endorsement result meets transaction and mention The corresponding endorsement strategy of case;If met, the endorsement result and transaction motion are sent to the common recognition node on block chain, with logical It crosses common recognition node and treats the progress cochain processing of cochain content.
It include multiple endorsement nodes in above-mentioned endorsement strategy in preferred embodiments of the present invention;Above-mentioned judgement endorsement section Whether the endorsement result that point returns meets the step of the corresponding endorsement strategy of motion of trading, comprising: determines that endorsement includes in tactful Multiple endorsement nodes return endorsement result endorsement quantity;In the case where the endorsement number of nodes is greater than preset threshold, Judge whether the endorsement result that each endorsement node returns is that endorsement passes through;If the endorsement result that multiple endorsement nodes return is equal It is that endorsement passes through, determines that the endorsement result that endorsement node returns meets the corresponding endorsement strategy of transaction motion.
The third aspect, the embodiment of the invention provides the transaction endorsement device in a kind of block chain, which is set to area Endorsement node in block chain, the device include: motion receiving module, for receiving the transaction motion from client;Wherein, should It include to cochain content in transaction motion;Auditing module, for simulating the intelligent contract executed on block chain, to audit to cochain Content obtains auditing result;Result return module, for generating endorsement according to auditing result as a result, endorsement result is back to Client.
Fourth aspect, the embodiment of the invention provides the transaction endorsement device in a kind of block chain, which is set to area Client in block chain, the device include: motion generation module, if for receiving to cochain content, according to in cochain Hold and generates transaction motion;It wherein, include to cochain content in the transaction motion;Motion sending module, for the motion hair that will trade The endorsement node for including into endorsement strategy is sent, to execute the intelligent contract on block chain by endorsement node simulation, with audit To cochain content, auditing result is obtained;Endorsement result is generated according to auditing result.
5th aspect, the embodiment of the invention provides a kind of block chain networks, which includes client and back Book node;The client is used to send transaction motion to endorsement node;It wherein, include to cochain content in the transaction motion;On It states endorsement node and is used to simulate the intelligent contract executed on block chain, it is received to cochain content to audit, obtain auditing result; And endorsement is generated as a result, endorsement result is back to client according to auditing result.
In preferred embodiments of the present invention, above-mentioned endorsement node is also used to: by the intelligent contract on block chain, being called Preset content auditing algorithm;Wherein, which operates on endorsement node;Pass through content auditing algorithm, judgement To whether include preset sensitive word in cochain content;If determining that auditing result is to not include sensitive word in cochain content It is legal;If determining that auditing result is illegal to include sensitive word in cochain content.
In preferred embodiments of the present invention, above-mentioned endorsement node is also used to: being carried out signature processing to auditing result, is obtained Auditing result after signature;Auditing result after signature is determined as result of endorsing.
In preferred embodiments of the present invention, the block chain network further include: common recognition node;Above-mentioned client is also used to Receive the endorsement result that endorsement node returns;Judge whether endorsement result meets the corresponding endorsement strategy of transaction motion;If symbol It closes, endorsement result and transaction motion is sent to common recognition node, common recognition node carries out cochain processing for treating cochain content.
In preferred embodiments of the present invention, above-mentioned block chain network further includes submitting node;Common recognition node is also used to: being connect Receive endorsement result from client and transaction motion, according to preset common recognition algorithm in transaction motion to cochain content into Row sequence, for after sequence to cochain content, according to preset block strategy generating block, and by block be sent to submission section Point;The submission node is used for: to verifying in block to cochain content, cochain content is treated after upchecking and carries out cochain Processing.
6th aspect, the embodiment of the invention provides a kind of server, including processor and memory, memory storages There is the machine-executable instruction that can be executed by processor, which executes machine-executable instruction to realize first aspect institute Transaction endorsement method in the block chain stated.
7th aspect, the embodiment of the invention provides a kind of user terminal, including processor and memory, which is deposited The machine-executable instruction that can be executed by processor is contained, which executes machine-executable instruction to realize second aspect Transaction endorsement method in the block chain.
Eighth aspect, the embodiment of the invention provides a kind of machine readable storage medium, which is deposited Machine-executable instruction is contained, when being called and being executed by processor, which promotees the machine-executable instruction Processor is set to realize the transaction endorsement method in above-mentioned block chain.
The embodiment of the present invention bring it is following the utility model has the advantages that
The present invention provides transaction endorsement method, apparatus, block chain network, server and the user's ends in a kind of block chain End, wherein this method is applied to the endorsement node in block chain, and this method receives the transaction motion from client first;So Afterwards simulation execute block chain on intelligent contract, with audit transaction motion in cochain content;It is finally raw according to auditing result At endorsement as a result, and endorsement result is back to client.The present invention is audited by the intelligent contract that block chain is endorsed on node To cochain content, do not controlled by the full powers of any individual or entity, thus the auditing flow is open and clear, avoids auditing result By interference caused by subjective factors, to improve the fairness and reasonability of block chain cochain content auditing.
Other features and advantages of the present invention will illustrate in the following description, alternatively, Partial Feature and advantage can be with Deduce from specification or unambiguously determine, or by implementing above-mentioned technology of the invention it can be learnt that.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, better embodiment is cited below particularly, and match Appended attached drawing is closed, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of block chain network provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the transaction endorsement method in a kind of block chain provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the transaction endorsement method in another block chain provided in an embodiment of the present invention;
Fig. 4 is the flow chart of state conversion in DFA algorithm provided in an embodiment of the present invention;
Fig. 5 is sensitive word data structure construction figure provided in an embodiment of the present invention;
Fig. 6 is the flow chart of the transaction endorsement method in another block chain provided in an embodiment of the present invention;
Fig. 7 is the flow chart of the transaction endorsement method in another block chain provided in an embodiment of the present invention;
Fig. 8 is the flow chart of the transaction endorsement method in another block chain provided in an embodiment of the present invention;
Fig. 9 is a kind of flow chart to cochain content cochain provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of the transaction endorsement device in a kind of block chain provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of the transaction endorsement device in another block chain provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of block chain network provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of a kind of server or user terminal provided in an embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with embodiment, it is clear that described reality Applying example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
Block chain technology because of its decentralization, the characteristics such as can not distort, can audit and be widely used in number and deposit card, supply Chain finance, medical privacy information protection, electronic bill, resource is credible fields such as shared.It can help to join by block chain technology A set of faith mechanism is quickly set up with each side of block chain, to greatly push the development in digital financial field, and area Block chain technical operation mechanism more efficient, more and more enterprise institutions and personal user tend to arrive digitalization resource storage It is as shown in Figure 1 a kind of schematic diagram of block chain network in block chain.
Block chain network in Fig. 1 includes client, endorsement node, common recognition node and submits node.Usual user passes through Client sends transaction motion to endorsement node, and endorsement node carries out user identity and transaction legitimacy after receiving transaction motion Verifying, is back to client for verification result;Client verifies verification result, will be in transaction motion after checking and finding correct It is packaged to cochain content, and the packaged data is sent to common recognition node;Common recognition node is ranked up the packaged data Afterwards, the block that the data after sequence are new according to block strategy generating, and the block is sent to submission node, submit node pair Transaction in block is verified, and carries out uplink operation to data after the completion of verifying.
With the fast development of internet, more and more Internet companies have all been pushed outwardly content catering service, because This can all generate a large amount of data daily, what which usually exponentially increased, and inevitably, criminal also can be The some illegal contents of interconnection Web realease or content of maliciously starting a rumour are removed due to the characteristic that the decentralization of block chain can not distort The non-block chain network cut off in whole network on all nodes or joint are more than that the node of 51% or more the whole network removes modification chain Upper data, otherwise can not delete illegal contents or malice is started a rumour content, once therefore illegal contents cochain, will be to society and phase It closes individual and causes irremediable loss.
Based on this, Some Enterprises can audit cochain content, and auditing standards and sensitive content library are formulated by enterprise And incomplete disclosure is as it can be seen that audit behavior is also dominated by enterprise side completely.For personal or company interest, cancels or shield without authorization The phenomenon that covering the upload content of content provider happens occasionally, therefore the content auditing mode is short of fairness and reasonability.
On the basis of the above problem, the embodiment of the present invention provides transaction endorsement method, apparatus, area in a kind of block chain Block chain network, server and user terminal;The technology can be applied in block chain technology in the scene of data cochain, especially The scene that content in block chain to uplink data is audited.
For convenient for understanding the present embodiment, first to the transaction in a kind of block chain disclosed in the embodiment of the present invention Endorsement method describes in detail, and this method is applied to the endorsement node in block chain, as shown in Fig. 2, this method includes as follows Step:
Step S202 receives the transaction motion from client;It wherein, include to cochain content in the transaction motion.
The client can be mounted in answering on the mobile terminal (such as mobile phone, tablet computer) or computer of user With program, the SDK (Software Development Kit, Software Development Kit) being also possible on computer.It is above-mentioned to Cochain content is usually that user wants text, picture or video for uploading etc..In addition to cochain content, above-mentioned transaction motion is logical It often further include subscriber identity information, Transaction Information etc..
Step S204, simulation execute the intelligent contract on above-mentioned block chain, with audit to cochain content, obtain audit knot Fruit.
Above-mentioned intelligence contract is usually a kind of computer protocol that contract is propagated, verified or executed in a manner of information-based, should Intelligent contract is usually the chain code write on block chain, which can encode transaction assets, and wherein trading instruction can With modification transaction assets.In instantiation, intelligent contract needs endorsement to order strategy, which usually requires endorsement to order Node endorses to transaction, it is understood that can verify or state whether transaction is legal for endorsement node.
In specific implementation, it is interacted by the SDK of client and block chain network, the intelligence on block chain can be called Energy contract (alternatively referred to as chain code), and endorsement node is used as according to the node of verifying demand selected part audit side, so as to Corresponding endorsement strategy is generated, one or more endorsement node is generally included in endorsement strategy.For example, the chain code of endorsement strategy It can write are as follows: peer chaincode instantiate-C<channelid>-nSensitive-Chaincode-P " AND ('Org1.peer','Org2.peer','Org3.peer')";In the endorsement strategy only have Org1.peer, Org3.peer and Tri- endorsement nodes of Org3.peer, which are all endorsed, to be passed through, this endorsement process just calculates real completion.
After client sends transaction motion, each endorsement node in endorsement strategy can receive transaction motion, Then whether the subscriber identity information in each endorsement node verification transaction motion meets preset requirement, if met the requirements, Then simulate execution (auditing result will not be usually recorded in block chain after executing intelligent contract to cochain content by simulation) intelligence Contract, which can carry out content auditing to cochain content in transaction motion, to obtain to cochain content legality Or illegal auditing result.Wherein, whether it is illegal contents or evil which usually audits to cochain content Meaning is started a rumour content etc..
Step S206 generates endorsement as a result, the endorsement result is back to client according to above-mentioned auditing result.
Node endorse according to the legitimacy of the auditing result to cochain content, corresponds to and generates endorsement result.In to cochain When to hold auditing result be legal, the endorsement result of corresponding endorsement node is that endorsement passes through, when being to cochain content auditing result When illegal, the endorsement result of corresponding endorsement node is that endorsement does not pass through.Endorsement result is back to client by endorsement node, such as All endorsement nodes, which are endorsed, in fruit endorsement strategy passes through, and client will be sent to common recognition node to cochain content;Common recognition section Point is treated cochain content and is ranked up, and new block is generated further according to block generation strategy, and sends block to submission node;It mentions It hands over node to verifying in block to cochain content, cochain content is treated after the completion of verifying and carries out uplink operation.If back All endorsement nodes have one or more endorsement not pass through in book strategy, will upload failure to cochain content.
The present invention provides a kind of transaction endorsement method in block chain, this method is applied to the endorsement section in block chain Point, this method receive the transaction motion from client first;Then simulation executes the intelligent contract on block chain, is handed over auditing In easy motion to cochain content;Endorsement is finally generated according to auditing result as a result, and endorsement result is back to client.This The intelligent contract that invention is endorsed on node by block chain is audited to cochain content, not by the full powers control of any individual or entity System, thus the auditing flow is open and clear, avoids auditing result by interference caused by subjective factors, to improve in block chain cochain Hold the fairness and reasonability of audit.
The embodiment of the present invention also provides the transaction endorsement method in another block chain, and this method is described in above-described embodiment It is realized on the basis of method;The specific mistake to cochain content is audited in the description of this method emphasis by the intelligent contract on block chain Journey;As shown in figure 3, this method comprises the following steps:
Step S302 receives the transaction motion from client;It wherein, include to cochain content in the transaction motion.
Step S304 calls preset content auditing algorithm by the intelligent contract on block chain;Wherein, which examines Accounting method operates on endorsement node.
Above-mentioned preset content auditing algorithm is usually filtering sensitive words algorithm, and filtering sensitive words algorithm can use DFA (Deterministic Finite Automaton, determine finite automaton) algorithm.The feature of the DFA algorithm are as follows: have one Finite state set and some sides for leading to another state from a state, each edge are marked with a symbol, one of them State is initial state, and certain states are final state, it is understood that is available by current state state and event event Next state next state=event+state is illustrated in figure 4 the flow chart that state is converted in DFA algorithm.
S, U, V and Q indicate state in Fig. 4, a and b expression movement, usually can according to be input in DFA event ( Can be understood as to cochain content), it determines and is acted by which from a state to another state.In filtering sensitive words It is not event and state conversion, and is to look for, if any sensitive word " Chinese spy " and " trade war ", it is necessary first to construct quick Feel word data structure, as shown in Figure 5.As shown in Figure 5, if the sensitive word for having multiple initial characters different will constitute more it is independent All initials can be stored in individual lead-in superclass by keyword tree in order to improve search efficiency.
When being stored with 1577 sensitive words in the corresponding local library of DFA algorithm, DFA algorithm is obtained and has carried out sensitive word knowledge Other average time-consuming and accuracy rate, as shown in table 1.DFA algorithm carries out sensitive word and identifies consumed average time as shown in Table 1 Considerably less, accuracy rate is also higher.
Table 1
Step S306 audits algorithm audit to cochain content through the above, obtains auditing result.
Above content audit algorithm can be audited to which whether cochain content is illegal contents or content of maliciously starting a rumour, usually Can be determined to which whether cochain content includes sensitive word to which whether cochain content is legal by auditing, and obtain auditing result. So being audited by content auditing algorithm can be realized to cochain content by following step 01-03:
Step 01, judge to whether include preset sensitive word in cochain content;If quick to not include in cochain content Feel word, executes step 02;If executing step 03 to include sensitive word in cochain content.
Above-mentioned sensitive word is usually to relate to political affairs, relate to Huang, relate to the words and phrases such as sudden and violent.It will be corresponding with content auditing algorithm to cochain content Sensitive dictionary is matched, and matching result is obtained;Wherein, the cryptographic Hash of sensitive dictionary and the sensitivity dictionary, is stored in block On chain;If matching result is that it fails to match, determine to not include sensitive word in cochain content;If matching result be matching at Function is determined to include sensitive word in cochain content.
Above-mentioned sensitivity dictionary is usually the set of the related sensitive word pre-established.The sensitivity dictionary is laggard by encrypting It is uploaded to block chain together with Hash (cryptographic Hash) after row base64 coding, any node in block chain alliance is wanted Update sensitive dictionary, it is necessary to by other members agreement in alliance, the sensitive dictionary that is encrypted on block chain and Hash pairs corresponding Owner is open and clear, therefore any node is all difficult to distort sensitive dictionary privately, to prevent because of individual interests without authorization The phenomenon that distorting sensitive dictionary, while also safer legal Vaporous atomization is brought to the supplier to cochain content.
Step 02, determine that auditing result is legal.
Step 03, determine that auditing result is illegal.
Step S308 generates endorsement as a result, the endorsement result is back to client according to above-mentioned auditing result.
Transaction endorsement method in above-mentioned block chain, receives from after the transaction motion of client through the intelligence on block chain Energy contract calls preset content auditing algorithm, and is audited by the content auditing algorithm and obtain auditing result to cochain content, Endorsement is finally generated as a result, the endorsement result is back to client according to above-mentioned auditing result.Which calculates content auditing Method operates on endorsement node and treats cochain content and audited, it is ensured that auditing each time is examined by endorsement node Core is controlled by Content Management side's full powers, and auditing flow is open and clear and can audit, simultaneously because content on all block chains It can not distort, therefore the cochain content after can auditing automatically to content better adapts to the requirement currently supervised.
The embodiment of the present invention also provides the transaction endorsement method in another block chain, and this method is described in above-described embodiment It is realized on the basis of method;This method emphasis description content audits the determining detailed process to cochain content legality of algorithm, and The detailed process of endorsement result is generated according to auditing result;As shown in fig. 6, this method comprises the following steps:
Step S602 receives the transaction motion from client;It wherein, include to cochain content in the transaction motion.
Step S604 calls preset content auditing algorithm by the intelligent contract on block chain;Wherein, which examines Accounting method operates on endorsement node.
After endorsement node receives transaction motion, simulation is executed into the intelligent contract on block chain, which will adjust Carry out content auditing with content auditing algorithm (for example, filtering sensitive words algorithm DFA), with check on the endorsement node to cochain Whether content includes sensitive word.
Step S606, audits algorithm judges to whether include preset sensitive word in cochain content through the above;Such as Fruit is above-mentioned to not include sensitive word in cochain content, executes step S608;If above-mentioned to include sensitive word in cochain content, hold Row step S612.
It is segmented firstly the need of cochain content is treated, the sensitive word in obtained word segmentation result and sensitive dictionary is carried out It compares, if preliminary audit survey result is no sensitive word without sensitive word in the word segmentation result, in order to ensure the accuracy of judgement needs It treats cochain content and carries out secondary audit;If having sensitive word in the word segmentation result, will directly be determined as non-to cochain content Method that is to say that auditing result is illegal.
Step S608 calls third party's service audit to cochain content by preset network interface;Execute step S610。
Step S610 determines that auditing result is legal if the audit of above-mentioned third party's service passes through;Execute step S614.
Above-mentioned third party's service is usually the preset audit algorithm of demand according to audit side, for example, cochain can be treated Content such as is segmented, goes stop words, removes meaningless word at the processing, then is extracted to the content characteristic that treated to cochain content (content characteristic may include the corresponding word feature of content, text style feature and semantic feature) then uses classifier pair Content characteristic is filtered, and obtains filter result;The confidence level of content auditing is obtained finally by filter result, if confidence level Value is less than preset threshold value, determines that auditing result is legal;If confidence value is more than or equal to preset threshold value, determines and examine Core result is illegal.
Step S612 determines that auditing result is illegal;Execute step S614.
Step S614 carries out signature processing to above-mentioned auditing result, the auditing result after being signed.
The signature is usually CA (Certificate Authority, digital certificate service organization) certificate signature, with statement Or guarantee the correctness of the auditing result.
Auditing result after above-mentioned signature is determined as endorsement as a result, the endorsement result is back to client by step S616 End.The endorsement result generally includes auditing result and CA signing certificate.
After client receives the endorsement result of all endorsement nodes, the whether correct, comparison by the signature of verifying endorsement Whether the endorsement result of all endorsement nodes is correct and checks whether the endorsement result for having received all endorsement nodes.
Transaction endorsement method in above-mentioned block chain passes through the intelligence on block chain after endorsement node receives transaction motion Whether energy contract calls preset content auditing algorithm, and judged by the content auditing algorithm to include default in cochain content Sensitive word;If calling third party's service audit to cochain content to not include sensitive word in cochain content, if audit is logical It crosses and determines that auditing result is legal;If determining that auditing result is legal to include sensitive word in cochain content;Finally audit is tied Fruit carries out signature processing, obtains endorsement result.Which, which treats cochain content and carries out secondary audit, can guarantee auditing result Correctness, and content auditing algorithm is completed on endorsement node, entire auditing flow is open and clear, and has centainly controllable Property.
The embodiment of the present invention also provides the transaction endorsement method in another block chain, and this method is applied in block chain Client, as shown in fig. 7, this method comprises the following steps:
Step S702 waits for that cochain content generates transaction motion according to this if received to cochain content;Wherein, the friendship It include to cochain content in easy motion.
It is above-mentioned to the cochain content text that be usually content providers uploaded in the client by register account number, picture or Person's video etc..Above-mentioned transaction motion not only includes also typically including subscriber identity information, Transaction Information etc. to cochain content.
Above-mentioned transaction motion is sent to the endorsement node in endorsement strategy included by step S704, to pass through endorsement node Simulation executes the intelligent contract on block chain, to audit to cochain content, obtains auditing result;It is generated and is endorsed according to auditing result As a result.
In specific implementation, it is interacted by the SDK of client and block chain network, the intelligence on block chain can be called Energy contract, and according to the node of verifying demand selected part audit side as endorsement node, so as to generate corresponding endorsement Strategy.
Transaction endorsement method in above-mentioned block chain waits for that cochain content is raw according to this if received after cochain content At transaction motion;The transaction motion is sent to the endorsement node in endorsement strategy included again, to hold by endorsement node simulation Intelligent contract on row block chain obtains auditing result to audit to cochain content;Endorsement result is generated according to auditing result. The intelligent contract which is endorsed on node by block chain is audited to cochain content, not by the control of any individual or entity, Thus the auditing flow is open and clear, auditing result is avoided by interference caused by subjective factors, to improve block chain cochain content The fairness and reasonability of audit.
The embodiment of the present invention also provides the transaction endorsement method in another block chain, this method side shown in above-mentioned Fig. 7 It is realized on the basis of method;This method emphasis describes the detailed process that client handles endorsement result;As shown in figure 8, should Method includes the following steps:
Step S802 waits for that cochain content generates transaction motion according to this if received to cochain content;Wherein, the friendship It include to cochain content in easy motion.
Above-mentioned transaction motion is sent to the endorsement node in endorsement strategy included by step S804, to pass through endorsement node Simulation executes the intelligent contract on block chain, to audit to cochain content, obtains auditing result;It is generated and is endorsed according to auditing result As a result.
Step S806 receives the endorsement result that above-mentioned endorsement node returns.
Step S808, judges whether above-mentioned endorsement result meets the corresponding endorsement strategy of transaction motion;If met, execute Step S810;Execute step S812.
When client receives the endorsement result that endorsement node returns, judge whether endorsement result meets the requirements, with true It is fixed whether to meet EU rate request to cochain content.In specific implementation, if including multiple endorsement nodes in endorsement strategy;It is above-mentioned Step S808 can be realized by following step 80-82:
Step 80, the endorsement number of nodes for the endorsement result that the multiple endorsement nodes for including in endorsement strategy return is determined.
Step 81, in the case where above-mentioned endorsement number of nodes is greater than preset threshold, judge what each endorsement node returned Whether endorsement result is that endorsement passes through.
The above-mentioned usually manual setting of preset threshold, it can be the quantity of all endorsement nodes, can also be all endorsements The percentage of number of nodes, for example, 80% or 70%;Under normal conditions, all endorsement nodes in endorsement strategy all return Endorsement is the result is that optimal situation.
Step 82, if the endorsement result that multiple above-mentioned endorsement nodes return is that endorsement passes through, determine that endorsement node returns The endorsement result returned meets the corresponding endorsement strategy of transaction motion.
For example, including 6 endorsement nodes in endorsement strategy, preset threshold is set as 4, when the 5 endorsement nodes received When result of endorsing is that endorsement passes through, it can determine that the endorsement result that endorsement node returns meets the corresponding endorsement plan of transaction motion Slightly.
Above-mentioned endorsement result and transaction motion are sent to the common recognition node on block chain, to pass through common recognition by step S810 Node treats cochain content and carries out cochain processing.Terminate.
When above-mentioned endorsement result meets endorsement strategy, will be packaged to cochain content, and packaged data are sent to Know together node, common recognition node according to algorithm of currently knowing together to being ranked up to cochain content in packaged data, and according to block Generation strategy generate after sequence to the corresponding block of cochain content, the block is then committed to submission node, submits node This is waited for that block chain network is written in cochain content.
Step S812 is shown above-mentioned to the failure of cochain content cochain.
Only endorsement signature verification it is correct, it is all endorsement nodes endorsement results be legal and client have received it is all The endorsement of endorsement node is endorsed successfully as a result, just can determine that cochain content, and after endorsing successfully, client can will be in cochain Appearance is sent to common recognition node, to complete subsequent uplink operation.
Fig. 9 show a kind of flow chart to cochain content cochain;It is needed first to the content providers of cochain content Identity registration is submitted on block platform chain, can coalize block chain after the audit of audit side is errorless, and obtain registration account Number;Wherein, when content providers are registered provided information must an authentic and valid and ID card information be only capable of real name and register Once.Content providers log in block platform chain (being equivalent to client) by register account number and log-in password, and based on What is editted initiates transaction motion to cochain content.When endorsing, tactful all endorsement nodes can all receive transaction motion, and The certificate and permission (being equivalent to above-mentioned identity information) for verifying content providers, if met the requirements, endorsement node will be simulated Execute the intelligent contract on block chain.
Whether intelligent contract will call the filtering sensitive words algorithm on block chain to judge to include sensitive word in cochain content, If the progress of cochain content is treated in the content auditing calculation for calling third party's service to provide to not include sensitive word in cochain content Secondary audit, with the performance of the accuracy and audit that ensure to audit.If secondary audit passes through, will obtain to cochain content legality Judging result, at this point, endorsement node the judging result for treating cochain content is signed, endorsed as a result, finally will Endorsement result is sent to the block platform chain of content providers.
After all endorsement nodes have all sent endorsement result in endorsement strategy, whether block platform chain owns judgement The endorsement result of endorsement node is legal (being equivalent to endorsement to pass through), if it is not, failing to cochain content cochain;If It is legal, then it will carry out being packaged one transaction of composition to cochain content, and be sent to common recognition node after signing to the transaction, altogether Know node cochain content treated according to current common recognition algorithm and be ranked up, and according to block generation strategy generate after sorting to upper The block is committed to Committer node (alternatively referred to as submission node) by the corresponding block of chain content.Above-mentioned block generates plan Slightly usually can according to cochain content type or data format etc. divide block.
After Committer node receives block, the transaction motion that can be submitted to content providers in block is verified, It is to call VSCC (validator system chaincode, proving program system chain code) conduct relevant to the transaction A part of transaction verification process determines the validity of transaction, and indicate within a block which transaction be it is effective which be nothing Effect, so that content providers listen to invalid transaction and effective transaction.If verification failure (that is to say that transaction is invalid ), then the transaction motion of content providers is invalid.If being proved to be successful and (that is to say that transaction is effective), block is appended to On alliance's block chain, by broadcasting to cochain content to all nodes in alliance's block chain for content providers, alliance's block is written Catenary system, and modify world state.
The above-mentioned cochain mode to cochain content cochain can improve the uplink operation of invalid data and false data, and The auditing result of content auditing algorithm is called from intelligent contract, by endorsement after just store on chain, and auditing result by Each node codetermines, therefore the auditing flow is transparent rationally traceable, there is preferable practicability;Meanwhile it can treat Chain content carries out filtering sensitive words, reduces invalid information and enters the unnecessary operation after chain, also can satisfy supervision demand, and drop The maintenance cost of low block chain.
Transaction endorsement method in above-mentioned block chain receives the endorsement of endorsement node return as a result, and judging the endorsement knot Whether fruit meets the corresponding endorsement strategy of transaction motion;If met, endorsement result and transaction motion are sent on block chain Common recognition node, with by know together node treat cochain content carry out cochain processing.Which can be according to endorsement result judgement Whether treat cochain content and carry out cochain processing, to improve the legitimacy to cochain content.
Corresponding to above method embodiment, the embodiment of the invention provides the transaction endorsement devices in a kind of block chain, should Device is set to the endorsement node in block chain, and as shown in Figure 10, which includes:
Motion receiving module 1001, for receiving the transaction motion from client;Wherein, include in the transaction motion to Cochain content;
Auditing module 1002, to audit to cochain content, is audited for simulating the intelligent contract executed on block chain As a result;
Result return module 1003, for generating endorsement according to auditing result as a result, endorsement result is back to above-mentioned visitor Family end.
Transaction endorsement device in above-mentioned block chain, the device are set to the endorsement node in block chain, and the device is first Receive the transaction motion from client;Then simulation execute block chain on intelligent contract, with audit transaction motion in Cochain content;Endorsement is finally generated according to auditing result as a result, and endorsement result is back to client.The present invention passes through block Intelligent contract on chain is audited to cochain content, and the auditing flow is open and clear, avoids auditing result by interference caused by subjective factors, To improve the fairness and reasonability of block chain cochain content auditing.
Further, above-mentioned auditing module 1002, is used for: by the intelligent contract on block chain, calling preset content Audit algorithm;Wherein, which operates on endorsement node;By content auditing algorithm, judge to cochain content In whether include preset sensitive word;If determining that auditing result is legal to not include sensitive word in cochain content;If to Include sensitive word in cochain content, determines that auditing result is illegal.
Further, above-mentioned auditing module 1002, is also used to: will be to cochain content sensitivity corresponding with content auditing algorithm Dictionary is matched, and matching result is obtained;Wherein, the cryptographic Hash of sensitive dictionary and the sensitivity dictionary is stored in block chain On;If matching result is that it fails to match, determine to not include sensitive word in cochain content;If matching result be matching at Function is determined to include sensitive word in cochain content.
Further, above-mentioned auditing module 1002, is also used to: if to not include sensitive word in cochain content, by pre- If network interface, call third party's service audit to cochain content;If third party's service audit passes through, auditing result is determined It is legal.
Further, the above results return module 1003, is used for: signature processing is carried out to auditing result, after obtaining signature Auditing result;Auditing result after signature is determined as result of endorsing.
The embodiment of the invention provides the transaction endorsement device in another block chain, which is set in block chain Client, as shown in figure 11, which includes:
Motion generation module 1101, if generating transaction motion according to cochain content for receiving to cochain content; It wherein, include to cochain content in the transaction motion;
Motion sending module 1102, for above-mentioned transaction motion to be sent to the endorsement node in endorsement strategy included, with The intelligent contract on block chain, which is executed, by endorsement node simulation obtains auditing result to audit to cochain content;It is examined according to this Core result generates endorsement result.
Transaction endorsement device in above-mentioned block chain waits for that cochain content generates according to this if received to cochain content Transaction motion;The transaction motion is sent to the endorsement node in endorsement strategy included again, to execute by endorsement node simulation Intelligent contract on block chain obtains auditing result to audit to cochain content;Endorsement result is generated according to auditing result.It should The intelligent contract that mode is endorsed on node by block chain is audited to cochain content, not by the control of any individual or entity, because And the auditing flow is open and clear, avoids auditing result by interference caused by subjective factors, examines to improve block chain cochain content The fairness and reasonability of core.
Further, above-mentioned apparatus further include: result receiving module, the endorsement knot returned for receiving the endorsement node Fruit;Judgment module, for judging whether the endorsement result meets the corresponding endorsement strategy of the transaction motion;Cochain module, If the endorsement result and the transaction motion are sent to the common recognition node on the block chain, to pass through for meeting The common recognition node carries out cochain processing to cochain content to described.
It further, include multiple endorsement nodes in above-mentioned endorsement strategy;Above-mentioned judgment module is also used to: determining endorsement plan The endorsement number of nodes for the endorsement result that the multiple endorsement nodes for including in slightly return;It is greater than preset threshold in endorsement number of nodes In the case where, judge whether the endorsement result that each endorsement node returns is that endorsement passes through;If multiple endorsement sections The endorsement result that point returns is that endorsement passes through, and the endorsement result for determining that the endorsement node returns meets the transaction motion pair The endorsement strategy answered.
The technical effect of transaction endorsement device in block chain provided by the embodiment of the present invention, realization principle and generation Identical with preceding method embodiment, to briefly describe, Installation practice part does not refer to place, can refer to preceding method embodiment Middle corresponding contents.
The embodiment of the present invention also provides a kind of block chain network, and as shown in figure 12, which includes client 1201 and endorsement node 1202.
Above-mentioned client 1201 is used to send transaction motion to endorsement node;It wherein, include to cochain in the transaction motion Content.
Above-mentioned endorsement node 1202 is used to simulate the intelligent contract executed on block chain, received in cochain to audit Hold, obtains auditing result;And endorsement is generated as a result, endorsement result is back to above-mentioned client 1201 according to auditing result.
The intelligent contract that above-mentioned block chain network is endorsed on node by block chain is audited to cochain content, not by any The control of people or tissue, thus the auditing flow is open and clear, avoids auditing result by interference caused by subjective factors, to improve The fairness and reasonability of block chain cochain content auditing.
Further, above-mentioned endorsement node 1202 is also used to: by the intelligent contract on above-mentioned block chain, being called preset Content auditing algorithm;Wherein, which operates on endorsement node;By content auditing algorithm, judge to cochain It whether include preset sensitive word in content;If above-mentioned to not include sensitive word in cochain content, auditing result is determined to close Method;If above-mentioned to include sensitive word in cochain content, determine that auditing result is illegal.
Further, above-mentioned endorsement node 1202 is also used to: signature processing is carried out to above-mentioned auditing result, after obtaining signature The auditing result;Auditing result after signature is determined as result of endorsing.
Further, above-mentioned block chain network further include: common recognition node;Client 1201 is also used to receive above-mentioned endorsement section The endorsement result that point 1202 returns;Judge whether above-mentioned endorsement result meets the corresponding endorsement strategy of transaction motion;If met, Above-mentioned endorsement result and transaction motion are sent to common recognition node;Above-mentioned common recognition node to above-mentioned to cochain content for carrying out Chain processing.
Further, above-mentioned block chain network further includes submitting node;The common recognition node is also used to: being received and is come from client Endorsement result and transaction motion, according to it is preset common recognition algorithm to transaction motion in being ranked up to cochain content, for After sequence to cochain content, be sent to submission node according to preset block strategy generating block, and by block;The submission section Point is used for: to verifying in block to cochain content, cochain content is treated after upchecking and carries out cochain processing.
The technical effect and preceding method of block chain network provided by the embodiment of the present invention, realization principle and generation are real It is identical to apply example, to briefly describe, block chain network embodiment part does not refer to place, can refer to corresponding in preceding method embodiment Content.
The embodiment of the invention also provides a kind of server and user terminals, for running the transaction endorsement side in block chain Method;It is shown in Figure 13, including processor 101 and memory 100, which, which is stored with, to be executed by processor 101 Machine-executable instruction, the processor 101 execute machine-executable instruction to realize in block chain shown in above-described embodiment Transaction endorse method.
Further, server shown in Figure 13 further includes bus 102 and communication interface 103, and processor 101, communication connect Mouth 103 and memory 100 are connected by bus 102.
Wherein, memory 100 may include high-speed random access memory (RAM, Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 103 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..Bus 102 can be isa bus, pci bus or Eisa bus etc..The bus can be divided into address bus, data/address bus, control bus etc..Only to be used in Figure 13 convenient for indicating One four-headed arrow indicates, it is not intended that an only bus or a type of bus.
Processor 101 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization Each step of method can be completed by the integrated logic circuit of the hardware in processor 101 or the instruction of software form.On The processor 101 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute sheet Disclosed each method, step and logic diagram in inventive embodiments.General processor can be microprocessor or the processing Device is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in Hardware decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.Software mould Block can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable storage In the storage medium of this fields such as device, register maturation.The storage medium is located at memory 100, and processor 101 reads memory Information in 100, in conjunction with its hardware complete previous embodiment method the step of.
The embodiment of the invention also provides a kind of machine readable storage medium, which is stored with machine Executable instruction, for the machine-executable instruction when being called and being executed by processor, which promotes processor Realize the transaction endorsement method in above-mentioned block chain, specific implementation can be found in embodiment of the method, and details are not described herein.
The computer journey of transaction endorsement method, apparatus and block chain network in block chain provided by the embodiment of the present invention Sequence product, the computer readable storage medium including storing program code, the instruction that said program code includes can be used for holding Row previous methods method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (18)

  1. The method 1. transaction in a kind of block chain is endorsed, which is characterized in that the method is applied to the endorsement node in block chain, The described method includes:
    Receive the transaction motion from client;It wherein, include to cochain content in the transaction motion;
    Simulation executes the intelligent contract on the block chain, described to cochain content to audit, and obtains auditing result;
    Endorsement is generated as a result, the endorsement result is back to the client according to the auditing result.
  2. 2. the method according to claim 1, wherein simulation executes the intelligent contract on the block chain, to examine The step of described in core to cochain content, comprising:
    By the intelligent contract on the block chain, preset content auditing algorithm is called;Wherein, the content auditing algorithm fortune Row is on the endorsement node;
    By the content auditing algorithm, whether judgement is described to include preset sensitive word in cochain content;
    If described to not include the sensitive word in cochain content, determine that auditing result is legal;
    If described to include the sensitive word in cochain content, determine that auditing result is illegal.
  3. 3. according to the method described in claim 2, it is characterized in that, whether judgement is described to include preset quick in cochain content The step of feeling word, comprising:
    It is matched described to cochain content sensitive dictionary corresponding with the content auditing algorithm, obtains matching result;Its In, the cryptographic Hash of the sensitivity dictionary and the sensitive dictionary is stored on the block chain;
    If the matching result is that it fails to match, determine described to not include the sensitive word in cochain content;
    If the matching result is successful match, determine described to include the sensitive word in cochain content.
  4. 4. according to the method described in claim 2, it is characterized in that, determining that auditing result is legal step, comprising:
    If described to not include the sensitive word in cochain content, by preset network interface, third party's service is called to examine To cochain content described in core;
    If the third party's service audit passes through, determine that auditing result is legal.
  5. 5. the method according to claim 1, wherein according to the auditing result generate endorsement result the step of, Include:
    Signature processing is carried out to the auditing result, the auditing result after being signed;
    The auditing result after signature is determined as result of endorsing.
  6. The method 6. transaction in a kind of block chain is endorsed, which is characterized in that the method is applied to the client in block chain, institute The method of stating includes:
    If received to cochain content, transaction motion is generated to cochain content according to described;Wherein, it is wrapped in the transaction motion It includes described to cochain content;
    The transaction motion is sent to the endorsement node in endorsement strategy included, to execute institute by endorsement node simulation The intelligent contract on block chain is stated, it is described to cochain content to audit, obtain auditing result;It is generated and is carried on the back according to the auditing result Book result.
  7. 7. according to the method described in claim 6, it is characterized in that, by the transaction motion be sent to endorsement strategy in include After the step of endorsement node, the method also includes:
    Receive the endorsement result that the endorsement node returns;
    Judge whether the endorsement result meets the corresponding endorsement strategy of the transaction motion;
    If met, the endorsement result and the transaction motion are sent to the common recognition node on the block chain, to pass through The common recognition node carries out cochain processing to cochain content to described.
  8. 8. the method according to the description of claim 7 is characterized in that including multiple endorsement nodes in endorsement strategy;
    Whether the endorsement result for judging that the endorsement node returns meets the step of the corresponding endorsement strategy of the transaction motion Suddenly, comprising:
    Determine the endorsement number of nodes for the endorsement result that the multiple endorsement nodes for including in the endorsement strategy return;
    In the case where the endorsement number of nodes is greater than preset threshold, the endorsement result that each endorsement node returns is judged It whether is that endorsement passes through;
    If the endorsement result that multiple endorsement nodes return is that endorsement passes through, the endorsement that the endorsement node returns is determined As a result meet the corresponding endorsement strategy of the transaction motion.
  9. The device 9. transaction in a kind of block chain is endorsed, which is characterized in that described device is set to the endorsement node in block chain, Described device includes:
    Motion receiving module, for receiving the transaction motion from client;It wherein, include in cochain in the transaction motion Hold;
    Auditing module, it is described to cochain content to audit for simulating the intelligent contract executed on the block chain, it is audited As a result;
    Result return module, for generating endorsement as a result, the endorsement result is back to the visitor according to the auditing result Family end.
  10. The device 10. transaction in a kind of block chain is endorsed, which is characterized in that described device is set to the client in block chain, Described device includes:
    Motion generation module, if generating transaction motion to cochain content according to described for receiving to cochain content;Its In, it include described to cochain content in the transaction motion;
    Motion sending module, for the transaction motion to be sent to the endorsement node in endorsement strategy included, by described Node simulation of endorsing executes the intelligent contract on the block chain, described to cochain content to audit, and obtains auditing result;According to The auditing result generates endorsement result.
  11. 11. a kind of block chain network, which is characterized in that the block chain network includes client and endorsement node;
    The client is used to send transaction motion to the endorsement node;It wherein, include in cochain in the transaction motion Hold;
    The endorsement node is used to simulate the intelligent contract executed on the block chain, received described in cochain to audit Hold, obtains auditing result;And endorsement is generated as a result, the endorsement result is back to the client according to the auditing result End.
  12. 12. block chain network according to claim 11, which is characterized in that the endorsement node is also used to:
    By the intelligent contract on the block chain, preset content auditing algorithm is called;Wherein, the content auditing algorithm fortune Row is on the endorsement node;
    By the content auditing algorithm, whether judgement is described to include preset sensitive word in cochain content;
    If described to not include the sensitive word in cochain content, determine that auditing result is legal;
    If described to include the sensitive word in cochain content, determine that auditing result is illegal.
  13. 13. block chain network according to claim 11, which is characterized in that the endorsement node is also used to:
    Signature processing is carried out to the auditing result, the auditing result after being signed;
    The auditing result after signature is determined as result of endorsing.
  14. 14. block chain network according to claim 11, which is characterized in that the block chain network further include: common recognition section Point;
    The client is also used to receive the endorsement result that the endorsement node returns;Judge whether the endorsement result meets institute State the corresponding endorsement strategy of transaction motion;If met, the endorsement result and the transaction motion are sent to the common recognition Node;
    The common recognition node is used to carry out cochain processing to cochain content to described.
  15. 15. block chain network according to claim 11, which is characterized in that the block chain network further includes submitting section Point;
    The common recognition node is also used to: endorsement result and transaction motion from client is received, according to preset common recognition algorithm To being ranked up to cochain content in the transaction motion, for described in after sequence to cochain content, according to preset area Block strategy generating block, and the block is sent to submission node;
    The submission node is used for: to verifying in the block to cochain content, to described to cochain after upchecking Content carries out cochain processing.
  16. 16. a kind of server, which is characterized in that including processor and memory, the memory is stored with can be by the place The machine-executable instruction that device executes is managed, the processor executes the machine-executable instruction to realize claim 1 to 5 times Transaction endorsement method in block chain described in one.
  17. 17. a kind of user terminal, which is characterized in that including processor and memory, the memory is stored with can be described The machine-executable instruction that processor executes, the processor execute the machine-executable instruction to realize claim 6 to 8 Transaction endorsement method in described in any item block chains.
  18. 18. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with the executable finger of machine It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes processor to realize Transaction endorsement method in the described in any item block chains of claim 1 to 8.
CN201910825496.9A 2019-08-30 2019-08-30 Transaction endorsement method, apparatus and block chain network in block chain Pending CN110533429A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910825496.9A CN110533429A (en) 2019-08-30 2019-08-30 Transaction endorsement method, apparatus and block chain network in block chain
PCT/CN2020/097398 WO2021036440A1 (en) 2019-08-30 2020-06-22 Transaction endorsement method and apparatus in block chain, and block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910825496.9A CN110533429A (en) 2019-08-30 2019-08-30 Transaction endorsement method, apparatus and block chain network in block chain

Publications (1)

Publication Number Publication Date
CN110533429A true CN110533429A (en) 2019-12-03

Family

ID=68666196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910825496.9A Pending CN110533429A (en) 2019-08-30 2019-08-30 Transaction endorsement method, apparatus and block chain network in block chain

Country Status (2)

Country Link
CN (1) CN110533429A (en)
WO (1) WO2021036440A1 (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045722A (en) * 2019-12-06 2020-04-21 深圳前海环融联易信息科技服务有限公司 Intelligent contract packaging method, device, system, computer equipment and storage medium
CN111343142A (en) * 2020-01-22 2020-06-26 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium
CN111368521A (en) * 2020-02-29 2020-07-03 重庆百事得大牛机器人有限公司 Management method for legal advisor service
CN111414589A (en) * 2020-03-20 2020-07-14 支付宝(杭州)信息技术有限公司 Method, device and equipment for checking original works based on block chain
CN111464298A (en) * 2020-03-30 2020-07-28 北京金山云网络技术有限公司 Data processing method and device in block chain and block chain network
CN111815321A (en) * 2020-05-21 2020-10-23 北京金山云网络技术有限公司 Transaction proposal processing method, device, system, storage medium and electronic device
CN112150150A (en) * 2020-09-30 2020-12-29 重庆市科学技术研究院 Block chain-based electronic ticket transaction system and method
WO2021036440A1 (en) * 2019-08-30 2021-03-04 北京金山云网络技术有限公司 Transaction endorsement method and apparatus in block chain, and block chain network
CN112487102A (en) * 2020-12-15 2021-03-12 深圳前海微众银行股份有限公司 Block chain data processing method and device and electronic equipment
CN112532709A (en) * 2020-11-24 2021-03-19 杭州趣链科技有限公司 Uplink request processing method and device and block link point equipment
CN112597762A (en) * 2020-12-04 2021-04-02 广东省科学院智能制造研究所 Block chain system with intelligent contract data supervision function and supervision method
CN112686672A (en) * 2021-01-08 2021-04-20 新晨科技股份有限公司 Block chain endorsement signature compression method, electronic device and storage medium
CN112711777A (en) * 2020-12-29 2021-04-27 杭州趣链科技有限公司 Chain linking method, chain linking device and node equipment
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
WO2021114406A1 (en) * 2019-12-12 2021-06-17 深圳大学 Blockchain-based vaccine information monitoring method and apparatus, and computer device
CN113094427A (en) * 2021-03-10 2021-07-09 贾晓丰 Data management method and device based on block chain
CN113379420A (en) * 2021-06-25 2021-09-10 远光软件股份有限公司 Block chain execution intelligent contract method, computer equipment and block chain system
CN113409127A (en) * 2021-06-15 2021-09-17 微易签(杭州)科技有限公司 Block chain based medical electronic bill printing method, system and device
CN113435858A (en) * 2021-07-09 2021-09-24 建信金融科技有限责任公司 Advertisement data processing method, device and system based on block chain
CN113495920A (en) * 2020-04-02 2021-10-12 国家广播电视总局广播电视科学研究院 Content auditing system, method and device based on block chain and storage medium
CN114513317A (en) * 2020-10-27 2022-05-17 香港城市大学深圳研究院 Method, system, equipment and storage medium for resisting distributed denial of service attack
CN115134169A (en) * 2022-08-29 2022-09-30 北京中科金财科技股份有限公司 Block chain data management method and system
CN115242477A (en) * 2022-07-14 2022-10-25 武汉金融电子结算中心有限公司 Bill image exchange system in same city
WO2022242337A1 (en) * 2021-05-18 2022-11-24 华为技术有限公司 Method and apparatus for blockchain editing
WO2023184052A1 (en) * 2022-03-26 2023-10-05 华为技术有限公司 Data processing method, blockchain node and blockchain system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118214A (en) * 2017-06-26 2019-01-01 华为技术有限公司 The method and apparatus for running intelligent contract
CN109190337A (en) * 2018-07-26 2019-01-11 伦哲 A kind of method and system of the media content storage and retrieval based on block chain technology
CN109493204A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Business bookkeeping methods and terminal device based on block chain
CN109767212A (en) * 2018-10-11 2019-05-17 平安科技(深圳)有限公司 Assets exchanging method, system, terminal and storage medium based on block chain
CN110119428A (en) * 2019-04-19 2019-08-13 腾讯科技(深圳)有限公司 A kind of block chain information management method, device, equipment and storage medium
CN110175875A (en) * 2019-05-28 2019-08-27 山东省计算中心(国家超级计算济南中心) A kind of outdoor advertising acquisition method and device based on block chain

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190095645A1 (en) * 2017-09-22 2019-03-28 Justin Reinmuth The process of adding an endorsement to an existing Professional Liability/Errors & Omissions Insurance Policy to offer Cyber Liability/Cyber Data Breach Insurance to a policyholder's client
CN110048995B (en) * 2018-12-05 2021-02-09 创新先进技术有限公司 Method and device for confirming content of multimedia protocol and electronic equipment
CN109981679B (en) * 2019-04-08 2021-08-10 上海点融信息科技有限责任公司 Method and apparatus for performing transactions in a blockchain network
CN110533429A (en) * 2019-08-30 2019-12-03 北京金山云网络技术有限公司 Transaction endorsement method, apparatus and block chain network in block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118214A (en) * 2017-06-26 2019-01-01 华为技术有限公司 The method and apparatus for running intelligent contract
CN109190337A (en) * 2018-07-26 2019-01-11 伦哲 A kind of method and system of the media content storage and retrieval based on block chain technology
CN109767212A (en) * 2018-10-11 2019-05-17 平安科技(深圳)有限公司 Assets exchanging method, system, terminal and storage medium based on block chain
CN109493204A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Business bookkeeping methods and terminal device based on block chain
CN110119428A (en) * 2019-04-19 2019-08-13 腾讯科技(深圳)有限公司 A kind of block chain information management method, device, equipment and storage medium
CN110175875A (en) * 2019-05-28 2019-08-27 山东省计算中心(国家超级计算济南中心) A kind of outdoor advertising acquisition method and device based on block chain

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021036440A1 (en) * 2019-08-30 2021-03-04 北京金山云网络技术有限公司 Transaction endorsement method and apparatus in block chain, and block chain network
CN111045722A (en) * 2019-12-06 2020-04-21 深圳前海环融联易信息科技服务有限公司 Intelligent contract packaging method, device, system, computer equipment and storage medium
CN111045722B (en) * 2019-12-06 2023-08-25 深圳前海环融联易信息科技服务有限公司 Intelligent contract packaging method, device, system, computer equipment and storage medium
WO2021114406A1 (en) * 2019-12-12 2021-06-17 深圳大学 Blockchain-based vaccine information monitoring method and apparatus, and computer device
CN111343142A (en) * 2020-01-22 2020-06-26 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium
CN111368521A (en) * 2020-02-29 2020-07-03 重庆百事得大牛机器人有限公司 Management method for legal advisor service
CN111368521B (en) * 2020-02-29 2023-04-07 重庆百事得大牛机器人有限公司 Management method for legal advisor service
CN111414589A (en) * 2020-03-20 2020-07-14 支付宝(杭州)信息技术有限公司 Method, device and equipment for checking original works based on block chain
CN111464298A (en) * 2020-03-30 2020-07-28 北京金山云网络技术有限公司 Data processing method and device in block chain and block chain network
CN113495920B (en) * 2020-04-02 2023-06-16 国家广播电视总局广播电视科学研究院 Content auditing system, method and device based on blockchain and storage medium
CN113495920A (en) * 2020-04-02 2021-10-12 国家广播电视总局广播电视科学研究院 Content auditing system, method and device based on block chain and storage medium
CN111815321A (en) * 2020-05-21 2020-10-23 北京金山云网络技术有限公司 Transaction proposal processing method, device, system, storage medium and electronic device
CN112150150B (en) * 2020-09-30 2023-08-08 重庆市科学技术研究院 Electronic ticket transaction system and method based on blockchain
CN112150150A (en) * 2020-09-30 2020-12-29 重庆市科学技术研究院 Block chain-based electronic ticket transaction system and method
CN114513317B (en) * 2020-10-27 2024-06-04 香港城市大学深圳研究院 Method, system, equipment and storage medium for resisting distributed denial of service attack
CN114513317A (en) * 2020-10-27 2022-05-17 香港城市大学深圳研究院 Method, system, equipment and storage medium for resisting distributed denial of service attack
CN112532709A (en) * 2020-11-24 2021-03-19 杭州趣链科技有限公司 Uplink request processing method and device and block link point equipment
CN112597762A (en) * 2020-12-04 2021-04-02 广东省科学院智能制造研究所 Block chain system with intelligent contract data supervision function and supervision method
CN112597762B (en) * 2020-12-04 2024-03-08 广东省科学院智能制造研究所 Blockchain system with intelligent contract data supervision function and supervision method
CN112487102A (en) * 2020-12-15 2021-03-12 深圳前海微众银行股份有限公司 Block chain data processing method and device and electronic equipment
CN112487102B (en) * 2020-12-15 2024-03-19 深圳前海微众银行股份有限公司 Block chain data processing method and device and electronic equipment
CN112711777A (en) * 2020-12-29 2021-04-27 杭州趣链科技有限公司 Chain linking method, chain linking device and node equipment
CN112686672A (en) * 2021-01-08 2021-04-20 新晨科技股份有限公司 Block chain endorsement signature compression method, electronic device and storage medium
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
CN113094427A (en) * 2021-03-10 2021-07-09 贾晓丰 Data management method and device based on block chain
CN113094427B (en) * 2021-03-10 2023-12-19 贾晓丰 Data management method and device based on block chain
WO2022242337A1 (en) * 2021-05-18 2022-11-24 华为技术有限公司 Method and apparatus for blockchain editing
CN113409127B (en) * 2021-06-15 2023-12-15 微易签(杭州)科技有限公司 Block chain-based medical electronic bill printing method, system and device
CN113409127A (en) * 2021-06-15 2021-09-17 微易签(杭州)科技有限公司 Block chain based medical electronic bill printing method, system and device
CN113379420B (en) * 2021-06-25 2023-03-31 远光软件股份有限公司 Block chain execution intelligent contract method, computer equipment and block chain system
CN113379420A (en) * 2021-06-25 2021-09-10 远光软件股份有限公司 Block chain execution intelligent contract method, computer equipment and block chain system
CN113435858A (en) * 2021-07-09 2021-09-24 建信金融科技有限责任公司 Advertisement data processing method, device and system based on block chain
WO2023184052A1 (en) * 2022-03-26 2023-10-05 华为技术有限公司 Data processing method, blockchain node and blockchain system
CN115242477A (en) * 2022-07-14 2022-10-25 武汉金融电子结算中心有限公司 Bill image exchange system in same city
CN115134169B (en) * 2022-08-29 2022-11-15 北京中科金财科技股份有限公司 Block chain data management method and system
CN115134169A (en) * 2022-08-29 2022-09-30 北京中科金财科技股份有限公司 Block chain data management method and system

Also Published As

Publication number Publication date
WO2021036440A1 (en) 2021-03-04

Similar Documents

Publication Publication Date Title
CN110533429A (en) Transaction endorsement method, apparatus and block chain network in block chain
Shejwalkar et al. Back to the drawing board: A critical evaluation of poisoning attacks on production federated learning
CN111401558B (en) Data processing model training method, data processing device and electronic equipment
RU2635275C1 (en) System and method of identifying user&#39;s suspicious activity in user&#39;s interaction with various banking services
CN105306534B (en) Information verification method based on open platform and open platform
CN111681091B (en) Financial risk prediction method and device based on time domain information and storage medium
CN108881187A (en) A kind of across chain data transferring method and equipment suitable for permitting chain scene
CN105763547B (en) Third party&#39;s authorization method and third party&#39;s authoring system
CN102739638B (en) Establishing privileges through claims of valuable assets
CN106453061A (en) Method and system for recognizing internet fraud behavior
CN109639719B (en) Identity verification method and device based on temporary identifier
US11563727B2 (en) Multi-factor authentication for non-internet applications
JP6438534B2 (en) System and method for performing secure online banking transactions
KR20180113229A (en) Loan service providing method using black chain and system performing the same
CN109359948A (en) A kind of measure of managing contract and relevant device based on block chain
CN104092653B (en) Data processing method and system
CN109361697A (en) The method for realizing trusted identity certification based on SIM card load PKI
CN110266676A (en) A kind of method and device of pre- preventing malicious attack
Treleaven et al. The future of cybercrime: AI and emerging technologies are creating a cybercrime tsunami
CN111222885B (en) Data processing request endorsement method and device, computer equipment and storage medium
CN108600259A (en) The certification of equipment and binding method and computer storage media, server
US9904662B2 (en) Real-time agreement analysis
CN111832661A (en) Classification model construction method and device, computer equipment and readable storage medium
CN104252676A (en) System and method for using real-time communication and digital certificate to authenticate Internet bank account identity
CN107679865B (en) Identity verification method and device based on touch area

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191203