# 连接账户与加密钱包

**URL:** https://meta.discourse.org/t/connect-account-with-crypto-wallets/209382
**Category:** Marketplace
**Created:** [2021年十一月17日 02:42 UTC](https://meta.discourse.org/t/connect-account-with-crypto-wallets/209382 "2021-11-17T02:42:24Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2021年十一月17日 09:08 UTC](https://meta.discourse.org/t/connect-account-with-crypto-wallets/209382/4 "2021-11-17T09:08:28Z")

</div>

嘿 Andy 🙂

关于这个主题，在 meta 上有一些历史记录（例如，请参阅 [https://meta.discourse.org/t/cryptocurrency-tip-system/92531/15](https://meta.discourse.org/t/cryptocurrency-tip-system/92531/15)）。

首先，有一个现有的 discourse-ethereum 插件（很可能已过时，但确实存在）

> **[GitHub - santiment/discourse-ethereum: Ethereum plugin for Discourse](https://github.com/santiment/discourse-ethereum)**
>
> Ethereum plugin for Discourse

它基本上涵盖了你列表中的 1 和 2（嗯，对“2”的解释略有不同）。它将以太坊地址与用户帐户一起存储，使用 web3.js 与客户端中的 metamask 进行交互，并使用 etherscan 获取交易详细信息。

其次，我以前为客户构建了一个 Discourse 加密登录插件（也涉及 metamask）。该客户后来转向了其他业务。不幸的是，将该解决方案开源不是一个选项（而且它在某种程度上是特定于提供商的）。顺便说一句（因为它在技术上不在你的列表中），通过 metamask 进行登录的主要障碍是能够拥有没有关联电子邮件的用户帐户。

你的下一步取决于你想在这里实现什么。如果你只想让用户连接到加密钱包，discourse-ethereum 插件可以做到。你可能只需要更新一些代码以与最新的 Discourse 兼容。这是一个相对容易完成的工作，任何熟悉 Discourse 的人都可以为你处理。

但是，如果你正在考虑创建一个更通用的插件来将加密与 Discourse 连接起来，你首先需要详细说明项目，考虑到该插件可以用于不同的应用程序，包括登录和组/类别访问，并且可能不需要像 metamask 这样的浏览器扩展。

这种调查将改变插件的设计，将更多的以太坊逻辑移到后端，从而在你想要添加更多功能时提供更大的灵活性。

---

_[View the full topic](https://meta.discourse.org/t/connect-account-with-crypto-wallets/209382)._
