Skip to content

Commit

Permalink
update Tue Nov 29 08:41:15 AM CST 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-Kai committed Nov 29, 2022
1 parent d178a84 commit fb71082
Show file tree
Hide file tree
Showing 33 changed files with 675 additions and 444 deletions.
4 changes: 1 addition & 3 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ <h1>








Expand Down Expand Up @@ -285,7 +283,7 @@ <h1>
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
20 pages, 17841 words in total.
19 pages, 18926 words in total.
</div>
</div>
</div>
Expand Down
24 changes: 1 addition & 23 deletions docs/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,26 +208,6 @@ <h1 >
<div>
<section>

<section>
<hr class="p-0 my-4" />
<div class="clearfix">
<span class="float-left text-3xl pr-6 font-serif pt-1">
<a href="/categories/%E6%8A%98%E8%85%BE">
折腾
</a>
</span>


<a class="font-serif leading-relaxed text-gray-600 hover:text-gray-700 focus:text-gray-700 font-light "
href="https://chi-kai.github.io/post/redis%E6%BA%90%E7%A0%81%E5%89%96%E6%9E%90-%E4%B8%80/">
Redis源码剖析(一)
</a>
<span class="text-gray-600"></span>


</div>
</section>

</section>
</div>

Expand Down Expand Up @@ -273,8 +253,6 @@ <h1 >








Expand Down Expand Up @@ -317,7 +295,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
20 pages, 17841 words in total.
19 pages, 18926 words in total.
</div>
</div>
</div>
Expand Down
10 changes: 0 additions & 10 deletions docs/categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,9 @@
<description>Recent content in Categories on 悉达多</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-cn</language>
<lastBuildDate>Sun, 22 May 2022 00:00:00 +0000</lastBuildDate>

<atom:link href="https://chi-kai.github.io/categories/index.xml" rel="self" type="application/rss+xml" />


<item>
<title>折腾</title>
<link>https://chi-kai.github.io/categories/%E6%8A%98%E8%85%BE/</link>
<pubDate>Sun, 22 May 2022 00:00:00 +0000</pubDate>

<guid>https://chi-kai.github.io/categories/%E6%8A%98%E8%85%BE/</guid>
<description></description>
</item>

</channel>
</rss>
8 changes: 3 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ <h1 >


<div class="font-serif text-medium-red-violet-400 pt-3">
Tokiwa-iro is the theme color of this site.
成功只有一个:按照自己的方式,去度过人生
</div>
<hr class="pt-2"/>

Expand Down Expand Up @@ -326,7 +326,7 @@ <h1 >
<div class="pb-8">
<div class="font-serif font-medium text-xl">
<a href="https://chi-kai.github.io/post/%E8%81%94%E9%82%A6%E5%AD%A6%E4%B9%A0%E7%9B%B8%E5%85%B3%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">
区块链白皮书解读
联邦学习论文阅读
</a>
</div>

Expand Down Expand Up @@ -485,8 +485,6 @@ <h1 >








Expand Down Expand Up @@ -529,7 +527,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
20 pages, 17841 words in total.
19 pages, 18926 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.json

Large diffs are not rendered by default.

167 changes: 115 additions & 52 deletions docs/index.xml

Large diffs are not rendered by default.

16 changes: 2 additions & 14 deletions docs/page/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ <h1 >


<div class="font-serif text-medium-red-violet-400 pt-3">
Tokiwa-iro is the theme color of this site.
成功只有一个:按照自己的方式,去度过人生
</div>
<hr class="pt-2"/>

Expand All @@ -225,18 +225,8 @@ <h1 >

<div class="flex flex-wrap justify-between pt-1"><div class="md:flex-grow-0 font-light">




<a class="post-taxonomy-category text-medium-red-violet-600 hover:text-medium-red-violet-400"
href='/categories/%E6%8A%98%E8%85%BE'>折腾</a>





&nbsp;&nbsp;




Expand Down Expand Up @@ -302,8 +292,6 @@ <h1 >








Expand Down Expand Up @@ -346,7 +334,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
20 pages, 17841 words in total.
19 pages, 18926 words in total.
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/post/dag区块链综述/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ <h2 id="heading"></h2>
height="24">
<path fill="none" d="M0 0h24v24H0z" />
<path d="M7.828 11H20v2H7.828l5.364 5.364-1.414 1.414L4 12l7.778-7.778 1.414 1.414z" /></svg>
区块链白皮书解读
联邦学习论文阅读
</a>


Expand All @@ -478,7 +478,7 @@ <h2 id="heading"></h2>
<span class="heading pr-6 leading-loose">Related</span>
<span >

<a href="/post/%E8%81%94%E9%82%A6%E5%AD%A6%E4%B9%A0%E7%9B%B8%E5%85%B3%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">区块链白皮书解读</a>&nbsp;&nbsp;&#47;&nbsp;
<a href="/post/%E8%81%94%E9%82%A6%E5%AD%A6%E4%B9%A0%E7%9B%B8%E5%85%B3%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">联邦学习论文阅读</a>&nbsp;&nbsp;&#47;&nbsp;

<a href="/post/raft%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">Raft论文阅读</a>&nbsp;&nbsp;&#47;&nbsp;

Expand Down
48 changes: 22 additions & 26 deletions docs/post/dag区块链论文阅读/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,24 +186,20 @@ <h3 class="text-java-700 font-normal leading-relaxed pt-2">时不时补充</h3>
<div class="inline toc-content">
<nav id="TableOfContents">
<ul>
<li><a href="#问题背景">问题背景</a></li>
<li><a href="#dag概述">DAG概述</a>
<li><a href="#direct-acyclic-graph-based-ledger-for-internet-of-things-performance-and-security-analysis">《Direct Acyclic Graph-Based Ledger for Internet of Things: Performance and Security Analysis》</a>
<ul>
<li><a href="#名词定义">名词定义</a></li>
<li><a href="#共识过程">共识过程</a></li>
<li><a href="#分叉问题">分叉问题</a></li>
<li><a href="#问题背景">问题背景</a></li>
<li><a href="#dag概述">DAG概述</a></li>
<li><a href="#heading"></a></li>
</ul>
</li>
<li><a href="#heading"></a></li>
</ul>

<ul>
<li><a href="#问题背景-1">问题背景</a>
<li><a href="#tips-transaction-inclusion-protocol-with-signaling-in-dag-based-blockchain">《TIPS: Transaction Inclusion Protocol with Signaling in DAG-based Blockchain》</a>
<ul>
<li><a href="#问题分析">问题分析</a></li>
<li><a href="#问题背景-1">问题背景</a></li>
<li><a href="#算法设计">算法设计</a></li>
</ul>
</li>
<li><a href="#算法设计">算法设计</a></li>
<li><a href="#silentdelivery-practical-timed-delivery-of-private-information-using-smart-contracts">《SilentDelivery: Practical Timed-delivery of Private Information using Smart Contracts》</a></li>
</ul>
</nav>
</div>
Expand All @@ -219,14 +215,14 @@ <h3 class="text-java-700 font-normal leading-relaxed pt-2">时不时补充</h3>

<article>
<section class="mx-auto content">
<div class="c-rich-text"><h1 id="direct-acyclic-graph-based-ledger-for-internet-of-things-performance-and-security-analysis">《Direct Acyclic Graph-Based Ledger for Internet of Things: Performance and Security Analysis》</h1>
<h2 id="问题背景">问题背景</h2>
<div class="c-rich-text"><h2 id="direct-acyclic-graph-based-ledger-for-internet-of-things-performance-and-security-analysis">《Direct Acyclic Graph-Based Ledger for Internet of Things: Performance and Security Analysis》</h2>
<h3 id="问题背景">问题背景</h3>
<p>由于区块链的安全性,去中心化,可信性,在IoT系统上有可观的应用前景(如智能车,能源交易)。IoT系统具有规模大,资源受限的特性。所以其上的共识算法必须满足资源需求小,低消耗,和高的交易吞吐量。</p>
<p>现在主要的两种共识算法:PoW需要高的资源消耗,PoS的币龄证明可能造成垄断和中心化。</p>
<p>典型的区块链是一种单链结构,为了避免非法的fork,应用的共识算法必须降低新的block生成速率。这导致了吞吐量瓶颈和区块认证延迟的问题,在IoT系统上又有交易花费高和资源消耗大的问题。</p>
<p>DAG共识算法可以允许任何节点可以立即向ledger插入一个新的block,前提是它能先处理更早的交易。这种方式会造成很多fork,DAG有很多算法来避免在传统区块链上面临的double-spending问题(Markov Chain Monte Carlo algorithm and virtual voting algorithm)。DAG共识算法的交易吞吐是不受限制的,而且资源消耗很低,这符合IoT的应用场景。</p>
<h2 id="dag概述">DAG概述</h2>
<h3 id="名词定义">名词定义</h3>
<h3 id="dag概述">DAG概述</h3>
<h4 id="名词定义">名词定义</h4>
<p><img src="https://s2.loli.net/2022/11/19/auRt2FzeCjwgsGM.png" alt=""></p>
<p>这里使用典型的Tangle算法来进行解释。</p>
<ul>
Expand All @@ -249,26 +245,26 @@ <h3 id="名词定义">名词定义</h3>
<p>Cumulative weight: 代表一个交易的认证级别。是一个交易自身own weight以及它直接证明和间接证明的交易的交易own weight总和。</p>
</li>
</ul>
<h3 id="共识过程">共识过程</h3>
<h4 id="共识过程">共识过程</h4>
<ol>
<li>节点创造一个块来储存交易</li>
<li>节点通过MCMC tips 选择算法来选择两个没有冲突的tips,然后添加它们的hash到块中</li>
<li>节点解决一个低难度的pow问题,来避免垃圾信息</li>
<li>使用私钥给交易签名并广播,当其他节点收到时会检查是否合法</li>
<li>成功添加的交易成为tip,等待被验证。直到它的cumulative weight 达到定义的标准。</li>
</ol>
<h3 id="分叉问题">分叉问题</h3>
<h4 id="分叉问题">分叉问题</h4>
<p><img src="https://s2.loli.net/2022/11/19/VnrEiPCoslHG9KY.png" alt=""></p>
<p>在分布式账本中,构建分叉以重做工作是篡改存储数据的唯一方法。基于此,double-spending的主要思想是将两笔相互冲突的交易并行放置在两条链上。在第一笔交易花费在服务上之后,攻击者扩展包含冲突交易的链并让它超过第一条链。当此操作成功时,第一笔交易将被孤立,攻击者可以多次使用token。</p>
<ul>
<li>单链模型: 以最长的一个链为标准,正常的矿工会在最长的链上工作</li>
<li>DAG模型: 以累计权重最大的子图为标准,正常的节点会通过MCMC tips 选择算法扩展权重最大的链。</li>
</ul>
<h2 id="heading"></h2>
<h1 id="tips-transaction-inclusion-protocol-with-signaling-in-dag-based-blockchain">《TIPS: Transaction Inclusion Protocol with Signaling in DAG-based Blockchain》</h1>
<h2 id="问题背景-1">问题背景</h2>
<h3 id="heading"></h3>
<h2 id="tips-transaction-inclusion-protocol-with-signaling-in-dag-based-blockchain">《TIPS: Transaction Inclusion Protocol with Signaling in DAG-based Blockchain》</h2>
<h3 id="问题背景-1">问题背景</h3>
<p>由于DAG区块链的高并发场景和网络延迟,矿工通常不能及时获取整个网络的更新信息,导致重复在一个并行区块包括相同的交易,在区块链中生成冗余的记录。这个交易包含冲突会浪费区块容量和降低系统性能。尽管DAG区块链已经限制交易的高并发,但是交易冲突的风险实际还会诱发<strong>矿工收益</strong><strong>系统吞吐</strong>的困境。</p>
<h3 id="问题分析">问题分析</h3>
<h4 id="问题分析">问题分析</h4>
<p><img src="http://tva1.sinaimg.cn/large/008upJWily1h804wzs4nsj30rk0jtgqa.jpg" alt="符号.png"></p>
<p>三种交易包含策略:</p>
<ol>
Expand All @@ -277,9 +273,9 @@ <h3 id="问题分析">问题分析</h3>
<li>Top n ($P^{top}$): $p_{1}=p_{2}=\cdots=p_{n}=1 \text { and } p_{n+1}=p_{n+2}=\cdots=p_{m}=0$</li>
</ol>
<p>这里仅考虑矿工收益中的交易费用奖励。</p>
<h4 id="收入困境">收入困境</h4>
<h2 id="算法设计">算法设计</h2>
<p>《SilentDelivery: Practical Timed-delivery of Private Information using Smart Contracts》</p>
<h5 id="收入困境">收入困境</h5>
<h3 id="算法设计">算法设计</h3>
<h2 id="silentdelivery-practical-timed-delivery-of-private-information-using-smart-contracts">《SilentDelivery: Practical Timed-delivery of Private Information using Smart Contracts》</h2>
</div>
</section>

Expand Down Expand Up @@ -401,7 +397,7 @@ <h2 id="算法设计">算法设计</h2>

<a href="/post/dag%E5%8C%BA%E5%9D%97%E9%93%BE%E7%BB%BC%E8%BF%B0/">DAG区块链综述</a>&nbsp;&nbsp;&#47;&nbsp;

<a href="/post/%E8%81%94%E9%82%A6%E5%AD%A6%E4%B9%A0%E7%9B%B8%E5%85%B3%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">区块链白皮书解读</a>&nbsp;&nbsp;&#47;&nbsp;
<a href="/post/%E8%81%94%E9%82%A6%E5%AD%A6%E4%B9%A0%E7%9B%B8%E5%85%B3%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">联邦学习论文阅读</a>&nbsp;&nbsp;&#47;&nbsp;

<a href="/post/raft%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">Raft论文阅读</a>&nbsp;&nbsp;&#47;&nbsp;

Expand Down
6 changes: 2 additions & 4 deletions docs/post/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h2 class=" text-eucalyptus-600">2022</h2>
<span class="font-serif pr-4 flex-shrink-0">11-06</span>
<div class="font-serif font-medium">
<a href="https://chi-kai.github.io/post/%E8%81%94%E9%82%A6%E5%AD%A6%E4%B9%A0%E7%9B%B8%E5%85%B3%E8%AE%BA%E6%96%87%E9%98%85%E8%AF%BB/">
区块链白皮书解读
联邦学习论文阅读
</a>

<div class="pl-4 text-gray-600 font-light">持续更新</div>
Expand Down Expand Up @@ -343,8 +343,6 @@ <h2 class=" text-eucalyptus-600">2022</h2>








Expand Down Expand Up @@ -387,7 +385,7 @@ <h2 class=" text-eucalyptus-600">2022</h2>
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
20 pages, 17841 words in total.
19 pages, 18926 words in total.
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit fb71082

Please sign in to comment.