stellar-api icon indicating copy to clipboard operation
stellar-api copied to clipboard

Invalid Checksum

Open AgostinhoBarbosa opened this issue 5 years ago • 1 comments

Good night, I'm getting the error below, and I couldn't identify what it would be, could you help me.

/var/www/clients/client310/web10/web/vendor/zulucrypto/stellar-api/src/AddressableKey.php|120
Invalid checksum

AgostinhoBarbosa avatar Jan 07 '21 21:01 AgostinhoBarbosa

the same exception for address GD6BGC6CCDFL3G77GAPYXGZLUUQIL2CVOPKFVYT35FE23HVL6JAJ2FFA

$address = 'GD6BGC6CCDFL3G77GAPYXGZLUUQIL2CVOPKFVYT35FE23HVL6JAJ2FFA';
var_dump(Base32::encode(Base32::decode($address)) === $address); #=> bool(false) 

my solution: change lib \ChristianRiesen\base32 to https://github.com/ademarre/binary-to-text-php

leonchuk avatar Apr 09 '21 12:04 leonchuk