Neither. It’s tagged on the node that is shared by the two ways.
In rare cases or with very detailled mapping (separtely mapped sidewalks etc.), it might make sense to tag a way as a crossing. But that’s not fully explored yet and is not standard practice - crossing=* is only defined for nodes and almost exclusively used on nodes.