16

Could a chrome extension be made that maintains a bitcoin wallet while also making it easy for web stores to integrate a one-click purchase experience.

Suppose a button on a webpage is clicked. Is it possible for that to trigger a function call to the chrome extension to send bitcoins?

Obviously letting webpages unlimited access to chrome extensions would never have been designed. But is there some way to make this work securely?

4

4 に答える 4

6

Chrome extensions can insert arbitrary code into web pages (content scripts).

Content scripts are JavaScript files that run in the context of web pages. By using the standard Document Object Model (DOM), they can read details of the web pages the browser visits, or make changes to them.

This code can communicate with the original web page via the DOM and with the rest of the extension via message passing.

In theory, this should suffice. But make it secure, please.

于 2011-12-27T08:14:45.693 に答える
4

Multibitは外部アプリケーション ソリューションを提供します

Chrome (または他のブラウザ) で「bitcoin:」プロトコル URI をクリックすると、URI が MultiBit (v0.3+) に転送され、必要に応じてアプリケーションが起動します。このアプローチにより、ブラウザー内で秘密鍵を保持する (場合によっては共有する) 必要がなくなります。

于 2012-01-04T13:22:30.447 に答える
3

Chromeに1つのセキュリティホールがあると、どのWebサイトでもウォレットが空になる可能性があるため、これは非常に危険です。

まず、支払いはウォレットのパスワードで確認する必要があります。ただし、そのパスワードはChrome自体の内部に入力されているため、攻撃者がそのパスワードを読み取る可能性があります。

実際、解決すべきセキュリティの問題が非常に多いため、ビットコインクライアントにその仕事を任せたほうがよいと思います。

何をすべきかは、ソフトウェアがビットコインクライアントにトランザクションを要求する方法です。頭に浮かぶ最初のアイデアは、DBusを使用することです。

そうすれば、Chrome拡張機能はDBusメソッドを呼び出すボタンでビットコインアドレスを変換するだけで済みます。

于 2011-12-28T20:15:45.170 に答える
0

blockchain.infoビットコイン ウォレットは、navigator.registerProtocolHandler とビットコイン URI の. 残念ながら、現時点では firefox でしか動作しません。

于 2012-04-12T20:50:27.627 に答える