Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Masato HORINOUCHI
PDF, PPTX
710 views
Hash Tree
社内LT大会 0x64物語 #02 Data Structure 資料
Technology
◦
Read more
0
Save
Share
Embed
Embed presentation
Download
Download as PDF, PPTX
1
/ 12
2
/ 12
3
/ 12
4
/ 12
5
/ 12
6
/ 12
7
/ 12
8
/ 12
9
/ 12
10
/ 12
11
/ 12
12
/ 12
More Related Content
PDF
分散処理のすゝめ?
by
y oe
PDF
データベース01 - データベースとは
by
Kenta Oku
PPTX
データベース入門
by
拓 小林
PDF
データマイニングとは
by
ripper0217
PDF
社会ネットワーク分析第7回
by
Satoru Mikami
PDF
ICDE 2015 Study (R24-4, R27-3)
by
Masafumi Oyamada
PDF
クラウド時代のデータストア選択"秘伝の書"
by
Hiromasa Oka
PDF
Entity-Duet Neural Ranking: Understanding the Role of Knowledge Graph Semanti...
by
MasayukiKomai
分散処理のすゝめ?
by
y oe
データベース01 - データベースとは
by
Kenta Oku
データベース入門
by
拓 小林
データマイニングとは
by
ripper0217
社会ネットワーク分析第7回
by
Satoru Mikami
ICDE 2015 Study (R24-4, R27-3)
by
Masafumi Oyamada
クラウド時代のデータストア選択"秘伝の書"
by
Hiromasa Oka
Entity-Duet Neural Ranking: Understanding the Role of Knowledge Graph Semanti...
by
MasayukiKomai
More from Masato HORINOUCHI
PDF
A440
by
Masato HORINOUCHI
PDF
Clock / Timer
by
Masato HORINOUCHI
PDF
Church Numerals
by
Masato HORINOUCHI
PDF
FM synthesis
by
Masato HORINOUCHI
PDF
POSIX Threads
by
Masato HORINOUCHI
PDF
Elixir紹介
by
Masato HORINOUCHI
PDF
Scheme Interpreter in Ruby
by
Masato HORINOUCHI
PDF
CPS & CTO
by
Masato HORINOUCHI
PDF
Inside mml2wav.rb
by
Masato HORINOUCHI
A440
by
Masato HORINOUCHI
Clock / Timer
by
Masato HORINOUCHI
Church Numerals
by
Masato HORINOUCHI
FM synthesis
by
Masato HORINOUCHI
POSIX Threads
by
Masato HORINOUCHI
Elixir紹介
by
Masato HORINOUCHI
Scheme Interpreter in Ruby
by
Masato HORINOUCHI
CPS & CTO
by
Masato HORINOUCHI
Inside mml2wav.rb
by
Masato HORINOUCHI
Hash Tree
1.
Hash Tree 2015/11/10 0x64 Tales #02
Data Structure Livesense Inc. HORINOUCHI Masato
2.
Hash Tree ってなに?
3.
概要 暗号理論および計算機科学において、ハッシュ木(Hash tree, ハッ シュツリー)またはマークル木(Merkle
tree)とは、より大きなデー タ(例えばファイル)の要約結果を格納する木構造の一種であ り、データの検証を行う際に使用される。 — ハッシュ木 - Wikipedia
4.
要するに… 大きなデータを複数データブロック に分割し、破損や改竄の検証処理に 利用できる。
5.
動作原理 • 二分木 • リーフ •
データブロックのハッシュ値 • (内部)ノード • 子ノードのハッシュ値を結合した結果のハッシュ値
7.
デモ 元データ生成 $ dd if=/dev/urandom
of=sample bs=1M count=4 $ split --bytes=1048576 --numeric=1 --suffix-length=1 sample L $ ls -l -rw-r--r-- 1 horinouchi horinouchi 1048576 Nov 10 18:37 L1 -rw-r--r-- 1 horinouchi horinouchi 1048576 Nov 10 18:37 L2 -rw-r--r-- 1 horinouchi horinouchi 1048576 Nov 10 18:37 L3 -rw-r--r-- 1 horinouchi horinouchi 1048576 Nov 10 18:37 L4 -rw-r--r-- 1 horinouchi horinouchi 4194304 Nov 10 18:34 sample データ検証などで利用するMerkle Treeのメモ を参考にしました。
8.
手作業 $ openssl dgst
-sha256 -binary L1 > H00 $ openssl dgst -sha256 -binary L2 > H01 $ openssl dgst -sha256 -binary L3 > H10 $ openssl dgst -sha256 -binary L4 > H11 $ cat H00 H01 | openssl dgst -sha256 -binary > H0 $ cat H10 H11 | openssl dgst -sha256 -binary > H1 $ cat H0 H1 | openssl dgst -sha256 -binary > TOP $ hexdump -C TOP
9.
Ruby gem $ gem
install treehash $ treehash sample • Treehash • とはいえ、この gem の中身は全く二分木使ってない…。
10.
ZFS • Data integrity
(データ完全性) • ディスクを直接書き換えてもブロック単位でチェックできる よ。 • Copy-On-Write • ブロック単位で更新箇所のみ write できるよ。
11.
他の Hash Tree
の利用 • P2P • BitTorrent • Bitcoin • 分散VCS • Git
12.
ご清聴ありがとうございました
Download