mirror of https://github.com/BTCPrivate/copay.git
mv log to util
This commit is contained in:
parent
19d1bde546
commit
30a6109abf
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
|
||||||
|
- 2-2
|
||||||
|
1 desktop
|
||||||
|
1 mobile
|
||||||
|
|
||||||
|
- each device creates its own key
|
||||||
|
- both devices are expected to be logged using the same profile (email / password)
|
||||||
|
- if using local storage -> all is OK.
|
||||||
|
- keys will be safe an will never leave the device
|
||||||
|
|
||||||
|
- if using insight
|
||||||
|
both 'copayers' need to have a new and different password for accessing the wallet.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
- homeWallet address...e sta ok?
|
||||||
|
- receive controller .. owned
|
||||||
|
--
|
||||||
|
// pkr.cache = opts.cache;
|
||||||
|
|
||||||
|
(en send.js)
|
||||||
|
// $rootScope.pendingTxCount = res.pendingForUs;
|
||||||
|
|
||||||
|
-- probar payment intent
|
||||||
|
|
||||||
|
// TODO refrescar en 'add'
|
|
@ -125,7 +125,7 @@ Identity.open = function(opts, cb) {
|
||||||
|
|
||||||
var storage = opts.storage || opts.pluginManager.get('DB');
|
var storage = opts.storage || opts.pluginManager.get('DB');
|
||||||
storage.setCredentials(opts.email, opts.password, opts);
|
storage.setCredentials(opts.email, opts.password, opts);
|
||||||
storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data, headers) {
|
storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data) {
|
||||||
var exported;
|
var exported;
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb(err);
|
return cb(err);
|
||||||
|
@ -135,7 +135,7 @@ Identity.open = function(opts, cb) {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return cb(e);
|
return cb(e);
|
||||||
}
|
}
|
||||||
return cb(null, new Identity(_.extend(opts, exported)), headers);
|
return cb(null, new Identity(_.extend(opts, exported)));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -643,10 +643,11 @@ Identity.prototype.deleteWallet = function(walletId, cb) {
|
||||||
delete this.focusedTimestamps[walletId];
|
delete this.focusedTimestamps[walletId];
|
||||||
|
|
||||||
this.storage.removeItem(Wallet.getStorageKey(walletId), function(err) {
|
this.storage.removeItem(Wallet.getStorageKey(walletId), function(err) {
|
||||||
if (err) return cb(err);
|
if (err) {
|
||||||
|
return cb(err);
|
||||||
|
}
|
||||||
self.emitAndKeepAlive('deletedWallet', walletId);
|
self.emitAndKeepAlive('deletedWallet', walletId);
|
||||||
self.store(null, cb);
|
self.store(null, cb);
|
||||||
return cb();
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
- We have an historical opportunity
|
||||||
|
|
||||||
|
- To create the software EVERYONE in the WORLD will use for their finance
|
||||||
|
- To enhance everyone's life by creating an awesome software
|
||||||
|
- To colaborate with Bitcoin adoption, by creating a simple and intuite wallet
|
||||||
|
-
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- be obsessive about the UX
|
||||||
|
- fucking use Copay
|
||||||
|
- subscribe and read bitcore dev
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- Company funds
|
||||||
|
- Startups
|
||||||
|
- Middle size companies
|
||||||
|
|
||||||
|
- Friends funds
|
||||||
|
- Own funds
|
||||||
|
- 1-1 for every day usage
|
||||||
|
- easy and FAST mobile access
|
||||||
|
- QR reading
|
||||||
|
- PayPro
|
||||||
|
|
||||||
|
- 2-4 for long term holding
|
||||||
|
- swipe without need of insight or copay.io
|
||||||
|
- paper walleting
|
||||||
|
-
|
||||||
|
|
||||||
|
NOT:
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
wallet addr: 2N7YdozHPSyDomeov9sU6kL3RdGkZPUaV2v
|
||||||
|
|
||||||
|
|
||||||
|
ematiu+1@gmail.com password: 123
|
||||||
|
extPubKey: tprv8ZgxMBicQKsPdWNCTqR5zbCTTCLgc4saAQE32LqLWMHmSzFncTdZegFS7CyA8FKQX9kX7FPAJ1scvtkgumYRJ4iAc4pNekm3LzPtikR3C2L
|
||||||
|
|
||||||
|
ematiu+2@gmail.com password:2
|
||||||
|
extPubKey: tprv8ZgxMBicQKsPem5BuuDT6xY9etUC2RohpUoyzoa1MEkkZyAHhszaHPZTmgDheN31hSP1r6bRwpj2JC66r1CPpftwaRrhz9Wz3e9yRVScw9Y
|
||||||
|
|
||||||
|
|
||||||
|
ematiu+3@gmail.com password:3
|
||||||
|
extPubKey: tprv8ZgxMBicQKsPeQixUQZw1zm2LY6uJqT6oJMStMQHsHkMQDFXwxdomkkFCvMWZbQri3B8mzapiMvREXP85HFKmoUND48yfLEq7AuNCaj41Dw
|
||||||
|
|
||||||
|
|
||||||
|
util/swipeWallet.js n2kMqQ8Si9GndzQ6FrJxcwHMKacK2rCEpK 2 tprv8ZgxMBicQKsPdWNCTqR5zbCTTCLgc4saAQE32LqLWMHmSzFncTdZegFS7CyA8FKQX9kX7FPAJ1scvtkgumYRJ4iAc4pNekm3LzPtikR3C2L tprv8ZgxMBicQKsPem5BuuDT6xY9etUC2RohpUoyzoa1MEkkZyAHhszaHPZTmgDheN31hSP1r6bRwpj2JC66r1CPpftwaRrhz9Wz3e9yRVScw9Y tprv8ZgxMBicQKsPeQixUQZw1zm2LY6uJqT6oJMStMQHsHkMQDFXwxdomkkFCvMWZbQri3B8mzapiMvREXP85HFKmoUND48yfLEq7AuNCaj41Dw
|
||||||
|
|
||||||
|
my addr: n2kMqQ8Si9GndzQ6FrJxcwHMKacK2rCEpK
|
||||||
|
|
|
@ -116,6 +116,9 @@ var createBundle = function(opts) {
|
||||||
|
|
||||||
// The following 2 lines fix karma tests
|
// The following 2 lines fix karma tests
|
||||||
b.require('sjcl');
|
b.require('sjcl');
|
||||||
|
b.require('./js/util/log', {
|
||||||
|
expose: '../../log.js'
|
||||||
|
});
|
||||||
|
|
||||||
if (opts.debug) {
|
if (opts.debug) {
|
||||||
//include dev dependencies
|
//include dev dependencies
|
||||||
|
|
Loading…
Reference in New Issue