requireSignableText

fun requireSignableText(value: String, name: String)

Throws unless value can be signed as a string field of a statement such as a Challenge or an AdmissionProof: well-formed UTF-16, with no unpaired surrogate, whose UTF-8 fits one layout field (65 535 bytes). name says which value, in the message.

It is the rule those statements' sign apply, not a copy of it. It is here for a caller that takes a string now and signs it later, so the caller hears about a value that can never be signed when it passes it in, rather than as a failure later.

Throws

when value cannot be signed.