



技术领域technical field
本发明涉及区块链技术领域,具体是一种区块链及其共识方法。The invention relates to the technical field of blockchain, in particular to a blockchain and a consensus method thereof.
背景技术Background technique
区块链技术是近年的新兴技术,具备去中心化的特点,能够确保所储存的交易数据不被伪造或篡改。因此,如何在互相没有信任基础的个体之间就交易的合法性等达成共识,便成为一重要课题。Blockchain technology is an emerging technology in recent years. It has the characteristics of decentralization and can ensure that the stored transaction data is not forged or tampered with. Therefore, how to reach a consensus on the legitimacy of transactions among individuals without mutual trust has become an important issue.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,本发明提出一种区块链及其共识方法,藉以解决先前技术存在之问题。In view of the above problems, the present invention proposes a blockchain and a consensus method thereof to solve the problems existing in the prior art.
在一实施例,区块链包括多个在线节点,每一在线节点依据一最新区块获得一杂凑值,并依据杂凑值利用一椭圆曲线算法产生一基准点,并依据基准点与每一在线节点的一公钥进行一相关性运算,依据运算结果选出最相关的若干在线节点作为多个仲裁会成员,并依据运算出的相关性排序仲裁会成员,仲裁会成员依序有一权限时间来生长区块,若前一个仲裁会成员在权限时间内没有生长区块,则由下一个仲裁会成员生长区块。In one embodiment, the blockchain includes a plurality of online nodes, each online node obtains a hash value according to a latest block, and uses an elliptic curve algorithm to generate a reference point according to the hash value, and is associated with each online node according to the reference point. A public key of the node performs a correlation operation, selects the most relevant online nodes as multiple members of the quorum according to the calculation results, and sorts the members of the quorum according to the calculated correlation. Growth block, if the previous quorum member does not grow a block within the authority time, the next quorum member will grow the block.
在一些实施例中,相关性运算是指距离计算。In some embodiments, the correlation operation refers to a distance calculation.
在一些实施例中,每一在线节点依据杂凑值及时间参数,并利用椭圆曲线算法产生基准点。In some embodiments, each online node generates a reference point using an elliptic curve algorithm according to a hash value and a time parameter.
在一些实施例中,时间参数是指当前时间。In some embodiments, the time parameter refers to the current time.
在一些实施例中,具有权限时间的仲裁会成员将收到的至少一交易单打包为一区块,并将区块广播至其他的仲裁会成员,供验证所述区块并投票。In some embodiments, a member of the quorum with authority time packs the received at least one transaction order into a block, and broadcasts the block to other members of the quorum for validating and voting on the block.
在一些实施例中,区块链更包括至少一优先投票节点,优先投票节点优先验证区块并投票,于所有的优先投票节点都认可区块时,才由仲裁会成员验证区块并投票。In some embodiments, the blockchain further includes at least one priority voting node. The priority voting node validates the block and votes first. When all priority voting nodes approve the block, the members of the arbitration committee validate the block and vote.
在一实施例,区块链的共识方法包括:依据一最新区块获得一杂凑值;依据所述杂凑值利用一椭圆曲线算法产生一基准点;依据基准点与每一在线节点的一公钥进行一相关性运算;以及依据运算结果选出最相关的若干在线节点作为多个仲裁会成员。In one embodiment, the consensus method of the blockchain includes: obtaining a hash value according to a latest block; generating a reference point by using an elliptic curve algorithm according to the hash value; according to the reference point and a public key of each online node performing a correlation operation; and selecting the most relevant online nodes as members of a plurality of arbitration committees according to the operation result.
在一些实施例中,还依据运算出的相关性排序仲裁会成员,仲裁会成员依序有一权限时间来生长区块;以及若前一个仲裁会成员在权限时间内没有生长区块,则由下一个仲裁会成员生长区块。In some embodiments, the members of the quorum are also sorted according to the calculated correlation, and the members of the quorum sequentially have an authority time to grow a block; and if the previous member of the quorum does not grow a block within the authority time, the next A quorum member grows a block.
在一些实施例中,区块链的共识方法更包括:具有权限时间的仲裁会成员将收到的至少一交易单打包为一区块,并将区块广播至其他的仲裁会成员,供验证区块并投票。In some embodiments, the consensus method of the blockchain further includes: a member of the quorum with authority time packs the received at least one transaction order into a block, and broadcasts the block to other members of the quorum for verification block and vote.
在一些实施例中,区块链的共识方法更包括:由至少一优先投票节点优先验证区块并投票,于所有的优先投票节点都认可区块时,才由仲裁会成员验证区块并投票。In some embodiments, the consensus method of the blockchain further includes: at least one priority voting node firstly validates and votes the block, and only when all priority voting nodes approve the block, the members of the arbitration committee validate the block and vote .
综上,本发明提供一种区块链及其共识方法,能够让每一在线节点计算得每一轮的仲裁会成员及其排序,而无需通信协调,能够减少通信资源与时间。且因每一轮的仲裁会成员均不固定,可降低有心人士的干预风险。除此之外,还可指定优先投票节点验证区块,并且在交易单过期后,仍可转为正式的交易记录,避免资源浪费。To sum up, the present invention provides a blockchain and a consensus method thereof, which enables each online node to calculate the members of the arbiter and their ranking in each round without communication coordination, which can reduce communication resources and time. And because the members of the arbitration committee in each round are not fixed, it can reduce the risk of intervention by interested people. In addition, priority voting nodes can also be designated to verify blocks, and after the transaction slip expires, it can still be converted into a formal transaction record to avoid wasting resources.
附图说明Description of drawings
图1是本发明一实施例的区块链的方块示意图。FIG. 1 is a schematic block diagram of a blockchain according to an embodiment of the present invention.
图2是本发明一实施例的区块链的架构示意图。FIG. 2 is a schematic structural diagram of a blockchain according to an embodiment of the present invention.
图3是本发明一实施例的基准点与公钥间的相关性示意图。FIG. 3 is a schematic diagram of the correlation between a reference point and a public key according to an embodiment of the present invention.
图4是本发明一实施例的区块链的共识方法流程图。FIG. 4 is a flowchart of a consensus method of a blockchain according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、特征及效果更容易理解,以下提供用于详细说明本发明的实施例及附图。In order to make it easier to understand the objects, features, and effects of the present invention, embodiments and drawings for describing the present invention in detail are provided below.
请参阅图1,图1是本发明一实施例的区块链100的方块示意图。区块链100包括多个在线节点110。此些在线节点110经由点对点技术连接。所述在线节点110可以是任何具有计算及连网能力的电子装置,如桌上型电脑、手机、平板电脑、服务器、嵌入式装置等。Please refer to FIG. 1 . FIG. 1 is a schematic block diagram of a
请参阅图2,图2是本发明一实施例的区块链100的架构示意图。区块200b之后连接区块200c。每一区块200中具有区块头210及区块体220。区块头210包括上一个区块200的杂凑值,杂凑值可作为链结前后区块200的证明。在此示例,区块200b包括上一个区块的杂凑值211a;区块200c包括上一个区块200b的杂凑值211b。区块体220用以储存交易信息。Please refer to FIG. 2 , which is a schematic structural diagram of the
每一个在线节点110会依据一最新生成的区块200获得一杂凑值。因此,当生成新的区块的时候,此杂凑值也会随之不同。在此,此杂凑值可以是直接采用最新区块中记载的上一区块杂凑值211a、211b。在一些实施例中,杂凑值可以是将最新区块200的全部或一部分(如区块头、时间戳)进行计算而取得。杂凑值可以利用如SHA256等杂凑函数计算而得。Each
请参阅图3,图3是本发明一实施例的基准点与公钥间的相关性示意图。每一个在线节点110依据获得的杂凑值,利用椭圆曲线算法产生一基准点300,并依据基准点300与每一在线节点110的公钥301进行一相关性运算,依据运算结果选出最相关的若干所述在线节点110作为多个仲裁会成员120(图3所示标号302即是仲裁会成员120的公钥)。在此示例的相关性运算是指基准点300与每一在线节点110的公钥301之间的距离计算,但本发明实施例不限于此,例如可以执行特定的数学运算。由于每生成一个新的区块200,均会使杂凑值发生变化,亦即使得基准点300发生变动。而且,因为杂凑演算的特性,即使仅是杂凑值的变化细微,也会使得基准点300发生巨大的变化。因此,每一次生成新的区块200,仲裁会成员120的组成都会是不同的,据此可以提高区块链100的公正性,防止他人有意干涉投票决定。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of the correlation between the reference point and the public key according to an embodiment of the present invention. Each
在记帐权方面,依据运算出的相关性可对仲裁会成员120进行排序。在本实施例中是指仲裁会成员120的公钥302相对于基准点300的距离愈近则具有愈高的优先顺序。仲裁会成员120依序有一权限时间(例如两秒)来生长区块200。若前一个仲裁会成员120在权限时间内没有生长区块200,则由下一个仲裁会成员生长区块200。例如,第一优先的仲裁会成员120有两秒的时间可以生长区块200,若因为某些原因没有在此权限时间内生长区块200,则轮到第二优先的仲裁会成员120有两秒的时间可以生长区块200,若第二优先的仲裁会成员120也没有生长区块200,则轮到第三优先的仲裁会成员120,依此类推。由于上述的方式是每个在线节点110都能够自行执行计算,且会得到相同的计算结果,因此仲裁会成员120的决定和记帐权的决定不需要任何通信交流、协调,便能够计算出,可降低通信时间、耗能、及安全性的风险。In terms of billing rights, the
在一些实施例中,产生前述基准点300所依据的资料除了可以是最新生成的区块200获得的杂凑值之外,还可以结合其他参数,例如时间参数。也就是说,将杂凑值与当前时间结合,结合方式可例如为两字符串串接在一起,或各取一部分串接在一起,再将结合后的值利用椭圆曲线算法产生所述基准点300。从而,假使仲裁会成员120轮过一次都没有生长区块200,在第二轮所生成的基准点300也不会相同。In some embodiments, the data based on which the
在一些实施例中,可以仅使用杂凑值来形成前述基准点300。当仲裁会成员120轮过一次都没有生长区块200,在第二轮可改用第二新生成的区块200获得的杂凑值来形成前述基准点300,依此类推。In some embodiments, only hash values may be used to form the aforementioned
前述仲裁会成员120除了可轮流掌握记帐权之外,还可以投票表决验证交易是否合法。整体过程大致说明如下。前述在线节点110发起交易时,会将交易单广播至所有在线节点110。每一在线节点110收到交易单后,会将交易单缓存。当决定出仲裁会成员120和记帐权顺序后,拥有记帐权的仲裁会成员120会将缓存的交易单打包成区块并签章后,将区块广播至所有仲裁会成员120(与优先投票节点130,于后详述)。仲裁会成员120会检验区块的合法性,例如检验区块中的交易单与缓存的交易单是否一致,广播此区块的仲裁会成员120是否拥有记帐权,签章是否合法等。若检验通过,仲裁会成员120会给予投票(即通过或不通过),此投票信息将广播给所有仲裁会成员120。投票信息包含交易单号、投票内容、及仲裁会成员120签章。当任一仲裁会成员120收到足够多的投票信息后(意即通过的票数达到门槛或不通过的票数达到门槛),便可做出决定,若不通过,则无视此区块,若通过,则将获得的投票信息加上交易单进行广播。所有在线节点110收到此广播后可验证其合法性,例如投票信息是否合法、交易单是否与缓存中的交易单一致,若验证通过便可将新的区块接入。In addition to holding the accounting right in turn, the aforementioned
在一些实施例中,投票通过的门槛可以是50%,也可以视需求更动为特定值。In some embodiments, the threshold for voting can be 50%, or it can be changed to a specific value as needed.
然而,在一些实施例中,交易单上还可以指定至少一优先投票节点130验证交易是否合法后进行签章,所述优先投票节点110可以例如为银行或其他的查核单位的审核装置。在前述的投票环节中,会优先看优先投票节点130的投票信息,于所有的优先投票节点都通过时,才考虑仲裁会成员120的投票信息。如此一来,可以由查核单位作为优先投票节点130,确保每一交易均经过查核单位检验。在一些实施例中,由于查核单位可能因营业时间的关系不能全时进行审核,因此当查核单位验证完之后该笔交易可能已经过期(亦即已有其他交易被打包上链)。在此情形下,若优先投票节点130通过之后,再由当下的仲裁会成员120(即依照最新区块200获得的杂凑值所决定出的仲裁会成员120)投票,于仲裁会成员120投票通过验证后,便可打包至新的区块200(即生长新的区块200)。However, in some embodiments, at least one
请参阅图4,图4是本发明一实施例的区块链100的共识方法流程图。区块链100的共识方法包括:依据最新区块200获得杂凑值(步骤S01);依据杂凑值利用椭圆曲线算法产生基准点(步骤S02);依据基准点与每一在线节点110的公钥进行一相关性运算(步骤S03);以及依据运算结果选出最相关的若干在线节点110作为多个仲裁会成员120(步骤S04)。Please refer to FIG. 4 , which is a flowchart of a consensus method of the
决定出仲裁会成员120之后,可依据运算出的相关性排序仲裁会成员120,仲裁会成员120依序有一权限时间来生长区块200(步骤S05)。若前一个仲裁会成员120在权限时间内没有生长区块200,则由下一个仲裁会成员120生长区块200(步骤S06)。After the
综上,本发明提供一种区块链及其共识方法,能够让每一在线节点计算得每一轮的仲裁会成员及其排序,而无需通信协调,能够减少通信资源与时间。且因每一轮的仲裁会成员120均不固定,可降低有心人士的干预风险。除此之外,还可指定优先投票节点110验证区块,并且在交易单过期后,仍可转为正式的交易记录,避免资源浪费。To sum up, the present invention provides a blockchain and a consensus method thereof, which enables each online node to calculate the members of the arbiter and their ranking in each round without communication coordination, which can reduce communication resources and time. Moreover, since the
虽然本发明的技术内容已经以较佳实施例揭露如上,然其并非用以限定本发明,任何熟习此技艺者,在不脱离本发明的精神所作些许的更动与润饰,皆应涵盖于本发明的范畴内,因此本发明的专利保护范围当以前列的权利范围所界定者为准。Although the technical content of the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art, without departing from the spirit of the present invention, makes some changes and modifications, shall be covered in this book. Therefore, the scope of patent protection of the present invention shall be determined by the scope of the preceding rights.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910538245.2ACN112116461A (en) | 2019-06-20 | 2019-06-20 | Blockchain and its consensus method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910538245.2ACN112116461A (en) | 2019-06-20 | 2019-06-20 | Blockchain and its consensus method |
| Publication Number | Publication Date |
|---|---|
| CN112116461Atrue CN112116461A (en) | 2020-12-22 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910538245.2APendingCN112116461A (en) | 2019-06-20 | 2019-06-20 | Blockchain and its consensus method |
| Country | Link |
|---|---|
| CN (1) | CN112116461A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11403281B2 (en)* | 2020-01-09 | 2022-08-02 | Eternal Paradise Limited | Parallel blockchain processing |
| US20220326372A1 (en)* | 2021-04-12 | 2022-10-13 | Wavesense, Inc. | Blockchain transactions with locations obtained using surface-penetrating radar |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170344987A1 (en)* | 2016-05-24 | 2017-11-30 | Mastercard International Incorporated | Method and system for an efficient consensus mechanism for permssioned blockchains using bloom filters and audit guarantees |
| CN108923909A (en)* | 2018-07-02 | 2018-11-30 | 上海达家迎信息科技有限公司 | Block chain generation method, device, computer equipment and storage medium |
| CN109598616A (en)* | 2018-12-09 | 2019-04-09 | 大连飞创信息技术有限公司 | Method for block chain data privacy protection by introducing arbitration mechanism |
| CN109639413A (en)* | 2018-12-10 | 2019-04-16 | 四川大学 | A kind of block catenary system based on mobile ad hoc network |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170344987A1 (en)* | 2016-05-24 | 2017-11-30 | Mastercard International Incorporated | Method and system for an efficient consensus mechanism for permssioned blockchains using bloom filters and audit guarantees |
| CN108923909A (en)* | 2018-07-02 | 2018-11-30 | 上海达家迎信息科技有限公司 | Block chain generation method, device, computer equipment and storage medium |
| CN109598616A (en)* | 2018-12-09 | 2019-04-09 | 大连飞创信息技术有限公司 | Method for block chain data privacy protection by introducing arbitration mechanism |
| CN109639413A (en)* | 2018-12-10 | 2019-04-16 | 四川大学 | A kind of block catenary system based on mobile ad hoc network |
| Title |
|---|
| 阳政;纪澍琴;: "基于仲裁的身份真实性实时确认机制的研究与实现", 计算机安全, no. 05, 15 May 2008 (2008-05-15)* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11403281B2 (en)* | 2020-01-09 | 2022-08-02 | Eternal Paradise Limited | Parallel blockchain processing |
| US20220326372A1 (en)* | 2021-04-12 | 2022-10-13 | Wavesense, Inc. | Blockchain transactions with locations obtained using surface-penetrating radar |
| Publication | Publication Date | Title |
|---|---|---|
| CN110708171B (en) | Block chain consensus voting method, device, equipment and storage medium | |
| CN112035883B (en) | Method and computer readable medium for user credit scoring in a decentralized identity system | |
| US11170092B1 (en) | Document authentication certification with blockchain and distributed ledger techniques | |
| CN109639410B (en) | Block chain-based data evidence storing method and device and electronic equipment | |
| Islam et al. | On IC traceability via blockchain | |
| CN105763521A (en) | Equipment verification method and device | |
| EP2639999B1 (en) | Method and system for identifying anonymous entity | |
| US20140019766A1 (en) | Signature Generation and Verification System and Signature Verification Apparatus | |
| CN111353180A (en) | Block chain evidence storing method, evidence obtaining method and system | |
| CN110351089A (en) | A kind of data signature authentication method and device | |
| JP2005341552A5 (en) | ||
| CN101036340A (en) | Bi-directional error correction for physical tokens | |
| US20180365447A1 (en) | System and Method for Signing and Authentication of Documents | |
| US11343107B2 (en) | System for method for secured logging of events | |
| CN111431908B (en) | An access processing method, device, management server and readable storage medium | |
| WO2020160391A1 (en) | An efficient, environmental and consumer friendly consensus method for cryptographic transactions | |
| CN110611647A (en) | Node joining method and device on block chain system | |
| CN111787034B (en) | Block generation method, synchronization method, device, blockchain system and storage medium | |
| CN112910661B (en) | Block chain consensus method, device, equipment and medium suitable for electronic subscription | |
| CN112116461A (en) | Blockchain and its consensus method | |
| CN110598374B (en) | Block chain-based work registration method, apparatus and computer-readable storage medium | |
| CN112132576B (en) | Payment information processing method and blockchain information platform based on blockchain communication | |
| CN120359725A (en) | Computer-implemented method and system for public key infrastructure and authentication | |
| US11611555B1 (en) | Systems and methods for electronic enrollment and authentication | |
| CN113806810B (en) | Authentication method, authentication system, computing device, and storage medium |
| 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 | ||
| WD01 | Invention patent application deemed withdrawn after publication | Application publication date:20201222 | |
| WD01 | Invention patent application deemed withdrawn after publication |