From 4d2879c5b68408fb2239a08ece0092bee8f8ec26 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 5 Aug 2014 10:11:59 -0700 Subject: [PATCH] paypro: expose serialized payment request data on tx proposal. --- js/models/core/Wallet.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 5f026dc01..774771bc3 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -921,7 +921,10 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) { untrusted: !ca }, request_url: options.uri, - total: bignum('0', 10).toString(10) + total: bignum('0', 10).toString(10), + // Expose so other copayers can verify signature + // and identity, not to mention data. + raw: pr.serialize().toString('hex') }; return this.getUnspent(function(err, unspent) {