简体   繁体   English

公链如何保护私链?

[英]How to protect private blockchain with public blockchain?

Private blockchain has the risk of 51% attack, while public blockchain is pretty safe.私有区块链有 51% 攻击的风险,而公共区块链相当安全。 So can we protect private chain with public chain?那么我们可以用公链保护私有链吗? I got an idea, that we can save block height and block hash, every 100 block.我有一个想法,我们可以每 100 个块保存块高度和块哈希。 We save 1,101,201... block height and hash on public chain, and we verify it.我们在公链上保存了 1,101,201... 块高度和哈希值,并进行了验证。 But it still has risk, before 101 block is protected, 2-99 blocks still have risk.但是还是有风险的,在101个区块被保护之前,2-99个区块还是有风险的。 Is there a better way to solve it?有没有更好的方法来解决它?

I believe the way do it is the correct way.我相信这样做的方式是正确的方式。 You may either store hash of your Nth block or just store hash every day (or hour) in public chain.您可以存储第 N 个区块的哈希值,也可以每天(或每小时)在公共链中存储哈希值。

I have recently reviewed Exonum framework ( https://exonum.com/ ) and its Anchoring feature is similar to what you have made.我最近审查了 Exonum 框架 ( https://exonum.com/ ),它的锚定功能与您所做的类似。

You may want to look at the possibility to encrypt your data inside a public blockchain.您可能想看看在公共区块链中加密数据的可能性。 This way you can benefit of the extra security of the public blockchain.通过这种方式,您可以受益于公共区块链的额外安全性。

Protection of a Private Blockchain should include security for data at rest, data in motion, metadata and associate aspects.私有区块链的保护应包括静态数据、动态数据、元数据和关联方面的安全性。 Data in motion can be protected using secure protocols such as TLS and SSL.可以使用 TLS 和 SSL 等安全协议保护动态数据。 Data at rest can be secured using state of the art encryption algorithms and digital signatures ( Lampart Signature, Merkle Signatures etc. ).可以使用最先进的加密算法和数字签名(Lampart 签名、Merkle 签名等)来保护静态数据。 Data at rest includes Block Headers, Block Metadata and Transaction information.静态数据包括块头、块元数据和交易信息。 Additional layer of security for a Private Blockchain can be provided by using Certificate Authorities.可以使用证书颁发机构为私有区块链提供额外的安全层。

Depends highly on the consensus used by your blockchain, but from what I see you're afraid of 51% attacks so I guess you're talking about a PoW consensus ledger.很大程度上取决于您的区块链使用的共识,但据我所知,您害怕 51% 的攻击,所以我猜您是在谈论 PoW 共识分类账。

I explained here how to arginate 51% attacks: How is the source code protected from being tampered with in a blockchain?我在这里解释了如何发起 51% 攻击: 如何保护源代码不被区块链篡改?

In a public blockchain, it is important to give admittance to an incorporated power to administer the whole organization, consequently making it a private blockchain now.在公共区块链中,重要的是允许合并权力来管理整个组织,因此现在使其成为私有区块链。 In a private blockchain, any individual who is managing the organization can adjust or alter any exchanges as indicated by their necessities.在私有区块链中,任何管理组织的个人都可以根据他们的需要调整或更改任何交易所。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM