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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
shigeyuki azuchi
January 25, 2023
Technology
220
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
22
Hyper Tree
azuchi
0
22
FORS
azuchi
0
37
クラスターmempool
azuchi
0
44
W-OTS+
azuchi
0
50
Shorのアルゴリズム
azuchi
0
72
DahLIAS: Discrete Logarithm-Based Interactive Aggregate Signatures
azuchi
0
59
Fiat-Shamir変換と注意点
azuchi
0
270
AssumeUTXOを利用したブロックチェーンの同期
azuchi
0
73
Other Decks in Technology
See All in Technology
AI時代のエンジニアの情報発信〜個人の発信を組織の力に変える〜
ryo_kawamata
0
300
Filter What the LLM Reads: RAG Governance with AgentCore Gateway
yakumo
1
130
200人の配信コメント、 全部Jevが仕分けます 〜 マサカリガードを作ってみた 〜
katayamatg
1
410
データマネジメント × 法務で作りあげる、 freeeの新しいデータガバナンスへの軌跡
freee
PRO
2
540
2026-10-24 JAWS JAWS-UG 茨城 #18 IAM Policy Autopilotってなにさ。terraform planからIAM Policyつくれるの? / What's IAM Policy Autopilot
masasuzu
0
180
Agent 活用環境の構築・運用のための AWS サービスのご紹介/agentcore-for-building-and-operating-agents
ren8k
1
250
[re:Invent2026事前勉強会(有志開催)]続きは、ラスベガスの廊下で / continue-in-the-vegas-hallway
sh_fk2
0
380
DevelopersIO2026 -バックアップは“消されないこと”が9割-
yoshida0129
0
430
デザインレビューは自動化できるのか?─ Flutter × Figma で UI 品質保証を考える
techiro
2
530
[FECONF-2026] 신대륙을 향한 카카오페이증권 프론트엔드 항해기 (이주승)
l1ghthouse
0
260
reInvent2026stby LT00 "Change your life!"
shinichirokawano
1
440
基本から分かる!AWSセキュリティ運用の考え方と任せ方
cmusudakeisuke
1
130
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
490
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
First, design no harm
axbom
PRO
2
1.4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Docker and Python
trallard
47
4.2k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Building Adaptive Systems
keathley
44
3.3k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
430
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
340
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個のリーフノード