Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helium/erlang-multiaddr

Erlang implementation of multiaddr
https://github.com/helium/erlang-multiaddr

erlang multiaddr multiformats

Last synced: 3 months ago
JSON representation

Erlang implementation of multiaddr

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/helium/erlang-multiaddr.svg?branch=master)](https://travis-ci.org/helium/erlang-multiaddr)
[![Coverage Status](https://coveralls.io/repos/github/helium/erlang-multiaddr/badge.svg?branch=master)](https://coveralls.io/github/helium/erlang-multiaddr?branch=master)

# erlang-multiaddr

An Erlang implementation for [multiaddr](https://github.com/multiformats/multiaddr).

## Usage

```
multiaddr:new("/ip6/2601:9:4f81:9700:803e:ca65:66e8:c21")
```

The encoder is idempotent:

```
Str = "/ip6/2601:9:4f81:9700:803e:ca65:66e8:c21",
Str = multiaddr:to_string(multiaddr:new("/ip6/2601:9:4f81:9700:803e:ca65:66e8:c21")).
```