Blockchain/smart contract/decentralized computing tutorials or open source projects suitable for an mid-level Go dev?

polaris · · 1211 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;d like to migrate into this field from doing relatively simple Go backend dev. I&#39;m aware of the official go-ethereum smart contract tutorial but I&#39;d like to find more material with which to get my feet wet or just a project that could use help with some unit tests, etc. Thanks!</p> <p>EDIT: Cool, typo in the title.</p> <hr/>**评论:**<br/><br/>GageCo: <pre><p>Actually this is something I am working on as well. How I am going to go about this is first create a basic contract, something that just moves tokens around, then see if I can start interfacing with it via a geth node. Im just figuring out what I dont know on the way and doing research on it. </p> <p>Ive read through the geth documentation and am currently downloading the testnet so im not paying anything. I dont now of any specific resources but I am wishing you all the luck!</p></pre>manateemilitia: <pre><p>Good plan. Where did you find info on downloading and using the testnet with geth?</p></pre>GageCo: <pre><p>My tentative plan is to use the <a href="https://golang.org/pkg/os/exec/" rel="nofollow">exec library</a> to run the commands and accept responses and go from there. Not sure if it is going to work yet, havent tried it. </p> <p>Dont see why it wouldnt, but that rarely means anything in coding</p></pre>manateemilitia: <pre><p>Gotcha, sounds solid. I&#39;ve used exec a bunch for a bunch of XML garbage in the past it &#34;just works.&#34;</p></pre>GageCo: <pre><p>Good to hear, yeah I havent used it yet but I figured that was a decent way to do it.</p> <p>On another note have you ever done anything with Go REST webservers? Im really struggling right now.</p></pre>manateemilitia: <pre><p>Sure have. There&#39;s a lot that can be done with the native net/http package but I&#39;ve been using <a href="https://goa.design/" rel="nofollow">goa</a> a lot and I really like it. You use their DSL to define your inputs and outputs and goa generates interfaces/bootstrap logic and stubs out handlers.</p> <p>It&#39;s marketed as a microservice architecture but I use it at work for both microservices and our web API</p></pre>GageCo: <pre><p>Sweet ill look into it, Im just setting it up for a personal project but that could be just what I need</p></pre>wrywolfcalledel: <pre><p>Wow! looks really cool. Seems like it allows you to generate an API from a swagger spec ? Also , how does it measure up to a bare-bones thing like echo ?</p></pre>manateemilitia: <pre><p>Basically it handles almost everything but your business logic. It seems small but being able to automatically generate logic for http response codes (bad payloads, etc) is a huge offloading of intellectual overhead. Plus the default project structure is pretty great.</p> <p>The generated code may be overkill for sure, if you&#39;re handling one request with one type of payload I&#39;d definitely use echo or just native net/http.</p></pre>metamatic: <pre><p><a href="https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html" rel="nofollow">IBM HyperLedger Fabric tutorial</a>? The <a href="https://github.com/hyperledger/fabric" rel="nofollow">core HyperLedger Fabric</a> is in Go.</p></pre>joshrickmar: <pre><p>Come check out Decred (<a href="https://decred.org/" rel="nofollow">https://decred.org/</a>) and the btcsuite project (<a href="https://github.com/btcsuite/" rel="nofollow">https://github.com/btcsuite/</a>) on which it is based.</p> <p>Disclaimer: I work on both.</p></pre>manateemilitia: <pre><p>Cool, I like the emphasis on participation.</p></pre>aaayuop: <pre><p>Also interested in this. Only just started with Go - happy to see its seemingly large presence in the development of blockchain-related applications. </p> <p>So is the general idea that you build a smart contract with Solidity and then use go-ethereum to build the DApp that uses the smart contract? </p> <p>On a side note, while I was looking into some of this stuff I tried using Mist but had issues downloading the full Ethereum blockchain. Is this even necessary to start messing about with testnet? </p></pre>manateemilitia: <pre><blockquote> <p>you build a smart contract with Solidity and then use go-ethereum to build the DApp that uses the smart contract?</p> </blockquote> <p>As far as I can tell, yeah. Contract is in Solidity, then you use a generator for some strongly-typed Go code. Haven&#39;t dug into it to see if you can actually create a new contract programatically.</p></pre>greeedy: <pre><p>the mist ethereum wallet is in go</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1211 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传