mirror of
https://github.com/yashgo0018/maci-wrapper.git
synced 2026-05-04 03:00:44 -04:00
updated the keypair generation mechanism to use user signatures instead of storing the keys in the localstorage
This commit is contained in:
@@ -29,13 +29,13 @@ export default function AuthContextProvider({ children }: { children: React.Reac
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!address) {
|
||||
if (!address || !signMessage) {
|
||||
setKeyPair(null);
|
||||
return;
|
||||
}
|
||||
|
||||
signMessage();
|
||||
}, [address]);
|
||||
}, [address, signMessage]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!signature) return;
|
||||
|
||||
Reference in New Issue
Block a user