简体   繁体   English

MetaMask 插件如何工作?

[英]How the MetaMask plugin works?

Can someone explain or drop a link on how the MetaMask plugin works?有人可以解释或删除有关 MetaMask 插件如何工作的链接吗? Interesting to create something verbose, but a little misunderstood, this plugin is not server-specific (decentralized).创建一些冗长的东西很有趣,但有点被误解,这个插件不是特定于服务器的(分散的)。 But if we want to restore our wallet and enter a secret phrase, then where does the request go?但是如果我们想恢复我们的钱包并输入一个秘密短语,那么请求去哪里了? How does MetaMask know that our secret phrase actually exists and is correct? MetaMask 如何知道我们的秘密短语确实存在并且是正确的? Who does MetaMask eventually communicate with and where does MetaMask receive information about this? MetaMask 最终与谁通信以及 MetaMask 从哪里接收有关此信息的信息?

MetaMask provides an interface with the Ethereum blockchain. MetaMask 提供了与以太坊区块链的接口。 It allows efficient account management and connectivity to the Ethereum blockchain without running the Ethereum node software locally.它允许高效的帐户管理和与以太坊区块链的连接,而无需在本地运行以太坊节点软件。

MetaMask allows connectivity to the Ethereum blockchain through the infrastructure available at Infura ( https://infura.io ). MetaMask 允许通过 Infura ( https://infura.io ) 提供的基础设施连接到以太坊区块链。 This allows users to interact with the blockchain without having to host any node locally.这允许用户与区块链交互,而无需在本地托管任何节点。

Metamask injects web3 to the window object and browsers communicate to window.web3 and it communicates with infura. Metamask内喷射web3到窗口对象和浏览器通信,以window.web3并将其与infura连通。

在此处输入图片说明

Infura is a public-hosted node. Infura 是一个公共托管节点。 The drawback of the public hosted node is that developer must trust it, where there might be some security concerns.公共托管节点的缺点是开发人员必须信任它,这可能存在一些安全问题。 For development and testing, however, it is fast and efficient.然而,对于开发和测试来说,它是快速和高效的。

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

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