optimized deserialize and modified assert for multisig