mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Fix EncryptedHashCacheItem constructor. Update README.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user