Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ブロックチェーンのマイニングとはなにか
Search
Tetsuya Negishi
June 01, 2018
Programming
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ブロックチェーンのマイニングとはなにか
Tetsuya Negishi
June 01, 2018
Transcript
18 slides
ϒϩοΫνΣʔϯͷ ϚΠχϯάͱͳʹ͔ ࠜ؛ ప
݁ ϚΠχϯάͱ ࠷ॳʹ͕̌ͨ͘͞Μଓ͘ HashΛ୳͢͜ͱ
ϒϩοΫνΣʔϯ σʔλ ʢϒϩοΫʣ σʔλ ʢϒϩοΫʣ σʔλ ʢϒϩοΫʣ ϒϩοΫͷHashͰͭͳ͕͍ͬͯΔ
Hash σʔλ ʢϒϩοΫʣ Hashؔ 0000000002e34… Hash
Hashͷجຊࣝ • ೖྗͨ͠σʔλ͕ಉ͡ → Hashಉ͡ • ೖྗͨ͠σʔλ͕ҧ͏ → Hashҧ͏ •
Hash͔Βೖྗ͞ΕͨσʔλΛ༧ଌ͢Δ͜ͱͰ͖ͳ͍ • ೖྗͨ͠σʔλগ͠Ͱҧ͏ͱશ͘ҧ͏HashʹͳΔ • SHA256(1) → 6B86B273FF34FCE19D6B804EF… • SHA256(2) → D4735E3A265E16EEE03F59718…
ϏοτίΠϯͷϒϩοΫνΣʔϯ • https://blockchain.info/ja/block/ 000000000000000000012de7a51a56578eb8a1f2560 89db3e666fbb53ac5e9a9
ϏοτίΠϯͷϒϩοΫνΣʔϯ
ϒϩοΫͷσʔλߏ ϔομ τϥϯβΫ γϣϯ • લͷϒϩοΫͷhash • nonce ͳͲ •
ϏοτίΠϯͷసૹ (୭͕୭ʹ͍͘ΒૹΔ͔)
ϒϩοΫͷσʔλߏ ϔομ τϥϯβΫ γϣϯ • લͷϒϩοΫͷhash • nonce ͳͲ •
ϏοτίΠϯͷసૹ (୭͕୭ʹ͍͘ΒૹΔ͔)
nonceͱ • ϒϩοΫͷHashΛௐ͢ΔͨΊͷ • nonceͷΛม͑ͯϒϩοΫͷ Hashͷઌ಄ʹ0͕ฒͿΑ͏ʹ͢Δ → ϚΠχϯά
nonceͱ
ٙࣅϚΠχϯά • ϚΠχϯάΛͬͯΈΔ • ϒϩοΫʹؚ·ΕΔͷ • લͷϒϩοΫͷHash (Prev) • nonce
(Nonce) • τϥϯβΫγϣϯ ( Transaction) • ex. Transaction:{A→B:100, C→D:200} • ϒϩοΫͷHash0͕1ͭଓ͘ͷΛݟ͚ͭΔ
ϚΠχϯάͯ͠ΈΔ { Prev: 6B86B273FF34FCE19D6B804EFF5A3F5747ADA4EAA22F1D49C 01E52DDB7875B4B Nonce:9 Transaction:{A→B:100} } ϒϩοΫ1 Hashɿ
0682D5D287D84082C738577C209A19BD64E62 D7E9D10646E9C95E979EEF7840F
ϚΠχϯάͯ͠ΈΔ { Prev: 0682D5D287D84082C738577C209A19BD64E62D7E9D10646E9 C95E979EEF7840F Nonce:? Transaction:{C→B:500, D→A:800} } ϒϩοΫ2
ϚΠχϯάͯ͠ΈΔ • ܭࢉͯ͠ΈΔ http://www.convertstring.com/ja/Hash/SHA256
ϚΠχϯάͯ͠ΈΔ { Prev: 0682D5D287D84082C738577C209A19BD64E62D7E9D10646E9 C95E979EEF7840F Nonce:43 Transaction:{C→B:500, D→A:800} } ϒϩοΫ2
Hashɿ 0E9E4781F1169EAB922D86A2BB632238 A6B57B02986C275AA9B0F2D2165D5D75
ϚΠχϯάͯ͠ΈΔ { Prev: 6B86B273FF34FCE19D6 B804EFF5A3F5747ADA4 EAA22F1D49C01E52DD B7875B4B Nonce:9 Transaction:{A→B:100} }
{ Prev: 0682D5D287D84082C7385 77C209A19BD64E62D7E9D 10646E9C95E979EEF7840F Nonce:43 Transaction:{C→B:500, D→A:800} } 0682D5D287D84082C73857 7C209A19BD64E62D7E9D1 0646E9C95E979EEF7840F 0E9E4781F1169EAB922D86A2BB6 32238A6B57B02986C275AA9B0F2 D2165D5D75
݁ ϚΠχϯάͱ ࠷ॳʹ͕̌ͨ͘͞Μଓ͘ HashΛ୳͢͜ͱ
More Decks by Tetsuya Negishi
See All by Tetsuya Negishi
SOLIDから考える良いコンポーネントの設計原則
tetsuyanegishi
1
1.7k
React Hooksで美しいコードを書く / Writing beautiful code using React Hooks
tetsuyanegishi
0
210
TypeScriptの型定義が JavaScriptのバグを駆逐する
tetsuyanegishi
3
980
React初学者が知らない コンポーネント分割テクニック
tetsuyanegishi
1
520
AWS Amplifyで作るサーバーレスバックエンド
tetsuyanegishi
3
2.1k
リアルタイムデータベース Cloud Firestore入門
tetsuyanegishi
10
9.1k
スクラム開発の手法と実例
tetsuyanegishi
0
280
Other Decks in Programming
See All in Programming
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
260
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
160
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
300
Spec-driven Development with AI
simas
PRO
0
2.3k
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
640
Railsバージョンを4倍にした話
optim
0
1k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
420
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
750
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
620
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
210
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
1
430
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
640
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
330
Optimising Largest Contentful Paint
csswizardry
37
4k
Technical Leadership for Architectural Decision Making
baasie
4
640
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
920
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Typedesign – Prime Four
hannesfritz
42
3.2k
From π to Pie charts
rasagy
1
450
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
520