Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iteration count should be at least 512 ! #62

Open
sIiiS opened this issue Jun 21, 2017 · 6 comments
Open

Iteration count should be at least 512 ! #62

sIiiS opened this issue Jun 21, 2017 · 6 comments

Comments

@sIiiS
Copy link

sIiiS commented Jun 21, 2017

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 ?

@abgit
Copy link

abgit commented Jun 30, 2017

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.

@LeandroVCastro
Copy link

LeandroVCastro commented Jul 5, 2017

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?

@abgit
Copy link

abgit commented Jul 5, 2017

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

@sIiiS
Copy link
Author

sIiiS commented Jul 5, 2017

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

@rubensayshi
Copy link
Contributor

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

@abgit
Copy link

abgit commented Jul 13, 2017

.. unless you are on a development environment..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants