use ssz_derive::{Codec, Encode, Decode}; use generic_array::{GenericArray, ArrayLength}; use typenum::*; #[derive(Codec, Encode, Decode)] pub struct A { a: u64, b: u64, #[bm(compact)] c: GenericArray, } pub trait Config { type Size: ArrayLength; } #[derive(Codec, Encode, Decode)] pub struct B { a: u16, b: u32, c: GenericArray, }