mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-02-10 17:03:12 +00:00
13 lines
264 B
Rust
13 lines
264 B
Rust
use prost::bytes::Bytes;
|
|
pub use x25519_dalek::{PublicKey, StaticSecret};
|
|
|
|
pub trait CopyBytes {
|
|
fn copy_to_bytes(&self) -> Bytes;
|
|
}
|
|
|
|
impl CopyBytes for PublicKey {
|
|
fn copy_to_bytes(&self) -> Bytes {
|
|
Bytes::copy_from_slice(self.as_bytes())
|
|
}
|
|
}
|