前言介紹
- 這款 WordPress 外掛「Bitcoin Address」是 2014-12-16 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2016-10-08,距離現在已有 3130 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.9.2 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
bitcoin | electrum | bitcoin address |
內容簡介
注意:本外掛需要 PHP 5.3 或以上的版本。
重複使用比特幣地址有損您的隱私。此外掛讓您可在博客文章或頁面中輸入一個簡碼 – [bitcoin_address] – 以顯示一個按鈕,供使用者點擊以取得新的比特幣地址。地址請求會被記錄,您可在 WordPress 的管理區中瀏覽該記錄。
此外掛的運作是透過使用 Electrum 主公鑰生成可預測的地址。您需要建立一個新的 Electrum 錢包,然後貼上其主公鑰到外掛的設定頁面。它便會從該錢包連續生成地址。
建立 Electrum 錢包
您需要一個 Electrum 主公鑰,也稱為擴展公鑰 (xpub)。此外掛僅支援 Electrum MPKs,但支援 Electrum 1.x 與 2.x 版本。它僅支援標準錢包,即不支援多重簽名錢包或雙重身份驗證錢包。
執行 Electrum。它將開啟您的預設錢包。
選擇檔案菜單 > 新建/還原,以建立新的錢包。
輸入新錢包檔案名稱。
按照螢幕提示建立新的錢包。
前往錢包菜單 > 主公鑰,以查看新錢包的主公鑰。
建議您將您的錢包差距限制值從預設的 20 加大。差距限制值是 Electrum 追蹤的未使用地址數量。若要增加差距限制值,請開啟您的錢包,前往控制台標籤,輸入 wallet.change_gap_limit(50)。關閉 Electrum,然後重新開啟您的錢包,以查看接收頁籤上新增的地址。
提示:要在未來開啟您的新錢包,請執行 Electrum,然後選擇檔案菜單 > 開啟。然後導覽至您的錢包檔案並選擇它即可開啟它。
提示:您可以使用 -w 開關來建立指向新錢包的捷徑,例如:electrum -w c:\path\to\wallet_file。若要查看您的錢包檔案位址,請參閱此 FAQ。
設定外掛
要進入外掛設定頁面,您需要登入 WordPress 管理區。然後從左側工具列點擊「設定」 > 「Bitcoin Address」。在那裡您可以貼上 Electrum 主公鑰。
簡碼
此外掛的簡碼是 [bitcoin_address]。可用選項包括:
顯示類型:您可以指定「欄位」或「連結」類型。欄位類型會顯示包含地址的文本欄。連結類型會顯示一個比特幣地址連結。例如,[bitcoin_address type=’field’] 將顯示一個文本欄。預設為欄位型別。
QR 碼:您可以啟用或停用顯示包含地址的 QR 碼。例如,[bitcoin_address type=’link’ qr_code=’enabled’] 會顯示地址作為連結,該連結上方是地址的 QR 碼。預設情況下關閉 QR 碼顯示。
地址記錄
維護一個地址記錄,列出地址分發的時間和日期、請求該地址的使用者的 IP 位址和該地址本身。您可以在 WordPress 管理區中查看地址記錄,步驟如下:「設定」 > 「Bitcoin Address Log」。
學分
此外掛使用以下開源腳本:
從 BitcoinWay 的 bitcoin payments for woocommerce plugin 中借用的代碼,包括PHPECC的部分部分。
原文外掛簡介
Note: This plugin requires PHP 5.3 or newer.
Reusing bitcoin addresses is bad for your privacy. With this plugin you can enter a shortcode – [bitcoin_address] – in your blog posts or pages that displays a button which users can use to get a fresh bitcoin address. Address requests are logged and you can browse that log from the WordPress admin area.
The plugin works by generating deterministic addresses using an Electrum Master Public Key. You need to create a new Electrum wallet and then paste its Master Public Key into the plugin’s settings page. It will then generate addresses from that wallet sequentially.
Creating Electrum Wallet
You will need an Electrum Master Public Key which is also known as an extended public key (xpub). The plugin only works with Electrum MPKs but does support both Electrum version 1.x and 2.x MPKs. It only supports standard wallets i.e. it does not support multisig wallets or 2FA wallets.
Run Electrum. It will open your default wallet.
To create a new wallet select File menu > New/Restore.
Enter a name for your new wallet file.
Follow the on-screen prompts to create a new wallet.
To see the Master Public Key of your new wallet go to Wallet menu > Master Public Keys.
It is recommended that you increase the gap limit of your wallet from the default 20. The gap limit is the number of unused addresses Electrum keeps track of. To increase the gap limit open your wallet and go to the console tab. Type in wallet.change_gap_limit(50). Close Electrum and reopen your wallet to see new addresses listed on the receive tab.
TIP: To open your new wallet in future run Electrum and select File menu > Open. Then navigate to your wallet file and select it to open it.
TIP: You can create a shortcut to your new wallet using the -w switch i.e. electrum -w c:\path\to\wallet_file. To learn the location of your wallet file see this FAQ.
Configuring plugin
To access the plugin configuration page you need to login to the WordPress admin page. Then click on Settings > Bitcoin Address from the left sidebar. There you can paste the Electrum Master Public Key.
Shortcode
The plugin shortcode is [bitcoin_address]. The following options exist:
Display type: You can specify a type of “field” or “link”. Field type will display a text field containing the address. Link will display a bitcoin address link. For example: [bitcoin address type=’field’] will display a text field. The default type is field.
QR Code: You can enable or disable the display of a QR Code containing the address. Ex: [bitcoin_address type=’link’ qr_code=’enabled’] will display an address as a link and above that link will be the address QR code. By default QR code display is disabled.
Address Log
An address log is maintained that lists the time and date an address was handed out, the ip address of the user who requested it, and the address itself. You can see the address log in WordPress admin > Settings > Bitcoin Address Log
Credits
The plugin makes use of the following opensource scripts:
Code borrowed from the bitcoin payments for woocommerce plugin by BitcoinWay including parts of PHP-ECC by Matyas Danter.
PHP QR Code encoder
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Bitcoin Address」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.7.7 | 0.7.8 | 0.8.0 | 0.8.1 |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。