small grammar changes

This commit is contained in:
nginnever 2016-02-13 07:49:51 -08:00
parent 3cc3cb31f0
commit 91bc56eb05
2 changed files with 3 additions and 3 deletions

View File

@ -6,9 +6,9 @@ peer-id JavaScript implementation
# Description
A IPFS Peer Id is based on a sha256 hash of the peer public key, using [multihash](https://github.com/jbenet/multihash)
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 currently a base64 encoded string of a protobuf of 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.
# Usage

View File

@ -32,7 +32,7 @@ describe('id', function (done) {
expect(testId.id).to.equal(id.toHexString())
done()
})
it('Recreate an B58 String', done => {
it('Recreate a B58 String', done => {
var id = PeerId.createFromB58String(testIdB58String)
expect(testIdB58String).to.equal(id.toB58String())
done()