trezor WIP
This commit is contained in:
parent
9ce342bba7
commit
4c9385f78b
2 changed files with 2 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ console.log('[profileService.js.239:walletClient:]',walletClient); //TODO
|
||||||
root._seedWallet(opts, function(err, walletClient) {
|
root._seedWallet(opts, function(err, walletClient) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
|
||||||
walletClient.joinWallet(opts.secret, opts.myName || 'me', function(err) {
|
walletClient.joinWallet(opts.secret, opts.myName || 'me', {}, function(err) {
|
||||||
if (err) return bwsError.cb(err, gettext('Could not join wallet'), cb);
|
if (err) return bwsError.cb(err, gettext('Could not join wallet'), cb);
|
||||||
|
|
||||||
root.profile.credentials.push(JSON.parse(walletClient.export()));
|
root.profile.credentials.push(JSON.parse(walletClient.export()));
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ angular.module('copayApp.services')
|
||||||
var pathArr = i.path.split('/');
|
var pathArr = i.path.split('/');
|
||||||
console.log('[trezor.js.72:pathArr:]',pathArr); //TODO
|
console.log('[trezor.js.72:pathArr:]',pathArr); //TODO
|
||||||
var n = [44 | 0x80000000, 0 | 0x80000000, account | 0x80000000, parseInt(pathArr[1]) , parseInt(pathArr[2])];
|
var n = [44 | 0x80000000, 0 | 0x80000000, account | 0x80000000, parseInt(pathArr[1]) , parseInt(pathArr[2])];
|
||||||
|
console.log('[trezor.js.74]', n); //TODO
|
||||||
return {
|
return {
|
||||||
address_n: n,
|
address_n: n,
|
||||||
prev_index: i.vout,
|
prev_index: i.vout,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue