secure privkey

This commit is contained in:
Ren Amamiya
2023-07-09 16:55:25 +07:00
parent a5c2ec080a
commit cba94ab99e
20 changed files with 1011 additions and 499 deletions

13
src/stores/stronghold.tsx Normal file
View File

@@ -0,0 +1,13 @@
import { create } from 'zustand';
interface StrongholdState {
password: null | string;
setPassword: (password: string) => void;
}
export const useStronghold = create<StrongholdState>((set) => ({
password: null,
setPassword: (password: string) => {
set({ password: password });
},
}));