add support for curve message signing and curve validateKeys

This commit is contained in:
ansuz
2017-07-06 18:30:16 +02:00
parent 852b2eaf1d
commit 4b23ef74d7
3 changed files with 73 additions and 22 deletions

View File

@@ -28,11 +28,10 @@ define([
var proxy = Cryptpad.getProxy();
var mySecret = proxy.curvePrivate;
var encryptor = Curve.createEncryptor(info.pubkey, mySecret);
var keys = Curve.deriveKeys(info.pubkey, mySecret);
var encryptor = Curve.createEncryptor(keys);
Cryptpad.removeLoadingScreen();
var message = 'hello!';
Cryptpad.alert(message);
var listmapConfig = {
data: {},