pub trait Pack {
type Packed: AnchorSerialize + Clone + Debug;
// Required method
fn pack(
&self,
remaining_accounts: &mut PackedAccounts,
) -> Result<Self::Packed, ProgramError>;
}Expand description
Replace 32-byte Pubkeys with 1-byte indices to save space. If your type has no Pubkeys, just return self.