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> {
|
pub fn from_hex(hex_str: &str) -> Result<Self, Error> {
|
||||||
Self::from_bytes(&hex::decode(&hex_str[2..]).unwrap())
|
Self::from_bytes(&hex::decode(&hex_str[2..]).unwrap())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn into_inner(self) -> [u8; 48] {
|
||||||
|
self.bytes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl KZGProof {
|
impl KZGProof {
|
||||||
|
|
Loading…
Reference in New Issue