From 186487cbdab5a14ba5649c3f3b4e7ebd8870ae22 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 18 Dec 2019 18:45:17 +0100 Subject: [PATCH] Fix cryptput issues --- www/common/outer/team.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 7c67b22f6..b2ebf2f40 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -1310,18 +1310,18 @@ define([ nThen(function (w) { - var putOpts = { - initialState: '{}', - network: ctx.store.network, - metadata: { - owners: [ctx.store.proxy.edPublic, ephemeralKeys.edPublic] - } - }; (function () { // a random signing keypair to prevent further writes to the channel // we don't need to remember it cause we're only writing once var sign = Invite.generateSignPair(); // { validateKey, signKey} + var putOpts = { + initialState: '{}', + network: ctx.store.network, + metadata: { + owners: [ctx.store.proxy.edPublic, ephemeralKeys.edPublic] + } + }; putOpts.metadata.validateKey = sign.validateKey; // visible with only the invite link @@ -1356,6 +1356,13 @@ define([ // a different random signing key so that the server can't correlate these documents // as components of an invite var sign = Invite.generateSignPair(); // { validateKey, signKey} + var putOpts = { + initialState: '{}', + network: ctx.store.network, + metadata: { + owners: [ctx.store.proxy.edPublic, ephemeralKeys.edPublic] + } + }; putOpts.metadata.validateKey = sign.validateKey; // available only with the link and the content