parent
8aefea7260
commit
badc420069
29 changed files with 3048 additions and 212 deletions
|
|
@ -2,7 +2,7 @@ from .nostr.key import PrivateKey
|
|||
|
||||
|
||||
def parse_nostr_private_key(key: str) -> PrivateKey:
|
||||
if key.startswith("nsec"):
|
||||
return PrivateKey.from_nsec(key)
|
||||
else:
|
||||
return PrivateKey(bytes.fromhex(key))
|
||||
if key.startswith("nsec"):
|
||||
return PrivateKey.from_nsec(key)
|
||||
else:
|
||||
return PrivateKey(bytes.fromhex(key))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue