How else can you sign a binary?
The alternative would be to sign the actual binary file using code signing (internally I assume that relies on a hash ).