Cover image
Try Now
2016-07-13

Zahlungskanäle für Bitcoin

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

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

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

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

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

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

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

  • ravitemer
  • Ein leistungsstarkes Neovim -Plugin für die Verwaltung von MCP -Servern (Modellkontextprotokoll)

  • patruff
  • Brücke zwischen Ollama und MCP -Servern und ermöglicht es lokalen LLMs, Modellkontextprotokoll -Tools zu verwenden

  • pontusab
  • Die Cursor & Windsurf -Community finden Regeln und MCPs

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • appcypher
  • Awesome MCP -Server - eine kuratierte Liste von Modellkontext -Protokollservern für Modellkontext

  • chongdashu
  • Aktivieren Sie KI -Assistenten -Clients wie Cursor, Windsurf und Claude -Desktop, um Unreal Engine durch natürliche Sprache mit dem Modellkontextprotokoll (MCP) zu steuern.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • alexander-zuev
  • Query MCP ermöglicht die End-to-End-Verwaltung von Supabase über die Chat-Schnittstelle: Lesen und Schreiben von Abfrage-Exekutionen, Verwaltungs-API-Unterstützung, automatische Migrationsversioning, Zugriff auf Protokolle und vieles mehr.

    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.