Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dukedaily committed Aug 24, 2024
1 parent a72feba commit 4db0c63
Show file tree
Hide file tree
Showing 240 changed files with 11,923 additions and 11,180 deletions.
14 changes: 1 addition & 13 deletions cn/00_blockchain基础/01_什么是区块链.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@



<link rel="stylesheet" href="../../gitbook/honkit-plugin-mermaid/mermaid.css">



<link rel="stylesheet" href="../../gitbook/@honkit/honkit-plugin-highlight/website.css">


Expand Down Expand Up @@ -3086,7 +3082,7 @@ <h2 id="小结">小结</h2>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第1节:什么是区块链","level":"1.7.1","depth":2,"next":{"title":"第2节:什么是比特币","level":"1.7.2","depth":2,"path":"00_blockchain基础/02_什么是比特币.md","ref":"00_blockchain基础/02_什么是比特币.md","articles":[]},"previous":{"title":"第0章:blockchain基础","level":"1.7","depth":1,"path":"00_blockchain基础/README.md","ref":"00_blockchain基础/README.md","articles":[{"title":"第1节:什么是区块链","level":"1.7.1","depth":2,"path":"00_blockchain基础/01_什么是区块链.md","ref":"00_blockchain基础/01_什么是区块链.md","articles":[]},{"title":"第2节:什么是比特币","level":"1.7.2","depth":2,"path":"00_blockchain基础/02_什么是比特币.md","ref":"00_blockchain基础/02_什么是比特币.md","articles":[]},{"title":"第3节:什么是以太坊","level":"1.7.3","depth":2,"path":"00_blockchain基础/03_什么是以太坊.md","ref":"00_blockchain基础/03_什么是以太坊.md","articles":[]},{"title":"第4节:App与Dapp异同","level":"1.7.4","depth":2,"path":"00_blockchain基础/04_App与Dapp.md","ref":"00_blockchain基础/04_App与Dapp.md","articles":[]},{"title":"第5节:DAPP技术栈","level":"1.7.5","depth":2,"path":"00_blockchain基础/05_DAPP技术栈.md","ref":"00_blockchain基础/05_DAPP技术栈.md","articles":[]},{"title":"第6节:web3优质学习资源","level":"1.7.6","depth":2,"path":"00_blockchain基础/06_web3优质学习资源.md","ref":"00_blockchain基础/06_web3优质学习资源.md","articles":[]},{"title":"第7节:钱包与地址","level":"1.7.7","depth":2,"path":"00_blockchain基础/07_钱包与地址.md","ref":"00_blockchain基础/07_钱包与地址.md","articles":[]},{"title":"第8节:Remix教程","level":"1.7.8","depth":2,"path":"00_blockchain基础/08_Remix教程.md","ref":"00_blockchain基础/08_Remix教程.md","articles":[]},{"title":"第9节:区块链就业","level":"1.7.9","depth":2,"path":"00_blockchain基础/09_区块链就业.md","ref":"00_blockchain基础/09_区块链就业.md","articles":[]},{"title":"第10节:solidity岗位要求","level":"1.7.10","depth":2,"path":"00_blockchain基础/10_solidity岗位要求.md","ref":"00_blockchain基础/10_solidity岗位要求.md","articles":[]},{"title":"第11节:rpc节点","level":"1.7.11","depth":2,"path":"00_blockchain基础/11_rpc节点.md","ref":"00_blockchain基础/11_rpc节点.md","articles":[]},{"title":"第12节:12_etherscan","level":"1.7.12","depth":2,"path":"00_blockchain基础/12_etherscan.md","ref":"00_blockchain基础/12_etherscan.md","articles":[]},{"title":"第13节:13_区块链黑话","level":"1.7.13","depth":2,"path":"00_blockchain基础/13_区块链黑话.md","ref":"00_blockchain基础/13_区块链黑话.md","articles":[]},{"title":"第20节:20_如何参与","level":"1.7.14","depth":2,"path":"00_blockchain基础/20_如何参与.md","ref":"00_blockchain基础/20_如何参与.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["[email protected]","[email protected]","[email protected]","[email protected]","language-picker","toggle-chapters","codeblock-label","-search","-lunr","page-toc-button","include-codeblock","js-console","honkit-plugin-mermaid"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"github":{"url":"https://github.com/dukedaily/solidity-expert"},"codeblock-label":{},"honkit-plugin-mermaid":{"theme":"default"},"fontsettings":{"theme":"white","family":"sans","size":2},"js-console":{},"richquotes":{"default":false},"heading-anchors":{},"highlight":{},"page-toc-button":{},"ga":{"configuration":"auto","token":"UA-51680040-3"},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56},"embedFonts":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"esversion":"2022","nodeversion":"18.12.0","npmversion":"8.19.2","triplebackticks":"```","console":"<a class=\"gitbook-plugin-js-console\" aria-hidden=\"true\"></a>"},"language":"cn","gitbook":"*"},"file":{"path":"00_blockchain基础/01_什么是区块链.md","mtime":"2023-09-23T13:48:35.139Z","type":"markdown"},"gitbook":{"version":"3.7.3","time":"2024-08-23T16:27:32.019Z"},"basePath":"..","book":{"language":"cn"}});
gitbook.page.hasChanged({"page":{"title":"第1节:什么是区块链","level":"1.7.1","depth":2,"next":{"title":"第2节:什么是比特币","level":"1.7.2","depth":2,"path":"00_blockchain基础/02_什么是比特币.md","ref":"00_blockchain基础/02_什么是比特币.md","articles":[]},"previous":{"title":"第0章:blockchain基础","level":"1.7","depth":1,"path":"00_blockchain基础/README.md","ref":"00_blockchain基础/README.md","articles":[{"title":"第1节:什么是区块链","level":"1.7.1","depth":2,"path":"00_blockchain基础/01_什么是区块链.md","ref":"00_blockchain基础/01_什么是区块链.md","articles":[]},{"title":"第2节:什么是比特币","level":"1.7.2","depth":2,"path":"00_blockchain基础/02_什么是比特币.md","ref":"00_blockchain基础/02_什么是比特币.md","articles":[]},{"title":"第3节:什么是以太坊","level":"1.7.3","depth":2,"path":"00_blockchain基础/03_什么是以太坊.md","ref":"00_blockchain基础/03_什么是以太坊.md","articles":[]},{"title":"第4节:App与Dapp异同","level":"1.7.4","depth":2,"path":"00_blockchain基础/04_App与Dapp.md","ref":"00_blockchain基础/04_App与Dapp.md","articles":[]},{"title":"第5节:DAPP技术栈","level":"1.7.5","depth":2,"path":"00_blockchain基础/05_DAPP技术栈.md","ref":"00_blockchain基础/05_DAPP技术栈.md","articles":[]},{"title":"第6节:web3优质学习资源","level":"1.7.6","depth":2,"path":"00_blockchain基础/06_web3优质学习资源.md","ref":"00_blockchain基础/06_web3优质学习资源.md","articles":[]},{"title":"第7节:钱包与地址","level":"1.7.7","depth":2,"path":"00_blockchain基础/07_钱包与地址.md","ref":"00_blockchain基础/07_钱包与地址.md","articles":[]},{"title":"第8节:Remix教程","level":"1.7.8","depth":2,"path":"00_blockchain基础/08_Remix教程.md","ref":"00_blockchain基础/08_Remix教程.md","articles":[]},{"title":"第9节:区块链就业","level":"1.7.9","depth":2,"path":"00_blockchain基础/09_区块链就业.md","ref":"00_blockchain基础/09_区块链就业.md","articles":[]},{"title":"第10节:solidity岗位要求","level":"1.7.10","depth":2,"path":"00_blockchain基础/10_solidity岗位要求.md","ref":"00_blockchain基础/10_solidity岗位要求.md","articles":[]},{"title":"第11节:rpc节点","level":"1.7.11","depth":2,"path":"00_blockchain基础/11_rpc节点.md","ref":"00_blockchain基础/11_rpc节点.md","articles":[]},{"title":"第12节:12_etherscan","level":"1.7.12","depth":2,"path":"00_blockchain基础/12_etherscan.md","ref":"00_blockchain基础/12_etherscan.md","articles":[]},{"title":"第13节:13_区块链黑话","level":"1.7.13","depth":2,"path":"00_blockchain基础/13_区块链黑话.md","ref":"00_blockchain基础/13_区块链黑话.md","articles":[]},{"title":"第20节:20_如何参与","level":"1.7.14","depth":2,"path":"00_blockchain基础/20_如何参与.md","ref":"00_blockchain基础/20_如何参与.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["[email protected]","[email protected]","[email protected]","[email protected]","language-picker","toggle-chapters","codeblock-label","-search","-lunr","page-toc-button","include-codeblock","js-console"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"github":{"url":"https://github.com/dukedaily/solidity-expert"},"codeblock-label":{},"fontsettings":{"theme":"white","family":"sans","size":2},"js-console":{},"richquotes":{"default":false},"heading-anchors":{},"highlight":{},"page-toc-button":{},"ga":{"configuration":"auto","token":"UA-51680040-3"},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56},"embedFonts":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"cn","gitbook":"*"},"file":{"path":"00_blockchain基础/01_什么是区块链.md","mtime":"2023-09-23T13:48:35.139Z","type":"markdown"},"gitbook":{"version":"3.7.3","time":"2024-08-24T00:11:31.715Z"},"basePath":"..","book":{"language":"cn"}});
});
</script>
</div>
Expand Down Expand Up @@ -3172,14 +3168,6 @@ <h2 id="小结">小结</h2>



<script src="../../gitbook/honkit-plugin-mermaid/mermaid-load.js"></script>



<script src="../../gitbook/honkit-plugin-mermaid/mermaid.min.js"></script>



<script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>


Expand Down
38 changes: 13 additions & 25 deletions cn/00_blockchain基础/02_什么是比特币.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@



<link rel="stylesheet" href="../../gitbook/honkit-plugin-mermaid/mermaid.css">



<link rel="stylesheet" href="../../gitbook/@honkit/honkit-plugin-highlight/website.css">


Expand Down Expand Up @@ -3045,27 +3041,27 @@ <h2 id="我的仓库">我的仓库</h2>
<h2 id="小结">小结</h2>
<p>比特币是永远的神,在币圈一般都称之为:大饼,各种牛鬼蛇神币种的涨跌基本完全看大饼的脸色,大饼每四年减产一次(即挖矿的奖励减半),大约在2140年时会全部挖完(2100w枚),届时就是另外一个世界了,你我应该看不着了。</p>
<p>我们的重心是以太坊开发,所以比特币部分就做个简短的介绍,比特币总量计算如下:</p>
<pre><code class="lang-go">package main
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

import &quot;fmt&quot;
<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

func main() {
total := 0.0 //总量
interval := 21.0 //区块间隔,万单位
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
total := <span class="hljs-number">0.0</span> <span class="hljs-comment">//总量</span>
interval := <span class="hljs-number">21.0</span> <span class="hljs-comment">//区块间隔,万单位</span>

reward := 50.0 //奖励数量,最初50个
reward := <span class="hljs-number">50.0</span> <span class="hljs-comment">//奖励数量,最初50个</span>

for reward != 0 {
//累加挖矿值
<span class="hljs-keyword">for</span> reward != <span class="hljs-number">0</span> {
<span class="hljs-comment">//累加挖矿值</span>
amount := reward * interval

total += amount //总量
total += amount <span class="hljs-comment">//总量</span>

reward *= 0.5 //奖励减半
reward *= <span class="hljs-number">0.5</span> <span class="hljs-comment">//奖励减半</span>
}

fmt.Println(&quot;total : &quot;, total)
fmt.Printf(&quot;total : %f\n&quot;, total)
fmt.Println(<span class="hljs-string">&quot;total : &quot;</span>, total)
fmt.Printf(<span class="hljs-string">&quot;total : %f\n&quot;</span>, total)
}
</code></pre>
<p>加V入群:dukeweb3,公众号:阿杜在新加坡,一起抱团拥抱web3,下期见!</p>
Expand Down Expand Up @@ -3099,7 +3095,7 @@ <h2 id="小结">小结</h2>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第2节:什么是比特币","level":"1.7.2","depth":2,"next":{"title":"第3节:什么是以太坊","level":"1.7.3","depth":2,"path":"00_blockchain基础/03_什么是以太坊.md","ref":"00_blockchain基础/03_什么是以太坊.md","articles":[]},"previous":{"title":"第1节:什么是区块链","level":"1.7.1","depth":2,"path":"00_blockchain基础/01_什么是区块链.md","ref":"00_blockchain基础/01_什么是区块链.md","articles":[]},"dir":"ltr"},"config":{"plugins":["[email protected]","[email protected]","[email protected]","[email protected]","language-picker","toggle-chapters","codeblock-label","-search","-lunr","page-toc-button","include-codeblock","js-console","honkit-plugin-mermaid"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"github":{"url":"https://github.com/dukedaily/solidity-expert"},"codeblock-label":{},"honkit-plugin-mermaid":{"theme":"default"},"fontsettings":{"theme":"white","family":"sans","size":2},"js-console":{},"richquotes":{"default":false},"heading-anchors":{},"highlight":{},"page-toc-button":{},"ga":{"configuration":"auto","token":"UA-51680040-3"},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56},"embedFonts":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"esversion":"2022","nodeversion":"18.12.0","npmversion":"8.19.2","triplebackticks":"```","console":"<a class=\"gitbook-plugin-js-console\" aria-hidden=\"true\"></a>"},"language":"cn","gitbook":"*"},"file":{"path":"00_blockchain基础/02_什么是比特币.md","mtime":"2023-09-23T13:48:35.139Z","type":"markdown"},"gitbook":{"version":"3.7.3","time":"2024-08-23T16:27:32.019Z"},"basePath":"..","book":{"language":"cn"}});
gitbook.page.hasChanged({"page":{"title":"第2节:什么是比特币","level":"1.7.2","depth":2,"next":{"title":"第3节:什么是以太坊","level":"1.7.3","depth":2,"path":"00_blockchain基础/03_什么是以太坊.md","ref":"00_blockchain基础/03_什么是以太坊.md","articles":[]},"previous":{"title":"第1节:什么是区块链","level":"1.7.1","depth":2,"path":"00_blockchain基础/01_什么是区块链.md","ref":"00_blockchain基础/01_什么是区块链.md","articles":[]},"dir":"ltr"},"config":{"plugins":["[email protected]","[email protected]","[email protected]","[email protected]","language-picker","toggle-chapters","codeblock-label","-search","-lunr","page-toc-button","include-codeblock","js-console"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"github":{"url":"https://github.com/dukedaily/solidity-expert"},"codeblock-label":{},"fontsettings":{"theme":"white","family":"sans","size":2},"js-console":{},"richquotes":{"default":false},"heading-anchors":{},"highlight":{},"page-toc-button":{},"ga":{"configuration":"auto","token":"UA-51680040-3"},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56},"embedFonts":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"cn","gitbook":"*"},"file":{"path":"00_blockchain基础/02_什么是比特币.md","mtime":"2023-09-23T13:48:35.139Z","type":"markdown"},"gitbook":{"version":"3.7.3","time":"2024-08-24T00:11:31.715Z"},"basePath":"..","book":{"language":"cn"}});
});
</script>
</div>
Expand Down Expand Up @@ -3185,14 +3181,6 @@ <h2 id="小结">小结</h2>



<script src="../../gitbook/honkit-plugin-mermaid/mermaid-load.js"></script>



<script src="../../gitbook/honkit-plugin-mermaid/mermaid.min.js"></script>



<script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>


Expand Down
Loading

0 comments on commit 4db0c63

Please sign in to comment.