Created
June 23, 2023 07:18
-
-
Save 13x54n/cbfa87ba7537308096a8bf1b3f25e9f9 to your computer and use it in GitHub Desktop.
String based Wallet Authentication & Validation for example wallet for blog.
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
const keyPairExists = () => { | |
// @note totally not secure on revealing the key for the key pair store & storing on local storage - 13x54r | |
if (localStorage.getItem("13x54r_keyPair") && localStorage.getItem('13x54r_walletPassword')) { | |
return true; | |
} else { | |
return false; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment