refactor(lee_core): expose nullifier byte-array

This commit is contained in:
Artem Gureev 2026-07-07 15:58:54 +00:00
parent abb18568dc
commit dda467fd06
2 changed files with 5 additions and 5 deletions

View File

@ -97,11 +97,6 @@ impl NullifierPublicKey {
#[cfg(feature = "host")]
impl Nullifier {
#[must_use]
pub const fn to_byte_array(&self) -> [u8; 32] {
self.0
}
#[cfg(feature = "host")]
#[must_use]
pub const fn from_byte_array(bytes: [u8; 32]) -> Self {

View File

@ -117,6 +117,11 @@ impl Nullifier {
bytes.extend_from_slice(nullifier_seed);
Self(Impl::hash_bytes(&bytes).as_bytes().try_into().unwrap())
}
#[must_use]
pub const fn to_byte_array(&self) -> [u8; 32] {
self.0
}
}
#[cfg(test)]