Login with NSEC and HEX private key formats. Proper errors. #66
@ -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
|
|||||||
const publickey = getPublicKey(privateKey)
|
const publickey = getPublicKey(privateKey)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
Please remove not used code