Added secret number feature
This commit is contained in:
parent
2a6b78c199
commit
89dba4c616
6 changed files with 90 additions and 14 deletions
|
|
@ -233,7 +233,8 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
|
|||
var opts = {
|
||||
copayerId: privateKey.getId(),
|
||||
privkey: privateKey.getIdPriv(),
|
||||
key: privateKey.getIdKey()
|
||||
key: privateKey.getIdKey(),
|
||||
secretNumber : s.secretNumber,
|
||||
};
|
||||
self.network.cleanUp();
|
||||
|
||||
|
|
@ -248,7 +249,7 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
|
|||
});
|
||||
|
||||
self.network.start(opts, function() {
|
||||
self.network.greet(s.pubKey);
|
||||
self.network.greet(s.pubKey,opts.secretNumber);
|
||||
self.network.on('data', function(sender, data) {
|
||||
if (data.type === 'walletId') {
|
||||
if (data.networkName !== self.networkName) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue