support raw pubkeys as well as npubs

This commit is contained in:
Siddharth Singh 2024-07-01 23:06:09 +05:30
parent 480f4ed370
commit ea987dfa14
No known key found for this signature in database

View file

@ -99,6 +99,8 @@ if (import.meta.main) {
continue;
}
pubkeys.push(decoded);
} else if (NSchema.id().safeParse(arg).success) {
pubkeys.push(arg);
} else {
relaySectionBegun = true;
if (!arg.startsWith('wss://')) {