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
Output Descriptor
Search
shigeyuki azuchi
March 31, 2021
Technology
0
29
Output Descriptor
GBECの解説動画の資料です。
https://goblockchain.network/2021/03/output-descriptor/
shigeyuki azuchi
March 31, 2021
Tweet
Share
More Decks by shigeyuki azuchi
See All by shigeyuki azuchi
Replacement Cycling Attack
azuchi
0
11
Bitcoinのタイムロックの仕組み
azuchi
0
6
Inner Product Argument
azuchi
0
25
Codex32
azuchi
0
9
PSBT
azuchi
0
28
Trampoline Payment
azuchi
0
15
KZG Commitment
azuchi
0
98
Silent Payment
azuchi
0
62
FROST
azuchi
0
9
Other Decks in Technology
See All in Technology
Hands-on Gemini, the Google DeepMind LLM
meteatamel
1
110
VS CodeでAWSを操作しよう
smt7174
7
1.6k
Databricks:『生成AI World Cup』のご案内
databricksjapan
2
160
コンパウンドスタートアップのためのスケーラブルでセキュアなInfrastructure as Codeパイプラインを考える / Scalable and Secure Infrastructure as Code Pipeline for a Compound Startup
yuyatakeyama
3
4.5k
JAWS-UG Bedrock Claude Night
yamahiro
3
460
20240418_Google ColabにLLMが搭載されたようなのでPython x データ分析の勉強方法を考えてみる
doradora09
0
120
長期間TiDBを使ってきた話 @ 私たちはなぜNewSQLを使うのかTiDB選定5社が語る選定理由と活用LT / Experiences with TiDB Over Time
chibiegg
2
850
Google Cloud Next '24でブログを10本書いた方法と勉強会を沸かせた方法
yasumuusan
0
240
AWS認定資格を取得したので、初めてマネコンを触った時を振り返ってみた。
ainatsuptr
2
100
EMとして2023年度に頑張ったこと / What we did well in FY2023 as a EM
pauli
1
140
ChatworkのSRE部って実は 半分くらいPlatform Engineering部かもしれない
saramune
0
150
Terraformあれやこれ/terraform-this-and-that
emiki
8
1.3k
Featured
See All Featured
Statistics for Hackers
jakevdp
789
220k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Building Adaptive Systems
keathley
30
1.9k
Gamification - CAS2011
davidbonilla
76
4.6k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
13
1.5k
Optimizing for Happiness
mojombo
370
69k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
What the flash - Photography Introduction
edds
64
11k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
115
18k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
16
1.4k
How to Ace a Technical Interview
jacobian
272
22k
Into the Great Unknown - MozCon
thekraken
10
990
Transcript
Output Descriptor
1 Output Descriptorとは? Bitcoinのアウトプットスクリプト(scriptPubkey)を 人が理解しやすい文字列で表現する仕様 https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md (例)P2PKH • scriptPubkey:
OP_DUP OP_HASH160 H(<公開鍵>) OP_EQUAL OP_CHECKSIG • Output Descriptor: pkh(<公開鍵>) ※鍵だけでは、どのようなscriptPubkeyが構成されたか分からない (P2PKH、P2WPKH、P2SH-P2WPKH、マルチシグなど)
2 Output Descriptor function Output Descriptorの記述タイプ • pk(KEY) • pkh(KEY)
• wpkh(KEY) • combo(KEY) → P2PK, P2PKH, P2WPKH, P2SH-P2WPKH • multi(k, KEY1, …, KEYn) • sortedmult(k, KEY1, …, KEYn) • sh(SCRIPT) • wsh(SCRIPT) wsh(multi(2, KEY1, KEY2, KEY3)) • addr(アドレス) • raw(Hex SCRIPT)
3 Output Descriptor function • KEYの形式 ◦ Hexエンコードされた公開鍵 ◦ WIFエンコードされた秘密鍵
◦ 拡張公開鍵(xpub) ◦ 拡張秘密鍵(xprv) ◦ オプション ▪ xpub/xprvにはBIP-32の導出パス(/1/2, /1’, /1/*) xpub...gGDnw/1/2 ▪ Key Origin Information([master fingerprint/path]) [d34db33f/44'/0'/0']xpub...RcEL/1/2 masterからxpubを導出した際の情報を付与 • チェックサム オプションで、アルファベット8文字のチェックサムがSuffixに。
4 Output Descriptorの採用 • Bitcoin Core v0.21.0から試験的にOutput Descriptorを使ったウォレットDescriptor Walletをサポート。 ◦
createwallet RPCのdescriptorsオプションをtrueに。 ◦ Descriptor WalletのDBはSQLiteに。 • Bitcoin Core v0.21.0でサポートされているOutput Descriptor関連のRPC ◦ scantxoutset ◦ getdescriptorinfo ◦ deriveaddresses ◦ listunspent ◦ getaddressinfo ◦ importmulti ◦ generatetodescriptor ◦ utxoupdatepsbt ◦ createmultisig ◦ addmultisigiaddress