mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-03-26 22:23:14 +00:00
13 lines
256 B
Rust
13 lines
256 B
Rust
pub use crypto::{PrivateKey, PublicKey};
|
|
use prost::bytes::Bytes;
|
|
|
|
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())
|
|
}
|
|
}
|