Skip to content

Commit

Permalink
update Fri Dec 9 04:02:36 PM CST 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-Kai committed Dec 9, 2022
1 parent fb71082 commit 65883cb
Show file tree
Hide file tree
Showing 29 changed files with 2,885 additions and 76 deletions.
477 changes: 470 additions & 7 deletions content/post/Redis源码剖析-一.md

Large diffs are not rendered by default.

196 changes: 185 additions & 11 deletions content/post/区块链学习.md

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions content/post/区块链白皮书解读.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,34 @@ toc: true

传统区块链系统的单链结构在交易认证,吞吐量,资源消耗等方面存在缺陷,DAG结构的区块链是一个有效的解决方案。

## Fabric 白皮书

Hyperledger Fabric 是 Linux 基金会 的 一个项目,是Hyperledger下面的一个子项目。作为一个开源联盟链,被很多项目应用。

它的主要特点是模块化的共识机制,相对高性能,和可以使用常规语言编写智能合约(golang)。

### 概念

#### 联盟链

文中划分联盟链和公链的标准是: **是否发币和节点身份是否可知**

状态机复制(SMR)是建设弹性应用众所周知的方式,但是如果我们把运行在区块链上的智能合约看作一种分布式应用,与传统的SMR区别在于:

- 许多应用并发运行
- 这些应用可以被任何人动态地部署
- 这些应用的代码是不被信任的,可能有恶意

#### order-execute

现有的大部分可以运行智能合约的区块链遵循SMR实现一种order-execute的架构: 节点先将交易排序再将它们广播给其他节点,然后每个节点顺序执行。

![](https://s2.loli.net/2022/12/06/B4Ns3GZAKl8dIXT.png)

所有节点对所有交易的顺序执行限制了性能,并且需要采取复杂的措施来防止源自不受信任的合约(例如在以太坊中使用“gas”计算运行时)的针对平台的拒绝服务攻击;智能合约很难做到并发。

最大的限制是交易必须是确定的,这就使得不能使用常规编程语言来实现,必须使用特定的语言。

#### execute-order-validate

![](https://s2.loli.net/2022/12/07/jDBxcLmYrfXSnbl.png)
5 changes: 5 additions & 0 deletions content/post/联邦学习相关论文阅读.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,8 @@ discriminative aggregation (**判别聚合**)
每轮开始时,服务器先检查客户端的模型,根据给定的超参数$\tau$和滞后容忍算法来分配模型。服务器收集上传的更新,错过上次更新的节点会被优先采集。等采集到的更新满足预先设置的标准后,执行三步合并,然后更新缓存状态。


## IOT ‘22《A Blockchain-based Model Migration Approach for Secure and Sustainable Federated Learning in IoT Systems》

### 背景


2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ <h1>
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.json

Large diffs are not rendered by default.

440 changes: 432 additions & 8 deletions docs/index.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/page/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/post/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -385,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 />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
440 changes: 432 additions & 8 deletions docs/post/index.xml

Large diffs are not rendered by default.

428 changes: 419 additions & 9 deletions docs/post/redis源码剖析-一/index.html

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion docs/post/区块链白皮书解读/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ <h3 class="text-java-700 font-normal leading-relaxed pt-2">时不时更新</h3>
<li><a href="#比特币白皮书">比特币白皮书</a></li>
<li><a href="#以太坊白皮书">以太坊白皮书</a></li>
<li><a href="#tangle-白皮书">Tangle 白皮书</a></li>
<li><a href="#fabric-白皮书">Fabric 白皮书</a>
<ul>
<li><a href="#概念">概念</a></li>
</ul>
</li>
</ul>
</nav>
</div>
Expand All @@ -210,6 +215,25 @@ <h2 id="tangle-白皮书">Tangle 白皮书</h2>
<p>详细的内容见 <a href="https://lzphi.cn/2020/12/20/2020-12-17-Tangle-%E7%99%BD%E7%9A%AE%E4%B9%A6/">Tangle白皮书中文版</a></p>
<p><strong>tangle</strong><strong>IOTA</strong> 所用的技术,为物联网和小额支付提供支持。不同于常见的区块链,它使用一个DAG(有向无环图)作为结构,这里称为Tangle。</p>
<p>传统区块链系统的单链结构在交易认证,吞吐量,资源消耗等方面存在缺陷,DAG结构的区块链是一个有效的解决方案。</p>
<h2 id="fabric-白皮书">Fabric 白皮书</h2>
<p>Hyperledger Fabric 是 Linux 基金会 的 一个项目,是Hyperledger下面的一个子项目。作为一个开源联盟链,被很多项目应用。</p>
<p>它的主要特点是模块化的共识机制,相对高性能,和可以使用常规语言编写智能合约(golang)。</p>
<h3 id="概念">概念</h3>
<h4 id="联盟链">联盟链</h4>
<p>文中划分联盟链和公链的标准是: <strong>是否发币和节点身份是否可知</strong></p>
<p>状态机复制(SMR)是建设弹性应用众所周知的方式,但是如果我们把运行在区块链上的智能合约看作一种分布式应用,与传统的SMR区别在于:</p>
<ul>
<li>许多应用并发运行</li>
<li>这些应用可以被任何人动态地部署</li>
<li>这些应用的代码是不被信任的,可能有恶意</li>
</ul>
<h4 id="order-execute">order-execute</h4>
<p>现有的大部分可以运行智能合约的区块链遵循SMR实现一种order-execute的架构: 节点先将交易排序再将它们广播给其他节点,然后每个节点顺序执行。</p>
<p><img src="https://s2.loli.net/2022/12/06/B4Ns3GZAKl8dIXT.png" alt=""></p>
<p>所有节点对所有交易的顺序执行限制了性能,并且需要采取复杂的措施来防止源自不受信任的合约(例如在以太坊中使用“gas”计算运行时)的针对平台的拒绝服务攻击;智能合约很难做到并发。</p>
<p>最大的限制是交易必须是确定的,这就使得不能使用常规编程语言来实现,必须使用特定的语言。</p>
<h4 id="execute-order-validate">execute-order-validate</h4>
<p><img src="https://s2.loli.net/2022/12/07/jDBxcLmYrfXSnbl.png" alt=""></p>
</div>
</section>

Expand Down Expand Up @@ -293,7 +317,7 @@ <h2 id="tangle-白皮书">Tangle 白皮书</h2>
<div class="text-sm text-gray-500 leading-tight a-gray">

<br />
Built with Hugo and theme <a href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>. 152 words in this page.
Built with Hugo and theme <a href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>. 603 words in this page.
</div>
</div>

Expand Down
9 changes: 8 additions & 1 deletion docs/post/联邦学习相关论文阅读/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ <h3 class="text-java-700 font-normal leading-relaxed pt-2">持续更新</h3>
<li><a href="#模型-1">模型</a></li>
</ul>
</li>
<li><a href="#iot-22a-blockchain-based-model-migration-approach-for-secure-and-sustainable-federated-learning-in-iot-systems">IOT ‘22《A Blockchain-based Model Migration Approach for Secure and Sustainable Federated Learning in IoT Systems》</a>
<ul>
<li><a href="#背景-2">背景</a></li>
</ul>
</li>
</ul>
</nav>
</div>
Expand Down Expand Up @@ -387,6 +392,8 @@ <h4 id="discriminative-aggregation">Discriminative Aggregation</h4>
<h4 id="算法流程">算法流程</h4>
<p><img src="https://s2.loli.net/2022/11/15/kxSZgVusbUM29hY.png" alt=""></p>
<p>每轮开始时,服务器先检查客户端的模型,根据给定的超参数$\tau$和滞后容忍算法来分配模型。服务器收集上传的更新,错过上次更新的节点会被优先采集。等采集到的更新满足预先设置的标准后,执行三步合并,然后更新缓存状态。</p>
<h2 id="iot-22a-blockchain-based-model-migration-approach-for-secure-and-sustainable-federated-learning-in-iot-systems">IOT ‘22《A Blockchain-based Model Migration Approach for Secure and Sustainable Federated Learning in IoT Systems》</h2>
<h3 id="背景-2">背景</h3>
</div>
</section>

Expand Down Expand Up @@ -470,7 +477,7 @@ <h4 id="算法流程">算法流程</h4>
<div class="text-sm text-gray-500 leading-tight a-gray">

<br />
Built with Hugo and theme <a href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>. 3547 words in this page.
Built with Hugo and theme <a href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>. 3575 words in this page.
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/series/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/tags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ <h1 >
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/tags/raft/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ <h1 class="pb-4">
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/tags/redis/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ <h1 class="pb-4">
Built with Hugo and theme <a
href="https://github.com/heyeshuang/hugo-theme-tokiwa">Tokiwa</a>.
<br />
19 pages, 18926 words in total.
19 pages, 23968 words in total.
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 65883cb

Please sign in to comment.