Sending pubkey

This commit is contained in:
2026-08-28 12:57:07 +02:00
parent 67215c4af0
commit 7a21c71817
2 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -5,7 +5,7 @@ use futures_util::{
SinkExt, StreamExt,
stream::{SplitSink, SplitStream},
};
use tokio::sync::Mutex;
use tokio::sync::{Mutex, MutexGuard};
use crate::protocol::{ClientMethod, ServerMethod};
@@ -62,4 +62,8 @@ impl EnclaveWebSocket {
Ok(())
}
pub async fn tx(&self) -> MutexGuard<'_, SplitSink<WebSocket, Message>> {
self.tx.lock().await
}
}