blocktrail-sdk-php
blocktrail-sdk-php copied to clipboard
Iteration count should be at least 512 !
When I want to getBalance I got this error :
Fatal error: Uncaught RuntimeException: Iteration count should be at least 512 in blocktrail\blocktrail-sdk\src\V3Crypt\KeyDerivation.php on line 26
How can I solve it ?
That is a bug.. still present on v3.0.1 but already fixed.
Force your composer to get blocktrail 3.0.5 ( instead of "latest" 3.* ):
"blocktrail/blocktrail-sdk": "3.0.5"
This will force to get a "newer" version instead of latest tagged ( v3.0.1 ). And, btw, if you are using a 32bits environment and get a composer error that blocktrail requires a php64 ( because this check is present on v3.0.5 ) you need to disable composer platform checks.. but do this only for development.
composer install --ignore-platform-reqs
Maybe @rubensayshi or @afk11 could help here and promote v3.0.5 to "latest stable" tag.
I'm with the same error. I already have change my php from 5.x.x to 7.x and the error persist. I too have update my SDK like you said.
To be more exactly my two error are: Fatal error: Uncaught RuntimeException: Iteration count should be at least 512 in C:\wamp64\www\blocktrail\vendor\blocktrail\blocktrail-sdk\src\V3Crypt\KeyDerivation.php on line 26
And
RuntimeException: Iteration count should be at least 512 in C:\wamp64\www\blocktrail\vendor\blocktrail\blocktrail-sdk\src\V3Crypt\KeyDerivation.php on line 26
I can auth. The error happens when i try init the wallet...
Anybody can help-me?
@LeandroVCastro you don't have blocktrail v3.0.5.
Newest blocktrail v3.0.5 \blocktrail-sdk\src\V3Crypt\KeyDerivation.php on line 26 don't have that RuntimeException.
This problem was present on up to v3.0.2.
after updating to 3.0.5 and also "disable composer platform checks" then it work as well
you should NOT disable platform checks!
if you do so we can't guarantee you won't loose BTC to odd bugs!
.. unless you are on a development environment..