refactor: expose ciphertext as bytes

This commit is contained in:
agureev 2026-06-22 22:21:20 +04:00
parent 2c122440ce
commit e7e7145af1

View File

@ -117,6 +117,11 @@ impl Nullifier {
}
impl Ciphertext {
#[must_use]
pub fn as_bytes(&self) -> &[u8] {
&self.0
}
/// Serializes the ciphertext to bytes.
#[must_use]
pub fn to_bytes(&self) -> Vec<u8> {