ãããã³ã€ã³ã®ã¹ã±ãŒã©ããªãã£ã¯ãã®äž»èŠãªåé¡ã®1ã€ã§ããããã®è§£æ±ºçã¯ç©æ¥µçã«åãçµãã§ããŸãã ãããã®ãœãªã¥ãŒã·ã§ã³ã®ä»£è¡šçãªãã®ã®1ã€ã«ãããšãã°ãLightningãããã¯ãŒã¯ãã¯ãããžãŒããããŸãããããã€ãã®è匱æ§ã®ããããã®å®è£ ã¯ãŸã äžå¯èœã§ãã å¥ã®ãœãªã¥ãŒã·ã§ã³-åé¢ããã蚌人ã¯ãã¹ã±ãŒã©ããªãã£ã®åäžãç®æããŠããŸãããé·ã®å®è£ ã劚ãããŸãã«ãã®è匱æ§ãå«ãäžé£ã®åé¡å šäœã解決ããŸãã ãã®èšäºã§ã¯ãåé¢ããã蚌人ã®äž»ãªå©ç¹ãæ€èšãããã®ä»çµã¿ã説æããŸãã
åé¢ãããç®æè ããŸãã¯å€ãã®å ŽåSegWitãšåŒã°ãããã®ã¯ãäžé£ã®BIPïŒ141ã142ã143ã144ãããã³145ïŒã§èšè¿°ããããœãããã©ãŒã¯ã§ããããã®äž»ãªç®çã¯ã眲åã䜿çšããŠãã©ã³ã¶ã¯ã·ã§ã³ãšãããã¯ã®æ§é ãæé©åããããšã§ããã©ã³ã¶ã¯ã·ã§ã³ããå¥ã®æ§é ãžã®ã scriptSig ããã ç®æè ãããŸãã¯ã ããã¯è§£é€ã¹ã¯ãªãã ããšåŒã°ããŸãã ããã«ããããã©ã³ã¶ã¯ã·ã§ã³ã®ãµã€ãºãå°ããããŠãããã¯ããã容éçã«ããã ãã§ãªãããã©ã³ã¶ã¯ã·ã§ã³ã®æ§é ã«äŸåããæ¯æããã£ãã«ã皲劻ãªã©ã®æè¡ã«ãšã£ãŠéåžžã«éèŠãªã å¯å€æ§ ãïŒ ãã©ã³ã¶ã¯ã·ã§ã³ã®é å¿æ§ãäžèšã®è匱æ§ã«ã€ããŠåè¿°ããŸããïŒã®åé¡ã解決ããŸããããã³ã€ã³ã
ä»çµã¿
å§ããåã«
ãŸãããããã³ã€ã³ã®æ¯æãã·ã¹ãã ãã©ã®ãããªãã®ããç°¡åã«æãåºããŠãã ããã ã©ã®éè¡ã«ãå®è£ ã§ãããããæ®é«ãªã¹ãã®ãããªãã®ã¯ãããŸããã 代ããã«ãåã¢ãã¬ã¹ã®æ®é«ã¯ããã®ã¢ãã¬ã¹ã«éä¿¡ãããäžé£ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«ãã£ãŠè¡šãããŸãããã©ã³ã¶ã¯ã·ã§ã³ã¯ãå ¥åãšåºåãäž»èŠãªãã®ã§ããæ§é ã§ãã å ¥åã¯ãæ¯åºããããã«åç §ãããã©ã³ã¶ã¯ã·ã§ã³ã§ãïŒããæ£ç¢ºã«ã¯ããããã¯ãã©ã³ã¶ã¯ã·ã§ã³å šäœã§ã¯ãªããç¹å®ã®åºåã§ãã1ã€ã®ãã©ã³ã¶ã¯ã·ã§ã³ã§ã¯è€æ°ã®ã¢ãã¬ã¹ã«è³éã転éã§ããããïŒãåºåã¯ãè³éãééãããã ãããã³ã€ã³ãã©ã³ã¶ã¯ã·ã§ã³ã®æ§é ã¯æ¬¡ã®ããã«ãªããŸãã
åºåã®PubKeyã¹ã¯ãªãããã£ãŒã«ãïŒä»¥éscriptPubKey ïŒã¯ã ããã¯ã¹ã¯ãªãããšåŒã°ãããã®ã§ãã è³éã®è»¢éå ã®äœæã®ææè ã®ã¿ããã®åºåã䜿çšã§ããããã«ããå¿ èŠããããŸãã Signature Scriptãã£ãŒã«ãïŒä»¥éscriptSig ïŒã¯ããã¯è§£é€ã¹ã¯ãªãããšãåŒã°ããŸã - ããã¯ã¹ã¯ãªããã ãããã¯è§£é€ãããã¢ãã¬ã¹ã®æææš©ã®èšŒæãæäŸããŸãã
ãã©ã³ã¶ã¯ã·ã§ã³ã®è©³çŽ°ãšãããã¯ããã³ããã¯è§£é€ã¹ã¯ãªããã®æäœã«ã€ããŠã¯ã ãã¡ããã芧ãã ãã ã
åŸæ¹äºææ§
å®éãåé¢ããã蚌人ã¯ãã©ã³ã¶ã¯ã·ã§ã³ã®æ§é ã ãã§ãªãããã®åºåãå€æŽããŸãã ãã ããããã¯ãåŸæ¥ã®UTXOïŒæªäœ¿çšã®ãã©ã³ã¶ã¯ã·ã§ã³åºåïŒãšSegvitã®äž¡æ¹ãåããã©ã³ã¶ã¯ã·ã§ã³ã§äœ¿çšã§ããªãããšãæå³ãããã®ã§ã¯ãããŸããã
Segregated Witnessã¯äŸç¶ãšããŠãœãããã©ãŒã¯ã§ããããããã®æŽæ°ã¯ç¡èŠã§ããŸããã€ãŸããå€ãã·ã¹ãã ã¯äœããã®åœ¢ã§SegvitåºåãåŠçããå¿ èŠããããŸãã å®éãå€ãããŒããŸãã¯ãŠã©ã¬ããã®å Žåããããã®åºåã¯èª°ããã¢ã¯ã»ã¹ã§ããããã«èŠããŸããã€ãŸãã空ã®çœ²åã§äœ¿çšã§ããŸãããããã¯äŸç¶ãšããŠæå¹ã§ãã æŽæ°ãåãå ¥ããããŒããšãŠã©ã¬ããã¯ããã¡ãããç¹å¥ãªãç®æè ããã£ãŒã«ãã®å ¥ãå£ã®å€ã®ãã¹ãŠã®çœ²åãæ€çŽ¢ããŸãã
äŸ
Pay-to-Witness-Public-Key-Hash
ããã§ã¯ããã©ã³ã¶ã¯ã·ã§ã³ã®äŸãšãåé¢ããã蚌人ã«ãã£ãŠã©ã®ããã«å€åããããèŠãŠã¿ãŸãããã æšæºã®Pay-to-Public-Key-HashïŒP2PKHïŒãã©ã³ã¶ã¯ã·ã§ã³ããå§ããŸãã
åºåãã€ãŸããscriptPubKeyããã£ãŒã«ãã«é¢å¿ããããŸãã å žåçãªããã¯ã¹ã¯ãªãããèããŠã¿ãŸãããã
OP_DUP OP_HASH160 <PubKeyHash> OP_EQUALVERIFY OP_CHECKSIG
åé¢ããã蚌人ã§ã¯ã次ã®ããã«ãªããŸãã
0 <PubKeyHash>
ã芧ã®ãšãããSegvitã®åºåã¯åŸæ¥ã®åºåãããã¯ããã«åçŽã§ããããã¯ãã¹ã¯ãªããå®è¡ã¹ã¿ãã¯ã«é 眮ããã2ã€ã®å€ã§æ§æãããŠããŸãã åã«è¿°ã¹ãããã«ããããã³ã€ã³ã¯ã©ã€ã¢ã³ãã®å€ãããŒãžã§ã³ã§ã¯ã眲åãå¿ èŠãšããªãããããã®åºåã¯èª°ã§ãã¢ã¯ã»ã¹ã§ããããã«è¡šç€ºãããŸãã ããããæŽæ°ãããã¯ã©ã€ã¢ã³ãã®å Žåãæåã®çªå·ã¯ããŒãžã§ã³çªå·ãšããŠè§£éããã2çªç®ã¯ããã¯ã¹ã¯ãªããïŒç£èŠããã°ã©ã ïŒã®é¡äŒŒç©ãšããŠè§£éãããŸãã å®éãå§çž®ãããå ¬éããŒã®ããã·ã¥ã¯ããã§äœ¿çšããå¿ èŠããããŸããããã«ã€ããŠã¯åŸã§èª¬æããŸãã
ããã§ããã®åºåãè²»ãããããã©ã³ã¶ã¯ã·ã§ã³ãèŠãŠã¿ãŸãããã åŸæ¥ã®å Žåã次ã®ããã«ãªããŸãã
[...] "Vin" : [ { "txid": "8adbca5e652c68f8f3c30ac658115bc4af395d0cc7e6beaea18168295c29d011", "vout": 0, "scriptSig": "<our scriptSig>" } ] [...]
ãã ããSegvitåºåã䜿çšããã«ã¯ããã©ã³ã¶ã¯ã·ã§ã³ã«ç©ºã®sriptSigãã£ãŒã«ããããããã¹ãŠã®çœ²åãå¥ã®å Žæã«å«ãŸããŠããå¿ èŠããããŸãã
[...] "Vin" : [ { "txid": "8adbca5e652c68f8f3c30ac658115bc4af395d0cc7e6beaea18168295c29d011", "vout": 0, "scriptSig": "" } ] [...] "witness": "<Witness data>" [...]
èŠå
åŸæ¥ã®é¡§å®¢ã¯Segvitãã©ã³ã¶ã¯ã·ã§ã³ãåŠçã§ãããšããäºå®ã«ããããããïŒå€ã顧客ã«ãšã£ãŠã¯åºåã¯èª°ã§ãã¢ã¯ã»ã¹ã§ããããã«èŠããããšãæãåºããŠãã ããïŒã圌ãã¯åºåã䜿ãããšãã§ããŸããããã ãã空ã®çœ²åãæã€åºå£ããã®ãã©ã³ã¶ã¯ã·ã§ã³ã¯å®éã«ã¯ç¡å¹ã§ãïŒåé¢ããã蚌人ãæã€ããŒãã¯ããã®ãããªãã©ã³ã¶ã¯ã·ã§ã³ãèŠéãããšã¯ãããŸããïŒã ã€ãŸããéä¿¡è ã¯ãç®çã®ã¿ã€ãã®åºåãäœæããããã«ãåä¿¡è ã®ãŠã©ã¬ãããsegwitããµããŒãããŠãããã©ãããç¥ãå¿ èŠããããŸãã
BIP 143以éã å§çž®ãããå ¬éããŒã®ããã·ã¥ã䜿çšããŠåºåãäœæããå¿ èŠããããŸã ã éåžžã®ã¢ãã¬ã¹ãŸãã¯éå§çž®å ¬éããŒã䜿çšããŠåºåãäœæããå Žåããã®åºåã¯äœ¿çšãããŸããã
蚌人ãžã®æ¯æãã¹ã¯ãªããããã·ã¥
次ã®éåžžã«éèŠãªãã©ã³ã¶ã¯ã·ã§ã³ã¿ã€ãã¯P2SHã§ããããã«ãããå ¬éããŒããã·ã¥ïŒéåžžã®ãããã³ã€ã³ã¢ãã¬ã¹ïŒã§ã¯ãªããã¹ã¯ãªããããã·ã¥ã«ãã©ã³ã¶ã¯ã·ã§ã³ãéä¿¡ã§ããŸãã P2SHãã©ã³ã¶ã¯ã·ã§ã³ã®åºåãè²»ããã«ã¯ãè³éãééãããã¹ã¯ãªããã®ããã·ã¥ãšäžèŽããããã·ã¥ãæã€ã¹ã¯ãªããïŒåŒãæãã¹ã¯ãªãããšåŒã°ããŸãïŒãšãã¹ã¯ãªããã«å¿ãã眲å/ãã¹ã¯ãŒã/äœããæäŸããå¿ èŠããããŸãã ãã®ã¢ãããŒãã䜿çšãããšãäœãç¥ããªãæ¹æ³ã§ä¿è·ãããã¢ãã¬ã¹ã«ãããã³ã€ã³ãéä¿¡ã§ããŸãããŸããå€ãã®ã¹ããŒã¹ãç¯çŽã§ããŸããããšãã°ããã«ã眲åãŠã©ã¬ãããåãããŠã©ã¬ããã®å Žåããã¹ãŠãä¿åãããšããã¯ã¹ã¯ãªãããéåžžã«å€§ãããªããŸãã ãããã·ã¥ã ãã§ãªããå®å šã«ããã¯ããŸãã
ããã§ã5ã€ã®ãã¡2ã€ã®çœ²åãå¿ èŠãšãããã«ã眲åãŠã©ã¬ããã®äŸãèŠãŠã¿ãŸããããããã¯ã¹ã¯ãªããã®åŸæ¥ã®åœ¢åŒã§ã¯ãP2SHãã©ã³ã¶ã¯ã·ã§ã³ã®åºåã¯æ¬¡ã®ããã«ãªããŸãã
HASH160 54c557e07dde5bb6cb791c7a540e0a4796f5e97e EQUAL
ããã䜿ãã«ã¯ããã«ã眲å2 of 5ãããã³2ã€ã®çœ²åã®æ¡ä»¶ãå®çŸ©ããåŒãæãã¹ã¯ãªãããæäŸããå¿ èŠããããŸããããã¯ãã¹ãŠãã©ã³ã¶ã¯ã·ã§ã³å ¥åã«å«ãŸããŠããå¿ èŠããããŸãã
[...] "Vin" : [ "txid": "abcdef12345...", "vout": 0, "scriptSig": "<SigA> <SigB> <2 PubA PubB PubC PubD PubE 5 CHECKMULTISIG>", ]
次ã«ãéä¿¡è ãšåä¿¡è ã®äž¡æ¹ãåé¢ãŠã£ãããã¹ã䜿çšããå Žåã«ãããããã¹ãŠãã©ã®ããã«èŠããããèŠãŠã¿ãŸãããã
ããã¯çµäºã¹ã¯ãªããïŒ
0 9592d601848d04b172905e0ddb0adde59f1590f1e553ffc81ddc4b0ed927dd73
ç¹°ãè¿ããŸãããP2PKHãã©ã³ã¶ã¯ã·ã§ã³ã®å Žåã®ããã«ãçµæã®ã¹ã¯ãªããã¯ã¯ããã«åçŽã§ãã ããã§ãæåã®å€ã¯ããŒãžã§ã³çªå·ã§ã2çªç®ã®å€ã¯ãåŒãæãscript'aïŒç£èŠããã°ã©ã ïŒã®32ãã€ãã®SHA256ããã·ã¥ã§ãã ãã®ããã·ã¥é¢æ°ã¯ãããã·ã¥é·ïŒ32ãã€ãã®SHA256ãš20ãã€ãã®RIPEMD160ïŒSHA256ïŒã¹ã¯ãªããïŒïŒïŒã«ãã£ãŠãç£èŠããã°ã©ã P2WPKHãšP2WSHã®ããã°ã©ã ãäœããã®åœ¢ã§åºå¥ããããã«éžæãããŸããã
ãã®åºåã䜿çšãããã©ã³ã¶ã¯ã·ã§ã³ïŒ
[...] "Vin" : [ "txid": "abcdef12345...", "vout": 0, "scriptSig": "", ] [...] "witness": "<SigA> <SigB> <2 PubA PubB PubC PubD PubE 5 CHECKMULTISIG>" [...]
P2SHå ã«åé¢ããã蚌人ãåã蟌ã
ãã®ãããåé¢ããã蚌人ã®äœ¿çšã«ã¯å©ç¹ãããããšã確èªããŸããããäžèšã®äŸã§ã¯ãéä¿¡è ãšåä¿¡è ã®äž¡æ¹ãæŽæ°ããå¿ èŠããããŸãããããã¯åžžã«å¯èœã§ã¯ãããŸããã ããšãã°ããã®ç¶æ³ãèããŠã¿ãŸãããã
ã¢ãªã¹ã¯ãããã³ã€ã³ãããã«éããããšæã£ãŠããŸãããããã«ã¯æã£ãŠããã®ã«ã»ã°ã財åžã¯ãããŸããã ãã¡ãããæšæºã®ãã©ã³ã¶ã¯ã·ã§ã³ã䜿çšããããšãã§ããŸãããBobã¯segwitã䜿çšããŠææ°æãåæžããããšèããŠããŸãã
ãã®å ŽåãBobã¯segwitã¹ã¯ãªãããå«ãP2SHã¢ãã¬ã¹ãäœæã§ããŸãã ã¢ãªã¹ã®å Žåã圌ã¯æãäžè¬çãªP2SHã¢ãã¬ã¹ãšããŠè¡šç€ºãããåé¡ãªãè³éãééã§ããŸããããã¯ãã®åºåãsegveãã©ã³ã¶ã¯ã·ã§ã³ã䜿çšããŠäœ¿çšã§ããææ°æã®å²åŒãåããããšãã§ããŸãïŒãã©ã³ã¶ã¯ã·ã§ã³ãåé¢ããããã®æ°ããææ°æã¡ããªãã¯ã«ã€ããŠã¯åŸè¿°ããŸãïŒ ã
ãããã£ãŠãP2WSHãšP2WPKHã®äž¡æ¹ã®ã¿ã€ãã®ã»ã°ã¡ã³ããã©ã³ã¶ã¯ã·ã§ã³ãP2SHå ã«å®è£ ã§ããŸãã
P2SHïŒP2WPKHïŒ
P2SHå ã§P2WPKHãã©ã³ã¶ã¯ã·ã§ã³ã䜿çšããã«ã¯ãBobã¯å ¬éããŒããç£èŠããã°ã©ã ãäœæããå¿ èŠããããŸãã 次ã«ãçµæãããã·ã¥ããP2SHã¢ãã¬ã¹ã«å€æããå¿ èŠããããŸãã
ç£èŠããã°ã©ã ãäœæããŸãã
0 ab68025513c3dbd2f7b92a94e0581f5d50f654e7
ãã€ãã®ããã«-æåã®æ°åã¯ããŒãžã§ã³ã§ã2çªç®ã¯20ãã€ãã®å ¬ééµããã·ã¥ã§ãã çµæã®ã¹ã¯ãªããã¯ãSHA256ã«ãã£ãŠããã·ã¥ããã次ã«RIPEMD160ã«ãã£ãŠããã·ã¥ãããããã«20ãã€ãã®ããã·ã¥ãçºè¡ãããŸãã
ç£èŠããã°ã©ã P2WPKHã®HASH160ïŒ
3e0547268b3b19288b3adef9719ec8659f4b2b0b
ãããŠã¢ãã¬ã¹ã«å€æããŸãïŒ
37Lx99uaGn5avKBxiW26HjedQE3LrDCZru
ãã®ã¢ãã¬ã¹ã«éä¿¡ãããåºåã®ããã¯ã¹ã¯ãªããã¯ãéåžžã®P2SHã¢ãã¬ã¹ã®ã¹ã¯ãªããã®ããã«ãªããŸãã
HASH160 3e0547268b3b19288b3adef9719ec8659f4b2b0b EQUAL
次ã«ãBobããã®åºåãã©ã®ããã«äœ¿çšã§ããããæ€èšããŸãã
[...] "Vin" : [ { "txid": "8adbca5e652c68f8f3c30ac658115bc4af395d0cc7e6beaea18168295c29d011", "vout": 0, "scriptSig": "0 ab68025513c3dbd2f7b92a94e0581f5d50f654e7" } ] [...] "witness": "<Witness data>" [...]
æåã«ãæäŸããåŒãæãã¹ã¯ãªããïŒãã®å Žåãç£èŠããã°ã©ã ã§ãïŒãããã·ã¥ãããããã¯ã¹ã¯ãªããã§æå®ãããããã·ã¥ãšçããå Žåãå®è¡ããããç£èŠããã£ãŒã«ãã®çœ²åããã§ãã¯ãããŸãã
P2SHïŒP2WSHïŒ
åæ§ã«ãã©ã®P2WSHã¹ã¯ãªãããP2SHå ã«å®è£ ã§ããŸãã åè¿°ã®multisigã¹ã¯ãªãã2/5ã䜿çšããŠãã ããã ãã¹ãŠã®æé ã¯ãP2SHïŒP2WPKHïŒã®å Žåãšã»ãŒåãã§ãã
ãŸãå§ãã«ãç£èŠããã°ã©ã ãäœæããŸãã
0 9592d601848d04b172905e0ddb0adde59f1590f1e553ffc81ddc4b0ed927dd73
1çªç®ã®çªå·-ããŒãžã§ã³ã2çªç®-ãã«ã眲åã¹ã¯ãªããã®32ãã€ãã®SHA256ããã·ã¥ã 次ã«ãæé ãç¹°ãè¿ãããŸã-ãã©ãŒãªã³ã°ç£èŠããã°ã©ã ããHASH160ãååŸããéåžžã®P2SHã¢ãã¬ã¹ã«å€æããŸãã ãã®ã¢ãã¬ã¹ã«éä¿¡ãããåºåã䜿çšããã«ã¯ãscriptSigã§ç£èŠããã°ã©ã ãäœæããç£èŠãã£ãŒã«ãã«ãã¹ãŠã®çœ²åãšå®å šãªãã«ãã·ã°ã¹ã¯ãªãããèšè¿°ããå¿ èŠããããŸãã
åé¢ããã蚌人ã®å©ç¹
æè¡çãªéšåãç解ããã®ã§ãåé¢ããã蚌人ã®äž»ãªå©ç¹ãèŠãŠãããŸãã
ãã©ã³ã¶ã¯ã·ã§ã³ã®é å¿æ§
segwitã解決ããæãéèŠãªåé¡ã®1ã€ã¯ããã©ã³ã¶ã¯ã·ã§ã³ã®ãå¯å€æ§ãããŸãã¯ãããããã·ã¥ã§ããIDã§ãã ããèŠãŠã¿ãŸããã
åŸæ¥ã®ã±ãŒã¹ã§ã¯ãå ¥åå ã®ãã©ã³ã¶ã¯ã·ã§ã³å ã®çœ²åã¯ã第äžè ãç¡å¹ã«ããããšãªãå€æŽã§ããŸãã ããã«ãããå ¥å/åºå/è³éã®ãããªãåºæ¬ããã£ãŒã«ããå€æŽããã«ããã®ããã·ã¥ã§ãããã©ã³ã¶ã¯ã·ã§ã³IDãå€æŽã§ããŸãã ãããã£ãŠããã©ã³ã¶ã¯ã·ã§ã³ã¯åŒãç¶ãæå¹ã§ãããIDãç°ãªãããããµãŒãã¹æåŠãªã©ã ããããçš®é¡ã®æ»æãå¯èœã«ãªããŸãã
Segwitã¯ãã®åé¡ã解決ããŸããããã¯ããã¹ãŠã®çœ²åããã©ã³ã¶ã¯ã·ã§ã³ã®å€éšã«ãããããããã·ã¥ããããå€æŽããŠããã©ã³ã¶ã¯ã·ã§ã³IDã«åœ±é¿ããªãããã§ãã å¥ã®wtxidèå¥åãå°å ¥ãããŸãããã©ã³ã¶ã¯ã·ã§ã³ã ãã§ãªããç£èŠéšåå šäœãããã·ã¥ããããããã©ã³ã¶ã¯ã·ã§ã³ãç£èŠããŒã¿ãªãã§éä¿¡ãããå Žåãtxidã¯wtxidã§ãã
ãã®åé¡ã解決ãããšããªã¹ã¯ãªãã§æªç¢ºèªã®ãã©ã³ã¶ã¯ã·ã§ã³ã®ãã§ãŒã³ãäœæã§ããŸããããã¯ãLightning Networkãªã©ã®ãããã³ã«ã«ãšã£ãŠéåžžã«éèŠãªæ©èœã§ãã
ãããã¯ãŒã¯ãšã¹ãã¬ãŒãžã®ã¹ã±ãŒãªã³ã°
蚌人ããŒã¿ã¯ãå€ãã®å Žåããã©ã³ã¶ã¯ã·ã§ã³ã®å€§éšåãå ããŸãã ãã«ãã·ã°ã®ãããªã¹ã¯ãªããã§ã¯ããã©ã³ã¶ã¯ã·ã§ã³ã§äœ¿çšãããã¹ããŒã¹ã®æ倧75ïŒ ãå ããå¯èœæ§ããããŸãã segwitã®ãããã§ã眲åã®è»¢éã¯ãªãã·ã§ã³ã«ãªããŸã-ããŒãã¯ããã©ã³ã¶ã¯ã·ã§ã³ãæ€èšŒããå Žåã®ã¿çœ²åãèŠæ±ããŸãã segwitããµããŒãããªãSPVïŒ åçŽãªæ¯æãç¢ºèª ïŒã¯ã©ã€ã¢ã³ããŸãã¯ããŒãã¯ããã®å ŽåãäžèŠãªããŒã¿ãããŒãããããã£ã¹ã¯å®¹éãç¯çŽã§ããŸãã
ãããã¯ãµã€ãºã®å¢å ãšååŒææ°æã®åæž
Segwitãã©ã³ã¶ã¯ã·ã§ã³ã¯ãç£èŠããŒã¿ã¹ãã¬ãŒãžã®å²åŒã«ãããåŸæ¥ã®ãã©ã³ã¶ã¯ã·ã§ã³ãããå®äŸ¡ã§ãã ããæ£ç¢ºã«ã¯ãsegwitãã©ã³ã¶ã¯ã·ã§ã³ã®ããµã€ãºãã®æŠå¿µãå€æŽãããŸããã éåžžã®ãµã€ãºã®ä»£ããã«ããä»®æ³ãµã€ãºãã®æŠå¿µãå°å ¥ãããŸãã-ãç£èŠãã«ä¿åãããŠãããã¹ãŠã®ããŒã¿ã¯ã0.25ã®ä¿æ°ã§èæ ®ããããããã¯å ã«ããå€ãã®ãã©ã³ã¶ã¯ã·ã§ã³ãé 眮ã§ããŸãã äŸãèããŠã¿ãŸãããã
åŸæ¥ã®200ãã€ãã®ãã©ã³ã¶ã¯ã·ã§ã³ããããšããŸãã 1 MBãããã¯ã¯ããããã®5,000åã«é©åããŸãã ããã§ãçŽ120ãã€ããç£èŠããŒã¿ã§ããsegwitãšåçã®ãã®ãååŸããŸãã 次ã«ãvsize = 80 + 0.25 * 120 = 110ãšãªãããã®ãããªãã©ã³ã¶ã¯ã·ã§ã³ã®9090ããããã¯ã«åãŸããŸãã ãŸããæåã®ãã©ã³ã¶ã¯ã·ã§ã³ã®å Žåãããšãã°40ãµãã·/ãã€ãã®ã³ããã·ã§ã³ã§ã8000ãµãã·ã®ã³ããã·ã§ã³ãšã2çªç®ã®4400ãµãã·ã®ã³ããã·ã§ã³ãã»ãŒååã«ãªããŸãã
ã¹ã¯ãªããã®ããŒãžã§ã³ç®¡ç
ãæ°ã¥ããããããŸããããåããã¯ã¹ã¯ãªããã«ã¯ãã¹ã¯ãªããã®ããŒãžã§ã³ã管çãããã€ãããããŸãã ããŒãžã§ã³ã䜿çšãããšããœãããã©ãŒã¯ã®åœ¢ã§è¿œå ãå€æŽïŒæ§æã®å€æŽãæ°ããæŒç®åãªã©ïŒãè¡ãããšãã§ããŸãã
眲åæ€èšŒã®æé©å
åé¢ããã蚌人ã¯ã眲åã¢ã«ãŽãªãºã ïŒCHECKSIGãCHECKMULTISIGãªã©ïŒã®ããã©ãŒãã³ã¹ãæé©åããŸãã segwit以åã¯ãããã·ã¥èšç®ã®æ°ã¯çœ²åã®æ°ãã2次çã«å¢å ããŸããããæŽæ°ã§ã¯ã¢ã«ãŽãªãºã ã®è€éãã¯OïŒnïŒã«æžå°ããŸããã
ããã§åé¡ã¯äœã§ããïŒ
ããã§ããããã¹ãŠããšãŠãè¯ããªããåé¡ã¯äœã§ããïŒ ãã®ã¢ããããŒãã«ã¯ããããã¯ãŒã¯äžã®å€ãã®æµãããŸãããã¹ãŠã®æãããªå©ç¹ã«ããããããã匱ç¹ãããããã§ãã å察ã®è°è«ãããã€ãèããŠãã ããã
- segwitã¯ãœãããã©ãŒã¯ã§ããããããã¹ãŠã®ã¯ã©ã€ã¢ã³ããæŽæ°ãããããã§ã¯ãããŸãããã€ãŸãããããã¯ãŒã¯äžã«2çš®é¡ã®UTXOãåæã«ååšãããã©ã³ã¶ã¯ã·ã§ã³IDã®è匱æ§ã®æé€ãç·åœ¢æéã§ã®ããã·ã¥ãªã©ã®éèŠãªå€æŽã¯ãéSegvitã¢ãŠãã¬ããã«ã¯é©çšãããŸããããããã¯ãŒã¯ã¯ããã©ã³ã¶ã¯ã·ã§ã³IDã®ãã©ãã£ãªãã£ã«åºã¥ãæ»æãããã³2次ããã·ã¥æéã®åé¡ã«å¯ŸããŠäŸç¶ãšããŠè匱ã§ãã
- Segwitã¯ãããã¯ãŒã¯ã»ãã¥ãªãã£ãäœäžãããå¯èœæ§ããããŸãã å®å šæ€èšŒãå®è¡ããããŒãã®æ°ã¯å€§å¹ ã«æžå°ããŸããããã¯ãã»ã°ãŠã£ãããåãå ¥ãã人ã®ã¿ããã©ã³ã¶ã¯ã·ã§ã³ã®ç£èŠéšåãæ€èšŒã§ããããã§ãã
- Segwitã¯ãã£ã³ã»ã«ã§ããŸããã ãã£ã³ã»ã«ããŠãã¹ãŠã®å€æŽãããŒã«ããã¯ãããšããã¹ãŠã®segwitåºåããã¹ãŠã®ãŠãŒã¶ãŒã«å©çšå¯èœã«ãªããŸãã
- Segwitã¯ãã¹ãŠã®åé¡ãäžåºŠã«è§£æ±ºããããšããŸãããã®çµæãèšå€§ãªéã®ã³ãŒããå€æŽãããŸãã ããã«ããããããªãäœæ¥ãè€éã«ãªãããã°ã®é€å»ãããå°é£ã«ãªãå¯èœæ§ãé«ããªããŸãã
ãããã«
SWã«ãã£ãŠè§£æ±ºãããåé¡ã«å¯ŸããŠããæŽç·Žããããœãªã¥ãŒã·ã§ã³ãæäŸããããšã¯å¯èœã§ãããçŸæç¹ã§ã¯ããããããã¯ãŒã¯ã®ã¹ã±ãŒã©ããªãã£ãåäžãããLightning Networkãªã©ã®ãã¯ãããžãŒã®å®è£ ãå¯èœã«ããåªããæ¹æ³ã§ãããšèããŠããŸãããŸãã次ã®èšäºãéå¬ããŸãã
åç §è³æ
ããããã³ã€ã³ããã¹ã¿ãŒããã-ã¢ã³ãã¬ã¢ã¹ã»Mã»ã¢ã³ããããã¹
ãããã³ã€ã³ã³ã¢ããã°
å€ãã®ã»ã°ãŠã£ãããªãœãŒã¹
TXNé å¿æ§ã«é¢ããè¯ãèšäº