pub fn compute_commitment(
balance: u128,
nonce: u128,
ciphertext: &[u8],
) -> [u8; 32]Expand description
Commitment = Rescue(balance || nonce || ct_hash_lo16), serialized as 32 bytes.
Private-balance state commitments intentionally use the same Rescue-Prime digest format as the confidential-transfer STARK. That keeps init, deposit, withdraw, and confidential transfer on one commitment scheme and avoids a proof path that can never match cells created by the normal CLI flow.