zkcrypto / merlin

Composable proof transcripts for public-coin arguments of knowledge
MIT License
47 stars 16 forks source link

Make AlignedKeccakState repr(C) #7

Open schoppmp opened 2 months ago

schoppmp commented 2 months ago

The default repr(Rust) representation makes no guarantees about layout or alignment of its members, but we want (1) a pointer to AlignedKeccakState be the same as a pointer to its member, and (2) the member to be aligned. repr(C, align(8)) achieves that.