{"id":3197,"date":"2020-05-12T08:01:35","date_gmt":"2020-05-12T08:01:35","guid":{"rendered":"http:\/\/blog.mathwallet.xyz\/?p=3197"},"modified":"2020-05-13T17:20:25","modified_gmt":"2020-05-13T17:20:25","slug":"%e5%a6%82%e4%bd%95%e9%83%a8%e7%bd%b2eth%e6%b5%8b%e8%af%95%e7%bd%91","status":"publish","type":"post","link":"https:\/\/blog.mathwallet.xyz\/?p=3197","title":{"rendered":"\u5982\u4f55\u90e8\u7f72 ETH 2.0 \u6d4b\u8bd5\u7f51"},"content":{"rendered":"<div>The Topaz Testnet (Ethereum Serenity Phase 0 Test Network, <a href=\"https:\/\/prylabs.net\/\">https:\/\/prylabs.net\/<\/a>)<\/div>\n<div><\/div>\n<div>Prysm is our Ethereum 2.0 client and it comes in two components.<\/div>\n<div><strong>Beacon chain client<\/strong><span data-en-paragraph=\"true\" data-en-has-metadata=\"true\">\u00a0<\/span><span data-en-paragraph=\"true\" data-en-has-metadata=\"true\">&#8211; Responsible for managing the state of the beacon chain, validator shuffling, and more.<\/span><\/div>\n<div><strong>Validator client<\/strong><span data-en-paragraph=\"true\" data-en-has-metadata=\"true\">\u00a0<\/span><span data-en-paragraph=\"true\" data-en-has-metadata=\"true\">&#8211; Responsible for producing new blocks and attestations in the beacon chain and shard chains.<\/span><\/div>\n<div><\/div>\n<div>\u5b89\u88c5\u53c2\u8003\u94fe\u63a5<\/div>\n<div><a href=\"https:\/\/docs.prylabs.network\/docs\/install\/linux\/\">https:\/\/docs.prylabs.network\/docs\/install\/linux\/<\/a><\/div>\n<div><a href=\"https:\/\/docs.prylabs.network\/docs\/install\/lin\/activating-a-validator\/\">https:\/\/docs.prylabs.network\/docs\/install\/lin\/activating-a-validator\/<\/a><\/div>\n<div><\/div>\n<div>\u63d0\u4ea4validator\u00a0deposit\u94fe\u63a5<\/div>\n<div><a href=\"https:\/\/prylabs.network\/participate\">https:\/\/prylabs.network\/participate<\/a><\/div>\n<div><\/div>\n<div>\u6b65\u9aa4\uff1a<\/div>\n<div>Using the Prysm installation script<\/div>\n<div>\u4e0b\u8f7dprysm.sh\u811a\u672c<\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/1png.png\" width=\"602\" height=\"62\" \/><\/div>\n<div><\/div>\n<div>\u901a\u8fc7\u811a\u672c\u542f\u52a8<span data-en-paragraph=\"true\" data-en-has-metadata=\"true\">Beacon chain client<\/span><\/div>\n<div>The\u00a0prysm.sh\u00a0script will now download and initialise the beacon chain with the specified parameters.\u00a0At this point, the beacon chain data will begin syncronising up to the latest head block\u3002<\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E4%B8%8B%E8%BD%BD.png\" width=\"599\" height=\"237\" \/><\/div>\n<div><\/div>\n<div>\u540c\u6b65\u5b8c\u6210\u4e4b\u540e\u7684\u65e5\u5fd7\u8f93\u51fa<\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E4%B8%8B%E8%BD%BD%2022.png\" width=\"599\" height=\"275\" \/><\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/3.png\" width=\"301\" height=\"504\" \/><\/div>\n<div>\u83b7\u53d6\u6d4b\u8bd5\u5e01<\/div>\n<div><a href=\"https:\/\/prylabs.network\/participate\">https:\/\/prylabs.network\/participate<\/a><\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E6%B5%8B%E8%AF%95.png\" width=\"599\" height=\"167\" \/><\/div>\n<div><\/div>\n<div><\/div>\n<div>Generating a validator keypair<\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E6%B5%8B%E8%AF%951.png\" width=\"602\" height=\"261\" \/><\/div>\n<div><\/div>\n<div>\u5c06\u4e0a\u4e00\u6b65.\/prysm.sh validator accounts create &#8211;keystore-path=$HOME\/prysm\/validator\/\u547d\u4ee4\u8f93\u51fa\u7684\u201cRaw Transaction Data\u201d\u62f7\u8d1d\u5230\u201cYour validator deposit data\u201d<\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E6%B5%8B%E8%AF%952.png\" width=\"599\" height=\"205\" \/><\/div>\n<div><\/div>\n<div><\/div>\n<div>Securing the validator key for use with prysm.sh<\/div>\n<div>\u6267\u884c\u5982\u4e0b\u547d\u4ee4<\/div>\n<div>cat &gt;&gt; $HOME\/prysm\/validator\/keystore.json &lt;&lt; EOF { &#8220;path&#8221;: &#8220;$HOME\/prysm\/validator&#8221;, &#8220;passphrase&#8221;: &#8220;changeme&#8221; } EOF<\/div>\n<div><\/div>\n<div><\/div>\n<div>\u901a\u8fc7prysm.sh\u542f\u52a8validator client<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E5%90%AF%E5%8A%A8.png\" width=\"598\" height=\"175\" \/><\/div>\n<div><\/div>\n<div><\/div>\n<div>Submitting the deposit contract\u00a0\u5e76\u7b7e\u540d<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E7%AD%BE%E5%90%8D.png\" width=\"601\" height=\"123\" \/><\/div>\n<div><\/div>\n<div><img loading=\"lazy\" class=\"\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/5%E6%9C%88\/ETH2.0\/%E7%AD%BE%E5%90%8D2.png\" width=\"301\" height=\"508\" \/><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Topaz Testnet (Ethereum Serenity Phase 0 Test Network, https:\/\/prylabs.net\/) Prysm is our Ethereum 2.0 client and it comes in two components. Beacon chain client\u00a0&#8211; Responsible for managing the state of the beacon chain, validator shuffling, and more. Validator client\u00a0&#8211; Responsible for producing new blocks and attestations in the beacon chain and shard chains. \u5b89\u88c5\u53c2\u8003\u94fe\u63a5 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[51,101],"_links":{"self":[{"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/3197"}],"collection":[{"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3197"}],"version-history":[{"count":3,"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/3197\/revisions"}],"predecessor-version":[{"id":3200,"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/3197\/revisions\/3200"}],"wp:attachment":[{"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mathwallet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}