mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-12 13:09:29 +00:00
* move to “crates” style folder * Update workspace * clear crate names * Rename crate folders based on feedback * Use workspace dependencies instead of paths * Move updated files from core
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())
|
|
}
|
|
}
|