CN107507001A - A kind of data revision method based on license chain - Google Patents

A kind of data revision method based on license chain Download PDF

Info

Publication number
CN107507001A
CN107507001A CN201710685339.3A CN201710685339A CN107507001A CN 107507001 A CN107507001 A CN 107507001A CN 201710685339 A CN201710685339 A CN 201710685339A CN 107507001 A CN107507001 A CN 107507001A
Authority
CN
China
Prior art keywords
data
transaction
account
data revision
node
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
CN201710685339.3A
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.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Cryptape 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 Cryptape Co ltd filed Critical Cryptape Co ltd
Priority to CN201710685339.3A priority Critical patent/CN107507001A/en
Publication of CN107507001A publication Critical patent/CN107507001A/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/405Establishing or using transaction specific rules
    • 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/3821Electronic credentials

Abstract

The invention discloses a kind of data revision method based on license chain, the administrator right rule of data revision is provided first, as various accounts are deployed on chain, if running into the demand of data revision, keeper needs to lock these accounts first, then sends " data revision " transaction, after node receives " data revision " transaction, it is not required to again by the logic itself or contract function of account, it is possible to directly operate corresponding variable according to new content, then calculate the new state of account.After the completion of account modification, then unlock these accounts.The present invention is by formulating administrator right rule, safely and efficiently merchandised by sending special " data revision ", to meet the needs of data revision, and the granularity of account variable can be refine to, by means of the state tissue of account in itself and deposit card method, the target that the hard bifurcated of original need can just be reached smoothly is completed, eliminates the trouble of exploitation again and O&M deployment.

Description

A kind of data revision method based on license chain
Technical field
The present invention relates to the data revision field under license chain model, it is directed to solving due to block chain underlying protocol defect Or error in data problem caused by the upper-layer service system failure, by means of the authority mechanism for permitting chain, there is provided for block chain The controllable of data corrects function.
Background technology
Block chain is a kind of new distributed computing technology, by sequentially arranging the transaction blocking formed one by one, then by one The block composition chain that individual order arrangement forms, each block include one from the height increased as numbering, and also a timestamp is used for Record the packing time.
Block chain ownership is apparent, and the data write-in authority of account is controlled in itself by the user of grasp private key completely, book keeping operation section Point is transaction sequence person, can not directly operate the data of user.Intelligent contract is also been developed on block chain, can be stored Complicated data structure, and pass through individually designed each function operation data of the rules of competence.The variable data of intelligent contract Eventually through some serializing operations, collect and pass through a tree structure again for the state of whole account, the state of whole accounts A state root is generated, is stored in as card result is deposited in block head.So the characteristic that block chain can not be distorted, makees it Good data storage medium when being cooperated for multi-party antagonism, and these data are typically all to be worth ownership registration, or The related processing logic of value transaction.
Block chain is generally divided into publicly-owned chain and license chain, and publicly-owned chain refers to complete decentralization, without keeper, without standard Enter the block chain of authority, the difference of data needs to solve by hard bifurcated on chain, and then crowd's reselections of different common recognitions are not Same bifurcated.Such as geth-parity bifurcated events etc. caused by the cleaning of TheDAO events, ether mill State Tree.
License chain generally refers to node and the block chain of account access, runs real-life authentic commercial scene, The even this kind of large-scale financial scenario such as bank.The typically exigent data accuracy of this kind of mechanism, it is impossible to which tolerance occurs one Point point mistake.License chain is also generally considered to be polycentric block chain, there may be administrator right, can also design Data modification rule in particular cases.
Permit initial stage of the chain technology also in development, first floor system is realized and traffic contract realize it is unavoidable occur expect not The mistake arrived, cause data run and expected results inconsistent, corrected if not doing midway, follow-up business is implemented can be more tired It is difficult.And these data revision demands beyong contemplation, at present typically using the scheme of hard bifurcated, it is necessary to development chain bottom generation again Code, or started from scratch using clear chain, then the scheme that the data corrected are imported again, waste time and energy and increase O&M portion The difficulty of administration.
The content of the invention
In view of the above-mentioned deficiencies in the prior art, it is an object of the present invention to provide a kind of data revision method based on license chain.
The purpose of the present invention is achieved through the following technical solutions:A kind of data revision method based on license chain, should Method includes:
(1) the administrator right rule agreement for initiating effective " correcting data " class transaction is formulated, and is saved in license chain Client.
(2) when running into data revision demand, related personnel makes decision data revision solution details in chain;
(3) meet the node of administrator right rule, according to data revision solution details, initiate " correcting data-locking " Merchandise tx_lock, is comprising data:Account address list to be locked;
(4) node first verifies that administrator right rule after tx_lock transaction is received, and after being verified, execution " is ordered Correction data-locking " transaction tx_lock, " unlocked " by the state of the account in account address list to be locked from acquiescence, by Individual to be revised as " locked ", tx_lock runs succeeded;Node is when performing other non-" correcting data " class transaction, if held The data for the account that write state is " locked " are needed during row, then the transaction performs failure, rollback transaction implementation procedure.
(5) meet the node of administrator right rule, according to data revision solution details, initiate " correcting data-renewal " Merchandise tx_update, is comprising data:Locked account address, the index (Key) of variable, variable content (Value), repair Change classification (" covering ", " deletion ").
(6) node first verifies that administrator right rule after tx_update transaction is received, and after being verified, reads Account address in tx_update, the state of account is verified, if " locked ", is then verified, perform tx_update In data revision content, it is Value that modification, which indexes the variant content of account for being Key, if classification is " covering ", if Classification is " deletion ", then deletes variable of the index for Key.
(7) after all tx_updte transaction runs succeeded, required data revision operation had both been completed, has met keeper The node of the rules of competence, according to data revision solution details, " correcting data-unblock " transaction tx_unlock is initiated, includes data For:Treat unlocking account address list.
(8) node first verifies that administration authority rule after tx_unlock transaction is received, if checking is not by carrying out Transaction reports an error.If being verified, the account address list in tx_unlock is read, and be by the status indication of these accounts " unlocked ", tx_unlock runs succeeded.
Further, administrator right rule, can be an administrator address singly signed or more than one The intelligent contract for address or the somewhat complex design of signing again.
The beneficial effects of the present invention are:The present invention has given up the data revision side of hard bifurcated and clear chain in current license chain Case, by formulating administrator right rule, safely and efficiently merchandised by sending special " data revision ", to meet that data are ordered Positive demand, and the granularity of account variable can be refine to, by means of the state tissue of account in itself and card method is deposited, smoothly The target that the hard bifurcated of original need can just be reached is completed on ground, eliminates the trouble of exploitation again and O&M deployment.
Embodiment
The present invention relates to a kind of data revision method based on license chain, this method includes herein below:
First, the administrator right rule agreement for initiating the transaction of " correcting data " class is formulated:
1:When formulating the agreement of license chain, it is necessary to formulate the keeper that can initiate effective " correcting data " class transaction Rules of competence agreement, and it is saved in license chain client.The present invention does not limit the specific design of the rules of competence, can be a list The administrator address of signature or the intelligent contract of a multi-signature address or somewhat complex design.
2:The agreement is write into license chain client code, chain starts from wound generation block, receives customer transaction and persistently goes out block.
When the 2nd, running into the situation for needing data revision, according to administrator right rule, initiate " correcting data-locking " and hand over Easily:
1:When running into data revision demand, related personnel makes decision data revision solution details in chain.
2:Meet the node of administrator right rule, initiate " correcting data-locking " transaction tx_lock, be comprising data: Account address list to be locked.
3rd, after node receives " correcting data-locking " transaction, all accounts of statement in locked transaction:
1:Node first verifies that administrator right rule after tx_lock transaction is received, if not by transaction report Mistake, if continuing following operation if.
2:Account address list in node reading tx_lock, " unlocked " by the state of these accounts from acquiescence, by Individual mark is locked ", tx_lock runs succeeded.
The node of " locked " is when performing other non-" correcting data " class transaction, if needing to write in implementation procedure State is the data of the account of " locked ", then the transaction performs failure, rollback transaction implementation procedure.
4th, after account locks, according to administrator right rule, " correcting data-renewal " transaction is initiated:
1:After tx_lock transaction runs succeeded, according to administrator right rule, " correcting data-renewal " transaction tx_ is initiated Update, it is comprising data:Account address, the index of variable are locked:Key, variable content:Value, classification, wherein class Not optional " covering " and " deletion ".
2:Operated if more item datas update, more tx_update transaction can be initiated.
5th, after node receives " correcting data-renewal " transaction, account data is changed:
1:Node first verifies that administrator right rule, if not by merchandising after tx_update transaction is received Report an error, if continuing following operation if.
2:Node reads the account address in tx_update, verifies the state of account, if " unlocked ", then merchandises Report an error, then continue following operation if " locked ".
3:Node is according to other data in tx_update, the account that modification index is Key if classification is " covering " Variant content be Value, if classification is " deletion ", delete index for Key variable.Here with general transaction processing side Formula is the same, and unserializing goes out the state of account first, reduces the content of each variable, simply bypassed account logic in itself or Intelligent contract code, variable modification is directly carried out, is finished equivalent to transaction.Then carry out succeeding state serializing, deposit card Deng operation.
6th, according to administrator right rule, " correcting data-unblock " transaction is initiated:
After all tx_updte transaction run succeeded, required data revision operation was both completed, had been weighed according to keeper Limit gauge then, initiates " correcting data-unblock " transaction tx_unlock, is comprising data:Treat unlocking account address list.
7th, after node receives " correcting data-unblock " transaction, all accounts of statement in unblock transaction:
1:Node first verifies that administration authority rule after tx_unlock transaction is received, if not by transaction report Mistake, if continuing following operation if.
2:Node reads the account address list in tx_unlock, is " unlocked " by the status indication of these accounts, Tx_unlock runs succeeded.

Claims (2)

  1. A kind of 1. data revision method based on license chain, it is characterised in that this method includes:
    (1) the administrator right rule agreement for initiating effective " correcting data " class transaction is formulated, and is saved in license chain client End.
    (2) when running into data revision demand, related personnel makes decision data revision solution details in chain;
    (3) meet the node of administrator right rule, according to data revision solution details, initiate " correcting data-locking " transaction Tx_lock, it is comprising data:Account address list to be locked;
    (4) node first verifies that administrator right rule after tx_lock transaction is received, and after being verified, execution " corrects number According to-lock " transaction tx_lock, " unlocked " by the state of the account in account address list to be locked from acquiescence, repair one by one " locked " is changed to, tx_lock runs succeeded;Node is when performing other non-" correcting data " class transaction, if performed The data for the account that write state is " locked " are needed in journey, then the transaction performs failure, rollback transaction implementation procedure.
    (5) meet the node of administrator right rule, according to data revision solution details, initiate " correcting data-renewal " transaction Tx_update, it is comprising data:Account address, the index (Key) of variable, the content (Value) of variable, modification class are locked Not (" covering ", " deletion ").
    (6) node first verifies that administrator right rule after tx_update transaction is received, and after being verified, reads tx_ Account address in update, the state of account is verified, if " locked ", is then verified, performed in tx_update Data revision content, the variant content for the account that modification index is Key is Value if classification is " covering ", if classification It is " deletion ", then deletes variable of the index for Key.
    (7) after all tx_updte transaction runs succeeded, required data revision operation had both been completed, has met administrator right The node of rule, according to data revision solution details, " correcting data-unblock " transaction tx_unlock is initiated, is comprising data: Treat unlocking account address list.
    (8) node first verifies that administration authority rule after tx_unlock transaction is received, if checking is not by being traded Report an error.If being verified, the account address list in tx_unlock is read, and is " unlocked by the status indication of these accounts It is fixed ", tx_unlock runs succeeded.
  2. 2. according to the method for claim 1, it is characterised in that administrator right rule, can be one and singly sign Administrator address or the intelligent contract of a multi-signature address or somewhat complex design.
CN201710685339.3A 2017-08-11 2017-08-11 A kind of data revision method based on license chain Pending CN107507001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710685339.3A CN107507001A (en) 2017-08-11 2017-08-11 A kind of data revision method based on license chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710685339.3A CN107507001A (en) 2017-08-11 2017-08-11 A kind of data revision method based on license chain

Publications (1)

Publication Number Publication Date
CN107507001A true CN107507001A (en) 2017-12-22

Family

ID=60689163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710685339.3A Pending CN107507001A (en) 2017-08-11 2017-08-11 A kind of data revision method based on license chain

Country Status (1)

Country Link
CN (1) CN107507001A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108288159A (en) * 2018-03-07 2018-07-17 物数(上海)信息科技有限公司 Across chain method of commerce, system, equipment and storage medium based on multi-tiling chain
CN108389130A (en) * 2018-03-02 2018-08-10 合肥学院 A kind of more trade mode alliances chain
CN110472958A (en) * 2019-08-26 2019-11-19 山东望天信息科技有限公司 Method for protecting is integrated based on the account of block chain intelligence contract and literary men's subchain
CN111192146A (en) * 2020-04-10 2020-05-22 支付宝(杭州)信息技术有限公司 Correction method and device for block chain data
CN111199398A (en) * 2018-11-16 2020-05-26 上海派链信息科技有限公司 Method, apparatus, computer-readable storage medium and computer program product for cross-blockchain asset management
CN112487010A (en) * 2020-12-14 2021-03-12 深圳前海微众银行股份有限公司 Block chain user data table updating method, equipment and storage medium
CN113672635A (en) * 2021-09-01 2021-11-19 支付宝(杭州)信息技术有限公司 Correction method and system for data in block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046821A (en) * 2006-03-31 2007-10-03 Sap股份公司 Generic database manipulator
CN101706802A (en) * 2009-11-24 2010-05-12 成都市华为赛门铁克科技有限公司 Method, device and sever for writing, modifying and restoring data
CN106936589A (en) * 2017-04-21 2017-07-07 杭州秘猿科技有限公司 A kind of acentric the license parallel sharding method of chain and method of commerce
CN106991165A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and the electronic equipment of processing financial data based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046821A (en) * 2006-03-31 2007-10-03 Sap股份公司 Generic database manipulator
CN101706802A (en) * 2009-11-24 2010-05-12 成都市华为赛门铁克科技有限公司 Method, device and sever for writing, modifying and restoring data
CN106991165A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and the electronic equipment of processing financial data based on block chain
CN106936589A (en) * 2017-04-21 2017-07-07 杭州秘猿科技有限公司 A kind of acentric the license parallel sharding method of chain and method of commerce

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108389130A (en) * 2018-03-02 2018-08-10 合肥学院 A kind of more trade mode alliances chain
CN108389130B (en) * 2018-03-02 2020-02-14 合肥学院 Method for generating multi-transaction mode alliance chain
CN108288159A (en) * 2018-03-07 2018-07-17 物数(上海)信息科技有限公司 Across chain method of commerce, system, equipment and storage medium based on multi-tiling chain
CN111199398A (en) * 2018-11-16 2020-05-26 上海派链信息科技有限公司 Method, apparatus, computer-readable storage medium and computer program product for cross-blockchain asset management
CN110472958A (en) * 2019-08-26 2019-11-19 山东望天信息科技有限公司 Method for protecting is integrated based on the account of block chain intelligence contract and literary men's subchain
CN110472958B (en) * 2019-08-26 2023-09-08 山东望天信息科技有限公司 Account point security guarantee method based on blockchain intelligent contracts and ink guest subchains
CN111192146B (en) * 2020-04-10 2020-07-17 支付宝(杭州)信息技术有限公司 Correction method and device for block chain data
CN112037057A (en) * 2020-04-10 2020-12-04 支付宝(杭州)信息技术有限公司 Correction method and device for block chain data
CN112037057B (en) * 2020-04-10 2022-03-01 支付宝(杭州)信息技术有限公司 Correction method and device for block chain data
CN111192146A (en) * 2020-04-10 2020-05-22 支付宝(杭州)信息技术有限公司 Correction method and device for block chain data
CN112487010A (en) * 2020-12-14 2021-03-12 深圳前海微众银行股份有限公司 Block chain user data table updating method, equipment and storage medium
CN112487010B (en) * 2020-12-14 2024-02-23 深圳前海微众银行股份有限公司 Block chain user data table updating method, equipment and storage medium
CN113672635A (en) * 2021-09-01 2021-11-19 支付宝(杭州)信息技术有限公司 Correction method and system for data in block chain

Similar Documents

Publication Publication Date Title
CN107507001A (en) A kind of data revision method based on license chain
CN107944255B (en) Block chain-oriented key management method
EP3624415B1 (en) A decentralized asset custody and clearing platform system
CN107507006A (en) A kind of common recognition bifurcated processing method based on license chain
CN107220820A (en) Resource transfers method, device and storage medium
CN109165224A (en) A kind of indexing means being directed to keyword key on block chain database
CN110135860A (en) A kind of safe traceability system of crop seeds based on block chain technology
CN109919756A (en) Fund transfer system, checking method and method of commerce based on Merkle tree backtracking location technology
CN109587238A (en) The data processing of block chain and synchronous method, device, equipment and storage medium
CN106503992A (en) A kind of block chain that Transaction Information and accounts information are stored respectively
CN106097101A (en) A kind of block chain realizes the management method of financial transaction
Bünte Burma's Transition to'Disciplined Democracy': Abdication or Institutionalization of Military Rule?
CN110033271A (en) Across the chain method of commerce of one kind, system and computer readable storage medium
CN107748702A (en) Date storage method, restoration methods, relevant apparatus and system
CN110390524A (en) Work data processing method, device, electronic equipment and storage medium in block chain
CN107346482A (en) The method and device that block chain is docked, verifies, known together with the outer data of chain
CN108765151A (en) A kind of method of commerce based on block chain
CN109034807A (en) A kind of block chain method of data synchronization
CN109658099B (en) Account book accounting method based on block chain
CN101013943A (en) Method for binding/recovering key using fingerprint details
CN110490700A (en) A kind of staple commodities spot business system based on block chain intelligence contract
CN109347868A (en) A kind of Information Authentication method, apparatus and storage medium
CN106878009A (en) Key updating method and system
CN108009445A (en) A kind of trust data management system of half centralization
CN106909852B (en) Intelligent contract encryption method and device based on triple md5 encryption algorithms

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200323

Address after: 310012 no.1001, 10 / F, block a, Huaxing Times Square, No.478, Wensan Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou Xita Technology Co.,Ltd.

Address before: 310013 Huaxi times square A, No. 478, Wensanlu Road, Hangzhou, Xihu District, Zhejiang 702

Applicant before: CRYPTAPE Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171222