diff --git a/Gruntfile.js b/Gruntfile.js
index b48e9ff1c..3951d93c1 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -24,7 +24,7 @@ module.exports = function(grunt) {
tasks: ['markdown']
},
scripts: {
- files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!browser/bundle.js', '!browser/testdata.js', '!lib/**js', '!browser/vendor-bundle.js', '!js/copayBundle.js'],
+ files: ['*.js', '**/*.js', '*.html', '!**/node_modules/**', '!lib/**js', '!browser/vendor-bundle.js', '!js/copayBundle.js'],
tasks: ['shell'],
},
},
diff --git a/css/main.css b/css/main.css
index 635c5efb2..869544273 100644
--- a/css/main.css
+++ b/css/main.css
@@ -245,3 +245,8 @@ button.secondary:hover { background-color: #FFDF00 !important;}
.br100 {border-radius: 100%;}
+input.ng-dirty.ng-invalid {
+ border: 2px red solid;
+}
+
+
diff --git a/index.html b/index.html
index 9b077558b..20de40e1b 100644
--- a/index.html
+++ b/index.html
@@ -82,18 +82,6 @@
Connecting to wallet...
-
-
-
Join Wallet Creation
-
-
-
-
-
-
-
-
+
+
+
Join a Wallet in Creation
+
+
+
+
+
+
+
+
Import from file
@@ -113,7 +114,7 @@
-
Open Existing Wallet
+ Open Wallet
diff --git a/js/controllers/signin.js b/js/controllers/signin.js
index 979cb5f9d..67db9c1a7 100644
--- a/js/controllers/signin.js
+++ b/js/controllers/signin.js
@@ -19,6 +19,9 @@ console.log('[signin.js.23:walletId:]',walletId); //TODO
};
$scope.join = function(secret) {
+ if (!secret || !secret.length) {
+ return;
+ }
$scope.loading = true;
walletFactory.network.on('joinError', function() {
diff --git a/js/models/core/PrivateKey.js b/js/models/core/PrivateKey.js
index bf8cfa9de..2002a14b6 100644
--- a/js/models/core/PrivateKey.js
+++ b/js/models/core/PrivateKey.js
@@ -23,7 +23,8 @@ PrivateKey.prototype.getId = function(prefix) {
if (prefix) {
buf = Buffer.concat([prefix, buf]);
}
- return util.ripe160(buf).toString('hex');
+ var hash = util.sha256(buf).toString('hex');
+ return hash.substring(0, hash.length/2);
};
diff --git a/js/models/core/PublicKeyRing.js b/js/models/core/PublicKeyRing.js
index a2a26ce58..ee2e74756 100644
--- a/js/models/core/PublicKeyRing.js
+++ b/js/models/core/PublicKeyRing.js
@@ -82,7 +82,8 @@ PublicKeyRing.prototype.getCopayerId = function(i, prefix) {
if (prefix) {
buf = Buffer.concat([prefix, buf]);
}
- return util.ripe160(buf).toString('hex');
+ var hash = util.sha256(buf).toString('hex');
+ return hash.substring(0, hash.length/2);
};
PublicKeyRing.prototype.myCopayerId = function(i, prefix) {
diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js
index eb1b58fc4..e69bc0d6d 100644
--- a/js/models/core/Wallet.js
+++ b/js/models/core/Wallet.js
@@ -144,17 +144,7 @@ Wallet.prototype._optsToObj = function () {
Wallet.prototype.getPeerId = function(index) {
- // if (typeof index === 'undefined') {
- // // return my own peerId
- // var gen = this.privateKey.getId(idBuf);
- // return gen;
- // }
- // return peer number 'index' peerId
- //
- var idBuf;
-// TODO idBuf DISABLED FOR NOW
-//idBuf = new Buffer(this.id);
- return this.publicKeyRing.getCopayerId(index || 0, idBuf);
+ return this.publicKeyRing.getCopayerId(index || 0);
};