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