Package for zx/zomp

This commit is contained in:
2022-05-16 21:26:04 +09:00
parent e557b1c405
commit 8b2fd35408
12 changed files with 42 additions and 7 deletions
+1
View File
@@ -1,3 +1,4 @@
-module(ec_utils).
-vsn("0.1.0").
-export([]).
+1
View File
@@ -3,6 +3,7 @@
%%% Description :
%%% Created : 13 Jan 2022 by Hans Svensson
-module(ecu_crypto).
-vsn("0.1.0").
-export([private_to_short/2, public_to_short/2,
eth_sign/2, eth_recover/2, eth_verify/3, eth_msg_hash/1,
+1
View File
@@ -3,6 +3,7 @@
%%% Description : ecdsa functionality
%%% Created : 13 Jan 2022 by Hans Svensson
-module(ecu_ecdsa).
-vsn("0.1.0").
-export([sign/3, verify/4,
sign_secp256k1/2,
+1
View File
@@ -4,6 +4,7 @@
%%% Just for usage when speed isn't crucial...
%%% Created : 13 Jan 2022 by Hans Svensson
-module(ecu_ed25519).
-vsn("0.1.0").
-define(P, 16#7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFED).
-define(N, 16#1000000000000000000000000000000014DEF9DEA2F79CD65812631A5CF5D3ED).
+1
View File
@@ -3,6 +3,7 @@
%%% Description : eddsa functionality - when possible compatible with enacl.
%%% Created : 19 Jan 2022 by Hans Svensson
-module(ecu_eddsa).
-vsn("0.1.0").
-export([sign_keypair/0,
sign_seed_keypair/1,
+1
View File
@@ -3,6 +3,7 @@
%%% Description : Misc. functionality
%%% Created : 13 Jan 2022 by Hans Svensson
-module(ecu_misc).
-vsn("0.1.0").
-export([eea/2, exp_mod/3,
hex_to_bin/1, bin_to_hex/1,
+1
View File
@@ -4,6 +4,7 @@
%%% Just for usage when speed isn't crucial...
%%% Created : 22 Dec 2021 by Hans Svensson
-module(ecu_secp256k1).
-vsn("0.1.0").
-define(P, 16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F).
-define(A, 16#00).