diff --git a/src/MetaHash.php b/src/MetaHash.php index ac8b812..e55f587 100644 --- a/src/MetaHash.php +++ b/src/MetaHash.php @@ -101,10 +101,16 @@ public function setEcdsa(MetaHashCrypto $ecdsa): void * * @param string $address * + * @param bool $fast + * * @return bool */ - public function checkAddress(string $address): bool + public function checkAddress(string $address, bool $fast = false): bool { + if ($fast) { + return \strpos($address, '0x0') === 0 && \strlen($address) === 52; + } + return $this->getEcdsa()->checkAdress($address); }