Skip to content

Commit 3652f65

Browse files
committed
more message constructors
1 parent bbf6007 commit 3652f65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/config/secure-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class SecureConfig extends IConfig {
372372

373373
this.content = await this.config.read(this.id+'.content')
374374

375-
const contentMsg = new dataparty_crypto.Message( )
375+
const contentMsg = new dataparty_crypto.Message( {} )
376376
contentMsg.fromJSON(this.content)
377377

378378
//! Verify message
@@ -468,7 +468,7 @@ class SecureConfig extends IConfig {
468468

469469
this.updateTimeout()
470470

471-
const decryptedContent = new dataparty_crypto.Message( )
471+
const decryptedContent = new dataparty_crypto.Message( {} )
472472
decryptedContent.fromJSON(this.content)
473473
await decryptedContent.decrypt(this.identity)
474474

src/party/iparty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class IParty {
311311
async decrypt(reply, expectedSender, expectClearTextReply = false){
312312
// if reply has ciphertext & sig attempt to decrypt
313313
if (reply.enc && reply.sig) {
314-
const msg = new dataparty_crypto.Message()
314+
const msg = new dataparty_crypto.Message({})
315315
msg.fromJSON(reply)
316316

317317
const replyContent = await msg.decrypt(this._identity)

0 commit comments

Comments
 (0)