remove commented-out references to obsolete netKey
This commit is contained in:
parent
bf36376dda
commit
b9ecab9b92
3 changed files with 2 additions and 35 deletions
|
|
@ -38,7 +38,6 @@ function Wallet(opts) {
|
|||
|
||||
this.id = opts.id || Wallet.getRandomId();
|
||||
this.name = opts.name;
|
||||
//this.netKey = opts.netKey || SecureRandom.getRandomBuffer(8).toString('base64');
|
||||
|
||||
// Renew token every 24hs
|
||||
if (opts.tokenTime && new Date().getTime() - opts.tokenTime < 86400000) {
|
||||
|
|
@ -216,7 +215,6 @@ Wallet.prototype._optsToObj = function() {
|
|||
requiredCopayers: this.requiredCopayers,
|
||||
totalCopayers: this.totalCopayers,
|
||||
name: this.name,
|
||||
//netKey: this.netKey,
|
||||
version: this.version,
|
||||
};
|
||||
|
||||
|
|
@ -241,8 +239,6 @@ Wallet.prototype.getMyCopayerId = function() {
|
|||
|
||||
Wallet.prototype.getSecret = function() {
|
||||
var pubkeybuf = new Buffer(this.getMyCopayerId(), 'hex');
|
||||
//var k = new Buffer(this.netKey, 'base64');
|
||||
//var b = Buffer.concat([i, k]);
|
||||
var str = Base58Check.encode(pubkeybuf);
|
||||
return str;
|
||||
};
|
||||
|
|
@ -250,11 +246,9 @@ Wallet.prototype.getSecret = function() {
|
|||
|
||||
Wallet.decodeSecret = function(secretB) {
|
||||
var secret = Base58Check.decode(secretB);
|
||||
//var netKeyBuf = secret.slice(-8);
|
||||
var pubKeyBuf = secret.slice(0, 33);
|
||||
return {
|
||||
pubKey: pubKeyBuf.toString('hex')//,
|
||||
//netKey: netKeyBuf.toString('base64'),
|
||||
pubKey: pubKeyBuf.toString('hex')
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -280,8 +274,7 @@ Wallet.prototype.netStart = function() {
|
|||
var startOpts = {
|
||||
copayerId: myId,
|
||||
token: self.token,
|
||||
maxPeers: self.totalCopayers//,
|
||||
//netKey: this.netKey,
|
||||
maxPeers: self.totalCopayers
|
||||
};
|
||||
|
||||
if (this.publicKeyRing.isComplete()) {
|
||||
|
|
|
|||
|
|
@ -220,7 +220,6 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
|
|||
this.log('\t### PrivateKey Initialized');
|
||||
var opts = {
|
||||
copayerId: privateKey.getId(),
|
||||
//netKey: s.netKey,
|
||||
privkey: privateKey.getIdPriv()
|
||||
};
|
||||
self.network.cleanUp();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue