Add an into_inner method for Bytes48 (#206)

This commit is contained in:
Pawan Dhananjay 2023-03-13 17:08:02 +05:30 committed by GitHub
parent 7d170f9939
commit 549739fcb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ impl Bytes48 {
pub fn from_hex(hex_str: &str) -> Result<Self, Error> {
Self::from_bytes(&hex::decode(&hex_str[2..]).unwrap())
}
pub fn into_inner(self) -> [u8; 48] {
self.bytes
}
}
impl KZGProof {