Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Bitcoin Script入門

Bitcoin Script入門

2018年10月28日OSC東京Fall東海道らぐLT大会で、Bitcoin Scriptの初歩的な話をLTでさせていただきました。

Shu Kobuchi

October 28, 2018
Tweet

More Decks by Shu Kobuchi

Other Decks in Programming

Transcript

  1. ҉߸௨՟ಡॻձʗษڧձɹIUUQTDSZQUPDVSSFODZDPOOQBTTDPN ॳ৺ऀʙதڃऀ޲͚ͷʮϏοτίΠϯͱ͔ษڧձʯʢ݄̍ճɿฏ೔໷ʣ w ࣍ճ͸ ݄ ʙ඼઒೔ຊϚΠΫϩιϑτ தڃऀʙ্ڃऀ޲͚ͷʮ҉߸௨՟ྠಡձʯʢ݄̍ճɿฏ೔໷ʣ w ࣍ճ͸ ໦

    ʙ൒ଂ໳-*'6-- DSBTIBDBEFNZ *5ܥಈը഑৴ ʹͯϏοτίΠϯͱ͔ษڧձͷΞʔΧΠϒ഑৴த
 IUUQTDSBTIBDBEFNZDPNNVOJUZDSZQUPDVSSFODZ :PV5VCFνϟϯωϧʢྠಡձʗษڧձʣIUUQTHPPHM"2&W+ ϩάϛʔ5FDI ษڧձॻ͖ى͜͠ IUUQTMPHNJKQDPNNVOJUJFT ίϛϡχςΟ঺հ !3
  2. ϏοτίΠϯ͸Φʔϓϯιʔε ϏοτίΠϯ #JUDPJO ͸Φʔϓϯιʔε ୭Ͱ΋։ൃʹࢀՃՄೳʂ
 IUUQTHJUIVCDPNCJUDPJOCJUDPJO ϏοτίΠϯΛ͸͡Ίɺ҉߸௨՟ɾϒϩοΫνΣʔϯͷଟ͘͸044 ٕज़తʹ΋໘ന͍ʂʂ ϥΠτίΠϯ -JUFDPJO

    ͸#JUDPJOͷιʔείʔυ͔ΒϑΥʔΫ
 IUUQTHJUIVCDPNMJUFDPJOQSPKFDUMJUFDPJO ϞφίΠϯ .POBDPJO ͸-JUFDPJOͷιʔείʔυ͕ϕʔε
 IUUQTHJUIVCDPNNPOBDPJOQSPKFDUNPOBDPJO ΠʔαϦΞϜ &UIFSFVN ΋Φʔϓϯιʔε
 IUUQTHJUIVCDPNFUIFSFVNHPFUIFSFVN !4
  3. #JUDPJO4DSJQU -*'0 -BTU*O'JSTU0VU ͷ୯७ͳεΫϦϓτ 'PSUIͷΑ͏ͳٯϙʔϥϯυه๏ #JUDPJO5SBOTBDUJPOʹ͸ඞؚͣ·ΕΔ #JUDPJO$PSF CJUDPJOE ΍ϥΠϒϥϦΛ࢖͏ͱɺ#JUDPJO4DSJQUΛҙࣝ͠ͳ ͯ͘΋ɺϓϩάϥϜ͸ॻ͚Δ

    6OMPDLJOH4DSJQUͱ-PDLJOH4DSJQUΛಉ࣌ʹ࣮ߦ ਖ਼࣮͘͠ߦͰ͖Ε͹6OMPDLJOH4DSJQUͰ-PDLJOH4DSJQUΛղআͯ͠ɺτϥϯ βΫγϣϯͷ༗ޮੑΛࣔͤΔ !5 6OMPDLJOH4DSJQU -PDLJOH4DSJQU
  4. 11,) 1BZUP1VCMJD,FZ)BTIʢ11,ͷൃల൛ʣ ެ։伴ϋογϡΛ༻͍Δ͜ͱͰΞυϨεΛ୹͘දݱͰ͖Δ TDSJQU͸ʢʣ಺Ͱͷݺͼํ΋͋Δ !8 -PDLJOH4DSJQU TDSJQU1VC,FZ 6OMPDLJOH4DSJQU TDSJQU4JH TJH

    TJH1VC,01@%6101@)"4)1VC,)BTI01@&26"-7&3*': 01@$)&$,4*(Λ࣮ߦ TJH 536& 1VC, TJH 1VC, TJH 1VC, 1VC, 1VC, 1VC,)BTI TJH 1VC, 1VC,)BTI 1VC,)BTI TJH 1VC, 1VC,)BTI 1VC,)BTI TJH 1VC, 01@%61 )"4) ෳ੡ 01@&26"- ౳͍͠ TJH1VC, 01@%6101@)"4)1VC,)BTI 01@&26"-7&3*':01@$)&$,4*( ಉ஋͔ 4)"ͷޙ 3*1&.% ෳ੡
  5. 11,)ʢଓ͖ʣ ࢒Γ͸11,ͱಉ͡ !9 -PDLJOH4DSJQU 6OMPDLJOH4DSJQU TJH 1VC, TJH 1VC, 536&

    ༗ޮ $)&$,4*( TJH1VC, 01@%6101@)"4)1VC,)BTI 01@&26"-7&3*':01@$)&$,4*( ॺ໊Λݕূ
  6. ࠂ஌ʢ̎ʣ &UIFSFVN ΠʔαϦΞϜ ٕज़ऀίϛϡχςΟʮ)J&UIFS෱Ԭࢧ෦ʯ΋ϒʔε ग़లʢηϛφʔ͸ͳ͠ʣ )J&UIFSͷೖΓํ w IUUQTRJJUBDPNBNBDIJOPJUFNT⒎EEDD )J$PO ౔

    ܚጯٛक़େֶ೔٢Ωϟϯύε w ೔ຊॳͷେن໛ΠʔαϦΞϜٕज़ऀձٞ w IUUQTDPOGFSFODFIJFUIFSPSH  Ұൠͷνέοτ͸ׂҾίʔυ͋Γ  ֶੜ͸ֶׂίʔυͰνέοτ͕ແྉ  -BZFS9$&0෱ౡྑయࢯ લ(VOPTZ$&0 
 %..$50দຊ༐ؾࢯ લ(VOPTZ$50 
 Βొஃऀ͸߽՚ʂ !11