|
|
<!DOCTYPE html> |
|
|
<html lang="zh-CN"> |
|
|
<head> |
|
|
<meta charset="UTF-8" /> |
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
|
|
|
|
|
|
|
|
<title>关于去中心化分布式系统的探索 | Mayx的博客</title> |
|
|
<meta name="generator" content="Jekyll v3.9.5" /> |
|
|
<meta property="og:title" content="关于去中心化分布式系统的探索" /> |
|
|
<meta name="author" content="mayx" /> |
|
|
<meta property="og:locale" content="zh_CN" /> |
|
|
<meta name="description" content="向开放的网络世界前进!" /> |
|
|
<meta property="og:description" content="向开放的网络世界前进!" /> |
|
|
<meta property="og:site_name" content="Mayx的博客" /> |
|
|
<meta property="og:type" content="article" /> |
|
|
<meta property="article:published_time" content="2021-06-10T00:00:00+08:00" /> |
|
|
<meta name="twitter:card" content="summary" /> |
|
|
<meta property="twitter:title" content="关于去中心化分布式系统的探索" /> |
|
|
<meta name="google-site-verification" content="huTYdEesm8NaFymixMNqflyCp6Jfvd615j5Wq1i2PHc" /> |
|
|
<meta name="msvalidate.01" content="0ADFCE64B3557DC4DC5F2DC224C5FDDD" /> |
|
|
<meta name="yandex-verification" content="fc0e535abed800be" /> |
|
|
<script type="application/ld+json"> |
|
|
{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"mayx"},"dateModified":"2021-06-10T00:00:00+08:00","datePublished":"2021-06-10T00:00:00+08:00","description":"向开放的网络世界前进!","headline":"关于去中心化分布式系统的探索","mainEntityOfPage":{"@type":"WebPage","@id":"/2021/06/10/distributed.html"},"publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://avatars0.githubusercontent.com/u/17966333"},"name":"mayx"},"url":"/2021/06/10/distributed.html"}</script> |
|
|
|
|
|
|
|
|
<link rel="canonical" href="https://mabbs.github.io/2021/06/10/distributed.html" /> |
|
|
<link type="application/atom+xml" rel="alternate" href="/atom.xml" title="Mayx的博客" /> |
|
|
<link rel="alternate" type="application/rss+xml" title="Mayx的博客(RSS)" href="/rss.xml" /> |
|
|
<link rel="alternate" type="application/json" title="Mayx的博客(JSON Feed)" href="/feed.json" /> |
|
|
<link rel="stylesheet" href="/assets/css/style.css?v=1768642552" /> |
|
|
|
|
|
<link rel="stylesheet" href="/Live2dHistoire/live2d/css/live2d.css" /> |
|
|
|
|
|
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Mayx的博客" /> |
|
|
<link rel="webmention" href="https://webmention.io/mabbs.github.io/webmention" /> |
|
|
<link rel="pingback" href="https://webmention.io/mabbs.github.io/xmlrpc" /> |
|
|
<link rel="preconnect" href="https://summary.mayx.eu.org" crossorigin="anonymous" /> |
|
|
<link rel="prefetch" href="https://www.blogsclub.org/badge/mabbs.github.io" as="image" /> |
|
|
<link rel="blogroll" type="text/xml" href="/blogroll.opml" /> |
|
|
<link rel="me" href="https://github.com/Mabbs" /> |
|
|
<script src="/assets/js/jquery.min.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
var lastUpdated = new Date("Sat, 17 Jan 2026 17:35:52 +0800"); |
|
|
var BlogAPI = "https://summary.mayx.eu.org"; |
|
|
</script> |
|
|
<script src="/assets/js/main.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-137710294-1"></script> |
|
|
<script> |
|
|
window.dataLayer = window.dataLayer || []; |
|
|
function gtag(){dataLayer.push(arguments);} |
|
|
gtag('js', new Date()); |
|
|
gtag('config', 'UA-137710294-1'); |
|
|
</script> |
|
|
|
|
|
<script src="/assets/js/instant.page.js" type="module"></script> |
|
|
|
|
|
</head> |
|
|
|
|
|
<body> |
|
|
<noscript><marquee style="top: -15px; position: relative;"><small>发现当前浏览器没有启用JavaScript,这不影响你的浏览,但可能会有一些功能无法使用……</small></marquee></noscript> |
|
|
|
|
|
<div class="wrapper"> |
|
|
<header class="h-card"> |
|
|
<h1><a class="u-url u-uid p-name" rel="me" href="/">Mayx的博客</a></h1> |
|
|
|
|
|
|
|
|
<img src="https://avatars0.githubusercontent.com/u/17966333" fetchpriority="high" class="u-photo" alt="Logo" style="width: 90%; max-width: 300px; max-height: 300px;" /> |
|
|
|
|
|
|
|
|
<p class="p-note">Mayx's Home Page</p> |
|
|
|
|
|
<form action="/search.html"> |
|
|
<input type="text" name="keyword" id="search-input-all" placeholder="Search blog posts.." /> <input type="submit" value="搜索" /> |
|
|
</form> |
|
|
<br /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="view"><a class="u-url" href="/Mabbs/">About me</a></p> |
|
|
|
|
|
<ul class="downloads"> |
|
|
|
|
|
<li style="width: 270px; border-right: none;"><a href="/MayxBlog.tgz">Download <strong>TGZ File</strong></a></li> |
|
|
|
|
|
</ul> |
|
|
</header> |
|
|
<section class="h-entry"> |
|
|
|
|
|
<small><time class="date dt-published" datetime="2021-06-10T00:00:00+08:00">10 June 2021</time> - 字数统计:1566 - 阅读大约需要5分钟 - Hits: <span id="/2021/06/10/distributed.html" class="visitors">Loading...</span></small> |
|
|
<h1 class="p-name">关于去中心化分布式系统的探索</h1> |
|
|
|
|
|
<p class="view">by <a class="p-author h-card" href="//github.com/Mabbs">mayx</a></p> |
|
|
<div id="outdate" style="display:none;"> |
|
|
<hr /><p> |
|
|
这是一篇创建于 <span id="outime"></span> 天前的文章,其中的信息可能已经有所发展或是发生改变。 |
|
|
</p> |
|
|
</div> |
|
|
<script> |
|
|
daysold = Math.floor((new Date().getTime() - new Date("Thu, 10 Jun 2021 00:00:00 +0800").getTime()) / (24 * 60 * 60 * 1000)); |
|
|
if (daysold > 90) { |
|
|
document.getElementById("outdate").style.display = "block"; |
|
|
document.getElementById("outime").innerHTML = daysold; |
|
|
} |
|
|
</script> |
|
|
|
|
|
<hr /> |
|
|
|
|
|
<b>AI摘要</b> |
|
|
<p id="ai-output">这篇文章探讨了去中心化分布式系统,特别是区块链技术,如比特币和区块链的分布式计算原理(尤其是挖矿)。作者最初倾向于BOINC式的有中心分布式计算,认为它们更为实用,但后来对区块链的去中心化特性产生了兴趣,尤其是其不易被篡改和公平公开的特性。然而,作者认为目前区块链的许多应用如挖矿浪费计算资源,对数学研究的意义有限,而且与中心化解决方案相比,能源效率较低。作者希望未来能出现一个更高效、公平且能激励用户维护的去中心化系统,可以通过量化资源并通过代币进行服务购买和激励。最后,作者由于身体状况暂未深入讨论去中心化系统在现实中的应用。</p> |
|
|
|
|
|
<hr /> |
|
|
|
|
|
|
|
|
|
|
|
<ul><li><a href="#过去">过去</a></li><li><a href="#现在">现在</a></li><li><a href="#未来">未来</a></li><li><a href="#后记">后记</a></li></ul> |
|
|
<hr /> |
|
|
|
|
|
|
|
|
<main class="post-content e-content" role="main"><p>向开放的网络世界前进!</p> |
|
|
<h1 id="过去"> |
|
|
|
|
|
|
|
|
<a href="#过去"><svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg></a> 过去 |
|
|
|
|
|
|
|
|
</h1> |
|
|
|
|
|
<p>在6年前的某一天,我在洗完澡之后突然想研究一下分布式计算,那时候我在网上了解到的比较经典的两种大型分布式计算项目有两种,一种是以BOINC为代表的有中心的分布式计算软件,另外就是比特币为首的区块链应用。当时我了解完原理之后觉得比特币这种东西计算的完全都是没有意义的东西,而且这个计算本身不能产生任何价值。而BOINC进行的大多数是为科学的计算,虽然对我来说没有价值,但是它至少是有意义的。所以我就选择了另外一条路,也就是为使用BOINC的项目进行志愿计算。不过也正是这个原因,我有了不少基于BOINC的<a href="https://www.worldcommunitygrid.org/stat/viewMemberInfo.do?userName=Mayx">World Community Grid</a>的点数,然后我就错过了发财的机会😂。</p> |
|
|
<h1 id="现在"> |
|
|
|
|
|
|
|
|
<a href="#现在"><svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg></a> 现在 |
|
|
|
|
|
|
|
|
</h1> |
|
|
|
|
|
<p>前段时间正好来了一次矿潮,我虽然对挖矿没什么兴趣但是还是被带上了车,不过我研究了一段时间发现虽然挖矿确实是个烂行为,但是它这个去中心化的分布式系统还是有点意思,它的特点就是如果相信它的人多,那么就没有人能摧毁它,而且内容都是公平公正公开的,谁都能看得见而且也不能被篡改。 </p><p> |
|
|
不过这个所谓的区块链不是不能篡改,而是篡改难度很大,篡改它必须要比所有其他节点的计算能力都强,以至于可以很轻松的比其他节点多算出很多个有效区块,然后根据协议其他节点就只能去相信这条最长的链。不过具体细节我没太了解,所以如果说的不对也请各位指正。 </p><p> |
|
|
但是目前来看的话区块链貌似除了加密货币还没有什么太多的应用,而且我感觉它们大多数应用都是在做无用功,像挖矿干的事情全部都是通过很消耗计算资源的方式来计算一些NP问题,而且还是用像遍历这样的方法。要是说这个计算能为数学做出多大贡献,那我觉得还是有意义的,然而这计算的纯粹就只是比赛谁解题解的多,然后还要给自己解的题签个名证明是自己解的,然后通过这个稀有度提高价值外,真的对这个世界没有一点点帮助。 </p><p> |
|
|
虽然说区块链本身通过记录数据有点用,或者像使用IPFS把存东西当作证明方法的Fil、还有ETH的什么智能合约啥的,但是相比于消耗的能源来说还是很不合适的,毕竟从理论上来说,如果使用中心化的方式实现同样的功能,消耗的资源要少太多了。 </p><p> |
|
|
比如说像BOINC这种,消耗的计算资源大多数都在为了解决实际问题,或者是像PCDN,消耗的存储与网络资源基本上都是为了要服务的用户所消耗。这些中心化的分布式系统资源利用率很高,干的活基本上都是变成了实际有意义的东西,虽然说Fil也有点意义吧……但是它在证明自己有这个资源的过程中要消耗大量的计算资源,资源利用率实在是很低。还有就是BTT啥的,不过那个我没太看懂而且也不怎么出名就不说了。最近貌似还有个啥BZZ也是个分布式存储的……总之不太了解的我还是不多加评论了。</p> |
|
|
<h1 id="未来"> |
|
|
|
|
|
|
|
|
<a href="#未来"><svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg></a> 未来 |
|
|
|
|
|
|
|
|
</h1> |
|
|
|
|
|
<p>不过我对这种去中心的分布式系统还是很看好的,这种就相当于是通过代码做中心,就像指导方案一样,而且通过数学的方式约束也更有公信力。像这样的系统更加难以破坏,而且很公平,相比于中心化的比如说公司或者政府更加容易被人相信。不过只要是系统那就还是得要人来维护,而人总是被利益驱动,所以如果没有奖励,也不会有人维护它,所以像用代币来激励维护系统的人这个我也能理解。 </p><p> |
|
|
所以我希望以后能出现这样的一个系统,它可以精确的统计计算、存储以及网络资源,然后量化换成代币,而且这一过程不需要使用很多资源,使用这些资源的人可以通过代币来购买这些服务,然后为了保证服务质量,也可以通过质押之类的办法来让很多服务提供商来提高上线率之类的,然后服务商就是各个挖矿的用户,所以我也希望能不出现矿池这种情况,总之具体情况得等这个东西设计出来才行。</p> |
|
|
<h1 id="后记"> |
|
|
|
|
|
|
|
|
<a href="#后记"><svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg></a> 后记 |
|
|
|
|
|
|
|
|
</h1> |
|
|
|
|
|
<p>本来我还想说一说去中心化分布式系统与现实的关系,不过最近我又犯期末综合征了,身体各个系统都在返回<code class="language-plaintext highlighter-rouge">Status: Degraded</code>,希望别哪天给我<code class="language-plaintext highlighter-rouge">Status: Offline</code>了😂。 </p><p> |
|
|
总之就是这样今天我先写到这里吧。</p></main> |
|
|
|
|
|
|
|
|
<small style="display: block">tags: <a rel="category tag" class="p-category" href="/search.html?keyword=%E5%88%86%E5%B8%83%E5%BC%8F"><em>分布式</em></a> - <a rel="category tag" class="p-category" href="/search.html?keyword=%E5%8C%BA%E5%9D%97%E9%93%BE"><em>区块链</em></a> <span style="float: right;"><a href="https://gitlab.com/mayx/mayx.gitlab.io/tree/master/_posts/2021-06-10-distributed.md">查看原始文件</a></span></small> |
|
|
|
|
|
|
|
|
<h4 style="border-bottom: 1px solid #e5e5e5;margin: 2em 0 5px;">推荐文章</h4> |
|
|
<p id="suggest-container">Loading...</p> |
|
|
<script> |
|
|
var suggest = $("#suggest-container"); |
|
|
$.get(BlogAPI + "/suggest?id=/2021/06/10/distributed.html&update=" + lastUpdated.valueOf(), function (data) { |
|
|
if (data.length) { |
|
|
getSearchJSON(function (search) { |
|
|
suggest.empty(); |
|
|
var searchMap = {}; |
|
|
for (var i = 0; i < search.length; i++) { |
|
|
searchMap[search[i].url] = search[i]; |
|
|
} |
|
|
|
|
|
var tooltip = $('<div class="content-tooltip"></div>').appendTo('body').hide(); |
|
|
for (var j = 0; j < data.length; j++) { |
|
|
var item = searchMap[data[j].id]; |
|
|
if (item) { |
|
|
var link = $('<a href="' + item.url + '">' + item.title + '</a>'); |
|
|
var contentPreview = item.content.substring(0, 100); |
|
|
if (item.content.length > 100) { |
|
|
contentPreview += "……"; |
|
|
} |
|
|
link.hover( |
|
|
function(e) { |
|
|
tooltip.text($(this).data('content')) |
|
|
.css({ |
|
|
top: e.pageY + 10, |
|
|
left: e.pageX + 10 |
|
|
}) |
|
|
.show(); |
|
|
}, |
|
|
function() { |
|
|
tooltip.hide(); |
|
|
} |
|
|
).mousemove(function(e) { |
|
|
tooltip.css({ |
|
|
top: e.pageY + 10, |
|
|
left: e.pageX + 10 |
|
|
}); |
|
|
}).data('content', contentPreview); |
|
|
|
|
|
suggest.append(link); |
|
|
suggest.append(' - ' + item.date + '<br />'); |
|
|
} |
|
|
} |
|
|
}); |
|
|
} else { |
|
|
suggest.html("暂无推荐文章……"); |
|
|
} |
|
|
}); |
|
|
</script> |
|
|
|
|
|
<br /> |
|
|
<div class="pagination"> |
|
|
|
|
|
<span class="prev"> |
|
|
<a href="/2021/05/15/vulnerability.html"> |
|
|
上一篇:论如何发现一个计算机漏洞 |
|
|
</a> |
|
|
</span> |
|
|
|
|
|
<br /> |
|
|
|
|
|
<span class="next"> |
|
|
<a href="/2021/07/13/wifi.html"> |
|
|
下一篇:绕过Portal认证的另一个想法 |
|
|
</a> |
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="/assets/css/gitalk.css"> |
|
|
<script src="/assets/js/gitalk.min.js"></script> |
|
|
|
|
|
<div id="gitalk-container"></div> |
|
|
|
|
|
<script> |
|
|
var gitalk = new Gitalk({ |
|
|
clientID: '36557aec4c3cb04f7ac6', |
|
|
clientSecret: 'ac32993299751cb5a9ba81cf2b171cca65879cdb', |
|
|
repo: 'mabbs.github.io', |
|
|
owner: 'Mabbs', |
|
|
admin: ['Mabbs'], |
|
|
id: '/2021/06/10/distributed', |
|
|
distractionFreeMode: false, |
|
|
proxy: "https://cors-anywhere.mayx.eu.org/?https://github.com/login/oauth/access_token" |
|
|
}) |
|
|
gitalk.render('gitalk-container') |
|
|
</script> |
|
|
|
|
|
|
|
|
</section> |
|
|
|
|
|
<div id="landlord" style="left:5px;bottom:0px;"> |
|
|
<div class="message" style="opacity:0"></div> |
|
|
<canvas id="live2d" width="500" height="560" class="live2d"></canvas> |
|
|
<div class="live_talk_input_body"> |
|
|
<form id="live_talk_input_form"> |
|
|
<div class="live_talk_input_name_body" > |
|
|
<input type="checkbox" id="load_this" /> |
|
|
<input type="hidden" id="post_id" value="/2021/06/10/distributed.html" /> |
|
|
<label for="load_this"> |
|
|
<span style="font-size: 11px; color: #fff;"> 想问这篇文章</span> |
|
|
</label> |
|
|
</div> |
|
|
<div class="live_talk_input_text_body"> |
|
|
<input name="talk" type="text" class="live_talk_talk white_input" id="AIuserText" autocomplete="off" placeholder="要和我聊什么呀?" /> |
|
|
<button type="submit" class="live_talk_send_btn" id="talk_send">发送</button> |
|
|
</div> |
|
|
</form> |
|
|
</div> |
|
|
<input name="live_talk" id="live_talk" value="1" type="hidden" /> |
|
|
<div class="live_ico_box" style="display:none;"> |
|
|
<div class="live_ico_item type_info" id="showInfoBtn"></div> |
|
|
<div class="live_ico_item type_talk" id="showTalkBtn"></div> |
|
|
<div class="live_ico_item type_music" id="musicButton"></div> |
|
|
<div class="live_ico_item type_youdu" id="youduButton"></div> |
|
|
<div class="live_ico_item type_quit" id="hideButton"></div> |
|
|
<input name="live_statu_val" id="live_statu_val" value="0" type="hidden" /> |
|
|
<audio src="" style="display:none;" id="live2d_bgm" data-bgm="0" preload="none"></audio> |
|
|
<input id="duType" value="douqilai" type="hidden" /> |
|
|
</div> |
|
|
</div> |
|
|
<div id="open_live2d">召唤伊斯特瓦尔</div> |
|
|
|
|
|
<footer> |
|
|
<p> |
|
|
<small>Made with ❤ by Mayx<br />Last updated at 2026-01-17 17:35:52<br /> 总字数:614622 - 文章数:178 - <a href="/atom.xml" >Atom</a> - <a href="/README.html" >About</a></small> |
|
|
</p> |
|
|
</footer> |
|
|
</div> |
|
|
<script src="/assets/js/scale.fix.js"></script> |
|
|
|
|
|
<script src="/assets/js/main_new.js"></script> |
|
|
<script src="/Live2dHistoire/live2d/js/live2d.js"></script> |
|
|
<script src="/Live2dHistoire/live2d/js/message.js"></script> |
|
|
|
|
|
</body> |
|
|
</html> |
|
|
|