|
|
@ -25,7 +25,7 @@ inherits(PublicKeyHashInput, Input); |
|
|
|
* @param {Transaction} transaction - the transaction to be signed |
|
|
|
* @param {PrivateKey} privateKey - the private key with which to sign the transaction |
|
|
|
* @param {number} index - the index of the input in the transaction input vector |
|
|
|
* @param {number=Singature.SIGHASH_ALL} sigtype - the type of signature |
|
|
|
* @param {number=} sigtype - the type of signature, defaults to Signature.SIGHASH_ALL |
|
|
|
* @param {Buffer=} hashData - the precalculated hash of the public key associated with the privateKey provided |
|
|
|
* @return {Array} of objects that can be |
|
|
|
*/ |
|
|
@ -54,7 +54,7 @@ PublicKeyHashInput.prototype.getSignatures = function(transaction, privateKey, i |
|
|
|
* @param {Object} signature |
|
|
|
* @param {PublicKey} signature.publicKey |
|
|
|
* @param {Signature} signature.signature |
|
|
|
* @param {number=Signature.SIGHASH_ALL} signature.sigtype |
|
|
|
* @param {number=} signature.sigtype |
|
|
|
* @return {PublicKeyHashInput} this, for chaining |
|
|
|
*/ |
|
|
|
PublicKeyHashInput.prototype.addSignature = function(transaction, signature) { |
|
|
|