How does the Apple Watch  macOS Sierra unlock feature work in detail? Does anyone know how the Apple Watch unlock feature work in macOS Sierra?

I figured out, that I have to be very near my Mac, that the feature works.

Does it use Bluetooth (BLE) or WIFI?

It would be really nice to get some details about this nice feature.
It uses both Bluetooth LE 4.0 AND 802.11ac WiFi.

Bluetooth is used to discover the Apple Watch and establish a connection.

Then it uses WiFi to do "time-in-flight" calculations - i.e. to figure out how far your watch is from the Mac. The Mac needs to support 802.11ac WiFi for this to work. All watches are supported, both the old and the new - even though the old ones does not support 802.11ac.

This way it is possible to prevent attacks such as someone planting a "bluetooth repeater" near you, so that it could replay your bluetooth responses captured this way to a Mac located somewhere remotely.