-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: nostr
action: blob
revision:
path_from: convert-to-pubkey.sh
revision_from: refs/heads/master:
path_to:
revision_to:

git.thebackupbox.net

nostr

git://git.thebackupbox.net/nostr

blob of:

nostr

/ convert-to-pubkey.sh

refs/heads/master:/convert-to-pubkey.sh
 #!/usr/bin/env bash


 case "$1" in
 	npub1*)
 		bech32 -d "$1" | cut -d: -f2- | cut -dx -f2-
 	;;
 	*@*)
 		exec nip-05 "$1"
 	;;
 	*)
 		echo "$1"
 	;;
 esac

-- Response ended

-- Page fetched on Sun Jun 2 16:36:30 2024