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

Interop Tokyo 2018 BBc-1 ハンズオン

Interop Tokyo 2018 BBc-1 ハンズオン

ハンズオンで使った資料です

Takeshi Kubo

June 14, 2018
Tweet

More Decks by Takeshi Kubo

Other Decks in Programming

Transcript

  1. %AC=   <+ ? • 45 # -./@8 •

    (#)    7:*'90," • (4)       •&)2 #;>1"!(3166B • IP  ! ( "' $% • #&     •BBc-1*'$ 2
  2.  EF461" P522>(/1%( CIA P5 (/1+- $"0 !9Q 86'=:1.AM=: *1&H@

    KLGJ75D CFO1D • +- 9< 3;"), ?NB KL7 • $"0GJO ?NB KL7 1#
  3. BBc-1CH NGA-3(#' 4.1(),!/ Beyond Blockchain OneBBc-1 7V9L=6+04*-3(#' 4 •2017/10/31".4&% github7VB?

    •$4.2UH-3(#' 4SFM<  •I 6E@ P.1() ,!/:T D; •K8/Q65>WO   JR   4
  4.  !# 7 P 2  " • • •

           
  5. $% & • >( .+2;  • 16!/9-?  •

    ':50= 9 # "&<4)7  83*, 
  6. BBc-1 $"' %  #  $&  (#! 

      !$" $"   '! '     %&'        13
  7. BBc-1 %  • & '   # 

       • 0?3=9"#! $51FBD7 )  •-+A<0?3=98*C • $!( $"  • A/24E26& J'.@G • 0%(I,;>:  *H   15
  8. BBc-1 − # BBc-1) •, •BBc-1 & !- *PBFT 

    /.  16 BBc-1"* %$  !(    '+ &  )'" #( $+%
  9. BBc-1  −  • BBc-1 •"'  #3 !0

     •"' . *$2+&( • BBc-1  •   ,) -1/% • DB/ •   17 %#ετϨʔδ SFBEXSJUF ঝೝΛٻΊΔ ঝೝ͢Δ SFBEXSJUF ͜Ε͕##D transa ction transa ction
  10. BBc-1  −  •   • BBc-19+ 1/@0!$%

    #% •& ?-.=  •   •UTXO (Unspent Transaction Output) • Bitcoin>, <'2C:5 •%!;(?) • Ethereum,7"1/B 9+ :5 18 BBc-1  6)(* !$% #%4A83
  11. BBc-1  −    •"$&96 • 0@ %!#*/3

    • >= A?<: •B&)+ (+"$&'+# • >= A?<: •7-C8 • >= A?<: 19 7-C8 96  D5 "$&B&)+ (+.;4 1<, 2E 
  12.    7  •0" 3*# !.2  21

    FWFOU෦ ෳ਺ͷ##D&WFOUͷू߹ SFGFSFODF෦ ෳ਺ͷ##D3FGFSFODFͷू߹ DSPTT@SFGFSFODF෦ TJHOBUVSF෦ ෳ਺ͷ##D4JHOBUVSFͷू߹ IFBEFS SFMBUJPO෦ ෳ਺ͷ##D3FMBUJPOͷू߹ XJUOFTT෦ SHA256 !%&$&ID 1-  ),  34'( SHA256!+/ 
  13.      •    •

    22 FWFOU෦ ෳ਺ͷ##D&WFOUͷू߹ SFGFSFODF෦ ෳ਺ͷ##D3FGFSFODFͷू߹ DSPTT@SFGFSFODF෦ TJHOBUVSF෦ ෳ਺ͷ##D4JHOBUVSFͷू߹ IFBEFS SFMBUJPO෦ ෳ਺ͷ##D3FMBUJPOͷू߹ XJUOFTT෦
  14.    transaction_id   &+,*,%"-3SHA256# & transaction_id 

    user_id  !$&7<05A) 8B  ? 2> asset_id   49!$&(& %"SHA256#  &asset_id  asset_group_id   A 8B ? 2> domain_id  A @=1/ ;:63(domain_id). )'  23
  15.         24 10

     30  24  X Y W          
  16.  •9+&1 • A(#)B(#)Z(!%,'() •!83 •!%% % •/-47 • #AB

    !%% %0  (BBc-196 ) •"$ 1. A100!%Z,'  2. B% %X)*.21  96  3. A30!% B% %X5 25
  17.  -1  26 Z A B 100  

    TJHOBUVSF෦ SFMBUJPO෦ XJUOFTT෦ VTFS;JOEFY : A 0 • A • KSNR P ED • OP A A B • A 1GUTZ • A 1G XZ I   BBc-1  
  18.  -2  27 A B    BBc-1

     Z X TJHOBUVSF෦ SFMBUJPO෦ XJUOFTT෦ VTFS#JOEFY : : • : • ITMS O B • OA 2: U EP R • E V • E D GX  100 
  19.  -3  28 A B    BBc-1

     Z X 70 30 TJHOBUVSF෦ SFMBUJPO෦ XJUOFTT෦ VTFS"JOEFY VTFS#JOEFY 2 BA 2 BA 2 BA 3 A GD 3 A GD D AE BA 47 • EE DBG 2051 40 • U S • PTV I EE E E 33 4 GE D GE D EE :B • EE DBG 2051 40 • U S K • PTV I EE E E 33 4 GE D GE D EE :B 1B A D D AE BA 47 EE 33 4 • EE DBG 2051 0 • U S • PTV I EE E E 33 4 GE D GE D EE :B b 7MXVR a • GE D M_ • GE D Mcd NO e • GE D M_ • GE D Mcd NO e 1B A D D AE BA 47 EE 33 4  
  20.  -3  29 TJHOBUVSF෦ SFMBUJPO෦ XJUOFTT෦ VTFS"JOEFY VTFS#JOEFY 2

    BA 2 BA 2 BA 3 A GD 3 A GD D AE BA 47 • EE DBG 2051 40 • U S • PTV I EE E E 33 4 GE D GE D EE :B • EE DBG 2051 40 • U S K • PTV I EE E E 33 4 GE D GE D EE :B 1B A D D AE BA 47 EE 33 4 • EE DBG 2051 0 • U S • PTV I EE E E 33 4 GE D GE D EE :B b 7MXVR a • GE D M_ • GE D Mcd NO e • GE D M_ • GE D Mcd NO e 1B A D D AE BA 47 EE 33 4 A B Z X 70 30  
  21. !#$ "$ 1*' 0.  / 1, • !#$ "$(+).

     • 1* (+ %& - , 30 #" %  !   $
  22.    31 DMJFOU DMJFOU DMJFOU DMJFOU DMJFOU DMJFOU

    DMJFOU DPSFOPEF DPSFOPEF DPSFOPEF DPSFOPEF DPSFOPEF DPSFOPEF DMJFOU core   app   ( )) DPSFϊʔυ ( )) ผͷϊʔυ DPSFϊʔυ ( )) ผͷϊʔυ DPSFϊʔυ
  23.  32 BQQϓϩηε " DPSFϓϩηε BQQϓϩηε # ඞཁʹԠͯ͡τϥϯβΫγϣϯ ໰͍߹Θͤ τϥϯβΫγϣϯ࡞੒

    τϥϯβΫγϣϯ֬ೝ ඞཁʹԠͯ͡τϥϯβΫγϣϯ ໰͍߹Θͤ ॺ໊ཁٻ ॺ໊ཁٻ ॺ໊Ԡ౴ ॺ໊Ԡ౴ τϥϯβΫγϣϯొ࿥ A B Z X 70 30 AB core  
  24.  •github • https://github.com/beyond-blockchain/bbc1/tree/develop/docs •API • https://bbc-1.readthedocs.io/en/latest/bbc1.html •Qiita • https://qiita.com/quvox/items/aaf3229b34a2010821cc

    • https://qiita.com/quvox/items/c51688b686e15aedd04a • https://qiita.com/quvox/items/b54ea50b890ed928dd2f • https://qiita.com/quvox/items/4a8271c46b3a73a16a33 • https://qiita.com/quvox/items/87132694c0b74338d674 34