INNER CODE UNIT · Rust
to_byte_vectors_60
IronCoreLabs/recrypt-rs · src/internal/mod.rs:96
pub fn to_byte_vectors_60(&self) -> Option<([u8; 60], [u8; 60])> {
self.value
.normalize()
.map(|(x, y)| (x.to_bytes_60(), y.to_bytes_60()))
}
}
impl<T: Field + Hashable> Hashable for PublicKey<T> {
fn to_bytes(&self) -> ByteVector {
self.value.to_bytes()
}
}
#[derive(Copy, Clone, Debug, Default)]
#[cfg_attr(test, derive(PartialEq))]
pub struct PrivateKey<T> {
pub value: T,
}