[wordpress插件] Bitcoin Address比特币地址

wordpress 插件 文章 2020-03-05 14:20 822 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Note: This plugin requires PHP 5.3 or newer.

注意:此插件需要PHP 5.3或更高版本。

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.

使用此插件,您可以在博客文章或页面中输入一个短代码-[bitcoin_address],该代码显示一个按钮,用户可以使用该按钮获取新的比特币地址。

Address requests are logged and you can browse that log from the WordPress admin area.

地址请求已记录,您可以从WordPress管理区域浏览该日志。

The plugin works by generating deterministic addresses using an Electrum Master Public Key.

该插件通过使用Electrum主公钥生成确定性地址来工作。

You need to create a new Electrum wallet and then paste its Master Public Key into the plugin’s settings page.

您需要创建一个新的Electrum钱包,然后将其主公钥粘贴到插件的设置页面中。

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).

您将需要一个电子主公钥,也称为扩展公钥(xpub)。

The plugin only works with Electrum MPKs but does support both Electrum version 1.x and 2.x MPKs.

该插件仅适用于Electrum MPK,但同时支持Electrum版本1.x和2.x MPK。

It only supports standard wallets i.e. it does not support multisig wallets or 2FA wallets.

它仅支持标准钱包,即不支持多签名钱包或2FA钱包。

    • 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.

    • 建议您将钱包的间隔限制从默认值20增加。间隔限制是Electrum跟踪的未使用地址的数量。

      To increase the gap limit open your wallet and go to the console tab.

      要增加缺口限额,请打开您的钱包,然后进入控制台标签。

      Type in wallet.change_gap_limit(50).

      输入 wallet.change_gap_limit(50)

      Close Electrum and reopen your wallet to see new addresses listed on the receive tab.

    • 关闭Electrum,然后重新打开钱包,以查看“接收”选项卡上列出的新地址。

    • TIP: To open your new wallet in future run Electrum and select File menu > Open.

    • 提示:要在以后运行Electrum来打开新钱包,然后选择“文件”菜单>“打开”。

      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.

    • 提示:您可以使用-w开关(即 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.

    要访问插件配置页面,您需要登录WordPress管理页面。

    Then click on Settings > Bitcoin Address from the left sidebar.

    然后从左侧边栏中单击设置>比特币地址。

    There you can paste the Electrum Master Public Key.

    您可以在其中粘贴Electrum主公钥。

    Shortcode

    简码

    The plugin shortcode is [bitcoin_address].

    插件的短代码为[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.

      • QR码:您可以启用或禁用包含地址的QR码显示。

        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.

        例如:[bitcoin_address type ='link'qr_code ='enabled']将显示一个地址作为链接,在该链接上方将是地址QR码。

        By default QR code display is disabled.

      • 默认情况下,QR码显示处于禁用状态。

      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.

      将维护一个地址日志,其中列出了分发地址的时间和日期,请求该地址的用户的IP地址以及地址本身。

      You can see the address log in WordPress admin > Settings > Bitcoin Address Log

      您可以在WordPress管理员>设置>比特币地址日志中查看地址日志

      Credits

      积分

      The plugin makes use of the following opensource scripts:

      该插件使用以下开源脚本:

安装步骤

    1. Unzip the package, and upload bitcoin-address to the /wp-content/plugins/

    2. 解压缩该软件包,然后将 bitcoin-address 上传到 / wp-content / plugins /

      directory

    3. 目录

    4. Activate the plugin through the ‘Plugins’ menu in WordPress.
    5. 通过WordPress中的“插件”菜单激活插件。

    6. Visit Settings > Bitcoin Address and enter your Electrum Master Public Key there.
    7. 访问“设置”>“比特币地址”,然后在此处输入您的Electrum主公钥。

下载地址
https://downloads.wordpress.org/plugin/bitcoin-address.zip
-EOF-

AI助手支持GPT4.0