fetch_ml/internal/worker/hash_selector.go
Jeremie Fraeys 37aad7ae87
feat: add manifest signing and native hashing support
- Integrate RunManifest.Validate with existing Validator
- Add manifest Sign() and Verify() methods
- Add native C++ hashing libraries (dataset_hash, queue_index)
- Add native bridge for Go/C++ integration
- Add deduplication support in queue
2026-02-19 15:34:39 -05:00

19 lines
756 B
Go

package worker
import (
"github.com/jfraeys/fetch_ml/internal/worker/integrity"
)
// dirOverallSHA256Hex uses native implementation when compiled with -tags native_libs.
// The build tag selects between native_bridge.go (stub) and native_bridge_libs.go (real).
// No runtime configuration needed - build determines behavior.
func dirOverallSHA256Hex(root string) (string, error) {
// native_bridge_libs.go provides this when built with -tags native_libs
// native_bridge.go provides stub that falls back to Go
return dirOverallSHA256HexNative(root)
}
// DirOverallSHA256HexParallel exports the parallel directory hashing function.
func DirOverallSHA256HexParallel(root string) (string, error) {
return integrity.DirOverallSHA256HexParallel(root)
}