From f16c08e7fd417689d8983cdcedfb437f7606c003 Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 7 Apr 2016 19:45:21 -0400 Subject: [PATCH] update the readme --- README.md | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 700be26..a8913fb 100644 --- a/README.md +++ b/README.md @@ -13,40 +13,41 @@ peer-id JavaScript implementation An IPFS Peer Id is based on a sha256 hash of the peer public key, using [multihash](https://github.com/jbenet/multihash) -The public key is a base64 encoded string of a protobuf containing an RSA DER buffer. This uses a node buffer to pass the base64 encoded public key protobuf to the multihash for ID generation. +The public key is a base64 encoded string of a protobuf containing an RSA DER buffer. This uses a node buffer to pass the base64 encoded public key protobuf to the multihash for ID generation. +# Installation -# Usage +## npm -### In Node.js through npm - -```bash -> npm install --save peer-id +```sh +> npm i peer-id ``` -```javascript -const PeerId = require('peer-id') -``` - -### In the Browser through Webpack - -Follow our [webpack config](/webpack.config.js) example. - -### In the Browser through browserify - -> **WIP** Doesn't work out yet - -### In the Browser through ` + + +``` + +# Usage ### Creating a new Id