比特币初创公司 21 Inc 遵循 FreeBSD 协议开源了一款可机器支付的 Web 服务构建命令行工具 two1,可以实现机器与机器之间的比特币支付。

21 Inc 公司认为,在比特币出现之前,根本没有办法实现机器与机器之间进行支付的 Web 服务,可机器支付 Web 服务也许是继万维网与社交网络之后的第三种 WEB 服务:

https://cdn-images-1.medium.com/v2/resize:fit:800/1*-gV37CJH63EZDcdgsDn_KA.png

21 (two1) 是可以快速构建可机器支付 Web 服务的开源命令行接口,使用 Python 开发。

21 允许用户无缝的在机器与机器之间进行支付:

  • 从任意设备获取比特币 (bitcoin)
  • 从任意应用添加比特币
  • 通过任意的 HTTP 请求赚取比特币

想安装 21,在终端输入以下命令:

curl https://21.co | sh

two1 包含:

  • HD 钱包,安全的管理你的比特币
  • 加密和比特币库,可以构建 bitcoin/Blockchain 应用
  • 一个 micropayment-channels 客户端和服务器
  • 挖掘,购买,赚取比特币的命令
  • 发布可机器支付端点到 21 Marketplace
  • 容器,允许用户的机器出售比特币机器资源
  • 等等

21 遵循 FreeBSD 协议,

源代码托管在 GitHub:https://github.com/21dotco/two1-python

更多 two1 相关内容请看这里:medium.com

----------------------------------------------------

The 21 command line interface and two1 bitcoin library. Send and receive BTC over HTTP.

earn.com

21: Build the Machine-Payable Web 


21 is an open source Python library and command line interface for quickly building machine-payable web services. It allows you to accomplish three major tasks:

  • Get bitcoin on any device
  • Add bitcoin micropayments to any Django or Flask app
  • Earn bitcoin on every HTTP request

The package includes:

  • an HD wallet to securely manage your bitcoin
  • crypto and bitcoin libraries to build bitcoin/blockchain applications
  • a micropayment-channels client and server
  • commands for mining, buying, and earning bitcoin, as well as requesting it from the 21 faucet
  • tools for publishing machine-payable endpoints to the 21 Marketplace
  • containers that allow your machine to sell machine resources for bitcoin

and much more.

Security

Please note that the 21 software is in beta. To protect the security of your systems while using 21, we highly recommend you install the software on a device other than your main laptop (e.g. 21 Bitcoin Computer, an old laptop, or an Amazon Virtual Machine) while the product is still in beta. You can read more security-related information here. Please send an email to security@21.co regarding any issue concerning security.

Installation

Create an account or install the library and CLI (python3.4+ is required):

$ curl https://21.co | sh

two1 can also be installed via pip:

$ sudo pip3 install two1

Start with the command line tool:

$ 21 help

Then read the Introduction to 21 guide and the two1 documentation.

Developers

To edit and run the two1 source code:

$ git clone https://github.com/21dotco/two1-python.git
$ cd two1-python/
$ pip3 install -r requirements.txt  # Install the requirements
$ pip3 install -e .  # Install 21 as an editable python library

Your changes to the source will now be reflected in your system installation in real-time.

Community

Join the 21 developer community to chat with other users or to get in touch with support.

from https://github.com/21dotco/two1-python