Proper signature management

This commit is contained in:
2026-08-11 23:43:56 -04:00
parent aacb11bc01
commit 019c2888cb
6 changed files with 80 additions and 11 deletions
+2 -2
View File
@@ -1,6 +1,7 @@
use std::borrow::Cow;
use axum::extract::ws::{Message, Utf8Bytes, WebSocket};
use ed25519_dalek::VerifyingKey;
use serde::{Deserialize, Serialize};
pub mod initialize;
@@ -8,7 +9,7 @@ pub mod initialize;
pub struct Client {
pub socket: WebSocket,
pub meta: ClientMeta,
pub public_key: String,
pub public_key: VerifyingKey,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -25,7 +26,6 @@ pub struct ServerMeta {
pub enum ClientMethod {
Initialized {
public_key: String,
timestamp: u64,
signature: String,
},