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

Swarm: The distributed storage platform

Swarm: The distributed storage platform

Hi-Ether Meetup Fukuoka #7
https://techplay.jp/event/686209

Keisuke Mori

August 17, 2018
Tweet

More Decks by Keisuke Mori

Other Decks in Technology

Transcript

  1.  

  2.   ޿͘ଊ͑Δͱ΄΅ಉ͡΋ͷͱଊ͑ͯྑ͍͕ɺͱ͜ΖͲ͜Ζҧ͏ ͲͪΒ΋։ൃ్தʢ1P$ʣ *1'4ͱ4XBSN *1'4 4XBSN 11ϥΠϒϥϦ MJCQQ EFWQQ

    ໊લղܾ *1/4 &/4 ϒϥ΢δϯά HBUFXBZJQGTJPYYY MPDBMIPTUC[[YYY ΠϯηϯςΟϒ ʔ 1P$Ͱ௥Ճ༧ఆ *1'4ͱ4XBSNͷओͳ૬ҧ఺
  3.   4XBSNͷετϨʔδ୯ҐͰ͋ΔɺαΠζ͕ݶఆ͞Εͨσʔλɻ
 ωοτϫʔΫ૚͸DIVOLΛೝࣝ͠ɺϑΝΠϧ΍ίϨΫγϣϯͷ֓೦ Λ࣋ͨͳ͍ɻDIVOL͸,#ɻ ߏ଄ DIVOL SFGFSFODF ίϯςϯπʹ෇༩͞ΕΔҰҙͷࣝผࢠɻ
 ඇ҉߸ԽɿIFYCZUFͰγϦΞϥΠζ͞ΕͨCZUFͷϋογϡ


    ҉߸ԽɹɿίϯςϯπΞυϨε CZUF ʴ෮߸Խݤ CZUF NBOJGFTU ϑΝΠϧίϨΫγϣϯΛهड़͢Δσʔλߏ଄ɻ σΟϨΫτϦ͝ͱΞοϓϩʔυ͢Δ࣌ʢ&Y8FCϖʔδʣʹɺ
 ϑΝΠϧ΁ͷϚοϐϯάΛఆ͍ٛͯ͠Δ
  4.   4XBSN"DDPVOUJOH1SPUPDPM શൠతͳΠϯηϯςΟϒ؅ཧ 4XBSNͷΠϯηϯςΟϒγεςϜͷίΞͱͳΔ ΠϯηϯςΟϒγεςϜʢ1P$ʣ 48"1 48&"3 4FDVSF8BZTPG&OTVSJOH"3DIJWBM $IVOL͕ͪΌΜͱอ࣋͞Ε͍ͯΔ͔Ͳ͏͔౳ɺ$IVOLͷ඼࣭Λ୲อ

    48&"3ʹอূۚΛΤεΫϩʔͯ͠ΠϯηϯςΟϒΛड͚Δ 48*/%-& 4FDVSFE8JUI*/TVSBODF%FQPTJU-JUJHBUJPOBOE&TDSPX 48&"3Ͱక݁͞ΕͨίϯτϥΫτΛ؂ࢹ͠ɺΤεΫϩʔͨ͠อূۚ Λ؅ཧ͠ɺҧ൓ऀʹ͸േଇΛ༩͑Δ
  5.   ࢀর࣮૷͸7FSTJPOY ͱΓ͋͑ͣ͞ΘͬͯΈΔ go get github.com/ethereum/go-ethereumgo cd $GOPATH/src/github.com/ethereum/go-ethereum/cmd install

    ./geth install ./swarm HPFUIFSFVNʹ࣮૷ࡁ geth account new geth --syncmode=light swarm --bzzaccount <your-account-here> ૸ΒͤͯΈΔ
  6.   ͱΓ͋͑ͣ͞ΘͬͯΈΔ $ cd /Users/keisuke/go/swarm $ ls > File_1.txt

    File_2.txt File_3.txt $ swarm --recursive up /Users/keisuke/go/swarm > c930e0ada49614c5465334923b9b8ab9a0d8ebe0d35bfaf0044dbc3ac9178f06 σΟϨΫτϦ͝ͱΞοϓϩʔυ $ swarm ls c930e0ada49614c5465334923b9b8ab9a0d8ebe0d35bfaf0044dbc3ac9178f06 > HASH CONTENT TYPE PATH 4c24fcac7c18851a5dd6a6a12fbdb7e9f7b634751d3a992c4bb15e27fe16ba45 text/plain; charset=utf-8 File_1.txt 4c24fcac7c18851a5dd6a6a12fbdb7e9f7b634751d3a992c4bb15e27fe16ba45 text/plain; charset=utf-8 File_2.txt d9403cc2dd48592d93dde0e5e296328c303206130f28f9822a0c89f35ddfe5e6 text/plain; charset=utf-8 File_3.txt Ξοϓϩʔυ͞Εͨ͜ͱΛ֬ೝ