‘이더리움 댑 개발’ 세미나 보조 교재 – Learn Ethereum 4

이번 함께 읽기에서는 Section 4: Production and Deployment와 Section 5: Conclusion을 정리합니다.

  • Chapter 9, Creating an Ethereum Private Chain
  • Chapter 10, Deployment of Your Smart Contract
  • Chapter 11, Building Ethereum Wallets
  • Chapter 12, Conclusion

9장. Creating an Ethereum Private Chain

자신들만의 프라이빗 체인을 구축한다는 것은 자신들만의 제네시스 블록이 있다는 것을 의미합니다. 시작이 다르면 다른 것이 되는 것입니다. geth는 제네시스 블록을 genesis.json 파일로 설정합니다.

 

본문과 같이  genesis.json 파일을 직접 작성하는 것도 좋겠지만 puppet을 사용하면 좀 더 쉽게 작성할 수 있습니다. puppet 사용에 대한 자세한 내용은 아래 링크를 참조합니다.

puppet 사용해서 genesis.json 생성하기(POW)

puppet 사용해서 genesis.json 생성하기(POA)

 

peer를 영속적으로 추가할 때는 <datadir>/get/에 static-nodes.json을 다음과 같이 작성해서 추가합니다.

  • admin.nodeInfo.enode로 구한 enode url을 배열에 추가합니다.
    • 예)
      • [
        “enode://4202d9ac5c1c7c8eea8ae56dbc881fb61230c7447d81b964345bba3841684f8449e6dce625552c3c881622a6f3dabeee596f3ff61dd212ad14cfb6f687793ef1@100.100.100.100:30398”
        ]

 

게스는 프라이빗 네트워크를 위한 bootnode 구축을 지원합니다. bootnode 구축 방법은 아래 링크를 참조합니다.

bootnode 구축 

 

잘 알려진 프라이빗 블록체인으로는 Hyperledger, Corda, Quorum이 있습니다.

Quorum is a distributed ledger technology implementation that was customized and extended from Ethereum code base, and provided alternate transaction management and contract privacy fitting the needs of financial industry.

10장. Deployment of Your Smart Contract

대부분 이전 세미나나 이번 세미나에서 다룬 내용으로 건너 뛰어도 됩니다.

11장. Building Ethereum Wallets

대부분 이전 세미나나 이번 세미나에서 다룬 내용입니다. 아래 정리한 내용에만 주의를 기울이면 될 것 같습니다.

 

Smart contract wallets

  • Smart contract wallets are unique from other types of wallets due to their smart contract functionality.
    • Additional security and recovery features are available for users. Their uniqueness lies in a few aspects. Smart contract wallets use two-factor authentication and allow wallet recovery through your social network, friends, and family. It provides fraud alerts and lockdown in case of an emergency. You have the freedom to set your own blacklists and whitelists. Like an ATM on the street, you can do rate-limited withdraws.
  • The following are two smart contract wallets in real life:

12장. Conclusion

여러가지 이야기를 하지만 특별한 인사이트를 주거나 하는 것은 없습니다. 어떤 이야기를 하는지를 짚고 넘어가는 수준에서 읽으면 될 것 같습니다.

About the Author
(주)뉴테크프라임 대표 김현남입니다. 저에 대해 좀 더 알기를 원하시는 분은 아래 링크를 참조하세요. http://www.umlcert.com/kimhn/

Leave a Reply

*