Type alignment is set to #[repr(C, align(4))] which seems to be an optimization for risk0.
We should review if this is the correct way to align.
The main issue is this is harmful to performance on the host side so this should be at least under a feature flag.
Something like:
#[derive(Clone, Debug, Hash)]
#[cfg_attr(feature = "zk_alignment", repr(C, align(4)))]
pub struct Address {
pub words: [u32; 5],
}
Thoughts @pixelcircuits ?
Type alignment is set to
#[repr(C, align(4))]which seems to be an optimization for risk0.We should review if this is the correct way to align.
The main issue is this is harmful to performance on the host side so this should be at least under a feature flag.
Something like:
Thoughts @pixelcircuits ?