symmetric encryption

This commit is contained in:
Matias Alejo Garcia 2014-04-25 17:36:00 -03:00
commit 751d86e785
4 changed files with 42 additions and 29 deletions

View file

@ -107,7 +107,7 @@ Wallet.prototype._handleData = function(senderId, data, isInbound) {
Wallet.prototype._handleNetworkChange = function(newCopayerId) {
if (newCopayerId) {
this.log('#### Setting new PEER:', newCopayerId);
this.log('#### Setting new COPAYER:', newCopayerId);
this.sendWalletId(newCopayerId);
this.emit('peer', this.network.peerFromCopayer(newCopayerId));
}
@ -256,7 +256,7 @@ Wallet.prototype.sendWalletReady = function(recipients) {
};
Wallet.prototype.sendWalletId = function(recipients) {
this.log('### SENDING walletId TO:', recipients || 'All', this.walletId);
this.log('### SENDING walletId TO:', recipients || 'All', this.id);
this.network.send(recipients, {
type: 'walletId',