---
title: "适合 Ruby 开发者的以太坊"
description: "了解如何使用基于 Ruby 的项目和工具进行以太坊开发。"
lang: zh
incomplete: false
---

<FeaturedText>了解如何使用基于 Ruby 的项目和工具进行以太坊开发。</FeaturedText>

使用以太坊创建利用加密货币和区块链技术优势的去中心化应用 (dapp)。这些 dapp 可以是无须信任的，这意味着一旦它们被部署到以太坊，它们将始终按程序运行。它们可以控制数字资产以创建新型金融应用。它们可以是去中心化的，这意味着没有任何单一实体或个人控制它们，并且几乎不可能被审查。

## 开始使用智能合约和 Solidity 语言 {#getting-started-with-smart-contracts-and-solidity}

**迈出将 Ruby 与以太坊集成的第一步**

需要先了解更基础的入门知识？请查看 [ethereum.org/learn](/learn/) 或 [ethereum.org/developers](/developers/)。

- [区块链解释](https://kauri.io/article/d55684513211466da7f8cc03987607d5/blockchain-explained)
- [理解智能合约](https://kauri.io/article/e4f66c6079e74a4a9b532148d3158188/ethereum-101-part-5-the-smart-contract)
- [编写你的第一个智能合约](https://kauri.io/article/124b7db1d0cf4f47b414f8b13c9d66e2/remix-ide-your-first-smart-contract)
- [学习如何编译和部署 Solidity](https://kauri.io/article/973c5f54c4434bb1b0160cff8c695369/understanding-smart-contract-compilation-and-deployment)

## 初学者文章 {#beginner-articles}

- [终于弄懂了以太坊账户](https://dev.to/q9/finally-understanding-ethereum-accounts-1kpe)
- [终于使用梅塔马斯克对 Rails 用户进行了身份验证](https://dev.to/q9/finally-authenticating-rails-users-with-metamask-3fj)
- [如何使用 Ruby 连接到以太坊网络](https://www.quicknode.com/guides/web3-sdks/how-to-connect-to-the-ethereum-network-using-ruby)
- [如何在 Ruby 中生成新的以太坊地址](https://www.quicknode.com/guides/web3-sdks/how-to-generate-a-new-ethereum-address-in-ruby)

## 进阶文章 {#intermediate-articles}

- [使用 Ruby 开发区块链应用](https://www.nopio.com/blog/blockchain-app-ruby/)
- [使用连接到以太坊的 Ruby 执行智能合约](https://titanwolf.org/Network/Articles/Article?AID=87285822-9b25-49d5-ba2a-7ad95fff7ef9)

## Ruby 项目和工具 {#ruby-projects-and-tools}

### 活跃项目 {#active}

- [eth.rb](https://github.com/q9f/eth.rb) - _用于处理以太坊账户、消息和交易的 Ruby 库和 RPC 客户端_
- [keccak.rb](https://github.com/q9f/keccak.rb) - _以太坊使用的 Keccak (SHA3) 哈希_
- [siwe-ruby](https://github.com/signinwithethereum/siwe-ruby) - _以太坊登录 (Sign-In with Ethereum) 的 Ruby 实现_
- [siwe-rails](https://github.com/signinwithethereum/siwe-rails) - _添加 SIWE 本地登录路由的 Rails gem_
- [siwe-rails-examples](https://github.com/signinwithethereum/siwe-rails-examples) - _使用带有自定义控制器的 Ruby on Rails 的 SIWE 示例_
- [omniauth-siwe](https://github.com/signinwithethereum/omniauth-siwe) - _用于以太坊登录 (SIWE) 的 OmniAuth 策略_
- [omniauth-nft](https://github.com/valthon/omniauth-nft) - _通过 NFT 所有权进行身份验证的 OmniAuth 策略_
- [ethereum-on-rails](https://github.com/q9f/ethereum-on-rails) - _允许将梅塔马斯克连接到 Ruby on Rails 的 Ethereum on Rails 模板_

### 已归档 / 不再维护 {#archived--no-longer-maintained}

- [web3-eth](https://github.com/spikewilliams/vtada-ethereum) - _使用 Ruby 调用以太坊节点的 RPC 方法_
- [ethereum_tree](https://github.com/longhoangwkm/ethereum_tree) - _根据 BIP32 标准从分层确定性钱包生成 ETH 地址的 Ruby 库_
- [etherlite](https://github.com/budacom/etherlite) - _Ruby on Rails 的以太坊集成_
- [ethereum.rb](https://github.com/EthWorks/ethereum.rb) - _使用 JSON-RPC 接口发送交易、创建和与合约交互的 Ruby 以太坊客户端，以及用于与以太坊节点交互的实用工具包_
- [omniauth-ethereum.rb](https://github.com/q9f/omniauth-ethereum.rb) - _为 OmniAuth 实现以太坊提供商策略_

寻找更多资源？请查看[我们的开发者主页](/developers/)。

## Ruby 社区贡献者 {#ruby-community-contributors}

[以太坊 Ruby 电报群](https://t.me/ruby_eth)拥有一个快速增长的社区，是讨论上述任何项目及相关主题的专门资源。