2026-02-12 16:25:09 -08:00

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())
}
}