Skip to content
Permalink
Browse files

init blog

  • Loading branch information
p0n1 committed Oct 12, 2019
0 parents commit a24eb64002b7307448502f68f462c704eba317f1
Showing with 4,232 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 .gitmodules
  3. +13 −0 README.md
  4. +6 −0 archetypes/default.md
  5. +175 −0 config.toml
  6. BIN content/post/180624-atn-erc223/1.png
  7. +306 −0 content/post/180624-atn-erc223/index.en.md
  8. +340 −0 content/post/180624-atn-erc223/index.zh-cn.md
  9. BIN content/post/180803-worldcup-miner-dilemma/Bob2.png
  10. BIN content/post/180803-worldcup-miner-dilemma/France.png
  11. BIN content/post/180803-worldcup-miner-dilemma/France2.png
  12. BIN content/post/180803-worldcup-miner-dilemma/Score.png
  13. BIN content/post/180803-worldcup-miner-dilemma/bob1.png
  14. BIN content/post/180803-worldcup-miner-dilemma/france1.png
  15. +116 −0 content/post/180803-worldcup-miner-dilemma/index.md
  16. BIN content/post/180803-worldcup-miner-dilemma/johnnash.jpg
  17. BIN content/post/180803-worldcup-miner-dilemma/miner_dilemma.png
  18. BIN content/post/180803-worldcup-miner-dilemma/nash.png
  19. BIN content/post/180803-worldcup-miner-dilemma/nature.png
  20. BIN content/post/180803-worldcup-miner-dilemma/twominer.png
  21. BIN content/post/180820-lastwinner-of-lastwinner/attack-and-play.png
  22. BIN content/post/180820-lastwinner-of-lastwinner/bitcoin.png
  23. BIN content/post/180820-lastwinner-of-lastwinner/call-unknown-contract.png
  24. BIN content/post/180820-lastwinner-of-lastwinner/cfg.png
  25. BIN content/post/180820-lastwinner-of-lastwinner/first-pwn-by-etherguy.png
  26. BIN content/post/180820-lastwinner-of-lastwinner/fomo-vs-lw.png
  27. BIN content/post/180820-lastwinner-of-lastwinner/gasprice.png
  28. BIN content/post/180820-lastwinner-of-lastwinner/hacker.png
  29. BIN content/post/180820-lastwinner-of-lastwinner/hour-txn.png
  30. +517 −0 content/post/180820-lastwinner-of-lastwinner/index.md
  31. BIN content/post/180820-lastwinner-of-lastwinner/internal-txns.png
  32. BIN content/post/180820-lastwinner-of-lastwinner/lw-attack-txn-and-share.png
  33. BIN content/post/180820-lastwinner-of-lastwinner/lw-graph.png
  34. BIN content/post/180820-lastwinner-of-lastwinner/lw-hourly-stolen.png
  35. BIN content/post/180820-lastwinner-of-lastwinner/probability-calculate.png
  36. BIN content/post/180820-lastwinner-of-lastwinner/probability-sim.png
  37. BIN content/post/180820-lastwinner-of-lastwinner/promo-post.png
  38. BIN content/post/180820-lastwinner-of-lastwinner/pwn-calldata.png
  39. BIN content/post/180820-lastwinner-of-lastwinner/pwn-tx-example.png
  40. BIN content/post/180820-lastwinner-of-lastwinner/pwn-v1.png
  41. BIN content/post/180820-lastwinner-of-lastwinner/pwn-v2.png
  42. BIN content/post/180820-lastwinner-of-lastwinner/pwn-v3.png
  43. BIN content/post/180820-lastwinner-of-lastwinner/real-winner.png
  44. BIN content/post/180820-lastwinner-of-lastwinner/same-txn-in.png
  45. BIN content/post/180820-lastwinner-of-lastwinner/zethr-etherguy.png
  46. BIN content/post/180929-p2pk2-p2sh-pywallet-bug/imgs/cover.jpeg
  47. BIN content/post/180929-p2pk2-p2sh-pywallet-bug/imgs/page167image1815040.png
  48. BIN content/post/180929-p2pk2-p2sh-pywallet-bug/imgs/pywallet.png
  49. +224 −0 content/post/180929-p2pk2-p2sh-pywallet-bug/index.md
  50. BIN content/post/181024-formal-verification-background/2-little-bird.jpg
  51. +91 −0 content/post/181024-formal-verification-background/index.md
  52. BIN content/post/181024-formal-verification-background/proof.png
  53. BIN content/post/181024-formal-verification-background/yutu.jpg
  54. BIN content/post/190613-cooperative_games/cover.png
  55. BIN content/post/190613-cooperative_games/img1.png
  56. BIN content/post/190613-cooperative_games/img10.png
  57. BIN content/post/190613-cooperative_games/img2.png
  58. BIN content/post/190613-cooperative_games/img3.png
  59. BIN content/post/190613-cooperative_games/img4.png
  60. BIN content/post/190613-cooperative_games/img5.png
  61. BIN content/post/190613-cooperative_games/img6.png
  62. BIN content/post/190613-cooperative_games/img7.png
  63. BIN content/post/190613-cooperative_games/img8.png
  64. BIN content/post/190613-cooperative_games/img9.png
  65. +213 −0 content/post/190613-cooperative_games/index.md
  66. BIN content/post/190710-libra-move/cover1.png
  67. +114 −0 content/post/190710-libra-move/index.en.md
  68. +120 −0 content/post/190710-libra-move/index.zh-cn.md
  69. BIN content/post/190714-zkPoD-Intro/ab1.png
  70. BIN content/post/190714-zkPoD-Intro/ab2.png
  71. BIN content/post/190714-zkPoD-Intro/ab3.png
  72. BIN content/post/190714-zkPoD-Intro/ab4.png
  73. BIN content/post/190714-zkPoD-Intro/ab5.png
  74. BIN content/post/190714-zkPoD-Intro/ab6.png
  75. BIN content/post/190714-zkPoD-Intro/ab7.png
  76. BIN content/post/190714-zkPoD-Intro/ab8.png
  77. BIN content/post/190714-zkPoD-Intro/gmr89.png
  78. BIN content/post/190714-zkPoD-Intro/google.png
  79. +287 −0 content/post/190714-zkPoD-Intro/index.md
  80. BIN content/post/190714-zkPoD-Intro/maxwell.png
  81. BIN content/post/190714-zkPoD-Intro/podtiny_nomath_3.png
  82. BIN content/post/190714-zkPoD-Intro/podtiny_nomath_5.png
  83. BIN content/post/190714-zkPoD-Intro/schnorr_nomath.png
  84. BIN content/post/190714-zkPoD-Intro/zkPoD.optimize.gif
  85. BIN content/post/190714-zkPoD-Intro/zkcp.png
  86. BIN content/post/190714-zkPoD-Intro/zkp_simu.png
  87. +259 −0 content/post/190724-zkPoD-explained/index.md
  88. BIN content/post/190724-zkPoD-explained/pod-tiny-5.png
  89. BIN content/post/190724-zkPoD-explained/pod-tiny.png
  90. BIN content/post/190724-zkPoD-explained/schnorr.png
  91. BIN content/post/190729_zkSNARKs_input_aliasing/attack-flow.jpg
  92. +131 −0 content/post/190729_zkSNARKs_input_aliasing/index.en.md
  93. +131 −0 content/post/190729_zkSNARKs_input_aliasing/index.zh-cn.md
  94. BIN content/post/190729_zkSNARKs_input_aliasing/poma-found.png
  95. BIN content/post/190729_zkSNARKs_input_aliasing/scalar_fix.png
  96. BIN content/post/190729_zkSNARKs_input_aliasing/semaphore_bug_full.png
  97. BIN content/post/190729_zkSNARKs_input_aliasing/yellow_paper_curve.png
  98. BIN content/post/190729_zkSNARKs_input_aliasing/yellow_paper_ecmul.png
  99. BIN content/post/190731-zkp-back/img/345.png
  100. BIN content/post/190731-zkp-back/img/3c-0.png
  101. BIN content/post/190731-zkp-back/img/3c-1.png
  102. BIN content/post/190731-zkp-back/img/3c-2.png
  103. BIN content/post/190731-zkp-back/img/3c-3.png
  104. BIN content/post/190731-zkp-back/img/3c-4.png
  105. BIN content/post/190731-zkp-back/img/3c.png
  106. BIN content/post/190731-zkp-back/img/4color.png
  107. BIN content/post/190731-zkp-back/img/angel.png
  108. BIN content/post/190731-zkp-back/img/circuits.png
  109. BIN content/post/190731-zkp-back/img/gmr89.png
  110. BIN content/post/190731-zkp-back/img/principle.png
  111. BIN content/post/190731-zkp-back/img/showmeproof.jpg
  112. +302 −0 content/post/190731-zkp-back/index.md
  113. BIN content/post/190806-zkp-simu/img/3c-123.png
  114. BIN content/post/190806-zkp-simu/img/3c-zk0.png
  115. BIN content/post/190806-zkp-simu/img/3c-zk1.png
  116. BIN content/post/190806-zkp-simu/img/3c-zk2.png
  117. BIN content/post/190806-zkp-simu/img/3c-zk3.png
  118. BIN content/post/190806-zkp-simu/img/3c-zk4.png
  119. BIN content/post/190806-zkp-simu/img/3c-zk5.png
  120. BIN content/post/190806-zkp-simu/img/3c-zk6.png
  121. BIN content/post/190806-zkp-simu/img/3c-zk7.png
  122. BIN content/post/190806-zkp-simu/img/3c.png
  123. BIN content/post/190806-zkp-simu/img/alibaba.png
  124. BIN content/post/190806-zkp-simu/img/alibaba2.jpg
  125. BIN content/post/190806-zkp-simu/img/alibaba2.png
  126. BIN content/post/190806-zkp-simu/img/inception.jpg
  127. BIN content/post/190806-zkp-simu/img/indist.png
  128. BIN content/post/190806-zkp-simu/img/matrix.jpg
  129. BIN content/post/190806-zkp-simu/img/plato-cave.jpeg
  130. BIN content/post/190806-zkp-simu/img/probenc.png
  131. BIN content/post/190806-zkp-simu/img/time-rewind.jpg
  132. +271 −0 content/post/190806-zkp-simu/index.md
  133. BIN content/post/190828-zkp-pok/img/brain-in-a-vat.png
  134. BIN content/post/190828-zkp-pok/img/ecdsa.png
  135. BIN content/post/190828-zkp-pok/img/matrix.jpg
  136. BIN content/post/190828-zkp-pok/img/schnorr-extractor-1.png
  137. BIN content/post/190828-zkp-pok/img/schnorr-extractor-2.png
  138. BIN content/post/190828-zkp-pok/img/schnorr-extractor-3.png
  139. BIN content/post/190828-zkp-pok/img/schnorr-extractor-4.png
  140. BIN content/post/190828-zkp-pok/img/schnorr-extractor-5.png
  141. BIN content/post/190828-zkp-pok/img/schnorr-extractor-6.png
  142. BIN content/post/190828-zkp-pok/img/schnorr-extractor-7.png
  143. BIN content/post/190828-zkp-pok/img/schnorr-sim-1.png
  144. BIN content/post/190828-zkp-pok/img/schnorr-sim-2.png
  145. BIN content/post/190828-zkp-pok/img/schnorr-sim-3.png
  146. BIN content/post/190828-zkp-pok/img/schnorr-sim-4.png
  147. BIN content/post/190828-zkp-pok/img/schnorr-sim-5.png
  148. BIN content/post/190828-zkp-pok/img/schnorr.png
  149. BIN content/post/190828-zkp-pok/img/sxsw.jpg
  150. +347 −0 content/post/190828-zkp-pok/index.md
  151. +28 −0 publish_to_ghpages.sh
  152. +228 −0 resources/_gen/assets/js/js/main.js_dd8e2cf639efdbde29d18adce2335348.content
  153. +1 −0 resources/_gen/assets/js/js/main.js_dd8e2cf639efdbde29d18adce2335348.json
  154. +1 −0 resources/_gen/assets/scss/sass/jane.scss_48b060fe05b0a273d182ef83c0605941.content
  155. +1 −0 resources/_gen/assets/scss/sass/jane.scss_48b060fe05b0a273d182ef83c0605941.json
  156. +5 −0 static/css/custom.css
  157. BIN static/favicon.ico
  158. +1 −0 themes/jane
@@ -0,0 +1 @@
public/
@@ -0,0 +1,3 @@
[submodule "themes/jane"]
path = themes/jane
url = https://github.com/p0n1/hugo-theme-jane.git
@@ -0,0 +1,13 @@
# SECBIT Blog

👉👉👉 ***https://sec-bit.github.io/blog*** 👈👈👈

## Usage

- Write: in `content/post` folder
- Preview: `hugo server -D`
- Publish: `./publish_to_ghpages.sh` and `git push --all`

## More

- https://gohugo.io/getting-started/usage/
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

@@ -0,0 +1,175 @@
baseURL = "https://p0n1.github.io/blog"
theme = "jane"
enableRobotsTXT = true
enableEmoji = true

hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
paginate = 5 # 首页每页显示的文章数
rssLimit = 20 # Limit Entry Count to Rss file # 限制 Rss 文章输出数量
googleAnalytics = "UA-149859278-1" # UA-XXXXXXXX-X
copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓
enableGitInfo = true # use git commit log to generate lastmod record # 可根据 Git 中的提交生成最近更新记录。
# uglyURLs = true

# Highlight options. See https://gohugo.io/content-management/syntax-highlighting/
pygmentsCodeFences = true # Enable syntax highlighting with GitHub flavoured code fences
pygmentsUseClasses = true # Use CSS classes to format highlighted code
pygmentsCodefencesGuessSyntax = true
pygmentsOptions = "linenos=table"

# language support en / zh-cn / other... translations present in i18n/
defaultContentLanguage = "zh-cn" # Default language to use (if you setup multilingual support)
[langusges]
[languages.en]
title = "SECBIT Blog"
languageName = "English"
weight = 1
[languages.zh-cn]
title = "SECBIT Blog"
languageName = "中文"
weight = 2

[[languages.en.menu.main]]
name = "Home"
weight = 10
identifier = "home"
url = "en/"

[[languages.en.menu.main]]
name = "Archives"
weight = 20
identifier = "archives"
url = "en/post/"
[[languages.en.menu.main]]
name = "Tags"
weight = 30
identifier = "tags"
url = "en/tags/"
[[languages.en.menu.main]]
name = "Categories"
weight = 40
identifier = "categories"
url = "en/categories/"

[[languages.zh-cn.menu.main]]
name = "主页"
weight = 10
identifier = "home"
url = "/"
[[languages.zh-cn.menu.main]]
name = "归档"
weight = 20
identifier = "archives"
url = "/post/"
[[languages.zh-cn.menu.main]]
name = "标签"
weight = 30
identifier = "tags"
url = "/tags/"
[[languages.zh-cn.menu.main]]
name = "分类"
weight = 40
identifier = "categories"
url = "/categories/"


[author] # essential # 必需
name = "SECBIT Labs"

[sitemap] # essential # 必需
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"


[params]
debug = false # If true, load `eruda.min.js`. See https://github.com/liriliri/eruda
since = "2018" # Site creation time # 站点建立时间
homeFullContent = false # if false, show post summaries on home page. Othewise show full content.
rssFullContent = true # if false, Rss feed instead of the summary

# site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
logoTitle = "SECBIT Blog" # default: the title value # 默认值: 上面设置的title值
keywords = ["Blockchain", "Smart Contract","Zero Knowledge Proof"]
description = "SECBIT THE WORLD"

# paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目,建议修改为一个较大的值
archive-paginate = 10

# paginate style, default use numbered pagination links
# if true, use original "Previous" and "Next" links.
# paginateOriginalStyle = true

# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
dateFormatToUse = "2006-01-02"

# show word count and read time ? # 是否显示字数统计与阅读时间
moreMeta = true

# show language chooser in menu
showMenuLanguageChooser = true

# 一些全局开关,你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能,在 archetypes/default.md 查看更多信息。
# Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`.
toc = true # 是否开启目录
photoswipe = true # see https://github.com/dimsemenov/PhotoSwipe # 是否启用PhotoSwipe(图片可点击)
bootcdn = false # In china. @Deprecated: use [params.publicCDN] # 是否使用bootcdn(@Deprecated: 请使用[params.publicCDN])
mathjax = false # see https://www.mathjax.org/ # 是否使用mathjax(数学公式)
katex = true # see https://github.com/KaTeX/KaTeX

# contentCopyright = '<a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a>'
contentCopyright = '如需转载请注明文章作者和出处。'

changyanAppid = "" # Changyan app id # 畅言
changyanAppkey = "" # Changyan app key
tencent_analytics = "" # Tencent Analytics
baidu_push = false # baidu push # 百度
baidu_analytics = "" # Baidu Analytics
baidu_verification = "" # Baidu Verification
google_verification = "" # Google_Verification # 谷歌

# Link custom CSS and JS assets
# (relative to /static/css and /static/js respectively)
customCSS = ['custom.css'] # if ['custom.css'], load '/static/css/custom.css' file
customJS = [] # if ['custom.js'], load '/static/js/custom.js' file


[params.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义
enable = false
jquery = '<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>'
slideout = '<script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>'

[params.commento] # Commento is a feature rich lightweight comment system oriented on privacy (https://commento.io/)
enable = false
url = "http://commento.example.com"

[params.utteranc] # utteranc is a comment system based on GitHub issues. see https://utteranc.es
enable = true
repo = "sec-bit/comments-for-secbit-blog" # The repo to store comments
issueTerm = "pathname"
theme = "github-light" # theme: github-light, github-dark, github-dark-orange, icy-dark, dark-blue, photon-dark

[params.search.google] # google custom search, see https://cse.google.com
enable = false
id = ""
title = "Search"

# use public git repo url to link lastmod git commit, enableGitInfo should be true.
# 指定 git 仓库地址,可以生成指向最近更新的 git commit 的链接,需要将 enableGitInfo 设置成 true.
[params.gitInfo]
gitRepo = "https://github.com/sec-bit/blog"
showCommitMessage = true

[params.reward] # 文章打赏
enable = false
wechat = "/path/to/your/wechat-qr-code.png" # 微信二维码
alipay = "/path/to/your/alipay-qr-code.png" # 支付宝二维码

[params.social] # 社交链接
a-email = "mailto:hi@secbit.io"
c-twitter = "https://twitter.com/SECBIT_IO"
g-github = "https://github.com/sec-bit"
i-zhihu = "https://www.zhihu.com/org/secbit/"

[permalinks]
post = "/:year/:month/:day/:slug/"
Binary file not shown.

0 comments on commit a24eb64

Please sign in to comment.
You can’t perform that action at this time.