Ah, it’s actually KeyBytes internally carry out transformation for distance calculation.
KeyBytes
using Sha256::digest function, then trasnform to U256 for the ease of ^
Sha256::digest
U256
^