feat: simple login process

This commit is contained in:
2025-12-19 10:09:29 +07:00
parent d6504a8170
commit a0820a9187
14 changed files with 864 additions and 93 deletions

View File

@@ -112,6 +112,12 @@ impl Account {
self._tasks.push(task);
}
/// Set the public key of the account
pub fn set_public_key(&mut self, public_key: PublicKey, cx: &mut Context<Self>) {
self.public_key = Some(public_key);
cx.notify();
}
/// Check if the account entity has a public key
pub fn has_account(&self) -> bool {
self.public_key.is_some()