validate method
Implementation
Address validate() {
if (!(this.hashBuf is List<int>) || this.hashBuf!.length != 20) {
throw INVALID_ADDRESS_HASH_BUF;
}
if (this.versionByteNum != this.pubKeyHash) {
throw INVALID_ADDRESS_VERSION_BYTE_NUM;
}
return this;
}