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
Merkle Sum Sparse Merkle Tree
Search
shigeyuki azuchi
January 25, 2023
Technology
210
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Merkle Sum Sparse Merkle Tree
GBECの解説動画のスライドです。
https://goblockchain.network/2023/01/merkle-sum-sparse-merkle-tree/
shigeyuki azuchi
January 25, 2023
More Decks by shigeyuki azuchi
See All by shigeyuki azuchi
SLH-DSA (SPHINCS+)
azuchi
0
18
Hyper Tree
azuchi
0
19
FORS
azuchi
0
31
クラスターmempool
azuchi
0
43
W-OTS+
azuchi
0
50
Shorのアルゴリズム
azuchi
0
71
DahLIAS: Discrete Logarithm-Based Interactive Aggregate Signatures
azuchi
0
58
Fiat-Shamir変換と注意点
azuchi
0
260
AssumeUTXOを利用したブロックチェーンの同期
azuchi
0
70
Other Decks in Technology
See All in Technology
Kernel testing frameworks
ennael
PRO
0
110
予測不能な実行エージェントを安全にサクッと試せるサンドボックス環境の話
sansantech
PRO
0
130
ファミコンでPHPを動かす / PHP on the Famicom side b
tomzoh
0
140
「とりあえず動く」の先へ。 AI時代のチーム開発と内部設計/2026-slsdays
slsops
0
150
Codex概要
ymiya55
0
440
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
110
IoTデバイスを繋げるプロトコルMatterをAndroidで使用する方法
harutiro
0
120
More Freedom on the Same Shared GPU Cluster: A Small Team’s Experience with vCluster
nttcom
0
140
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
130
AI時代に必要な脅威モデリング― 変化の速度に負けない理解とリスク判断
masakane55
4
1.1k
SDDの運用にめげずに向き合った話
sansantech
PRO
1
130
The seven pitfalls of AI (revised version)
ufried
0
280
Featured
See All Featured
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
390
The SEO Collaboration Effect
kristinabergwall1
1
590
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
510
Are puppies a ranking factor?
jonoalderson
2
4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
The Cult of Friendly URLs
andyhume
79
7k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
510
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
510
Transcript
Merkle Sum Sparse Merkle Tree (Taro Protocol)
1 Sparse Merkle Tree Key/Value形式のデータエンコードするマークルツリー ・・・ Key Keyの値からツリー内の
エントリーの位置が特定できるツリー TaroではKeyは256 bit Keyをビット列にし、 • 0であれば左の子ノード • 1であれば右の子ノード と順にツリーを下っていく 空のリーフノードの値を決めておくことで、 エントリーが空であることを空のリーフまでの マークルプルーフを提供することで証明できる
2 Merkle Sum Tree H(H(H(A) || H(B)) || H(H(C) ||
H(D))) H(H(A) || H(B)) H(A) H(B) H(H(C) || H(D)) H(C) H(D) 一般的なマークルツリーは、 左右の子ノードのハッシュ値を連結しハッシュ値を計算し、 それを親ノードのハッシュ値とする H(H(H(A) || H(B)) || H(H(C) || H(D)) || 80 + 82) H(H(A) || H(B) || 50 + 30) H(A), 50 H(B), 30 H(H(C) || H(D) || 15 + 67) H(C), 15 H(D), 67 Merkle Sum Treeは、各ノードが子ノードの数値の合計に コミットする。 親ノードのハッシュ値は、 • 左右の子ノードのハッシュ値 • 左右の子ノードの数値の合算値 を連結したハッシュ値
3 Merkle Sum Sparse Merkle Tree Sparse Merkle Tree とMerkle
Sum Treeを組み合わせたマークルツリー Taroでは2階層のMerkle Sum Sparse Merkle Tree を使用 https://github.com/Roasbeef/bips/blob/bip-taro/bip-taro-ms-smt.mediawiki Asset Tree Root 256 ・・・ Asset ID Tree Root ・・・ Asset ID Asset Script Key • 1階層めのツリーは、アセットIDをキーに対象アセットの エントリーを格納 • このツリーの全アセットの量にコミット Leaf:H(Taro version || Asset ID Tree Root || Asset Sum) • 2階層めのツリーは対象アセットについて、 各ユーザー(アカウント)が保持する アセットの量をコミット Leaf:H(Asset Leaf || Asset Sum) ※ Asset Leaf=アセットに関するTLVレコード 256 2256個のリーフノード