1 package crypto 2 3 import "fmt" 4 5 // hashValue produces a Hamadryad digest of an element's value. 6 // This is the internal hashing function used throughout the crypto package. 7 func hashValue(v any) Hamadryad { 8 data := []byte(fmt.Sprintf("%v", v)) 9 return Hash(data) 10 } 11 12 // hashFingerprint converts a fingerprint hash string to a Hamadryad. 13 func hashFingerprint(h string) Hamadryad { 14 return hashValue(h) 15 } 16