new PublicKeyHashInput()
Represents a special kind of input of PayToPublicKeyHash kind.
Methods
-
addSignature(signature) → {PublicKeyHashInput}
-
Add the provided signature
Parameters:
Name Type Description signatureObject Properties
Name Type Argument Description publicKeyPublicKey signatureSignature sigtypenumber <optional>
Returns:
this, for chaining
- Type
- PublicKeyHashInput
-
clearSignature() → {PublicKeyHashInput}
-
Clear the input's signature
Returns:
this, for chaining
- Type
- PublicKeyHashInput
-
getSignatures(transaction, privateKey, index, sigtype, hashData) → {Array}
-
Parameters:
Name Type Argument Description transactionTransaction the transaction to be signed
privateKeyPrivateKey the private key with which to sign the transaction
indexnumber the index of the input in the transaction input vector
sigtypenumber <optional>
the type of signature, defaults to Signature.SIGHASH_ALL
hashDataBuffer <optional>
the precalculated hash of the public key associated with the privateKey provided
Returns:
of objects that can be
- Type
- Array
-
isFullySigned() → {boolean}
-
Query whether the input is signed
Returns:
- Type
- boolean