mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-03-27 06:33:08 +00:00
14 lines
275 B
Rust
14 lines
275 B
Rust
pub use crypto::{X25519PrivateKey, X25519PublicKey};
|
|
|
|
use prost::bytes::Bytes;
|
|
|
|
pub trait CopyBytes {
|
|
fn copy_to_bytes(&self) -> Bytes;
|
|
}
|
|
|
|
impl CopyBytes for X25519PublicKey {
|
|
fn copy_to_bytes(&self) -> Bytes {
|
|
Bytes::copy_from_slice(self.as_bytes())
|
|
}
|
|
}
|