Skip to content

Instantly share code, notes, and snippets.

@tkthundr
tkthundr / lnurl.php
Last active November 1, 2019 10:45
Standalone PHP LNURL lib
<?php
//this gist combines both of the following implementations into 1 standalone
//https://github.com/Bit-Wasp/bech32
//https://github.com/tkijewski/php-lnurl
const TAG_WITHDRAW = 'withdrawRequest';
const TAG_LOGIN = 'login';
const TAG_CHANNEL = 'channelRequest';
const GENERATOR = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3];

Keybase proof

I hereby claim:

  • I am tkijewski on github.
  • I am tkijewski (https://keybase.io/tkijewski) on keybase.
  • I have a public key ASBQ00Pyn79AIdYFhUX8gb9_L_cSYYKRrH8YErUDr2G3Zwo

To claim this, I am signing this object: