diff --git a/rebar.config b/rebar.config index 00e7c6b..5c59793 100644 --- a/rebar.config +++ b/rebar.config @@ -6,7 +6,7 @@ [{sha3, {git, "https://git.qpq.swiss/QPQ-AG/erlang-sha3.git", - {ref, "77c4e048aea75bd0bc2b5ca6cb02b7230d081c71"}}}]}. + {ref, "12587a70ca17e2f365abb7c184e666e830821989"}}}]}. {profiles, [{test, @@ -15,6 +15,10 @@ {git, "https://git.qpq.swiss/QPQ-AG/enacl.git", {ref, "4eb7ec70084ba7c87b1af8797c4c4e90c84f95a2"}}}, + {sha3, + {git, + "https://git.qpq.swiss/QPQ-AG/erlang-sha3.git", + {ref, "12587a70ca17e2f365abb7c184e666e830821989"}}}, {ecrecover, {git, "https://git.qpq.swiss/QPQ-AG/ecrecover.git", @@ -25,6 +29,10 @@ {git, "https://git.qpq.swiss/QPQ-AG/enacl.git", {ref, "4eb7ec70084ba7c87b1af8797c4c4e90c84f95a2"}}}, + {sha3, + {git, + "https://git.qpq.swiss/QPQ-AG/erlang-sha3.git", + {ref, "12587a70ca17e2f365abb7c184e666e830821989"}}}, {ecrecover, {git, "https://git.qpq.swiss/QPQ-AG/ecrecover.git", diff --git a/rebar.lock b/rebar.lock index ce623be..a8dd74d 100644 --- a/rebar.lock +++ b/rebar.lock @@ -3,7 +3,7 @@ {<<"sha3">>, {git, "https://git.qpq.swiss/QPQ-AG/erlang-sha3.git", - {ref,"77c4e048aea75bd0bc2b5ca6cb02b7230d081c71"}}, + {ref, "12587a70ca17e2f365abb7c184e666e830821989"}}, 0}]}. [ {pkg_hash,[ diff --git a/src/ecu_crypto.erl b/src/ecu_crypto.erl index 170d52c..3a57271 100644 --- a/src/ecu_crypto.erl +++ b/src/ecu_crypto.erl @@ -12,7 +12,7 @@ keccak256/1]). private_to_short(bitcoin, PrivateKey) -> - public_to_short(bitcoin, aeu_ecdsa:private_to_public(secp256k1, PrivateKey)); + public_to_short(bitcoin, ecu_ecdsa:private_to_public(secp256k1, PrivateKey)); private_to_short(ethereum, <>) -> public_to_short(ethereum, ecu_secp256k1:scalar_mul_base(PrivateKey)).