validate

fun validate(publication: PreKeyPublication)

Throws IllegalArgumentException if publication has a key or signature of the wrong size, repeats a one-time prekey ID or carries too many one-time prekeys. Messages never contain key bytes.