WO2018036441A1 - Procédé et système d'attribution d'autorisation d'écriture de chaîne de blocs - Google Patents

Procédé et système d'attribution d'autorisation d'écriture de chaîne de blocs Download PDF

Info

Publication number
WO2018036441A1
WO2018036441A1 PCT/CN2017/098233 CN2017098233W WO2018036441A1 WO 2018036441 A1 WO2018036441 A1 WO 2018036441A1 CN 2017098233 W CN2017098233 W CN 2017098233W WO 2018036441 A1 WO2018036441 A1 WO 2018036441A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
write
rule
candidate
preset
Prior art date
Application number
PCT/CN2017/098233
Other languages
English (en)
Chinese (zh)
Inventor
杨鹏
Original Assignee
杨鹏
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 杨鹏 filed Critical 杨鹏
Publication of WO2018036441A1 publication Critical patent/WO2018036441A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules

Definitions

  • the present invention relates to the field of blockchain technology, and in particular, to a method and system for assigning a write permission of a blockchain.
  • the technical problem to be solved by the present invention is to provide a data accounting method and system for a blockchain, which solves the problem of "centralization” that the write permission of the blockchain database is mastered by a few “completed work”, and improves the block.
  • the security of the chain database is to provide a data accounting method and system for a blockchain, which solves the problem of "centralization” that the write permission of the blockchain database is mastered by a few “completed work”, and improves the block.
  • a method for assigning a write permission of a blockchain comprising:
  • S102 Perform an ascending ordering on the calculation time corresponding to each terminal, and use a plurality of terminals whose calculation time is less than the preset time as the candidate terminal;
  • S103 Select one terminal from the candidate terminals as a write terminal according to a preset authority rule, and allocate write permission for writing data in the blockchain database to the write terminal.
  • the present invention provides a method for assigning a write permission of a blockchain, which can record and count the calculation time of each terminal calculation difficulty, and filter out the calculation time from the plurality of terminals to be less than the preset time.
  • the terminals are used as candidate terminals, and then one terminal is selected as a write terminal from the candidate terminals according to a preset authority rule, and the write authority is given.
  • the invention selects the write terminal according to the preset authority rule and gives the write permission, instead of assigning the write permission to the terminal with the shortest calculation time, and solves the blockchain caused by the write permission concentrated in the "achievement" hand corresponding to a few terminals.
  • the security risks of the database improve the security of the blockchain database and have strong practicability.
  • the preset permission rule in the S103 specifically includes a random allocation rule or an efficiency allocation rule.
  • the beneficial effect of adopting the above further solution is that different permission rules are used to select one terminal from the candidate terminals as the writing terminal, so as to avoid excessive concentration of writing authority.
  • the selecting, by the S103, that the terminal is selected from the candidate terminal as the write terminal according to the preset permission rule includes:
  • a terminal is randomly selected from the candidate terminals as a write terminal, and each terminal of the candidate terminal is selected with the same probability.
  • the terminal is selected by using a random allocation rule, and each candidate terminal has the same probability to be selected as the writing terminal, so as to avoid excessive concentration of writing authority.
  • the selecting, by the S103, that the terminal is selected from the candidate terminal as the write terminal according to the preset permission rule includes:
  • the beneficial effect of adopting the above further solution is that the terminal is selected by using the efficiency allocation rule, and the writing terminal is relatively fairly selected based on the calculation time, so as to avoid excessive concentration of writing authority.
  • a write chain allocation system for a blockchain comprising:
  • a recording unit configured to record a calculation time taken by a plurality of terminals to solve a puzzle generated according to a preset algorithm rule
  • a sorting determining unit configured to sort the computing time corresponding to each terminal in ascending order, and use a plurality of terminals whose computing time is less than the preset time as the candidate terminal;
  • the authority assigning unit is configured to select one terminal from the candidate terminals as the writing terminal according to the preset authority rule, and allocate the writing authority for writing data to the blockchain database to the writing terminal.
  • the present invention provides a block chain write permission distribution system capable of recording and counting the calculation time of each terminal calculation difficulty, and filtering out the calculation time from the plurality of terminals to be less than the preset time.
  • the terminals are used as candidate terminals, and then one terminal is selected as a write terminal from the candidate terminals according to a preset authority rule, and the write authority is given.
  • the invention selects the write terminal according to the preset authority rule and gives the write permission, instead of assigning the write permission only to the terminal with the shortest calculation time, and solves the problem that the write permission is concentrated in the "achieving" hand corresponding to a few fast terminals.
  • the security problem of the blockchain database improves the security of the blockchain database, and the practicability is better.
  • the preset permission rule in the rights allocation unit specifically includes a random allocation rule or an efficiency allocation rule.
  • the beneficial effect of adopting the above further solution is that different permission rules are used to select one terminal from the candidate terminals as the writing terminal, so as to avoid excessive concentration of writing authority.
  • the rights allocation unit is specifically configured to:
  • a terminal is randomly selected from the candidate terminals as a write terminal, and each terminal of the candidate terminal is selected with the same probability.
  • the terminal is selected by using a random allocation rule, and each candidate terminal has the same probability to be selected as the writing terminal, so as to avoid excessive concentration of writing authority.
  • the rights allocation unit is specifically configured to:
  • the beneficial effect of adopting the above further solution is that the terminal is selected by using the efficiency allocation rule, and the writing terminal is relatively fairly selected based on the calculation time, so as to avoid excessive concentration of writing authority.
  • FIG. 1 is a flowchart of a method for allocating a write permission of a blockchain according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a write permission allocation system for a blockchain according to a second embodiment of the present invention.
  • Embodiment 1 A method for allocating a write permission of a blockchain. The method provided in this embodiment will be described in detail below with reference to FIG. 1.
  • S101 records the calculation time taken by a plurality of terminals to solve a puzzle generated according to a preset algorithm rule.
  • the calculation time that the plurality of terminals respectively solve the problem generated according to the preset algorithm rule and obtain the calculation result wherein the preset algorithm rule specifically includes a POW (Proof of Work) algorithm and a POS (Proof of Stake) algorithm, the POW algorithm specifically includes a Bitcoin algorithm, a Litecoin algorithm, and an X11 algorithm, and the POS algorithm specifically includes a dot currency algorithm and an Ethereum algorithm.
  • the preset algorithm rule specifically includes a POW (Proof of Work) algorithm and a POS (Proof of Stake) algorithm
  • the POW algorithm specifically includes a Bitcoin algorithm, a Litecoin algorithm, and an X11 algorithm
  • the POS algorithm specifically includes a dot currency algorithm and an Ethereum algorithm.
  • each terminal calculates the same problem.
  • each terminal solves the problem in a different time, and the calculation time corresponding to each terminal is sorted in ascending order, and a preset time is set, and the terminal whose calculation time is within the preset time is used as an alternative.
  • the terminal the remaining terminals whose calculation time is greater than the preset time are excluded. For example, if the preset time is set to 1 minute, the terminal outside the calculation time of 1 minute is not qualified as an alternative terminal, and only the calculation time is less than A 1-minute terminal is eligible as an alternative terminal.
  • S103 Select one terminal from the candidate terminals as a write terminal according to a preset authority rule, and allocate write permission for writing data in the blockchain database to the write terminal.
  • a terminal is selected from the candidate terminals as a write terminal according to a preset authority rule, and write permission for writing data to the blockchain database is allocated to the write terminal, where the pre-
  • the permission rule specifically includes a random allocation rule or an efficiency allocation rule.
  • the selecting a terminal from the candidate terminal as the writing terminal according to the preset permission rule specifically includes: randomly selecting a terminal from the candidate terminal, It serves as a write terminal, and each of the candidate terminals has the same probability of being selected. For example, if there are five terminals in total, the calculation time of the A terminal is 1 s, the calculation time of the B terminal is 2 s, the calculation time of the C terminal is 5 s, the calculation time of the D terminal is 10 s, and the calculation time of the E terminal is 20 s.
  • the preset time is set to 15s, the four terminals A, B, C, and D become candidate terminals, and the probability that each terminal is selected as the write terminal is 1/4.
  • the selecting a terminal from the candidate terminal as the writing terminal according to the preset authority rule specifically includes: calculating an efficiency parameter according to formula (1), and then according to the The efficiency parameter calculates a probability that each candidate terminal is selected as the writing terminal, and selects one terminal from the candidate terminal as the writing terminal according to the probability, and the formula (1) is as follows:
  • t i is the calculation time corresponding to each candidate terminal
  • d is an efficiency parameter.
  • the preset time is set to 15s, the four terminals A, B, C, and D become candidate terminals.
  • the value of the efficiency parameter d is 5/9, and A, B, and C are obtained respectively.
  • the probability that four terminals are selected to be written to the terminal is 10/18, 5/18, 2/18, 1/18, respectively, and thus the terminal with the shorter calculation time is selected to be a higher probability of writing to the terminal.
  • Embodiment 2 A write permission allocation system for a blockchain. The system provided in this embodiment will be described in detail below with reference to FIG.
  • a write permission distribution system for a blockchain provided by the present invention includes a record unit, a sort determination unit, and a rights assignment unit.
  • a recording unit is configured to record a calculation time taken by a plurality of terminals to solve a puzzle generated according to a preset algorithm rule.
  • the preset algorithm rule specifically includes a POW (Proof of Work) algorithm and a POS (Proof of Stake) algorithm, where the POW algorithm specifically includes a bitcoin algorithm, a Litecoin algorithm, and an X11 algorithm.
  • the POS algorithm specifically includes a dot currency algorithm and an Ethereum algorithm.
  • the order determining unit is configured to perform an ascending ordering on the calculation time corresponding to each terminal, and use a plurality of terminals whose calculation time is less than the preset time as the candidate terminal.
  • the authority assigning unit is configured to select one terminal from the candidate terminals as the writing terminal according to the preset authority rule, and allocate the writing authority for writing data to the blockchain database to the writing terminal.
  • the preset permission rule in the rights allocation unit specifically includes a random allocation rule or an efficiency allocation rule.
  • the rights allocation unit is specifically configured to randomly select one terminal from the candidate terminal as a writing terminal, where each terminal in the candidate terminal is The probability of selection is the same.
  • the authority assigning unit is specifically used according to a formula Calculating an efficiency parameter, and then calculating a probability that each candidate terminal is selected as the writing terminal according to the efficiency parameter, and selecting one terminal from the candidate terminal as the writing terminal according to the probability, wherein t i is the calculation time corresponding to each candidate terminal, and d is an efficiency parameter.
  • t i is the calculation time corresponding to each candidate terminal
  • d is an efficiency parameter.
  • the method and system for assigning a write permission of a blockchain according to the present invention can record and count the calculation time of each terminal's calculation difficulty, and select multiple terminals whose calculation time is less than the preset time from multiple terminals as a backup The terminal is selected, and then one terminal is selected as a write terminal from the candidate terminal according to the preset authority rule, and the write permission is given.
  • the invention selects the write terminal according to the preset authority rule and gives the write permission, instead of assigning the write permission to the terminal with the shortest calculation time, and solves the security of the blockchain database caused by the write permission concentrated in a few "associated" hands.
  • the hidden danger problem has improved the security of the blockchain database and has strong practicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Databases & Information Systems (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

L'invention concerne également un procédé et un système d'attribution d'autorisation d'écriture de chaîne de blocs. Le procédé consiste à : enregistrer des périodes de temps de calcul utilisées par de multiples terminaux dans des difficultés de résolution générées selon un algorithme prédéfini (S101); trier les périodes de temps de calcul correspondant aux terminaux dans l'ordre croissant, et utiliser les terminaux, dont les périodes de calcul sont plus courtes qu'une période de temps prédéfinie, en tant que terminaux candidats (S102); et sélectionner un terminal parmi les terminaux candidats selon une règle de permission prédéfinie pour servir de terminal d'écriture, et attribuer une permission d'écriture pour écrire des données dans une base de données de chaîne de blocs vers le terminal d'écriture (S103) Un terminal d'écriture est sélectionné selon une règle d'autorisation prédéfinie, une autorisation d'écriture est attribuée au terminal d'écriture, l'autorisation d'écriture n'étant pas attribuée à un terminal dont la période de temps de calcul est la plus courte, et par conséquent le problème des risques de sécurité cachés d'une base de données de chaîne de blocs provoquée par la concentration de permissions d'écriture sur des "mineurs" correspondant à un petit nombre de terminaux est résolu, la sécurité de la base de données de chaîne de blocs est améliorée, et l'aptitude à la mise en œuvre est élevée.
PCT/CN2017/098233 2016-08-26 2017-08-21 Procédé et système d'attribution d'autorisation d'écriture de chaîne de blocs WO2018036441A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610740849.1A CN106203178B (zh) 2016-08-26 2016-08-26 一种区块链的写入权限分配方法及系统
CN201610740849.1 2016-08-26

Publications (1)

Publication Number Publication Date
WO2018036441A1 true WO2018036441A1 (fr) 2018-03-01

Family

ID=57527072

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098233 WO2018036441A1 (fr) 2016-08-26 2017-08-21 Procédé et système d'attribution d'autorisation d'écriture de chaîne de blocs

Country Status (2)

Country Link
CN (1) CN106203178B (fr)
WO (1) WO2018036441A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109166037A (zh) * 2018-07-25 2019-01-08 上海魅联信息技术有限公司 区块链的共识方法
CN111683071A (zh) * 2020-05-29 2020-09-18 百度在线网络技术(北京)有限公司 区块链的隐私数据处理方法、装置、设备以及存储介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203178B (zh) * 2016-08-26 2018-11-20 杨鹏 一种区块链的写入权限分配方法及系统
CN106357405A (zh) * 2016-09-19 2017-01-25 弗洛格(武汉)信息科技有限公司 一种基于区块链技术一致性算法的数据管理方法及系统
US11321681B2 (en) * 2017-02-06 2022-05-03 Northern Trust Corporation Systems and methods for issuing and tracking digital tokens within distributed network nodes
CN108694189B (zh) * 2017-04-07 2022-01-21 微软技术许可有限责任公司 共同所有权的数据库系统的管理
CN107424066B (zh) * 2017-07-19 2020-11-10 武汉凤链科技有限公司 一种基于价值量建立共识机制的方法及其系统
CN109241763B (zh) * 2018-07-04 2020-03-24 青岛闪收付信息技术有限公司 基于权限下发的区块生成方法
CN109039646B (zh) * 2018-07-12 2021-07-27 北京易智能科技有限公司 一种基于节点能力的区块链区块打包和验证方法及系统
CN112015547B (zh) * 2020-07-31 2021-10-08 中标慧安信息技术股份有限公司 用于区块链存证平台的矿工任务分配方法及系统
CN112507033B (zh) * 2021-02-07 2021-06-22 北京全息智信科技有限公司 一种基于区块链的多主服务集群访问方法、装置和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130166455A1 (en) * 2011-12-23 2013-06-27 Douglas Feigelson Creating and using digital currency
CN103327636A (zh) * 2013-06-04 2013-09-25 北京邮电大学 一种针对大数据率业务的资源调度方法
CN104915249A (zh) * 2015-05-21 2015-09-16 北京比特大陆科技有限公司 矿池中挖虚拟数字币的方法和装置
CN106203178A (zh) * 2016-08-26 2016-12-07 杨鹏 一种区块链的写入权限分配方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827410A (zh) * 2016-03-11 2016-08-03 邓迪 构建可信节点/卫星节点的区块链传输方法和系统
CN105844505A (zh) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 一种通过区块链技术进行数字货币交易的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130166455A1 (en) * 2011-12-23 2013-06-27 Douglas Feigelson Creating and using digital currency
CN103327636A (zh) * 2013-06-04 2013-09-25 北京邮电大学 一种针对大数据率业务的资源调度方法
CN104915249A (zh) * 2015-05-21 2015-09-16 北京比特大陆科技有限公司 矿池中挖虚拟数字币的方法和装置
CN106203178A (zh) * 2016-08-26 2016-12-07 杨鹏 一种区块链的写入权限分配方法及系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109166037A (zh) * 2018-07-25 2019-01-08 上海魅联信息技术有限公司 区块链的共识方法
CN109166037B (zh) * 2018-07-25 2022-01-25 上海魅联信息技术有限公司 区块链的共识方法
CN111683071A (zh) * 2020-05-29 2020-09-18 百度在线网络技术(北京)有限公司 区块链的隐私数据处理方法、装置、设备以及存储介质
CN111683071B (zh) * 2020-05-29 2023-02-28 百度在线网络技术(北京)有限公司 区块链的隐私数据处理方法、装置、设备以及存储介质
US11665000B2 (en) 2020-05-29 2023-05-30 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for processing privacy data of block chain, device, and storage medium

Also Published As

Publication number Publication date
CN106203178A (zh) 2016-12-07
CN106203178B (zh) 2018-11-20

Similar Documents

Publication Publication Date Title
WO2018036441A1 (fr) Procédé et système d'attribution d'autorisation d'écriture de chaîne de blocs
CN105701028B (zh) 分布式存储系统中的磁盘管理方法和设备
CN104915879B (zh) 基于金融数据的社会关系挖掘的方法及装置
JP2018535490A (ja) サービス処理方法及び装置
CN107679856B (zh) 基于交易的业务控制方法和装置
WO2018075839A1 (fr) Exécution commandée d'interrogations pour protéger des données sensibles dans des réponses d'interrogation dans un environnement de services à la demande
CN110443618A (zh) 风控策略的生成方法及装置
CN106372977B (zh) 一种虚拟账户的处理方法和设备
TW201435486A (zh) 用於確定遮罩圖案的方法、記錄媒體及資訊處理裝置
JP2018514019A (ja) モバイルデバイス属性の経時的変化に基づいて一意のモバイルデバイスを識別するための方法及びシステム
CN112667712B (zh) 一种基于差分隐私的分组精准直方图数据发布方法
CN109166024A (zh) 一种等级信息展示方法、电子设备和可读存储介质
US11704741B1 (en) Systems and methods for simulating and visualizing loss data
CN110390211B (zh) 一种敏感属性数据的处理方法及系统
CN112990941A (zh) 一种针对智能合约中庞氏骗局的漏洞检测方法及系统
WO2021118413A2 (fr) Procédé de traitement de données comprenant des procédés de calcul multilatéral sécurisé et d'analyse de données
CN109617695A (zh) 基于区块链的投票方法、装置、电子设备及存储介质
CN109583731A (zh) 一种风险识别方法、装置及设备
CN116776361A (zh) 一种基于隐私计算的公共数据资源开发利用管理平台
JP2015153272A (ja) 情報処理装置、情報処理方法およびプログラム
CN110516713A (zh) 一种目标群体识别方法、装置及设备
CN106155913A (zh) 缓存命中率分析的方法及设备
CN112597525B (zh) 基于隐私保护的数据处理方法、装置和服务器
TWI534704B (zh) 時間序列資料處理方法及其系統
CN110188968A (zh) 区域划分、热度统计的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17842864

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26.07.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17842864

Country of ref document: EP

Kind code of ref document: A1