Cover image
Try Now
2016-07-13

比特币的付款渠道

3 years

Works with Finder

7

Github Watches

13

Github Forks

21

Github Stars

Payment channel server

WARNING: This is "alpha" quality demo software.

Included programs

  • serverd: Payment channel server. Run with --init to create db.
  • serveradm: Server administration utility.
  • servercli: Client utility, a thin wrapper over the RPC calls

Run with --help to get a command line summary.

Run the utilities with no arguments, to obtain a list of commands.

Server events are logged via the flexible 'winston' module.

See comments in example-serverd.cfg for further server configuration.

Calling the JSON RPC server over HTTP:

POST http://localhost:12882 

{
  "method": ""
  "params": [
    {
      // Required params here (see below)
    }
  ]
}

Where "method" can be one of:

  • "channel.open"
  • "channel.setRefund"
  • "channel.commit"
  • "channel.pay"

"channel.open"

POST data

"params" can be an empty array

result

{
  "pubkey": , // pub key of the server for this channel (also: "channel.id" for later"
  "timelock.min": , // earliest time the refund transaction can be processed
  "timelock.max": , // latest time the refund transaction can be processed
  "timelock.prefer": , // preferred time the refund transaction should be processed
}

"channel.setRefund"

POST data

"params": {
  "channel.id": , // The id returned from "channel.open"
  "pubkey": , // pubkey of client
  "tx": , // the refund transaction, hex encoded (unsigned)
  "txInIdx": // the input id of the T1 transaction (that the server doesn't yet know about)
}

result

{
  "signature": // the hex encoded signature from when the server signed T1
}

"channel.commit"

POST data

"params": {
  "channel.id": , // The id returned from "channel.open"
  "tx.commit": , // The hex encoded signature from when the client signed T1 (committing to the agreement)
  "tx.firstPayment": , // The signed transaction (T3) for the first payment, which is just a full refund payment to the client
}

result

true // on success

"channel.pay"

POST data

"params": {
  "channel.id": , // The id returned from "channel.open"
  "signature": // the hex encoded signature from when the client resigned T3 with the new amount
  "amount": , // The new amount the client wants to pay to the server in T3
}

result

true // on success

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

  • chongdashu
  • 使用模型上下文协议(MCP),启用Cursor,Windsurf和Claude Desktop等AI助手客户,以通过自然语言控制虚幻引擎。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • alexander-zuev
  • 查询MCP通过聊天接口启用Supabase的端到端管理:读取和编写查询执行,管理API支持,自动迁移版本,访问日志等等。

    Reviews

    5 (1)
    Avatar
    user_NSNZHYK4
    2025-04-17

    As a dedicated user of MCP, I can confidently say that this tool by jgarzik is a game-changer. Its robust functionality and seamless integration have significantly enhanced my workflow. The comprehensive documentation available on the GitHub link provides clear guidance, making it approachable for both beginners and experts. I highly recommend MCP for anyone looking to streamline their operations efficiently.