truncateHash

fun truncateHash(hex: String, visible: Int = 12): String

Truncates a hex hash for display, appending its full length.

Return

Truncated display string, or the original if short enough.

Parameters

hex

Full hex string.

visible

Number of leading characters to keep.