Compare commits

...

2 Commits

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