pub fn account_identity_ok<T: ReadableAccount>(account: &T) -> Result<(), Error>
Expand description

Perform basic checks that an account has nonce-like properties.

Errors

Returns Error::InvalidAccountOwner if the account is not owned by the system program. Returns Error::UnexpectedDataSize if the account contains no data.