secure privkey
This commit is contained in:
13
src/stores/stronghold.tsx
Normal file
13
src/stores/stronghold.tsx
Normal 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 });
|
||||
},
|
||||
}));
|
||||
Reference in New Issue
Block a user