fn get_int(pairs: &[(Value, Value)], key: &str) -> Option<i64>
Helper to extract an i64 from a CBOR map by key.