Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ブロックチェーンのマイニングとはなにか
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
More Decks by Tetsuya Negishi
See All by Tetsuya Negishi
SOLIDから考える良いコンポーネントの設計原則
tetsuyanegishi
1
1.6k
React Hooksで美しいコードを書く / Writing beautiful code using React Hooks
tetsuyanegishi
0
210
TypeScriptの型定義が JavaScriptのバグを駆逐する
tetsuyanegishi
3
970
React初学者が知らない コンポーネント分割テクニック
tetsuyanegishi
1
520
AWS Amplifyで作るサーバーレスバックエンド
tetsuyanegishi
3
2.1k
リアルタイムデータベース Cloud Firestore入門
tetsuyanegishi
10
9k
スクラム開発の手法と実例
tetsuyanegishi
0
270
Other Decks in Programming
See All in Programming
Flow は今どうなっているか
mizdra
PRO
0
750
引き算の組織 ― アウトカムとAIに全振りするために辞めたこと ― / Organization by Subtraction
hirokiyamamoto14
PRO
0
310
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
510
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
130
My Marp Sample
sinoue0108
0
120
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
630
PyConJP2026_wat_Python × Signal Processing: How to Draw Pictures with Sound Using Spectrogram Art
wat
0
550
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
3
2.1k
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
430
React本体のコードリーディング
high_g_engineer
1
160
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
270
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
5
1.8k
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
300
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Everyday Curiosity
cassininazir
0
290
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
630
Google's AI Overviews - The New Search
badams
0
1.6k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
480
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
260
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
280
Chasing Engaging Ingredients in Design
codingconduct
0
280
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
500
Tell your own story through comics
letsgokoyo
1
1k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
410
Transcript
ϒϩοΫνΣʔϯͷ ϚΠχϯάͱͳʹ͔ ࠜ؛ ప
݁ ϚΠχϯάͱ ࠷ॳʹ͕̌ͨ͘͞Μଓ͘ 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Λ୳͢͜ͱ