mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-27 02:15:03 +00:00
Add an into_inner method for Bytes48 (#206)
This commit is contained in:
parent
7d170f9939
commit
549739fcb3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user