semantic-internet-protocol

an implementation of the semantic internet protocol 1.0


License
GPL-3.0
Install
npm install semantic-internet-protocol@0.0.5

Documentation

semantic-internet-protocol

Build Status

This Repo contains the spec for the semantic-internet-protocol and serialize/deserialize functions. It is written in JSON-Schema You can find the spec in the source directory

installation

$ npm install semantic-internet-protocol

usage

import { header, knowledge, interest } from 'semantic-internet-protocol'

API

# header.serialize({ version: Float, command: INTEREST|EXPOSE,

#contentLength: Int }) -> string

# header.deserialize(string) -> object

knowledge.serialize(Object) -> msgpack string

knowledge.deserialize(msgpack string) -> object

interest.serialize(Object) -> msgpack string

interest.deserialize(msgpack string) -> object