Skip to content

Commit

Permalink
Fix hexadecimal seed to be compliant with libjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Jul 5, 2022
1 parent 113b6c3 commit 5ba428d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/archethic/crypto/keystore/node/software_impl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ defmodule Archethic.Crypto.NodeKeystore.SoftwareImpl do
read_seed()

seed ->
seed
case Base.decode16(seed, case: :mixed) do
:error ->
seed

{:ok, seed} ->
seed
end
end

nb_keys = read_index()
Expand Down

0 comments on commit 5ba428d

Please sign in to comment.