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

暗号通貨とか勉強会#4

Fcb660f60ef4cfa7b38dd846913ab6c2?s=47 S.Kamon
January 10, 2017

 暗号通貨とか勉強会#4

コマンドラインで色んな通貨を送金してみよう
http://cameong.hatenablog.com/entry/2017/01/11/161825

Fcb660f60ef4cfa7b38dd846913ab6c2?s=128

S.Kamon

January 10, 2017
Tweet

Transcript

  1. ϏοτίΠϯͱ͔ษڧձ • ίϚϯυϥΠϯͰ৭Μͳ҉߸௨՟Λૹۚͯ͠ΈΑ͏ 1 @cameong

  2. ໨࣍ • ࣗݾ঺հ • ֤௨՟ͷಛ௃Λ؆୯ʹઆ໌ • Bitcoin : SPV node

    • NEM : Full node • Zcash : Full node • ίϚϯυϥΠϯͰ৭Μͳ҉߸௨՟Λૹۚͯ͠ΈΑ͏ 2 @cameong
  3. ࣗݾ঺հ גࣜձࣾΠʔαηΩϡϦςΟ ୅දऔక໾ Ճ໳তฏ TW: @cameong - ηΩϡϦςΟϞχλϦϯάπʔϧ metsuke.io ͷ։ൃӡ༻

    - NEM εʔύʔϊʔυͷߏங ( ࠃ಺γΣΞ໿20%, ੈքγΣΞ໿5%) - bitdonation.org ͷӡ༻ - coincheck api ͷpython ύοέʔδͱ͔ॻ͍ͯ·͢ 3 @cameong
  4. ༻ޠ • $abc : ม਺ abc • Full node: ϑϧϊʔυ.

    શτϥϯβΫγϣϯΛอ༗͢Δϊʔυ. • SPV node : ͍ΘΏΔϥΠτ΢ΥϨοτ. τϥϯβΫγϣϯΛࣗ਎ Ͱ͸อ༗ͤͣ, ૹۚʹಛԽͨ͠ϊʔυ ஫ҙࣄ߲ • ݁ߏ, python ʹภͬͯ·͢ 4 @cameong
  5. ֤௨՟ͷಛ௃ 5 @cameong

  6. Bitcoin • ಛ௃ • PoW ( SHA-256 ) • ϒϩοΫੜ੒࣌ؒ:

    ໿10෼ • ୯Ґ͸ʮBTCʯ • ࠷খ୯Ґ͸10E-8 BTC 1 1 https:/ /upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bitcoin.svg/240px- Bitcoin.svg.png 6 @cameong
  7. NEM • ಛ௃ • PoI ( EigenTrust++ ) • ϒϩοΫੜ੒࣌ؒ:

    ໿1෼ • ୯Ґ͸ʮXEMʯ • Bitcoin2.0 (Ϣʔβʔಠࣗ௨՟ൃߦ(Namespace/ Mosaic)/ ϝοηʔδૹ৴) 7 @cameong
  8. Zcash • ಛ௃ - PoW (Equihash) (ৄ͘͠͸ʲ҉߸௨՟ ಡॻձ#4ʳ׬શಗ໊ίΠϯZcashͰ࠾ ༻͞ΕͨPoWΞϧΰϦζϜ ʮEquihashʯΛࢀর͍ͩ͘͞

    2) - ϒϩοΫੜ੒࣌ؒ: 150ඵ - ࠾۷: ϚΠχϯά - ୯Ґ͸ʮZECʯ - ಗ໊ੑ͕ߴ͍ɻθϩ஌ࣝূ໌ɻ 2 https:/ /cryptocurrency.connpass.com/event/43804/ [^3]:https:/ /z.cash/press.html 8 @cameong
  9. ૹۚͯ͠ΈΑ͏ 9 @cameong

  10. Bitcoin 10 @cameong

  11. Bitcoin Λૹۚ from : 18ef4syYvGd2K7MeYvbJ7LZ4x3kk5x4ufb to : 15MMEVF6DM6RDdyaYeybEb9iKcv7uJwb36 volume: 10000

    satoshi ΤΫεϓϩʔϥ: https:/ /goo.gl/H2uFDb tool: pybitcointools5 ΤΫεϓϩʔϥ͕ݟΕͨΒɺdemoʹҠΓ·͢ 5 https:/ /github.com/vbuterin/pybitcointools 11 @cameong
  12. Demo # ૹ৴༻ # ൿີ伴(priv)͔ΒbitcoinΞυϨε(addr),औҾཤྺ(h)Λੜ੒ : # ड৴༻ # ൿີ伴(priv)͔ΒbitcoinΞυϨε(addr)Λੜ੒

    : # output ࡞੒. # ૬ख(addr2)ʹ10000, ࣗ෼ࣗ਎ʹ39000 ΛૹΔ. ࢒Γ͸͓௼Γ : # ॺ໊͢Δutxo ͷநग़ : # sign : # broadcast tx : 12 @cameong
  13. Bitcoin ؔ࿈πʔϧ - ΤΫεϓϩʔϥ - http://blockr.io/ - https://live.blockcypher.com/ - https://www.blocktrail.com/BTC

    - τϥϯβΫγϣϯΛdecode ͯ͠Τϥʔղੳ - https://blockchain.info/decode-tx (invalid ͩͱղੳ݁ՌΛฦ͞ͳ͍) - https://developer.indiesquare.me (invalid Ͱ΋݁ՌΛฦ͢) 13 @cameong
  14. Bitcoin ύοέʔδ, Ϟδϡʔϧ • python • https:/ /github.com/petertodd/python-bitcoinlib • https:/

    /github.com/richardkiss/pycoin • https:/ /github.com/jgarzik/python-bitcoinrpc • node • https:/ /bitcoinjs.org/ 14 @cameong
  15. NEM 15 @cameong

  16. XEM Λૹۚ from : NB6X72-TE773V-QBAFL4-64VIJQ-EUWUIC-UMGYJS-GCRL to : NCSR2E-CT3GVG-RVGKNP-OQJVD2-HMVOJM-ZB7RXX-VMUC volume: 100

    xem ΤΫεϓϩʔϥ: https:/ /goo.gl/kEl6yP tool: nem-py • ެࣜπʔϧ͕ͩɺςετ༻ͱͷ͜ͱ • ΤΫεϓϩʔϥ͕ݟΕͨΒɺdemoʹҠΓ·͢ 16 @cameong
  17. # πʔϧͷΠϯετʔϧ > pip install nem-py # NCSR2E~~ ʹ 0.01

    xem ૹۚ͢Δ # ૹۚͷͨΊͷσʔλ࡞੒ # - NEM epoch time # - ख਺ྉ # - ϝοηʔδ(΋͠ඞཁͳΒ) # - σουϥΠϯ : # ॺ໊ : # ϒϩʔυΩϟετ : 17 @cameong
  18. NEM ؔ࿈πʔϧ • ΤΫεϓϩʔϥ • http:/ /chain.nem.ninja/ • nano wallet

    • https:/ /github.com/NemProject/NanoWallet 18 @cameong
  19. NEM ύοέʔδ, Ϟδϡʔϧ • python • https:/ /github.com/NemProject/nem-py ( ෆे෼)

    • node • https:/ /www.npmjs.com/package/nem-api (ෆे෼) ࢿྉ • http:/ /qiita.com/him0net/items/9052b59db7c16c3c5540 19 @cameong
  20. Zcash 20 @cameong

  21. Zcash Λૹۚ // zΞυϨεͷੜ੒ zcash-cli z_getnewaddress // อ༗͍ͯ͠ΔzΞυϨεͷҰཡ֬ೝ zcash-cli z_listaddresses

    // zcash-cli z_listreceivedbyaddress "$address" 21 @cameong
  22. Zcash ͷૹۚ • Poloniex ͔ΒtΞυϨεʹૹۚͨ͠Βɺself goxͨ͠(ͬΆ͍). • υΩϡϝϯτʹ͸zΞυϨεͷૹडۚʹ͍ͭͯͷهࡌ͸͋Δ͕ɺ tΞυϨε͸΄ͱΜͲͳ͍. •

    tΞυϨε͸bitcoinͱಉ͡Α͏ʹૢ࡞Ͱ͖Δɺͱͷهड़͕͋Δ ͷͰ bitcoinྗΛ্͔͛ͯΒ࠶νϟϨϯδ͍ͨ͠. 22 @cameong
  23. Zcash ؔ࿈πʔϧ • ΤΫεϓϩʔϥ • https:/ /explorer.zcha.in/ 23 @cameong

  24. Zcash ύοέʔδ, Ϟδϡʔϧ • python • Έ͋ͨΒͳ͍ 24 @cameong

  25. ·ͱΊ - Bitcoin - ௐ΂Ε͹৘ใ͕ΘΜ͔͞ग़ͯ͘Δ. SPV ͷ৘ใ΋๛෋. - ֤ݴޠͷϞδϡʔϧ, ύοέʔδ͕๛෋ʹ͋Δ.

    - NEM ެࣜͷπʔϧҎ֎ɺ৘ใ͕ݹ͍. - ֤ݴޠͷϞδϡʔϧ, ύοέʔδ͕ຆͲͳ͍. - Zcash - ͳΜͰ΋͍͍͔Βɺ৘ใΛ͍ͩ͘͞. 25 @cameong
  26. ·ͱΊ2 • શ෦ • ։ൃऀɾ຋༁ऀͳͲίϯτϦϏϡʔλ͕଍Γ͍ͯͳ͍ݱঢ়. • ͱ͸͍͑ɺίΞ։ൃ͸ϋʔυϧߴ͍... • पล޷͖ͳݴޠͷϞδϡʔϧ,ύοέʔδ࡞੒͔ΒͰ΋ɺͳʹ ͔࡞ͬͯΈΑ͏!

    26 @cameong
  27. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ 27 @cameong