blocktrail-sdk-php icon indicating copy to clipboard operation
blocktrail-sdk-php copied to clipboard

Iteration count should be at least 512 !

Open sIiiS opened this issue 7 years ago • 6 comments

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 ?

sIiiS avatar Jun 21 '17 21:06 sIiiS

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.

abgit avatar Jun 30 '17 09:06 abgit

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 avatar Jul 05 '17 16:07 LeandroVCastro

@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.

abgit avatar Jul 05 '17 16:07 abgit

after updating to 3.0.5 and also "disable composer platform checks" then it work as well

sIiiS avatar Jul 05 '17 20:07 sIiiS

you should NOT disable platform checks!
if you do so we can't guarantee you won't loose BTC to odd bugs!

rubensayshi avatar Jul 13 '17 12:07 rubensayshi

.. unless you are on a development environment..

abgit avatar Jul 13 '17 14:07 abgit