Giter Club home page Giter Club logo

hs-multiaddr's Introduction

hs-multiaddr

multiaddr implementation in Haskell.

multiaddr is a standard way to represent addresses that:

  • support any standard network protocols
  • self-describe (include protocols)
  • have a binary packed format
  • have a nice string representation
  • encapsulate well

Network protocols

The network protocols currently supported by this implementation are:

  • ip4
  • tcp
  • udp
  • dccp
  • ip6
  • sctp
  • udt
  • utp
  • ipfs
  • http
  • https
  • websockets

Documentation

Check out the documentation!

License

MIT

Copyright (c) 2016 Basile Henry

hs-multiaddr's People

Contributors

basile-henry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

matrixai

hs-multiaddr's Issues

Multiple separators

Hey we're studying this library for a full libp2p implementation.

I have to ask however, is that why did you make it so that it can parse many separators.

The parser accepts /ip4/////////127.0.0.1/////////. I wasn't aware this is a legal multiaddress.

Move to Multiformats?

Hey @basile-henry!

Thanks so much for this. As you may know, we recently created the Multiformats organization to be a home for all of the multiformats - multiaddr, multihash, etc. Would you be interested in moving this repository to that organization?

Thanks for taking the time to read this. ๐Ÿ‘

Tracking issue, here: multiformats/multiformats#4.

Alternate implementation

I have a Haskell multiaddr implementation that I started a couple months ago (and I'm afraid I've taken the multiaddr name on hackage). It offers a similar set of functionality as yours; perhaps we should be collaborating?

The usage of void

As I was reviewing the parsing code, I noticed that the usages of void is redundant, the *> operators already drops the left functors argument.

So you don't really need void in protoString and sep.

When you do need void it's possible to apply it on the outside during composition. I can submit a PR if you like?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.