Skip to content

Instantly share code, notes, and snippets.

@matiu
Created March 25, 2014 18:28
Show Gist options
  • Save matiu/9768106 to your computer and use it in GitHub Desktop.
Save matiu/9768106 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 () {
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