add sign in block
This commit is contained in:
parent
5e2120b0e9
commit
c3efcb3f27
6 changed files with 79 additions and 30 deletions
|
|
@ -40,7 +40,7 @@ TxProposals.prototype.list = function() {
|
|||
});
|
||||
};
|
||||
|
||||
TxProposals.prototype.create = function(toAddress, amountSat, utxos, onePrivKey) {
|
||||
TxProposals.prototype.create = function(toAddress, amountSat, utxos, privs) {
|
||||
var pkr = this.publicKeyRing;
|
||||
|
||||
if (! pkr.isComplete() ) {
|
||||
|
|
@ -57,8 +57,8 @@ TxProposals.prototype.create = function(toAddress, amountSat, utxos, onePrivKey)
|
|||
.setOutputs([{address: toAddress, amountSat: amountSat}])
|
||||
;
|
||||
|
||||
if (onePrivKey) {
|
||||
b.sign([onePrivKey]);
|
||||
if (privs) {
|
||||
b.sign(privs);
|
||||
}
|
||||
|
||||
var tx = b.build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue