Skip to content

Commit

Permalink
Update dependencies (#629)
Browse files Browse the repository at this point in the history
* deps/plugin: update submodule

* Add blake2 to make target

* Add blake2.cpp to node's cmake list

* cmake/client/CMakeLists, krypto: add blake2compress hook

* krypto: formatting
  • Loading branch information
rv-jenkins authored Dec 15, 2019
1 parent d9b0b8d commit 8bbaf04
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ $(llvm_kompiled): $(llvm_files) $(libff_out)
--hook-namespaces KRYPTO \
$(KOMPILE_OPTS) \
-ccopt $(PLUGIN_SUBMODULE)/plugin-c/crypto.cpp \
-ccopt $(PLUGIN_SUBMODULE)/plugin-c/blake2.cpp \
-ccopt -g -ccopt -std=c++14 -ccopt -O2 \
-ccopt -L$(LIBRARY_PATH) \
-ccopt -lff -ccopt -lcryptopp -ccopt -lsecp256k1 $(addprefix -ccopt ,$(LINK_PROCPS))
Expand Down
3 changes: 2 additions & 1 deletion cmake/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ add_executable(kevm-client
$ENV{PLUGIN_SUBMODULE}/client-c/main.cpp
$ENV{PLUGIN_SUBMODULE}/client-c/json.cpp
$ENV{PLUGIN_SUBMODULE}/client-c/HttpHandler.cpp
$ENV{PLUGIN_SUBMODULE}/plugin-c/crypto.cpp)
$ENV{PLUGIN_SUBMODULE}/plugin-c/crypto.cpp
$ENV{PLUGIN_SUBMODULE}/plugin-c/blake2.cpp)

if(UNIX AND NOT APPLE)
set(LINK_PROCPS procps)
Expand Down
1 change: 1 addition & 0 deletions cmake/node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ add_executable(kevm-vm
$ENV{PLUGIN_SUBMODULE}/vm-c/init.cpp
$ENV{PLUGIN_SUBMODULE}/vm-c/main.cpp
$ENV{PLUGIN_SUBMODULE}/vm-c/vm.cpp
$ENV{PLUGIN_SUBMODULE}/plugin-c/blake2.cpp
$ENV{PLUGIN_SUBMODULE}/plugin-c/blockchain.cpp
$ENV{PLUGIN_SUBMODULE}/plugin-c/crypto.cpp
$ENV{PLUGIN_SUBMODULE}/plugin-c/world.cpp
Expand Down
2 changes: 1 addition & 1 deletion deps/plugin
3 changes: 2 additions & 1 deletion krypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ In all functions above, input `String` is interpreted as byte array, e.g. it is
| RipEmd160 ( String ) [function, hook(KRYPTO.ripemd160)]
| ECDSASign ( String, String ) [function, hook(KRYPTO.ecdsaSign)]
| ECDSAPubKey ( String ) [function, hook(KRYPTO.ecdsaPubKey)]
// ------------------------------------------------------------------------------------------------------
| Blake2Compress ( String ) [function, hook(KRYPTO.blake2compress)]
// ---------------------------------------------------------------------------------------------------------
```

The BN128 elliptic curve is defined over 2-dimensional points over the fields of zero- and first-degree polynomials modulo a large prime. (x, y) is a point on G1, whereas (x1 x x2, y1 x y2) is a point on G2, in which x1 and y1 are zero-degree coefficients and x2 and y2 are first-degree coefficients. In each case, (0, 0) is used to represent the point at infinity.
Expand Down

0 comments on commit 8bbaf04

Please sign in to comment.