GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 02:44:58 JST Alex Gleason Alex Gleason
    It seems like a mistake that you can't pass an LNURL (or LUD-16 identifier) straight into WebLN to pay an invoice. The client should not have to connect to remote servers and do the whole back-and-forth just to zap someone. This makes it impossible to implement Lightning donations in Soapbox as a purely client-side feature without completely removing the CSP.
    In conversation Friday, 26-Jan-2024 02:44:58 JST from gleasonator.com permalink
    • Embed this notice
      feld (feld@bikeshed.party)'s status on Friday, 26-Jan-2024 02:45:58 JST feld feld
      in reply to
      @alex can you proxy it through an endpoint on the same domain as the soapbox server? then the CSP doesn't have to be modified
      In conversation Friday, 26-Jan-2024 02:45:58 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 02:47:13 JST Alex Gleason Alex Gleason
      in reply to
      • feld
      @feld Yes but unlike media proxy the API isn't serving that URL. You would need an API that let's you proxy any URL, losing the security features of the proxy.
      In conversation Friday, 26-Jan-2024 02:47:13 JST permalink
    • Embed this notice
      feld (feld@bikeshed.party)'s status on Friday, 26-Jan-2024 02:48:58 JST feld feld
      in reply to
      @alex is it really "any url", or is there a specific pattern/signature to it that you could match on that would make it impossible to abuse?
      In conversation Friday, 26-Jan-2024 02:48:58 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 02:51:37 JST Alex Gleason Alex Gleason
      in reply to
      • feld

      @feld It would match a pattern. https://<host>/.well-known/lnurlp/<name>. It could be implemented securely in Pleroma

      In conversation Friday, 26-Jan-2024 02:51:37 JST permalink
      feld likes this.
    • Embed this notice
      ChadF :pci: (chadf@podcastindex.social)'s status on Friday, 26-Jan-2024 03:26:04 JST ChadF :pci: ChadF :pci:
      in reply to
      • Dave

      @alex

      This is why PC 2.0 uses keysend payments but you can't say anything bad about LNURL or the LNURL Mafia will come for you.

      cc @dave

      In conversation Friday, 26-Jan-2024 03:26:04 JST permalink

      Attachments


      Alex Gleason likes this.
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 03:29:06 JST Alex Gleason Alex Gleason
      in reply to
      • ChadF :pci:
      • Dave
      @ChadF @dave Looking into keysend... I don't think LNURL is precious at all. It's a wacky idea to bech32 encode URLs that will just need to be decoded back into URLs anyway. And then what do they do, they put a `lightning:` prefix in front of it!
      In conversation Friday, 26-Jan-2024 03:29:06 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 03:58:17 JST Alex Gleason Alex Gleason
      in reply to
      • ChadF :pci:
      • Dave
      @ChadF @dave I argued with ChatGPT about keysend for a while. It seems they added special support for Podcasting 2.0, but there is no generic use-case unlike LNURL. So it wouldn't be a suitable replacement unless every person runs their own Lightning node, which defeats the purpose of Lightning. Or if the TLV registry standardizes generic user accounts and Lightning nodes actually implement it.

      https://chat.openai.com/share/4814c76c-1624-421f-9609-0e75786d8a7e
      In conversation Friday, 26-Jan-2024 03:58:17 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: cdn.oaistatic.com
        ChatGPT
        A conversational AI system that listens, learns, and challenges
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 05:09:03 JST Alex Gleason Alex Gleason
      in reply to
      • ChadF :pci:
      • Dave
      @ChadF @dave If keysend is the simpler solution, why hasn't anyone invented a bech32 for it yet? lnid1, and then simply encode the parameters to WebLN.keysend in the data portion. Seems like an obvious solution?
      In conversation Friday, 26-Jan-2024 05:09:03 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 05:10:26 JST Alex Gleason Alex Gleason
      in reply to
      • ChadF :pci:
      • Dave
      @ChadF @dave I forgot to add, I figured out the LNPay TLV can be used as a generic one. Alby does it.
      In conversation Friday, 26-Jan-2024 05:10:26 JST permalink
    • Embed this notice
      Dave (dave@podcastindex.social)'s status on Friday, 26-Jan-2024 07:09:49 JST Dave Dave
      in reply to
      • ChadF :pci:

      @alex @ChadF The simple answer is that Lightning Labs never liked keysend because it was a sender generated nonce instead of receiver. They did it sort of begrudgingly. The initial Lightning spec worked purely on invoices and there has been a weird hesitancy towards keysend ever since. It baffles me.

      In conversation Friday, 26-Jan-2024 07:09:49 JST permalink
      Alex Gleason likes this.
    • Embed this notice
      Dave (dave@podcastindex.social)'s status on Friday, 26-Jan-2024 07:09:59 JST Dave Dave
      in reply to
      • ChadF :pci:

      @alex @ChadF The true solution is BOLT12, which obviates the need of all of this by allowing for open invoices to live forever and accept any amount. LND is just now starting to build this with v0.18.

      In conversation Friday, 26-Jan-2024 07:09:59 JST permalink
      Alex Gleason likes this.
    • Embed this notice
      errhead (errhead@gleasonator.com)'s status on Friday, 26-Jan-2024 07:12:23 JST errhead errhead
      in reply to
      @alex There is some discussion with wallet developers and podcast developers about clients just passing the lightning address to the wallet and skipping the well.known lookup here
      https://github.com/Podcastindex-org/podcast-namespace/discussions/576#discussioncomment-8174543
      In conversation Friday, 26-Jan-2024 07:12:23 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        Add a new address type for lightning address (in valueRecipient) · Podcastindex-org/podcast-namespace · Discussion #576
        Having the pubkey listed in the value block in the RSS feed complicates things massively for service providers enabling value for value. If a service provider wants to change their underlying infra...
      Alex Gleason likes this.
    • Embed this notice
      errhead (errhead@gleasonator.com)'s status on Friday, 26-Jan-2024 07:12:44 JST errhead errhead
      in reply to
      • ChadF :pci:
      • Dave
      @alex @ChadF @dave for supporting wallets like Alby, fountian.fm, v4vapp, etc.

      to send a keysend cross app comment zap to errhead@podcastindex.com I first use an API call to get the user account info from podcastindex and find the lud16/⚡ of errhead@getalby.com

      Lookup keysend node and user info at https://getalby.com/.well-known/keysend/errhead
      {"status":"OK","tag":"keysend","pubkey":"030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3","customData":[{"customKey":"696969","customValue":"LiPQ3WVvdeEFnuhcWNLy"}]}

      the pubkey is the lightning node address, the custom key is different for each wallet provider so far, and the custom value specifies which users wallet to send the payment to.

      send the payment using a keysend supporting webln implementation, which is currently only Alby's extension as far as i know, or an API call which has more options.

      await webln.enable();
      const result = await webln.keysend({
      destination: "03006fcf3312dae8d068ea297f58e2bd00ec1ffe214b793eda46966b6294a53ce6",
      amount: "1",
      customRecords: {
      "696969": "LiPQ3WVvdeEFnuhcWNLy"
      }
      });

      Metadata is passed using the TLV custom record. for user to user cross app comment zaps I use a subset of the full boostagram TLV https:/github.com/Podcastindex-org/podcast-namespace/blob/main/value/blip-0010.md

      For payment confirmation I use the getalby webhook to the PeerTube server. https://guides.getalby.com/developer-guide/v/alby-wallet-api/reference/api-reference/webhook-endpoints
      In conversation Friday, 26-Jan-2024 07:12:44 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: getalby.com
        Alby
        from @getalby
        Alby brings Bitcoin to the web with in-browser payments and identity.

      2. Domain not in remote thumbnail source whitelist: static.HugeDomains.com
        PodcastIndex.com is for sale | HugeDomains
        Start your new business venture with a great domain name. A trusted source for domains since 2005.

      3. Domain not in remote thumbnail source whitelist: app.gitbook.com
        Webhook Endpoints
        Create webhook endpoints to receive real-time notifications of the user's settled invoices.
      Alex Gleason likes this.
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 26-Jan-2024 07:13:35 JST Alex Gleason Alex Gleason
      in reply to
      • ChadF :pci:
      • Dave
      • errhead
      @errhead @ChadF @dave Fantastic! The .well-known/keysend URL is what I was missing
      In conversation Friday, 26-Jan-2024 07:13:35 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.