Library providing secp256k1 curve operations. Using this library you can:
- apply scalar multiplication to point(this operation used in Bitcoin private to public keys mapping)
- add two points
This code based on source code from answer:
- This library fix the bug of original library abount the calculate of rem.
pre-requirement
# for OSX
brew install gmp
adding secp256k1
to your list of dependencies in mix.exs
:
def deps do
[
{:secp256k1, git: "https://github.com/peatio/secp256k1", branch: "master"},
]
end