use beefy_primitives::VersionedCommitment;
use parity_scale_codec::{Decode, Encode};
type C = VersionedCommitment<u32>;
fn main() {
let raw_hex = "0x01046462809395314ca21ea6504bdc977e842537a7cb605c6693ee7cebbbed581430446d59f90800000000000000000000048001000000043d31122e484b913210d781135062f842ba2f9b285d0fc18dd00c1f8e8219c7321e4fb39bf41c046c42617e72fbf1af7fe3730c24d676803549e0dffcc18c418201";
let raw_bytes = array_bytes::hex2bytes_unchecked(raw_hex);
let c = C::decode(&mut &*raw_bytes).unwrap();
dbg!(&c);
let raw_bytes = c.encode();
let raw_hex = array_bytes::bytes2hex("0x", raw_bytes);
dbg!(raw_hex);
}