forked from scsibug/nostr-rs-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
224 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Check if the input file is provided | ||
if [ -z "$1" ]; then | ||
echo "Usage: $0 <file>" | ||
exit 1 | ||
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" | ||
|