validate method
void
validate()
Implementation
void validate() {
if (hrp != prefix) {
throw ('invalid ZTS prefix. Expected "$prefix" but got "$hrp"');
}
if (core.length != coreSize) {
throw ('invalid ZTS size. Expected $coreSize but got ${core.length}');
}
}