Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmanzanera committed Dec 9, 2024
1 parent 9f96127 commit fa4b418
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/archethic/crypto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,10 @@ defmodule Archethic.Crypto do
defp do_generate_deterministic_keypair(:bls, origin, seed) do
private_key = :crypto.hash(:sha512, seed)

{:ok, public_key} = BlsEx.get_public_key(private_key)

keypair = {
BlsEx.get_public_key(private_key),
public_key,
private_key
}

Expand Down Expand Up @@ -442,7 +444,7 @@ defmodule Archethic.Crypto do
end

defp do_sign(:ed25519, data, key), do: Ed25519.sign(key, data)
defp do_sign(:bls, data, key), do: BlsEx.sign(key, data)
defp do_sign(:bls, data, key), do: BlsEx.sign!(key, data)
defp do_sign(curve, data, key), do: ECDSA.sign(curve, key, data)

@doc """
Expand Down

0 comments on commit fa4b418

Please sign in to comment.