use crypto_box::PublicKey;
#[derive(Clone, Debug)]
pub struct SenderPublicKey(PublicKey);
impl AsRef<PublicKey> for SenderPublicKey {
fn as_ref(&self) -> &PublicKey {
&self.0
}
}
impl From<PublicKey> for SenderPublicKey {
fn from(p: PublicKey) -> Self {
Self(p)
}
}
#[derive(Clone, Debug)]
pub struct ReceiverPublicKey(PublicKey);
impl AsRef<PublicKey> for ReceiverPublicKey {
fn as_ref(&self) -> &PublicKey {
&self.0
}
}
impl From<PublicKey> for ReceiverPublicKey {
fn from(p: PublicKey) -> Self {
Self(p)
}
}