Login with NSEC and HEX private key formats. Proper errors. #66

Merged
b merged 5 commits from issue-45 into main 2024-05-24 08:35:33 +00:00
Showing only changes of commit e501f99729 - Show all commits

View File

@ -325,7 +325,6 @@ export const Login = () => {
// Check if maybe hex nsec // Check if maybe hex nsec
try { try {
// const privateKey = nip19.decode(inputValue).data as Uint8Array
const privateKey = hexToBytes(inputValue) const privateKey = hexToBytes(inputValue)
m marked this conversation as resolved
Review

Please remove not used code

Please remove not used code
const publickey = getPublicKey(privateKey) const publickey = getPublicKey(privateKey)