package crypto import "fmt" // hashValue produces a Hamadryad digest of an element's value. // This is the internal hashing function used throughout the crypto package. func hashValue(v any) Hamadryad { data := []byte(fmt.Sprintf("%v", v)) return Hash(data) } // hashFingerprint converts a fingerprint hash string to a Hamadryad. func hashFingerprint(h string) Hamadryad { return hashValue(h) }