lntxbot

かなり多くの面で革新性を感じる。これはすごい。 ちょっとまだ色々確認中だけど、メモ。

lntxbot

Telegramアカウント上のbotとして動かすLightningウォレット。
テレグラムで@lntxbotをフォロー後、/start で開始する。 Lightningの請求書の支払いと受け取りに使用できて、残高と取引の履歴も普通に出せる。

何が新しいかというと、広告配信したり、ギャンブルしたり、spam防止のために投稿に手数料とったり、めちゃくちゃ柔軟なのこと。
ここまでの柔軟性は、おそらく既存の〜payでは実行できない。

参考リンクとしては、

これは未来だ。

ちょっと触ってみた感じのスクショ。

技術

利用している技術についての雑多なメモ。

lightnning

マイクロペイメントはどのように実行されているのだろうか。

// it's an invoice from elsewhere, continue and
// actually send the lightning payment
err := u.actuallySendExternalPayment(  
    messageId, bolt11, inv, amount, fakeLabel, params,
    paymentHasSucceeded, paymentHasFailed,
)

実態としてはgithub.com/fiatjaf/lightningd-gjson-rpcを使っているようだ。

    ln = &lightning.Client{
        Path:             "/home/whatever/.lightning/lightning-rpc",
        LastInvoiceIndex: lastinvoiceindex, // only needed if you're going to listen for invoices
        PaymentHandler:   handleInvoicePaid, // only needed if you're going to listen for invoices
    }
Paywall

Lightning Paywall Generatorというwebserviceを使っているようだ。

paywall.link is a Paywall Generator. It allows you to sell digital goods (files, articles, music, videos, any form of content that can be published on the open web) by simply wrapping their URLs in a paywall.
By generating your paywalls on @lntxbot you can keep track of them all without leaving Telegram and get information on how much of each you've sold.
/paywall will list all your paywalls.
/paywall https://mysite.com/secret-content 230 'access my secret content' will create a paywall for a secret content with a price of 230 satoshis. /paywallbalance will show your paywall.link balance and ask you if you want to withdraw it.
/paywall
withdraw will just withdraw all your paywall.link balance to your @lntxbot balance.

BitFlash

これもbitcoinの資金管理に使われているように見える。詳細は不明だが、のっていた解説を載せておく。

Bitflash is a service that does cheap onchain transactions from Lightning payments. It does it cheaply because it aggregates many Lightning transactions and then dispatches them to the chain after a certain threshold is reached.
/bitflash1000003NRnMC5gVug7Mb4R3QHtKUcp27MAKAPbbJ buys an onchain transaction to the given address using bitflash.club's shared fee feature. Will ask for confirmation.