Closed paulperegud closed 6 years ago
What works:
1) install libgmp-dev
2) mix deps.get
3) cd deps/libsecp256k1
4) rebar compile
5) cd ../..
6) mix compile
mix
tries to compile libsecp256k1 using rebar3
instead of rebar
, which leads to bad results.
Building the NIF is pretty janky right now. We only use the library to get derive a public key from an ECDSA signature as this is not available in erlang's crypto module. I assume the math isn't that difficult and it's probably worth building it directly into exth_crypto to remove this dependency.
I've used clean ubuntu (docker image).
There must be a problem with compilation flags.