Skip to main content

lookup_crypto_read_account_context

Function lookup_crypto_read_account_context 

Source
pub fn lookup_crypto_read_account_context(
    cache: &TrdCache,
    acc_id: u64,
) -> Result<CryptoAccountContext>
Expand description

Lookup the C++ read-only Crypto context used by startup warmup.

C++ asset reads always serialize the cipher field, including zero bytes, while Crypto order reads omit the field when the buffer is empty. Both wire shapes are produced by CryptoAccountContext from the same empty vector. Strict/write callers must continue using lookup_crypto_account_context.