Closed gutenye closed 5 years ago
It seems to me that the returned value of this call is:
> '0'.repeat(32).split('')
(32) ["0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"]
However we are expecting an array of bytes, more like this:
> Array(32).fill(0)
(32) [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
@nicarq
Thanks for quick reply. Tested with Array(32).fill(0)
, still returns false
.
My version is built from the master branch.
@gutenye wrong Nicolas :)
@NicolasDP Could you please take a look at it?
I'll put that up on my task list
thanks for reporting the issue, it was indeed a bug. The SEED_SIZE was not exported and was left undefined
. We then always had an invalid Wallet's SEED. This is fixed in #40 . I'll merge the PR which will close this issue. However if you find the issue is not solved to satisfaction, we can always reopen.
Given
it returns
false