Created
March 25, 2014 18:28
-
-
Save matiu/9768106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var imports = require('soop').imports(); | |
var bitcore = require('bitcore'); | |
var Storage = imports.Storage || require('./Storage'); | |
function Wallet(opts) { | |
opts = opts || {}; | |
this.network = opts.network === 'livenet' ? | |
bitcore.networks.livenet : bitcore.networks.testnet; | |
this.neededCosigners = opts.neededCosigners || 3; | |
this.totalCosigners = opts.totalCosigners || 5; | |
this.dirty = 1; | |
} | |
Wallet.read = function (BIP38password) { | |
}; | |
Wallet.prototype.generateOwnMasterKey = function () { | |
}; | |
Wallet.prototype.getMasterPrivKey = function (BIP38password) { | |
}; | |
Wallet.prototype.getMasterPubKey = function () { | |
}; | |
Wallet.prototype.addCosignerMasterPubKey = function (pubkey) { | |
}; | |
Wallet.prototype.haveAllNeededPubKeys = function () { | |
}; | |
Wallet.prototype.generateAddress = function () { | |
if (! this.haveAllNeededPubKeys) return; | |
}; | |
Wallet.prototype.store = function () { | |
}; | |
// Input: Bitcore's Transaction, sign with ownPK. | |
Wallet.prototype.signTx = function (tx) { | |
}; | |
module.exports = require('soop')(Wallet); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment