Compare commits
2 Commits
c262d63c89
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 30944928da | |||
| 0c36c788ed |
+1
-1
@@ -3,7 +3,7 @@
|
||||
{registered,[]},
|
||||
{included_applications,[]},
|
||||
{applications,[stdlib,kernel]},
|
||||
{vsn,"1.0.0"},
|
||||
{vsn,"1.0.1"},
|
||||
{modules,[ecu_crypto_eqc,ed25519_eqc,eddsa_eqc,ec_utils,
|
||||
ecu_crypto,ecu_ecdsa,ecu_ed25519,ecu_eddsa,ecu_misc,
|
||||
ecu_secp256k1,benchmark_tests,crypto_tests,
|
||||
|
||||
+26
-9
@@ -1,14 +1,31 @@
|
||||
{erl_opts, [debug_info]}.
|
||||
|
||||
{plugins, [
|
||||
{eqc_rebar, {git, "https://github.com/Quviq/eqc-rebar.git", {branch, "master"}}}
|
||||
]}.
|
||||
{plugins, [{eqc_rebar, {git, "https://github.com/Quviq/eqc-rebar.git", {branch, "master"}}}]}.
|
||||
|
||||
{deps,
|
||||
[{sha3, {git, "https://github.com/aeternity/erlang-sha3", {ref, "b5f27a2"}}}]}.
|
||||
[{sha3,
|
||||
{git,
|
||||
"https://git.qpq.swiss/QPQ-AG/erlang-sha3.git",
|
||||
{ref, "77c4e048aea75bd0bc2b5ca6cb02b7230d081c71"}}}]}.
|
||||
|
||||
{profiles, [{test, [{deps, [{enacl, {git, "https://github.com/aeternity/enacl.git", {ref, "5bae41c"}}},
|
||||
{ecrecover, {git, "https://github.com/aeternity/ecrecover.git", {ref, "74b7816"}}}]}]},
|
||||
{eqc, [{deps, [{enacl, {git, "https://github.com/aeternity/enacl.git", {ref, "38ffc76"}}},
|
||||
{ecrecover, {git, "https://github.com/aeternity/ecrecover.git", {ref, "74b7816"}}}]}]}
|
||||
]}.
|
||||
{profiles,
|
||||
[{test,
|
||||
[{deps,
|
||||
[{enacl,
|
||||
{git,
|
||||
"https://git.qpq.swiss/QPQ-AG/enacl.git",
|
||||
{ref, "4eb7ec70084ba7c87b1af8797c4c4e90c84f95a2"}}},
|
||||
{ecrecover,
|
||||
{git,
|
||||
"https://git.qpq.swiss/QPQ-AG/ecrecover.git",
|
||||
{ref, "ce4175eaf2667a07ce41348dc6d4332477e30637"}}}]}]},
|
||||
{eqc,
|
||||
[{deps,
|
||||
[{enacl,
|
||||
{git,
|
||||
"https://git.qpq.swiss/QPQ-AG/enacl.git",
|
||||
{ref, "4eb7ec70084ba7c87b1af8797c4c4e90c84f95a2"}}},
|
||||
{ecrecover,
|
||||
{git,
|
||||
"https://git.qpq.swiss/QPQ-AG/ecrecover.git",
|
||||
{ref, "ce4175eaf2667a07ce41348dc6d4332477e30637"}}}]}]}]}.
|
||||
|
||||
+4
-3
@@ -1,8 +1,9 @@
|
||||
{"1.2.0",
|
||||
[{<<"hex2bin">>,{pkg,<<"hex2bin">>,<<"1.0.0">>},1},
|
||||
[{<<"hex2bin">>,{pkg,<<"hex2bin">>,<<"1.0.0">>},1},
|
||||
{<<"sha3">>,
|
||||
{git,"https://github.com/aeternity/erlang-sha3",
|
||||
{ref,"b5f27a29ba1179e5907c50d7ec7aa79b2857e981"}},
|
||||
{git,
|
||||
"https://git.qpq.swiss/QPQ-AG/erlang-sha3.git",
|
||||
{ref,"77c4e048aea75bd0bc2b5ca6cb02b7230d081c71"}},
|
||||
0}]}.
|
||||
[
|
||||
{pkg_hash,[
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-module(ec_utils).
|
||||
-vsn("1.0.0").
|
||||
-vsn("1.0.1").
|
||||
|
||||
-export([]).
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
%%% Description :
|
||||
%%% Created : 13 Jan 2022 by Hans Svensson
|
||||
-module(ecu_crypto).
|
||||
-vsn("1.0.0").
|
||||
-vsn("1.0.1").
|
||||
|
||||
-export([private_to_short/2, public_to_short/2,
|
||||
ec_recover/2,
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
%%% Description : ecdsa functionality
|
||||
%%% Created : 13 Jan 2022 by Hans Svensson
|
||||
-module(ecu_ecdsa).
|
||||
-vsn("1.0.0").
|
||||
-vsn("1.0.1").
|
||||
|
||||
-export([sign/3, verify/4,
|
||||
sign_secp256k1/2,
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
%%% Just for usage when speed isn't crucial...
|
||||
%%% Created : 13 Jan 2022 by Hans Svensson
|
||||
-module(ecu_ed25519).
|
||||
-vsn("1.0.0").
|
||||
-vsn("1.0.1").
|
||||
|
||||
-define(P, 16#7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFED).
|
||||
-define(N, 16#1000000000000000000000000000000014DEF9DEA2F79CD65812631A5CF5D3ED).
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
%%% Description : eddsa functionality - when possible compatible with enacl.
|
||||
%%% Created : 19 Jan 2022 by Hans Svensson
|
||||
-module(ecu_eddsa).
|
||||
-vsn("1.0.0").
|
||||
-vsn("1.0.1").
|
||||
|
||||
-export([sign_keypair/0,
|
||||
sign_seed_keypair/1,
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
%%% Description : Misc. functionality
|
||||
%%% Created : 13 Jan 2022 by Hans Svensson
|
||||
-module(ecu_misc).
|
||||
-vsn("1.0.0").
|
||||
-vsn("1.0.1").
|
||||
|
||||
-export([eea/2, exp_mod/3,
|
||||
hex_to_bin/1, bin_to_hex/1,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
%%% Just for usage when speed isn't crucial...
|
||||
%%% Created : 22 Dec 2021 by Hans Svensson
|
||||
-module(ecu_secp256k1).
|
||||
-vsn("1.0.0").
|
||||
-vsn("1.0.1").
|
||||
|
||||
-define(P, 16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F).
|
||||
-define(A, 16#00).
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
{a_email,"hanssv@gmail.com"}.
|
||||
{name,"Elliptic Curve Utils"}.
|
||||
{type,lib}.
|
||||
{modules,[]}.
|
||||
{prefix,none}.
|
||||
{desc,"Helper functions for cryptography, mostly related to elliptic curves."}.
|
||||
{author,"Hans Svensson"}.
|
||||
{package_id,{"otpr","ec_utils",{1,0,1}}}.
|
||||
{deps,[{"otpr","sha3",{0,1,5}}]}.
|
||||
{key_name,none}.
|
||||
{a_email,"hanssv@gmail.com"}.
|
||||
{c_email,"hanssv@gmail.com"}.
|
||||
{copyright,"Hans Svensson"}.
|
||||
{deps,[{"otpr","sha3",{0,1,3}}]}.
|
||||
{desc,"Helper functions for cryptography, mostly related to elliptic curves."}.
|
||||
{file_exts,[]}.
|
||||
{key_name,none}.
|
||||
{license,"MIT"}.
|
||||
{modules,[]}.
|
||||
{name,"Elliptic Curve Utils"}.
|
||||
{package_id,{"otpr","ec_utils",{1,0,0}}}.
|
||||
{prefix,none}.
|
||||
{repo_url,"https://github.com/hanssv/ec_utils"}.
|
||||
{repo_url,"https://git.qpq.swiss/QPQ-AG/ec_utils"}.
|
||||
{tags,["cryptography","elliptic curve","crypto","enacl"]}.
|
||||
{type,lib}.
|
||||
{ws_url,"https://github.com/hanssv/ec_utils"}.
|
||||
{ws_url,"https://git.qpq.swiss/QPQ-AG/ec_utils"}.
|
||||
|
||||
Reference in New Issue
Block a user