Skip to content

Commit

Permalink
Update npubsToPubkeys.sh to format keys for config
Browse files Browse the repository at this point in the history
  • Loading branch information
mplorentz committed Aug 1, 2024
1 parent 5d42904 commit 2a5c2b7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions npubsToPubkeys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@ fi

input_file="$1"

# Read the input file line by line
while IFS= read -r npub; do
# Run the command for each npub and output the result
result=$(nostrkeytool --npub2pubkey "$npub")
echo "$result"
done < "$input_file"

cat $input_file | xargs nak decode | jq .pubkey | sed 's/$/,/' | sed 's/^/ /' | pbcopy

0 comments on commit 2a5c2b7

Please sign in to comment.