CN108039948A - Node maitaining method, device and electronic equipment - Google Patents

Node maitaining method, device and electronic equipment Download PDF

Info

Publication number
CN108039948A
CN108039948A CN201711270469.7A CN201711270469A CN108039948A CN 108039948 A CN108039948 A CN 108039948A CN 201711270469 A CN201711270469 A CN 201711270469A CN 108039948 A CN108039948 A CN 108039948A
Authority
CN
China
Prior art keywords
authority
node
maintenance
data
account book
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
CN201711270469.7A
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 Bo Chen Technology Co Ltd
Original Assignee
Beijing Bo Chen 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 Bo Chen Technology Co Ltd filed Critical Beijing Bo Chen Technology Co Ltd
Priority to CN201711270469.7A priority Critical patent/CN108039948A/en
Publication of CN108039948A publication Critical patent/CN108039948A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • 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
    • 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
    • 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/407Cancellation 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention is on a kind of node maitaining method, device and electronic equipment, belongs to technical field of information processing.The described method includes:Receive and safeguard transaction;Extracted in transaction is safeguarded and safeguard signature, determine the corresponding at least one authority of maintenance signature;When at least one authority includes node maintenance authority, acquisition safeguard data, based on safeguard data to distributed account book system carry out node maintenance.The present invention includes safeguarding that the maintenance for signing and safeguarding data is merchandised by receiving, determine to safeguard corresponding at least one authority of signing, when at least one authority includes node maintenance authority, based on safeguard data to distributed account book system carry out node maintenance, due to safeguarding that data are carried in transaction is safeguarded, so that node is completed to safeguarding that data are known together when common recognition safeguards transaction, new node listing is generated without data-sharing systems, it is stopped without node and knows together to new node listing, shorten the time of node maintenance, the efficiency of node maintenance is higher.

Description

Node maitaining method, device and electronic equipment
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of node maitaining method, device and electronic equipment.
Background technology
With the continuous development of information technology, the block chain technology brand-new as one obtains development energetically.Block chain Technology is derived from the bit coin technology occurred in 2008, is the Floor layer Technology of bit coin.Block chain refers to use cryptography a string Method is associated the block of generation, and each area block data in the block is deposited with Shang Yige areas block data in the block in block chain Associating.Since block chain has higher security, and the characteristic with decentralization, therefore, in distributed account book system In, it is typically based on block chain and data is stored.Distributed account book system refers to be used to carry out data between node and node Shared system, the distribution account book system include multiple nodes, are stored with each node in multiple nodes identical Block chain.When receiving Transaction Information, whole nodes in distributed account book system can be based on all distributed account book system As PBFT (Practical Byzantine Fault Tolerance, Byzantium's common recognition algorithm), Paxos (are based on message transmission Consistency algorithm) scheduling algorithm knows together Transaction Information, and after knowing together successfully, can just write transaction data distributed Account book in account book system.Distributed account book run during, due to node occur during operation collapse or Person delays the situation of machine, and therefore, it is necessary to carry out such as adding node to the node in distributed account book system, replace node, delete Node etc. is safeguarded, so as to ensure the normal operation of distributed account book system.
In correlation technique, due to the node in distributed account book system when being known together, it is necessary to based on current distributed The number of account book system interior joint carries out, therefore, when the node in distributed account book system changes, distributed account book system System needs to generate new node listing according to the whole nodes that there is currently, and then whole nodes pair in distributed account book system New node listing is known together, so as to be safeguarded to the node in distributed account book system, ensures distributed account book system Correctness during follow-up offer service.
In the implementation of the present invention, inventor has found that correlation technique has at least the following problems:
Since distributed account book system can generate new node listing when being safeguarded to node, distributed account Whole nodes in the system are when knowing together new node listing, it is necessary to be stopped, based on new node listing change node Configuration file, and restart, the node maintenance for causing distributed account book system each can take a substantial amount of time, node dimension That protects is less efficient.
The content of the invention
To overcome node maintenance present in correlation technique to take a substantial amount of time, the less efficient of node maintenance is asked Topic, the present invention provide a kind of node maitaining method, device and electronic equipment.
First aspect according to embodiments of the present invention, there is provided a kind of node maitaining method, the method are applied to node, institute It is any node in distributed account book system to state node, the described method includes:
Maintenance transaction is received, it is described to safeguard that transaction includes at least maintenance signature and safeguards data;
Described safeguard is extracted in the maintenance transaction to sign, and determines the corresponding at least one authority of the maintenance signature;
When at least one authority includes node maintenance authority, acquisition is described to safeguard data, and number is safeguarded based on described Node maintenance is carried out according to the distributed account book system.
In another embodiment, it is described that the maintenance signature is extracted in the maintenance transaction, determine that described safeguard is signed The corresponding at least one authority of name includes:
Described safeguard is extracted in the maintenance transaction to sign, and determines the corresponding public key of the maintenance signature;
The corresponding at least one authority of the public key is searched, obtains at least one authority.
In another embodiment, it is described when at least one authority includes node maintenance authority, obtain the dimension Data are protected, safeguard that data carry out node maintenance to the distributed account book system and include based on described:
When at least one authority includes node maintenance authority, acquisition is described to safeguard data;
Safeguard that data carry out data common recognition to described, when detecting other nodes in the distributed account book system to institute State when safeguarding that data know together successfully, by the account book for safeguarding the data write-in distributed account book system, complete section Point is safeguarded.
In another embodiment, it is described to be wrapped in the account book for safeguarding the data write-in distributed account book system Include:
Data are safeguarded based on described, generate block, and the block safeguards data including at least described;
The block is added in the block chain of the account book;
The block is broadcasted to other nodes in the distributed account book system, so that other nodes write the area Block.
In another embodiment, the method further includes:
When receiving authority transfer transactions, trading signature and specified public key are extracted in the authority transfer transactions;
Determine the corresponding at least one authority of the trading signature;
If at least one authority includes transfer authority, the corresponding at least one authority of the trading signature is deleted Remove, the node for the specified public key instruction adds at least one authority;
If at least one authority does not include the transfer authority, the authority transfer transactions are abandoned.
Second aspect according to embodiments of the present invention, there is provided a kind of node maintenance device, described device are applied to node, institute It is any node in distributed account book system to state node, and described device includes:
Receiving module, it is described to safeguard that transaction includes at least maintenance signature and safeguards data for receiving maintenance transaction;
Determining module, signs for extracting described safeguard in the maintenance transaction, and it is corresponding to determine that the maintenance is signed At least one authority;
Maintenance module, for when at least one authority includes node maintenance authority, obtains and described safeguards data, base Safeguard that data carry out node maintenance to the distributed account book system in described.
In another embodiment, the determining module includes:
Determination sub-module, signs for extracting described safeguard in the maintenance transaction, determines that the maintenance is signed and corresponds to Public key;
Submodule is searched, for searching the corresponding at least one authority of the public key, obtains at least one authority.
In another embodiment, the maintenance module includes:
Acquisition submodule, for when at least one authority includes node maintenance authority, obtains and described safeguards data;
Submodule is write, for safeguarding that data carry out data common recognition to described, when detecting the distributed account book system In other nodes to it is described safeguard that data know together successfully when, safeguard the data write-in distributed account book system by described Account book in, complete node maintenance.
In another embodiment, said write submodule, is additionally operable to safeguard data based on described, generates block, described Block safeguards data including at least described;The block is added in the block chain of the account book;By the block broadcast to Other nodes in the distribution account book system, so that other nodes write the block.
In another embodiment, described device further includes:
Extraction module, for when receiving authority transfer transactions, trading signature to be extracted in the authority transfer transactions And specified public key;
The determining module, is additionally operable to determine the corresponding at least one authority of the trading signature;
Shift module, it is if including transfer authority at least one authority, the trading signature is corresponding extremely A few authority is deleted, and the node for the specified public key instruction adds at least one authority;
Discard module, if not including the transfer authority at least one authority, the authority is shifted and is handed over Easily abandon.
The technical solution that the embodiment of the present invention provides can include the following benefits:
Include safeguarding that the maintenance for signing and safeguarding data is merchandised by receiving, the extraction maintenance signature in maintenance is merchandised, really Fixed to safeguard corresponding at least one authority of signing, when at least one authority includes node maintenance authority, data, base are safeguarded in acquisition In safeguarding data to distributed account book system progress node maintenance, due to safeguarding that data are carried in transaction is safeguarded so that node Completed when common recognition safeguards transaction to safeguarding that data are known together, new node listing generated without data-sharing systems, Be stopped without node and know together to new node listing, shorten the time of node maintenance, the efficiency of node maintenance compared with It is high.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and for explaining the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of node maitaining method according to an exemplary embodiment;
Fig. 2A is a kind of implementation framework figure of node maitaining method according to an exemplary embodiment;
Fig. 2 B are a kind of implementation framework figures of node maitaining method according to an exemplary embodiment;
Fig. 3 A are a kind of flow charts of node maitaining method according to an exemplary embodiment;
Fig. 3 B are a kind of schematic diagrames of node maitaining method according to an exemplary embodiment;
Fig. 3 C are a kind of schematic diagrames of node maitaining method according to an exemplary embodiment;
Fig. 3 D are a kind of schematic diagrames of node maitaining method according to an exemplary embodiment;
Fig. 3 E are a kind of schematic diagrames of node maitaining method according to an exemplary embodiment;
Fig. 3 F are a kind of flow charts of node maitaining method according to an exemplary embodiment;
Fig. 4 A are a kind of block diagrams of node maintenance device according to an exemplary embodiment;
Fig. 4 B are a kind of block diagrams of node maintenance device according to an exemplary embodiment;
Fig. 4 C are a kind of block diagrams of node maintenance device according to an exemplary embodiment;
Fig. 4 D are a kind of block diagrams of node maintenance device according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of node maintenance device 500 according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of node maitaining method according to an exemplary embodiment, as shown in Figure 1, the party Method is applied to node, and node is any node in distributed account book system, and this method comprises the following steps.
In a step 101, maintenance transaction is received, safeguards that transaction includes at least maintenance signature and safeguards data.
In a step 102, extracted in transaction is safeguarded and safeguard signature, determine the corresponding at least one authority of maintenance signature.
In step 103, when at least one authority includes node maintenance authority, data are safeguarded in acquisition, based on safeguarding number Node maintenance is carried out according to distributed account book system.
Method provided in an embodiment of the present invention, includes safeguarding that the maintenance for signing and safeguarding data is merchandised, is tieing up by receiving Signature is safeguarded in extraction in shield transaction, determines to safeguard corresponding at least one authority of signing, when at least one authority is tieed up including node When protecting authority, data are safeguarded in acquisition, based on data are safeguarded to distributed account book system progress node maintenance, due to safeguarding that data are taken Band is in transaction is safeguarded so that node is completed to safeguarding that data are known together, without data sharing when common recognition safeguards transaction System generates new node listing, is stopped without node and knows together to new node listing, shortens node maintenance Time, the efficiency of node maintenance is higher.
In another embodiment, signature is safeguarded in extraction in transaction is safeguarded, determines that maintenance signature is corresponding at least one Authority includes:
Extracted in transaction is safeguarded and safeguard signature, determine the corresponding public key of maintenance signature;
The corresponding at least one authority of public key is searched, obtains at least one authority.
In another embodiment, when at least one authority includes node maintenance authority, data are safeguarded in acquisition, based on dimension Shield data carry out node maintenance to distributed account book system to be included:
When at least one authority includes node maintenance authority, data are safeguarded in acquisition;
To safeguard data carry out data common recognition, when detect other nodes in distributed account book system to safeguard data into When row is known together successfully, by the account book for safeguarding the distributed account book system of data write-in, node maintenance is completed.
In another embodiment, the account book for safeguarding the distributed account book system of data write-in is included:
Based on data are safeguarded, block is generated, block includes at least and safeguards data;
Block is added in the block chain of account book;
Block is broadcasted to other nodes in distributed account book system, so that other nodes write block.
In another embodiment, method further includes:
When receiving authority transfer transactions, trading signature and specified public key are extracted in authority transfer transactions;
Determine the corresponding at least one authority of trading signature;
If at least one authority includes transfer authority, the corresponding at least one authority of trading signature is deleted, is specified The node of public key instruction adds at least one authority;
If at least one authority does not include transfer authority, authority transfer transactions are abandoned.
Above-mentioned all optional technical solutions, can use any combination to form the alternative embodiment of the present invention, herein no longer Repeat one by one.
Before detailed explanation is carried out to the present invention, first to the present embodiments relate to implementation framework carry out letter It is single to introduce.
Referring to the distributed account book system shown in Fig. 2A, distributed account book system 200 refers to be used to carry out node and node Between data sharing system, multiple nodes 201 can be included in the distribution account book system, multiple nodes 201 can refer to Each client in distributed account book system.Each node 201 can receive input information carrying out normal work, and be based on The shared data in the input maintenance of information distribution account book system received.In order to ensure the letter in distributed account book system Intercommunication is ceased, there may be information connection between each node in distributed account book system, can pass through above-mentioned letter between node Breath is connected to be transmitted into row information.For example, when the arbitrary node in distributed account book system receives input information, distributed account Other nodes in the system just obtain the input information according to common recognition algorithm, by this enter information as data in account book into Row storage so that the data stored in distributed account book system on whole nodes are consistent.Wherein, distributed account book system can be Transaction system, transaction system refer to the system for financial transaction.It can include multiple nodes, Mei Gejie in distributed account book system Point generates account book data when being traded, and based on the account book in the account book data maintenance transaction system.When distributed account book When node in system receives transaction data, each node in distributed account book system can verify the label of the transaction data Name, and after good authentication signature, generation common recognition broadcast, reaches the transaction data so that other nodes are based on common recognition broadcast Common recognition, and after reaching common understanding to the transaction data, which is write into account book.
During practical application, referring to Fig. 2 B, which can also be by block chain 1, block chain 2, net Network forms.Block chain 1 and block chain 2 include four computers, distributed account book software are run on computer, and can store hair The data being sent in distributed account book system.The block chain number and area that the embodiment of the present invention includes distributed account book system The computer number that block chain includes is limited without specific.
Fig. 3 A are a kind of flow charts of node maitaining method according to an exemplary embodiment, as shown in Figure 3A, should Method is applied to node, and node is any node in distributed account book system, and this method comprises the following steps.
In step 301, node receives maintenance transaction, safeguards that transaction includes at least maintenance signature and safeguards data.
It was recognized by the inventor that node provides corresponding service to the user by handling transaction, therefore, to distributed account book When node in system is safeguarded, it can will safeguard that data submit to node in the form of merchandising, so that node is handed over according to processing Data are safeguarded in easy process processing, avoid interrupting the normal work of node when safeguarding node.Distributed account book system In can set and safeguard node, when needing to safeguard the node in distributed account book system, which will give birth to Transaction is safeguarded into corresponding, and maintenance transaction is transmitted to each node in distributed account book system.Wherein, section is safeguarded Point can be what user was voluntarily set, safeguard that node has at least one authority safeguarded to node, which can be addition Node authority, replace node authority and deletion of node authority.Distributed account book system can be to safeguard that node sets different authorities, So that follow-up maintenance node carries out node maintenance to distributed account book system.
For each safeguards node, corresponding public key is respectively provided with, distributed account book system can set power Inlet porting is limited, when detecting that user triggers the priority assignation entrance, display public key determines the page, so that user is true in public key Determine which public key setting authority the page is determined as, and after detecting that user is determined public key, display includes all power The priority assignation page of limit;After detecting that user completes the selection at least one authority in the priority assignation page, it will use Family selection at least one priority assignation for public key authority.
After the completion of to safeguarding that the authority of node is configured, each node in distributed account book system, which will be safeguarded, to be saved The public key of point is with safeguarding that at least one authority of node is stored, can be with so as to subsequently in the corresponding authority of definite public key Authority lookup is carried out based on public key.Wherein it is possible to generate the power for being used for correspondence between storage of public keys and authority shown in table 1 Limit list.
Table 1
Public key Authority
Public key 1 Add node authority
Public key 2 Deletion of node authority
During practical application, it is contemplated that safeguard that node may need to set a variety of authorities, therefore, public key is corresponding Authority may be one or more.The embodiment of the present invention limits the corresponding authority number of public key without specific.
It should be noted that node is safeguarded when transaction is safeguarded in generation, in order to make node subsequently determine the maintenance node Whether there is the authority safeguarded to node, it is necessary to sign based on the public key of itself, signature is safeguarded in generation, and this is tieed up Shield signature is carried in transaction is safeguarded.Further, since node can be to the section in distributed account book system for safeguarding with authority Point performs addition node, replaces the operation such as node and deletion of node, therefore, for different operations, safeguards that node can generate bag Include the different maintenance transaction for safeguarding data.For example, when needs perform the addition nodal operation to distributed account book system interior joint When, safeguard that node can generate maintenance data as shown in Figure 3B;When needs perform the replacement to distributed account book system interior joint During nodal operation, safeguard that node can generate maintenance data as shown in Figure 3 C;Saved in needing to perform to distributed account book system During the deletion of node operation of point, safeguard that node can generate maintenance data as shown in Figure 3D.The embodiment of the present invention is to safeguarding node The type for safeguarding data of generation is limited without specific.
In step 302, node extracts in transaction is safeguarded and safeguards signature, determines the corresponding public key of maintenance signature.
In embodiments of the present invention, after node receives maintenance transaction, just signature is safeguarded in extraction in transaction is safeguarded.By Generated in safeguarding to sign based on the public key for safeguarding node, therefore, can determine the public key of the maintenance node according to safeguarding to sign, into And subsequently determined to safeguard at least one authority of node according to public key.
In step 303, the corresponding at least one authority of public key is searched, obtains at least one authority.
In embodiments of the present invention, authority includes at least addition node authority, replaces node authority and deletion of node authority. After according to safeguarding that signature determines public key, since each node is stored between public key and authority in distributed account book system Correspondence, therefore, can in node be inquired about based on public key, determine the corresponding authority of public key.Wherein, if do not looked into Find the corresponding authority of public key, then it represents that the node for holding the public key is not to safeguard node, namely and without to node into The maintenance received can be merchandised and abandoned by the authority that row is safeguarded, node, and continue reception and processing to other transaction.
In step 304, when at least one authority includes node maintenance authority, data are safeguarded in acquisition, to safeguarding data Carry out data common recognition.
In embodiments of the present invention, since criminal may forge malicious data, and into distributed account book system Node send the malicious data, and then the data of account book in node are stolen by the malicious data, therefore, work as acquisition To after the corresponding at least one authority of public key, if at least one authority includes node maintenance authority, node, which obtains, to be safeguarded The maintenance data carried in transaction, know together the maintenance data, if to safeguarding that data are known together successfully, continue to be based on being somebody's turn to do Safeguard that data generate block, block is write to the block chain of account book in distributed account book system, and perform the maintenance data;If To safeguarding data common recognition failure, then the maintenance data are abandoned, continue to and handle be sent in distributed account book system Other transaction.Wherein, node, can be to safeguarding that data carry out signature verification, generation verification when to safeguarding that data are known together As a result, and based on verification result generation common recognition broadcast, the broadcast that will know together is transmitted to whole nodes in distributed account book system, The common recognition broadcast of other node-node transmissions in distributed account book system is received at the same time, to carry out data common recognition to the maintenance data.
In step 305, when detecting other nodes in distributed account book system to safeguarding that data know together successfully When, based on data are safeguarded, block is generated, block is added in the block chain of account book, block is broadcasted to distributed account book system Other nodes in system, so that other nodes write block, block includes at least and safeguards data.
In embodiments of the present invention, for any node in distributed account book system, when receiving distributed account book system In system during the common recognition broadcast of other node-node transmissions, it is determined that detect other nodes in distributed account book system to safeguarding data Reach common understanding, you can generate block based on the maintenance data, block is added in the block chain of account book, and then perform the maintenance Data.During practical application, due to that can have fraud node in distributed account book system, and cheat node can't be to Other node-node transmissions in distributed account book system, which are known together, broadcasts so that the quantity for the common recognition broadcast that node receives, which can be less than, divides The number of nodes of other nodes in cloth account book system, can be that the node in distributed account book system sets default section therefore Point quantity, the and then when node in distributed account book system is known together, node can count the common recognition broadcast that receives Quantity of broadcast, when quantity of broadcast is more than default number of nodes, it is determined that other nodes are to safeguarding that data have reached common recognition, you can Call back function is mounted on data-interface.Wherein, can be according to real in distributed account book system when setting default number of nodes The number of nodes on border is configured.It is arranged to default by the 80% of number of nodes actual in distributed account book system for example, setting Number of nodes, if distributed account book system includes 100 nodes, 80 are arranged to by default number of nodes.
It should be noted that since the node in distributed account book system can have delay in transmission common recognition broadcast, make The common recognition broadcast of other node-node transmissions can not be immediately received by obtaining node, therefore, on each node in distributed account book system Timer can be set, and overtime duration is set on timer.The common recognition for receiving other node-node transmissions first when node is wide Sowing time, starts timer, and continues to the common recognition broadcast of other node-node transmissions;When the timing duration of timer reaches time-out When long, then stop timing and receive common recognition broadcast, the quantity of broadcast for the common recognition broadcast being currently received is counted, if statistics obtains Quantity of broadcast be more than or equal to default number of nodes, it is determined that other nodes in distributed account book system are to safeguarding that data are reached Common recognition, based on safeguard data generate block;If counting obtained quantity of broadcast is less than default number of nodes, it is determined that distributed account Other nodes in the system just will safeguard that data abandon, and continue to other transaction to safeguarding that data are not reached common understanding. The mode that the embodiment of the present invention receives node and count common recognition broadcast is limited without specific.
After the common recognition to the maintenance data is successful, node can be based on safeguarding that data generate block, and block is added Broadcasted into the block chain of account book, and by block to other nodes in distributed account book system, so that other node write areas Block.Wherein, node when generating block, it is necessary to according to safeguard data generate so that the block chain pair in distributed account book system This node maintenance process is recorded.
For example, with reference to Fig. 3 E, if the node in current distribution account book system is tetra- nodes of A, B, C, D, if received To maintenance transaction in the maintenance data that carry be { Type=1, Newid=E, Height=100, Sign=XXX }, wherein, " Type=1 " represents to add new node, and " Newid=E " represents that the node identification of the new node of addition is E, " Height= The block of block chain is highly 100 in 100 " expression new nodes, and " Sign=XXX " represents that the desired value of record new node is XXX, Then after tetra- nodes of A, B, C, D reach common understanding the maintenance data, each node in tetra- nodes of A, B, C, D can generate bag Include the block of the maintenance data, and the block be broadcast to other nodes, so as to other nodes based on the block that itself generates with The block received is compared, and when the block of itself generation is consistent with the block received, block is added to block chain In;Meanwhile increase new node E in distributed account book system, and by any node in tetra- nodes of A, B, C, D by the area of itself Block chain is transmitted to node E, so that the block chain in the block chain on node E and tetra- nodes of A, B, C, D is consistent.
In the case of distributed account book system interior joint is deleted, if currently the node in distribution account book system is A, B, C, five nodes of D, E, if the maintenance data carried in the maintenance transaction received are { Type=2, Oldid=E, Height =100, Sign=XXX }, wherein, " Type=2 " represents deletion of node, and " Oldid=E " represents the node mark of node to be deleted Know and represent that the block for the block that node to be deleted includes highly is 100 for E, " Height=100 ", " Sign=XXX " is represented The desired value of node to be deleted is XXX, then after five nodes of A, B, C, D, E reach common understanding the maintenance data, A, B, C, D tetra- Each node in a node can generate the block for including the maintenance data, and the block is broadcast to other nodes, so as to it He is compared node based on the block that itself is generated with the block received, when the block that itself is generated and the block received When consistent, block is added in block chain;Meanwhile distributed account book system deletes node E, and by the block in node E Chain is together deleted.Wherein, during node is replaced, it is necessary to first carry out the process of above-mentioned deletion of node, and perform again above-mentioned The process of node is added, is no longer repeated herein.
It should be noted that due to safeguarding that node there may be collapsing or the situation for machine of delaying, needs in these cases The maintenance node more renewed, at this moment, just needing current safeguarding, authority is transferred to new maintenance node by node, referring to Fig. 3 F, Can be by shown in execution figure the step of, realizes the transfer of authority.And if need not be by currently in distributed account book system Safeguard that the authority of node is transferred to new maintenance node, then need not perform following step 306 to step 308, only perform above-mentioned step Rapid 301 to step 305.
Within step 306, when receiving authority transfer transactions, trading signature is extracted in authority transfer transactions and is specified Public key, determines the corresponding at least one authority of trading signature, if at least one authority includes transfer authority, performs following step 307;If at least one authority does not include transfer authority, following step 308 is performed.
In embodiments of the present invention, trading signature is generated based on the public key for safeguarding node, specifies public key new for identifying Safeguard node, when needing to carry out authority transfer, safeguard that node can generate and carry trading signature and specified public key, so as to node root Determine to safeguard whether node has a transfer authority according to trading signature, and when detect safeguard that node has transfer authority when, to dimension The authority of shield node is shifted, namely performs following step 307;When detect safeguard node without transfer authority when, will The authority transfer transactions abandon, and continue to other transaction, namely perform following step 308.Wherein, node determines transaction label The process of the corresponding at least one authority of name is consistent to the process shown in step 303 with above-mentioned steps 302, no longer carries out herein Repeat.
In step 307, if at least one authority includes transfer authority, by the corresponding at least one authority of trading signature Delete, to specify the node of public key instruction to add at least one authority.
In embodiments of the present invention, if the corresponding at least one authority of trading signature includes transfer authority, then it represents that send Authority transfer transactions safeguard that node has authority are transferred to the authorities of other nodes, and therefore, node is by the transaction of storage Corresponding at least one authority of signing is deleted, and by the specified public key carried in authority transfer transactions and at least one authority into Row storage, so as to which at least one authority safeguarded node and had is transferred to other nodes.It should be noted that node is carrying out When authority shifts, the current correspondence safeguarded between the public key of node and authority can not be also deleted, it is only necessary to will currently safeguard section The corresponding priority assignation of public key of point is empty set, and increases the correspondence between new public key and authority.It is of the invention real Example is applied to limit the mode of node transfer authority without specific.
In step 308, if at least one authority does not include transfer authority, authority transfer transactions are abandoned.
In embodiments of the present invention, if not including transfer authority at least one authority, then it represents that sending permission transfer is handed over Easy safeguards node and without the authority for being shifted authority, and therefore, node can not perform authority transfer operation, will receive The authority transfer transactions arrived abandon.
Method provided in an embodiment of the present invention, includes safeguarding that the maintenance for signing and safeguarding data is merchandised, is tieing up by receiving Signature is safeguarded in extraction in shield transaction, determines to safeguard corresponding at least one authority of signing, when at least one authority is tieed up including node When protecting authority, data are safeguarded in acquisition, based on data are safeguarded to distributed account book system progress node maintenance, due to safeguarding that data are taken Band is in transaction is safeguarded so that node is completed to safeguarding that data are known together, without data sharing when common recognition safeguards transaction System generates new node listing, is stopped without node and knows together to new node listing, shortens node maintenance Time, the efficiency of node maintenance is higher.
Fig. 4 A are a kind of block diagrams of node maintenance device according to an exemplary embodiment.With reference to Fig. 4 A, the device Including receiving module 401, determining module 402 and maintenance module 403.
The receiving module 401, for receiving maintenance transaction, safeguards that transaction includes at least maintenance signature and safeguards data;
The determining module 402, for the extraction maintenance signature in transaction is safeguarded, determines that maintenance signature is corresponding at least one Authority;
The maintenance module 403, for when at least one authority includes node maintenance authority, data to be safeguarded in acquisition, are based on Safeguard that data carry out node maintenance to distributed account book system.
Device provided in an embodiment of the present invention, includes safeguarding that the maintenance for signing and safeguarding data is merchandised, is tieing up by receiving Signature is safeguarded in extraction in shield transaction, determines to safeguard corresponding at least one authority of signing, when at least one authority is tieed up including node When protecting authority, data are safeguarded in acquisition, based on data are safeguarded to distributed account book system progress node maintenance, due to safeguarding that data are taken Band is in transaction is safeguarded so that node is completed to safeguarding that data are known together, without data sharing when common recognition safeguards transaction System generates new node listing, is stopped without node and knows together to new node listing, shortens node maintenance Time, the efficiency of node maintenance is higher.
In another embodiment, referring to Fig. 4 B, the determining module 402, including determination sub-module 4021 and lookup submodule Block 4022.
The determination sub-module 4021, signature is safeguarded for being extracted in transaction is safeguarded, determines the corresponding public key of maintenance signature;
The lookup submodule 4022, for searching the corresponding at least one authority of public key, obtains at least one authority.
In another embodiment, referring to Fig. 4 C, the maintenance module 403, including acquisition submodule 4031 and write-in submodule Block 4032.
The acquisition submodule 4031, for when at least one authority includes node maintenance authority, data to be safeguarded in acquisition;
The write-in submodule 4032, for safeguarding that data carry out data common recognition, when detecting in distributed account book system Other nodes to safeguarding that data know together successfully when, in the account book that will safeguard the distributed account book system of data write-in, complete Node maintenance.
In another embodiment, the write-in submodule 4032, is additionally operable to, based on data are safeguarded, generate block, block is extremely It is few to include safeguarding data;Block is added in the block chain of account book;Block is broadcasted to other in distributed account book system Node, so that other nodes write block.
In another embodiment, referring to Fig. 4 D, which further includes extraction module 404, shift module 405 and discarding mould Block 406.
The extraction module 404, for when receiving authority transfer transactions, trading signature to be extracted in authority transfer transactions And specified public key;
The determining module 402, is additionally operable to determine the corresponding at least one authority of trading signature;
The shift module 405, if including transfer authority at least one authority, by trading signature corresponding at least one A authority is deleted, to specify the node of public key instruction to add at least one authority;
The discard module 406, if not including transfer authority at least one authority, authority transfer transactions are abandoned.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of block diagram of node maintenance device 500 according to an exemplary embodiment.For example, device 500 can To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, are good for Body equipment, personal digital assistant etc..
With reference to Fig. 5, device 500 can include following one or more assemblies:Processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of I/O (Input/Output, input/output), sensor Component 514, and communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, call, data communication, phase The operation that machine operates and record operation is associated.Processing component 502 can refer to including one or more processors 520 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 502 can include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application program or method for operating on device 500, and contact data, telephone book data, disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 500.
Multimedia component 508 is included in the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen includes touch panel, screen may be implemented as touch-screen, from the user to receive Input signal.Touch panel includes one or more touch sensors to sense the gesture on touch, slip and touch panel.Institute The boundary of a touch or slide action can not only be sensed by stating touch sensor, but also be detected and the touch or slide phase The duration and pressure of pass.In certain embodiments, multimedia component 508 includes a front camera and/or postposition is taken the photograph As head.When device 500 is in operator scheme, during such as screening-mode or video mode, front camera and/or rear camera can With the multi-medium data outside reception.Each front camera and rear camera can be a fixed optical lens systems Or there is focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a MIC (Microphone, microphone), when device 500 is in operator scheme, such as call model, logging mode and speech recognition mode When, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 504 Or sent via communication component 516.In certain embodiments, audio component 510 further includes a loudspeaker, for exporting audio Signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor component 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor component 514 can detect opening/closed mode of equipment 500, the relative positioning of component, such as component For the display and keypad of device 500, sensor component 514 can be with the position of 500 1 components of detection device 500 or device Put change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and the temperature of device 500 Change.Sensor component 514 can include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor component 514 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, complementary metal oxide) or CCD (Charge-coupled Device, charge coupled cell) image biography Sensor, for being used in imaging applications.In certain embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes NFC (Near Field Communication, near field leads to Letter) module, to promote junction service.For example, RFID (Radio Frequency can be based in NFC module Identification, radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) skill Art, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, device 500 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at digital signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device), FPGA) (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, for performing above-mentioned node maitaining method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-metioned instruction can be performed to complete the above method by the processor 520 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory Device), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and light data deposit Store up equipment etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by node maintenance device When processor performs so that node maintenance device is able to carry out above-mentioned node maitaining method.
A1, a kind of node maitaining method, it is characterised in that the method is applied to node, and the node is distributed account Any node in the system, the described method includes:
Maintenance transaction is received, it is described to safeguard that transaction includes at least maintenance signature and safeguards data;
Described safeguard is extracted in the maintenance transaction to sign, and determines the corresponding at least one authority of the maintenance signature;
When at least one authority includes node maintenance authority, acquisition is described to safeguard data, and number is safeguarded based on described Node maintenance is carried out according to the distributed account book system.
A2, according to the method described in claim 1, it is characterized in that, it is described it is described safeguard transaction in extract the dimension Shield signature, determines that the corresponding at least one authority of the maintenance signature includes:
Described safeguard is extracted in the maintenance transaction to sign, and determines the corresponding public key of the maintenance signature;
The corresponding at least one authority of the public key is searched, obtains at least one authority.
A3, according to the method described in claim 1, it is characterized in that, described include node when at least one authority When safeguarding authority, acquisition is described to safeguard data, safeguards that data carry out node maintenance to the distributed account book system based on described Including:
When at least one authority includes node maintenance authority, acquisition is described to safeguard data;
Safeguard that data carry out data common recognition to described, when detecting other nodes in the distributed account book system to institute State when safeguarding that data know together successfully, by the account book for safeguarding the data write-in distributed account book system, complete section Point is safeguarded.
A4, according to the method described in claim 3, it is characterized in that, described safeguard that data write the distribution by described The account book of formula account book system includes:
Data are safeguarded based on described, generate block, and the block safeguards data including at least described;
The block is added in the block chain of the account book;
The block is broadcasted to other nodes in the distributed account book system, so that other nodes write the area Block.
A5, according to the method described in claim 1, it is characterized in that, the method further includes:
When receiving authority transfer transactions, trading signature and specified public key are extracted in the authority transfer transactions;
Determine the corresponding at least one authority of the trading signature;
If at least one authority includes transfer authority, the corresponding at least one authority of the trading signature is deleted Remove, the node for the specified public key instruction adds at least one authority;
If at least one authority does not include the transfer authority, the authority transfer transactions are abandoned.
A6, a kind of node maintenance device, it is characterised in that described device is applied to node, and the node is distributed account Any node in the system, described device include:
Receiving module, it is described to safeguard that transaction includes at least maintenance signature and safeguards data for receiving maintenance transaction;
Determining module, signs for extracting described safeguard in the maintenance transaction, and it is corresponding to determine that the maintenance is signed At least one authority;
Maintenance module, for when at least one authority includes node maintenance authority, obtains and described safeguards data, base Safeguard that data carry out node maintenance to the distributed account book system in described.
A7, device according to claim 6, it is characterised in that the determining module includes:
Determination sub-module, signs for extracting described safeguard in the maintenance transaction, determines that the maintenance is signed and corresponds to Public key;
Submodule is searched, for searching the corresponding at least one authority of the public key, obtains at least one authority.
A8, device according to claim 6, it is characterised in that the maintenance module includes:
Acquisition submodule, for when at least one authority includes node maintenance authority, obtains and described safeguards data;
Submodule is write, for safeguarding that data carry out data common recognition to described, when detecting the distributed account book system In other nodes to it is described safeguard that data know together successfully when, safeguard the data write-in distributed account book system by described Account book in, complete node maintenance.
A9, device according to claim 8, it is characterised in that said write submodule, is additionally operable to be based on the dimension Data are protected, generate block, the block safeguards data including at least described;The block is added to the block chain of the account book In;The block is broadcasted to other nodes in the distributed account book system, so that other nodes write the block.
A10, device according to claim 6, it is characterised in that described device further includes:
Extraction module, for when receiving authority transfer transactions, trading signature to be extracted in the authority transfer transactions And specified public key;
The determining module, is additionally operable to determine the corresponding at least one authority of the trading signature;
Shift module, it is if including transfer authority at least one authority, the trading signature is corresponding extremely A few authority is deleted, and the node for the specified public key instruction adds at least one authority;
Discard module, if not including the transfer authority at least one authority, the authority is shifted and is handed over Easily abandon.
A11, a kind of electronic equipment, it is characterised in that including the node maintenance device described in claim 6-10.
A12, a kind of electronic equipment, it is characterised in that including:Memory, for storing executable instruction;
And processor, for communicating with the memory claim 1- is completed to perform the executable instruction The operation of node maitaining method described in 5.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of node maitaining method, it is characterised in that the method is applied to node, and the node is distributed account book system In any node, the described method includes:
Maintenance transaction is received, it is described to safeguard that transaction includes at least maintenance signature and safeguards data;
Described safeguard is extracted in the maintenance transaction to sign, and determines the corresponding at least one authority of the maintenance signature;
When at least one authority includes node maintenance authority, acquisition is described to safeguard data, and data pair are safeguarded based on described The distribution account book system carries out node maintenance.
2. according to the method described in claim 1, it is characterized in that, described extract the maintenance label in the maintenance transaction Name, determines that the corresponding at least one authority of the maintenance signature includes:
Described safeguard is extracted in the maintenance transaction to sign, and determines the corresponding public key of the maintenance signature;
The corresponding at least one authority of the public key is searched, obtains at least one authority.
It is 3. according to the method described in claim 1, it is characterized in that, described when at least one authority is weighed including node maintenance In limited time, acquisition is described safeguards data, safeguards that data carry out node maintenance to the distributed account book system and include based on described:
When at least one authority includes node maintenance authority, acquisition is described to safeguard data;
Safeguard that data carry out data common recognition to described, when detecting other nodes in the distributed account book system to the dimension When shield data know together successfully, by the account book for safeguarding the data write-in distributed account book system, node dimension is completed Shield.
4. according to the method described in claim 3, it is characterized in that, described safeguard the data write-in distributed account book by described The account book of system includes:
Data are safeguarded based on described, generate block, and the block safeguards data including at least described;
The block is added in the block chain of the account book;
The block is broadcasted to other nodes in the distributed account book system, so that other nodes write the block.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
When receiving authority transfer transactions, trading signature and specified public key are extracted in the authority transfer transactions;
Determine the corresponding at least one authority of the trading signature;
If at least one authority includes transfer authority, the corresponding at least one authority of the trading signature is deleted, is The node of the specified public key instruction adds at least one authority;
If at least one authority does not include the transfer authority, the authority transfer transactions are abandoned.
6. a kind of node maintenance device, it is characterised in that described device is applied to node, and the node is distributed account book system In any node, described device includes:
Receiving module, it is described to safeguard that transaction includes at least maintenance signature and safeguards data for receiving maintenance transaction;
Determining module, for it is described safeguard transaction in extract it is described safeguard signature, determine it is described safeguard signature it is corresponding at least One authority;
Maintenance module, for when at least one authority includes node maintenance authority, obtain it is described safeguard data, based on institute State and safeguard that data carry out node maintenance to the distributed account book system.
7. device according to claim 6, it is characterised in that the determining module includes:
Determination sub-module, signs for extracting described safeguard in the maintenance transaction, determines the corresponding public affairs of the maintenance signature Key;
Submodule is searched, for searching the corresponding at least one authority of the public key, obtains at least one authority.
8. device according to claim 6, it is characterised in that described device further includes:
Extraction module, for when receiving authority transfer transactions, extracting trading signature in the authority transfer transactions and referring to Determine public key;
The determining module, is additionally operable to determine the corresponding at least one authority of the trading signature;
Shift module, if including transfer authority at least one authority, by the trading signature corresponding at least one A authority is deleted, and the node for the specified public key instruction adds at least one authority;
Discard module, if not including the transfer authority at least one authority, the authority transfer transactions are lost Abandon.
9. a kind of electronic equipment, it is characterised in that including the node maintenance device described in claim 6-8.
10. a kind of electronic equipment, it is characterised in that including:Memory, for storing executable instruction;
And processor, for communicating with the memory claim 1-5 institutes are completed to perform the executable instruction The operation for the node maitaining method stated.
CN201711270469.7A 2017-12-05 2017-12-05 Node maitaining method, device and electronic equipment Pending CN108039948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711270469.7A CN108039948A (en) 2017-12-05 2017-12-05 Node maitaining method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711270469.7A CN108039948A (en) 2017-12-05 2017-12-05 Node maitaining method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN108039948A true CN108039948A (en) 2018-05-15

Family

ID=62095739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711270469.7A Pending CN108039948A (en) 2017-12-05 2017-12-05 Node maitaining method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108039948A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039649A (en) * 2018-08-03 2018-12-18 北京大学深圳研究生院 Key management method, device and storage medium based on block chain in a kind of CCN
CN109919768A (en) * 2019-03-12 2019-06-21 网易(杭州)网络有限公司 Block generation method, device, medium and calculating equipment
CN110992035A (en) * 2019-12-13 2020-04-10 中国工商银行股份有限公司 Block chain link point management method, device and system
CN112820287A (en) * 2020-12-31 2021-05-18 乐鑫信息科技(上海)股份有限公司 Distributed speech processing system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878000A (en) * 2017-03-06 2017-06-20 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of alliance's chain common recognition method and system
CN107079058A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 The business of block chain node performs method, device and node device
WO2017145021A1 (en) * 2016-02-23 2017-08-31 nChain Holdings Limited Method and system for efficient transfer of cryptocurrency associated with a payroll on a blockchain that leads to An Automated payroll method and system based on smart contracts
CN107171829A (en) * 2017-04-24 2017-09-15 杭州趣链科技有限公司 A kind of dynamic node management method for algorithm realization of being known together based on BFT
CN107273760A (en) * 2017-06-09 2017-10-20 济南浪潮高新科技投资发展有限公司 One kind is based on many CA application authentication methods of block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017145021A1 (en) * 2016-02-23 2017-08-31 nChain Holdings Limited Method and system for efficient transfer of cryptocurrency associated with a payroll on a blockchain that leads to An Automated payroll method and system based on smart contracts
CN107079058A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 The business of block chain node performs method, device and node device
CN106878000A (en) * 2017-03-06 2017-06-20 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of alliance's chain common recognition method and system
CN107171829A (en) * 2017-04-24 2017-09-15 杭州趣链科技有限公司 A kind of dynamic node management method for algorithm realization of being known together based on BFT
CN107273760A (en) * 2017-06-09 2017-10-20 济南浪潮高新科技投资发展有限公司 One kind is based on many CA application authentication methods of block chain

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039649A (en) * 2018-08-03 2018-12-18 北京大学深圳研究生院 Key management method, device and storage medium based on block chain in a kind of CCN
CN109039649B (en) * 2018-08-03 2021-08-06 北京大学深圳研究生院 Key management method and device based on block chain in CCN and storage medium
CN109919768A (en) * 2019-03-12 2019-06-21 网易(杭州)网络有限公司 Block generation method, device, medium and calculating equipment
CN109919768B (en) * 2019-03-12 2021-08-10 网易(杭州)网络有限公司 Block generation method, device, medium and computing equipment
CN110992035A (en) * 2019-12-13 2020-04-10 中国工商银行股份有限公司 Block chain link point management method, device and system
CN112820287A (en) * 2020-12-31 2021-05-18 乐鑫信息科技(上海)股份有限公司 Distributed speech processing system and method

Similar Documents

Publication Publication Date Title
CN107977163B (en) Shared data recovery method and device
CN108039948A (en) Node maitaining method, device and electronic equipment
CN103944963B (en) Method of data synchronization, device, equipment and system
CN105069075B (en) Photo be shared method and apparatus
CN108269334A (en) Method for unlocking, terminal device and smart lock
CN106231259A (en) The display packing of monitored picture, video player and server
CN107944848A (en) Monetary settlement method, apparatus and electronic equipment
CN106470357A (en) barrage message display method and device
CN104951935A (en) Bill splitting method and device
CN106204046A (en) The method and device that order pays
CN108022349A (en) Information input method, equipment, smart lock and storage medium
CN105354284B (en) Processing method and processing device, short message recognition methods and the device of template
CN109039990A (en) The method and device of behavior verifying is carried out based on identifying code
CN109816495A (en) Merchandise news method for pushing, system and server and storage medium
CN104639609B (en) Network share method and device
CN108021932A (en) Data detection method, device and electronic equipment
WO2015165172A1 (en) Information transmission method and device in voice service
CN107959757A (en) User information processing method, device, APP servers and terminal device
CN107169060A (en) Image processing method, device and terminal in terminal
CN108009824A (en) Data common recognition method, apparatus and electronic equipment
CN109634913A (en) Storage method, device and the electronic equipment of document
CN108053241A (en) Data analysing method, device and computer readable storage medium
CN107154977A (en) Information-pushing method and device
CN104735139B (en) End message statistical method, device, terminal and server
CN108664216A (en) Date storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20210924

AD01 Patent right deemed abandoned