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
Codex32
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
shigeyuki azuchi
October 17, 2023
Technology
82
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Codex32
GBECの解説動画の資料です。
https://goblockchain.network/2023/06/codex32/
shigeyuki azuchi
October 17, 2023
More Decks by shigeyuki azuchi
See All by shigeyuki azuchi
SLH-DSA (SPHINCS+)
azuchi
0
16
Hyper Tree
azuchi
0
18
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
56
Fiat-Shamir変換と注意点
azuchi
0
260
AssumeUTXOを利用したブロックチェーンの同期
azuchi
0
69
Other Decks in Technology
See All in Technology
データ品質を壊しながらSnowflakeのAIに分析させてみた
kawanago
0
350
セルフサービスのオブザーバビリティ基盤をOpenTelemetryで作る / Building a Self-Service Observability Platform with OpenTelemetry
ymotongpoo
3
500
The kernel report
ennael
PRO
1
180
IR Today: Theory, Practice, and Agents
dtunkelang
0
310
2026-09-26 Platform Engineering Kaigi 2026 インフラとアプリの境界線と委譲の設計 / Drawing the Infra and App Line
masasuzu
0
550
なぜAI任せのゲームは面白くならないのか?
hirohasuyoutube
0
380
20260929_AmazonGuardDutyの検出通知メールにAWS DevOpsAgentの調査結果を追加する
yhana
1
400
AI臭い文章とは何なのか
nasuvitz
37
76k
AWS DevOps Agent スキルをつかいこなそう / Master AWS DevOps Agent Skills
kinunori
2
650
大阪オフィスに Unitree Go2 がやってきたので Physical AI やってみた
dafujii
0
200
AIエージェント時代のPlatform as a Product —— テックリードがPdMとして回す発見・導入・計測 / Platform as a Product in the AI Agent Era
toshi0607
1
550
AgentCoreで実践するハーネスエンジニアリング
yakumo
0
140
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
960
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
380
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
300
Accessibility Awareness
sabderemane
1
230
A Tale of Four Properties
chriscoyier
163
24k
Making the Leap to Tech Lead
cromwellryan
135
10k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Transcript
Codex32
1 Codex32とは? 手計算でマスターシード/シェアを生成・検証可能な新しいエンコード方式 BIP-93:https://github.com/bitcoin/bips/blob/master/bip-0093.mediawiki 【既存のエンコード方式】 • ニーモニックワード(BIP-39)
• ニーモニックワード+シャミアの秘密分散法(SLIP-39) マスターシードを複数のシェアに分割し、 各シェアをニーモニックワードでエンコード 参考:Shamir Backup ◦ https://goblockchain.network/2020/01/shamir-backup/ Master Seed agree cup word shop real hard proof east final zoo wire city
2 既存のエンコード方式との違い • エンコード結果がコンパクト: 単語リストなどは使わなず、Bech32エンコードするので、 12個のワードよりはコンパクトに。 • 手計算可能: ◦
バックアップしたシード・シェアの正しさを検証するのに、 デジタルデバイスへの入力が不要 ◦ 手計算を可能とするため、BIP-39のようなパスフレーズの保護はない
3 Codex32のフォーマット • HRP:MS • セパレーター:1 • データ: ◦ 閾値:リカバリに必要な閾値数(2〜9)
◦ ID:鍵のFingerprint(4つのbech32文字) ◦ シェアインデックス ◦ シェアデータ ◦ チェックサム:13文字のチェックサム 最大4文字の誤り訂正、8文字の消失に対応
4 新しいマスターシードの作り方 1. シードのビットサイズを決める(128 bit 〜 512 bit) 2.
リカバリに必要なシェアの閾値kを決める(2〜9) 3. 4文字の識別子を決める 4. k個分シェアを作成する: a. シェアインデックスを選択(bech32アルファベット1文字:aから順に) b. シードのbitサイズ / 5 を切り上げた個数分、 ランダムなbech32文字を選択(128bitであれば 26文字) c. チェックサムを計算する マスターシードは、↑のk個のシェアから計算される(シャミアの秘密分散法): • シェアインデックスをxの値としてk-1次の多項式f(x)を構築 • x = 16(シェアインデックスs)で多項式を評価した値f(16)がマスターシード ※ 先にシードがあるのではなくシェアからシードを生成 ※ その他に必要なシェアは、新しいシェアインデックスで f(x)を評価して生成
5 既存のマスターシードがある場合 1. リカバリに必要なシェアの閾値kを決める(2〜9) 2. 4文字の識別子を決める 3. マスターシードを8bit単位→5bit単位に変換してbech32文字列を作成 (シェアインデックスはs) 4.
チェックサムを計算 5. 他にk-1個のシェアを作成する(1つ少ないのはマスターシードがあるから) 6. k-1個のシェアとマスターシードから多項式f(x)を構築 マスターシードのリカバリーとは? • k個のシェアを集めて、多項式f(x)を復元し、f(s=16)を計算すること
6 どうやって手計算するの? 準備するもの: • 5つのサイコロ • 計算用のCodex32冊子: ◦ https://secretcodex32.com/
◦ https://secretcodex32.com/docs/2022-09-26--color.pdf 手順は→ https://techmedia-think.hatenablog.com/entry/2023/03/15/192116 サイコロの偏り除去し、乱数生成 チェックサム計算用ワークシート 有限体上の加算用回転盤 有限体上の乗算用回転盤 ラグランジュ補間用回転盤