From 549739fcb3aaec6fe5651e1912f05c604b45621b Mon Sep 17 00:00:00 2001 From: Pawan Dhananjay Date: Mon, 13 Mar 2023 17:08:02 +0530 Subject: [PATCH] Add an into_inner method for Bytes48 (#206) --- bindings/rust/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 {