ReticulumEx
Elixir wrapper for the Rust reticulum crate via Rustler.
Installation
Add to mix.exs:
def deps do
[
{:reticulum_ex, "~> 0.1.0"}
]
endUsage
Create an identity and compute a destination name hash:
{:ok, id} = ReticulumEx.Identity.new_from_name("alice")
{:ok, priv_hex} = ReticulumEx.Identity.to_hex(id)
{:ok, pub_hex} = ReticulumEx.Identity.public_hex(id)
{:ok, name_hash_hex} = ReticulumEx.Destination.name_hash("example", "chat")Build an announce packet and HDLC-encode for wire transport:
{:ok, packet_bin} = ReticulumEx.Packet.announce(id)
{:ok, frame} = ReticulumEx.HDLC.encode(packet_bin)
See ReticulumEx module docs for more.
Installation
If available in Hex, the package can be installed
by adding reticulum_ex to your list of dependencies in mix.exs:
def deps do
[
{:reticulum_ex, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/reticulum_ex.