|
|
2ab5e7b444
|
Adding src/libsecp256k1/rng.h
|
2023-03-22 14:39:42 +01:00 |
|
|
|
d737fe4762
|
Adding vendor/secp256k1/CMakeLists.txt
|
2023-03-22 14:39:42 +01:00 |
|
|
|
9587586968
|
move vendor/secp256k1-0.3.0 to vendor/secp256k1/repo
|
2023-03-22 14:39:42 +01:00 |
|
|
|
e8ee3fc0de
|
Adding vendor/secp256k1-0.3.0
|
2023-03-22 14:39:42 +01:00 |
|
|
|
8a55500854
|
Merge branch 'openssl-ecdsa' into devel
|
2023-03-22 14:39:03 +01:00 |
|
|
|
d853ed6f62
|
Adding src/openssl/ecdsa.cpp
|
2023-03-22 14:38:03 +01:00 |
|
|
|
f0ebda6da5
|
src/openssl/internal.h: Adding signature serialize/unserialize function definitions.
|
2023-03-22 14:37:33 +01:00 |
|
|
|
4aa94ebee9
|
src/openssl/helpers.c: Adding signature serialize/unserialize functions.
|
2023-03-22 14:37:33 +01:00 |
|
|
|
073955ab50
|
src/openssl/internal.h: Adding EC_KEY_new_secp256k1 macro
|
2023-03-22 14:37:33 +01:00 |
|
|
|
d695d1c9ad
|
src/openssl/internal.h: Adding ECDSA_SIG_recover_key_GFp function definition.
|
2023-03-22 14:21:17 +01:00 |
|
|
|
e4150af355
|
Adding src/openssl/recovery.c
|
2023-03-22 14:20:44 +01:00 |
|
|
|
88dacd22f8
|
src/openssl/ec.cpp: move helper functions/macros to internal.h and helpers.c files.
|
2023-03-22 14:19:36 +01:00 |
|
|
|
fdaab853ee
|
CMakeLists.txt: add "C" to project languages.
|
2023-03-22 14:16:01 +01:00 |
|
|
|
b1da6552f7
|
src/openssl/ec.cpp: make calculate_pubkey() output an EC_POINT instead of encoding to binary, also pass group as a parameter.
|
2023-03-22 14:03:03 +01:00 |
|
|
|
7ead6f6bde
|
src/openssl/ec.cpp: simplify EC_POINT_point2oct() with a macro.
|
2023-03-22 13:59:14 +01:00 |
|
|
|
fe873c1df8
|
tests/ec/ecdsa_sign.cpp: need to use ecdsa_verify() to check signatures.
different implementations produce different signatures so we can't use hardcoded values.
|
2023-03-22 13:46:28 +01:00 |
|
|
|
95740d47b3
|
tests/ec/ecdsa_verify.cpp: Adding more tests
|
2023-03-22 13:42:53 +01:00 |
|
|
|
a3efb5a5f2
|
src/openssl/ec.cpp: Remove unused variables.
|
2023-03-21 15:43:39 +01:00 |
|
|
|
15eaa97cec
|
tests/ec: fix test names.
|
2023-03-21 15:34:26 +01:00 |
|
|
|
7ef801c2a8
|
include/libeosio/ec.hpp: Adding ecdsa_recover()
|
2023-03-21 13:28:37 +01:00 |
|
|
|
640f67a934
|
include/libeosio/ec.hpp: Adding ecdsa_sign and ecdsa_verify()
|
2023-03-21 13:28:30 +01:00 |
|
|
|
73819444e5
|
include/libeosio/WIF.hpp: adding signature encode/decode functions.
|
2023-03-20 13:48:35 +01:00 |
|
|
|
8a6b476a8b
|
include/libeosio/ec.hpp: Adding signature type.
|
2023-03-20 13:48:35 +01:00 |
|
|
|
6eaf6ebe71
|
Adding tests/ec/generate.cpp
|
2023-03-20 13:47:04 +01:00 |
|
|
|
171876bbfa
|
include/libeosio/ec.hpp: adding ec_generate_privkey() and ec_get_publickey()
|
2023-03-19 21:51:18 +01:00 |
|
|
|
4b8c1c7733
|
src/ec.cpp: in _hex() add comma between numbers.
|
2023-03-19 15:32:08 +01:00 |
|
|
|
d904fd38c3
|
src/ec.cpp: in _hex() append leading zero if value is <= 0xF
|
2023-03-19 15:32:08 +01:00 |
|
|
|
6c6c7e2329
|
src/openssl/ec.cpp: implement ec_init() and ec_shutdown()
|
2023-03-19 12:02:14 +01:00 |
|
|
|
b9c9e58050
|
include/libeosio/ec.hpp: Add ec_init() and ec_shutdown() functions.
|
2023-03-19 12:02:14 +01:00 |
|
|
|
0c9b867049
|
CMakeLists.txt: Should link to OpenSSL with PRIVATE scope instead of INTERFACE. otherwise include path to openssl will not be added to the target.
|
2023-03-15 12:15:04 +01:00 |
|
|
|
ab932b92e4
|
.github/workflows/CI.yml: disable fail-fast
|
2023-03-15 11:17:35 +01:00 |
|
|
|
07bee1e9e5
|
.github/workflows/CI.yml: Change cmake ENABLE_TESTING variable to BUILD_TESTING
|
2023-03-15 11:11:46 +01:00 |
|
|
|
6b0d1aa459
|
CMakeLists.txt: Adding WITH_BENCHMARK option.
|
2023-03-14 21:19:00 +01:00 |
|
|
|
d7cdf9476d
|
CMakeLists.txt: CTest already defines "BUILD_TESTING" variable. so we do not have to use our own.
|
2023-03-14 21:18:05 +01:00 |
|
|
|
5f2fa977c3
|
Adding tests/benchmark/ec.cpp
|
2023-03-14 21:11:14 +01:00 |
|
|
|
de7f1c3e19
|
CMakeLists.txt: link with OpenSSL using imported target instead of variables.
|
2023-03-11 13:07:07 +01:00 |
|
|
|
9576e9d36f
|
include/libeosio/hash.hpp: Include cstddef instead of cstdint (std::size_t should be more consistent with that header across platforms)
|
2023-03-11 10:52:29 +01:00 |
|
|
|
541eb089e8
|
CMakeLists.txt: typo fix. OpenSSL not OpenGL :)
|
2023-03-11 09:55:52 +01:00 |
|
|
|
2a2360bd7d
|
Split include/libeosio/types.hpp into ec.hpp and hash.hpp
|
2023-03-11 09:48:12 +01:00 |
|
|
|
6a721c4634
|
README.md: Update the security notice to reflect that this is a library and not a program.
|
2023-03-10 14:08:04 +01:00 |
|
|
|
7be8afcd88
|
README.md: Drop support for ubuntu 18.04
|
2023-03-10 14:00:30 +01:00 |
|
|
|
9e41381798
|
.github/workflows/CI.yml: remove ubuntu 18.04 as it will be removed from github (see https://github.com/actions/runner-images/issues/6002)
|
2023-03-10 13:59:24 +01:00 |
|
|
|
70866da335
|
.github/workflows/package.yml: dont need to build twice for ubuntu 20.04 :)
|
2023-03-10 13:57:18 +01:00 |
|
|
|
0bc8fde4ad
|
Version 0.1.5
|
2023-03-10 13:49:58 +01:00 |
|
|
|
c990bae52e
|
include/libeosio/WIF.hpp: Adding wif_pub_decode function
|
2023-03-10 13:48:26 +01:00 |
|
|
|
65f93f061c
|
tests/WIF: move structs local to test functions.
|
2023-03-10 13:27:10 +01:00 |
|
|
|
12a3be919a
|
tests/base58/is_base58.cpp: add subcase and fix test structs.
|
2023-03-10 13:26:19 +01:00 |
|
|
|
e712d4ec4d
|
tests/base58/decode.cpp: fix structs and move them local to test case function.
|
2023-03-10 13:21:54 +01:00 |
|
|
|
000f45e1f4
|
tests/base58/encode.cpp: add subcase and fix test structs.
|
2023-03-10 13:20:05 +01:00 |
|
|
|
3336f8d051
|
Adding tests/WIF/pub_encode.cpp
|
2023-03-10 13:10:07 +01:00 |
|