mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-25 07:22:32 +00:00
small grammar changes
This commit is contained in:
parent
3cc3cb31f0
commit
91bc56eb05
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user