Multiple field struct encoding which has boolean struct
ashWhiteHat opened this issue · 2 comments
ashWhiteHat commented
We would like to implement CompactAs for the struct like following.
pub struct JubjubAffine {
x: Fp,
y: Fp,
is_infinity: bool,
}
Fp is the struct and already implemented CompactAs.
It seems boolean is not supported.
We found the single field struct encoding.
https://github.com/paritytech/parity-scale-codec/blob/master/tests/single_field_struct_encoding.rs
Do we have the multiple field struct encoding?
Or we can't support CompactAs for multiple fields struct?
I would appreciate it if you could response.
Thank you!
bkchr commented
We don't support multi field compaction.
ashWhiteHat commented
Thank you