use the same APIs when creating invites as you do when redeeming them

This commit is contained in:
ansuz
2019-12-16 10:22:22 -05:00
parent 042cfffbe8
commit af463c2de9
3 changed files with 59 additions and 31 deletions

View File

@@ -42,6 +42,18 @@ var factory = function (Hash, Nacl, Scrypt/*, Util, Cred, nThen */) {
cb,
'base64'); // format, could be 'base64'
};
Invite.getPreviewContent = function (seeds, cb) {
var secrets = Invite.derivePreviewSecrets(seeds);
secrets = secrets;
cb("NOT_IMPLEMENTED"); // XXX cryptget
};
// XXX remember to pin invites...
Invite.setPreviewContent = function (seeds, cb) {
cb = cb;
};
return Invite;
};
if (typeof(module) !== 'undefined' && module.exports) {