alchan-official / rusty_secp256k1

Elixir NIF using a pure Rust implementation of Secp256k1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RustySecp256k1

NIF library using rustler and a pure Rust implementation of Secp256k1. This is not an exhaustive port of the library to Elixir but only meant to provide functionality for:

  • Creating Public Key from Private Keys
  • Decompressing Public Keys
  • Performing point addition using Public Keys and Tweak Keys

For a complete libsecp256k1 implementation see exthereum/libsecp256k1 for a C-based NIF.

Installation

If available in Hex, the package can be installed by adding rusty_secp256k1 to your list of dependencies in mix.exs:

def deps do
  [
    {:rusty_secp256k1, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/rusty_secp256k1.

About

Elixir NIF using a pure Rust implementation of Secp256k1

License:Apache License 2.0


Languages

Language:Rust 56.4%Language:Elixir 43.6%