As far as I know, all RCDs / GFCIs sense leakage current by differential measurement between active and neutral with a current transformer. Both the active and neutral wires will pass through the transformer.
I have tried without success to find references on why we cannot simply pass the earth wire through the current transformer instead. Is this because some other kind of leakage or noise can occur on this wire that does not represent a fault condition?