Skip to content

Instantly share code, notes, and snippets.

@ryanxcharles
Forked from matiu/gist:9768106
Last active August 29, 2015 13:57
Show Gist options
  • Save ryanxcharles/9768275 to your computer and use it in GitHub Desktop.
Save ryanxcharles/9768275 to your computer and use it in GitHub Desktop.
'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 (index) {
//index can be 0, 1, 2, etc.
if (! this.haveAllNeededPubKeys) return;
};
Wallet.prototype.store = function () {
};
// Input: Bitcore's Transaction, sign with ownPK
// return partially signed or fully signed tx
Wallet.prototype.signTx = function (tx, BIP38password) {
};
module.exports = require('soop')(Wallet);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment