add update on network events to txproposals

This commit is contained in:
Matias Alejo Garcia 2014-04-25 17:53:19 -03:00
commit e46901c369
3 changed files with 16 additions and 2 deletions

View file

@ -201,6 +201,8 @@ console.log('[WebRTC.js.161:payload:]',payload); //TODO
}
var copayerIdBuf = new Buffer(this.copayerForPeer[peerId],'hex');
console.log('[WebRTC.js.204] sig:', sig); //TODO
if (!bitcore.Message.verifyWithPubKey( copayerIdBuf, JSON.stringify(payload),
new Buffer(sig,'hex'))) {
console.log('[WebRTC.js.152] SIGNATURE VERIFICATION FAILED!!'); //TODO