mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-06-29 18:39:30 +00:00
refactor: expose ciphertext as bytes
This commit is contained in:
parent
2c122440ce
commit
e7e7145af1
@ -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> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user