Fix EncryptedHashCacheItem constructor. Update README.

This commit is contained in:
haad 2015-12-26 21:11:43 +02:00
parent 7e1007948d
commit 02f5af4bc0
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class HashCacheItem {
class EncryptedHashCacheItem extends HashCacheItem {
constructor(sequenceNumber, targetHash, metaInfo, publicKey, privateKey, salt) {
super(sequenceNumber, targetHash, metaInfo, publicKey, privateKey, salt);
super(sequenceNumber, targetHash, metaInfo);
this.pubkey = publicKey;
this.target = encryption.encrypt(targetHash, privateKey, publicKey);
this.payload = this.target; // old hash-cache api compatibility

View File

@ -15,7 +15,6 @@ orbit-server uses linked lists on top of IPFS.
- channel.setMode()
## API
connect(host, username, password)
channel(name, password)
@ -26,6 +25,8 @@ orbit-server uses linked lists on top of IPFS.
.delete()
.setMode(modes) // TODO
## Usage
```javascript
var OrbitClient = require('./OrbitClient');