Skip to main content

Module payload

Module payload 

Source
Expand description

Plain DataUpdate payload struct.

Field order and types match the on-chain SubmitDataUpdateArgs instruction argument so a mechanical field copy converts between the two. With the borsh feature enabled, value serializes as standard Borsh Vec<u8> (u32 little-endian length prefix + bytes), matching Anchor Vec<u8> on-chain. The crate does not rely on that wire layout for verification.

Structsยง

DataUpdate
A signed Molpha data update.