Skip to content

Instantly share code, notes, and snippets.

@louneskmt
louneskmt / bip-32-seed-gen-hww-lud.md
Last active November 29, 2022 16:15
BIP-32 based seed generation for auth protocol, hardware wallet compatible version

BIP-32 based seed generation for auth protocol, hardware wallet compatible version

Context

There exists currently two ways of generating the seed for the LUD-04 auth protocol (LNURL-auth, key-auth):

  • LUD-05: BIP32-based seed generation, for regular BIP32 hot wallets
  • LUD-13: signmessage-based seed generation, mainly dedicated for Lightning nodes that offer a signmessage API. This is the most used seed generation.

Both are not suitable for hardware wallets (HW) for several reasons:

  • HW don't expose the device private keys, necessary for LUD-05
@louneskmt
louneskmt / remove_failed_workflows.sh
Last active June 22, 2023 17:24
Remove all failed workflow runs in a GitHub repository (up to 100)
#!/bin/bash
ORG_NAME=$1
REPO_NAME=$2
if [[ -z REPO_NAME || -z ORG_NAME ]]; then
echo "Usage: bash remove_failed_workflows.sh <USER/ORG NAME> <REPO NAME>"
exit 1
fi
@louneskmt
louneskmt / umbrel-hardware-list.md
Last active April 11, 2021 18:51
Umbrel recommended hardware list for different countries
@louneskmt
louneskmt / install-socat-service.sh
Created February 24, 2021 10:31
Script to install a socat socks proxy service on Linux. Based on systemd.
#!/bin/bash -e
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
check_dependencies () {
for cmd in "$@"; do
if ! command -v $cmd >/dev/null 2>&1; then
@louneskmt
louneskmt / install-socat-service.sh
Last active December 15, 2020 00:38
Script to install a launchd service for a socat socks proxy
#!/bin/bash -e
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
while [[ "$#" -gt 0 ]]; do
case $1 in
-h|--help)
### Keybase proof
I hereby claim:
* I am louneskmt on github.
* I am lounes_kmt (https://keybase.io/lounes_kmt) on keybase.
* I have a public key ASAJYOFao4Yq3F0BH-cibf9pyocKyfwQiW1jiNMMePqCgwo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am lounes-kmt on github.
  • I am lounes_kmt (https://keybase.io/lounes_kmt) on keybase.
  • I have a public key ASAJYOFao4Yq3F0BH-cibf9pyocKyfwQiW1jiNMMePqCgwo

To claim this, I am signing this object: