encodeParty

fun encodeParty(partyId: String): String

Percent-encodes a party id into a CAIP-10 address segment: every UTF-8 byte outside [-.A-Za-z0-9] becomes %XX (upper-case), so :: → %3A%3A and _ → %5F. decodeParty is the inverse.