diff --git a/utils/utils.go b/utils/utils.go index 9fac8e08..36b5cd2f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -126,6 +126,7 @@ func StripFromString(input, substring string) string { } // Converts a '0x'-prefixed hex string or cb58-encoded string to an ID. +// Input length validation is handled by the ids package. func HexOrCB58ToID(s string) (ids.ID, error) { if strings.HasPrefix(s, "0x") { bytes, err := hex.DecodeString(SanitizeHexString(s))