mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-11 18:29:50 +00:00
Fix EncryptedHashCacheItem constructor. Update README.
This commit is contained in:
parent
7e1007948d
commit
02f5af4bc0
@ -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
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user