diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index bf9f91e..b71dedb 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -164,6 +164,10 @@ impl Bytes48 { pub fn from_hex(hex_str: &str) -> Result { Self::from_bytes(&hex::decode(&hex_str[2..]).unwrap()) } + + pub fn into_inner(self) -> [u8; 48] { + self.bytes + } } impl KZGProof {