简体   繁体   English

如何在C#中编写以太坊智能合约

[英]How do I write smart contracts of ethereum in C#

I am a C# developer but want to explore blockchain especially ethereum. 我是C#开发人员,但想探索区块链,尤其是以太坊。

Is it possible to write ethereum smart contracts in C# 是否可以在C#中编写以太坊智能合约

How would I get started on it? 我将如何开始呢? I also explored pluralsight but nothing has been suggested on it. 我还探讨了多元观点,但没有提出任何建议。 Any pointers are helpful 任何指针都是有帮助的

According to this ethereum.stackexchange.com answer, there are only three official languages to write smart contracts in. Solidity, Serpent and LLL(Lisp Like Language) 根据这个ethereum.stackexchange.com的答案,只有三种正式语言可以编写智能合约。Solidity,Serpent和LLL(Lisp Like Language)

However, here is a an open source project to allow developers to build smart contrats in C#, EthSharp 但是,这是一个开源项目,允许开发人员在C#, EthSharp中构建智能约束。

\n

And here is a Medium article discussing EthSharp, Ethereum Smart Contracts in C# - Introducing EthSharp 这是一篇讨论EthSharp的中型文章 ,C#中的以太坊智能合约-EthSharp简介

I went back and noticed that this project is deprecated 我回去发现该项目已被弃用

Here is a .NET library to interact with Ethereum blockchain, however I do not believe you can write smart contracts in C# using this library, Nethereum 这是一个与以太坊区块链进行交互的.NET库,但是我不相信您可以使用此库Nethereum在C#中编写智能合约

Otherwise, Solidity seems to be the most popular language to write smart contracts in. 否则,Solidity似乎是编写智能合约的最流行语言。

If you are looking for Smart contracts in C#, Stratis is doing a great job of that so far. 如果您正在寻找C#中的智能合约,那么Stratis到目前为止可以做得很好。 I have written a couple and tested on their test net. 我已经写了一对,并在他们的测试网上进行了测试。

They have documentation for their first example, an auction smart contract: http://stratis-smart-contracts.readthedocs.io/en/latest/ 他们有第一个示例(拍卖智能合约)的文档: http : //stratis-smart-contracts.readthedocs.io/en/latest/

And the Stratis Development foundation has some walk-throughs to help get you going: http://stratisdevelopmentfoundation.com/create_sc/ Stratis Development基金会提供了一些演练来帮助您入门: http : //stratisdevelopmentfoundation.com/create_sc/

Their smart contract dev sites ethereum infrastructure often. 他们的智能合约开发人员经常在以太坊基础设施上进行站点建设。 It could be what you are looking for. 这可能是您要寻找的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM