Matt A

Results 43 comments of Matt A

Answering my own question: > It seems like a hash over the session ID and some random bytes would serve the same purpose, without requiring the user to manage secret...

The issue isn't that the Solana layout changed -- it's that it **didn't** change while everyone else's did. If you are trying to deserialize `#[zero_copy(unsafe)]` anchor data containing a `u128`...

I pushed a self-contained reproduction here: https://github.com/matt-allan/anchor-layout-issue In this case the issue between `1.77` and `stable` is not the change in alignment but that the order of the fields changed....