View Source Tezex
A collection of utils to work with the Tezos blockchain using Elixir: parsing Micheline, verifying Tezos signed messages, deriving Tezos wallet addresses from public key, etc.
Read the documentation on hexdocs.
Since what this lib provides is so far limited to what we need at objkt.com, external contributions are most welcome. For instance if you need to sign messages or transactions, or translating Micheline to hex, we'd love to collaborate on a PR.
installation
Installation
The package can be installed by adding tezex
to your list of dependencies in mix.exs
:
def deps do
[
{:tezex, "~> 0.1.0"}
]
end
requirements
Requirements
OTP24 or above, it needs an elixir version that uses OTP 24 or above, for instance
elixir 1.14.3-otp-25
erlang 25.2.3
or
elixir 1.13.3-otp-24
erlang 24.3.4
This lib depends on enacl which requires libsodium
and other config/compilation tools.
For macOS: brew install libsodium gmp automake libtool gcc
.
If you have an Apple Silicon processor take a look here: https://github.com/jlouis/enacl/issues/53 .
test
Test
$ mix test
$ mix test.watch
$ mix coveralls.html
generate-documentation
Generate Documentation
$ mix docs