Class: PublicKeyHashInput

PublicKeyHashInput

new PublicKeyHashInput()

Represents a special kind of input of PayToPublicKeyHash kind.

Source:

Methods

addSignature(signature) → {PublicKeyHashInput}

Add the provided signature

Parameters:
Name Type Description
signature Object
Properties
Name Type Argument Description
publicKey PublicKey
signature Signature
sigtype number <optional>
Source:
Returns:

this, for chaining

Type
PublicKeyHashInput

clearSignature() → {PublicKeyHashInput}

Clear the input's signature

Source:
Returns:

this, for chaining

Type
PublicKeyHashInput

getSignatures(transaction, privateKey, index, sigtype, hashData) → {Array}

Parameters:
Name Type Argument Description
transaction Transaction

the transaction to be signed

privateKey PrivateKey

the private key with which to sign the transaction

index number

the index of the input in the transaction input vector

sigtype number <optional>

the type of signature, defaults to Signature.SIGHASH_ALL

hashData Buffer <optional>

the precalculated hash of the public key associated with the privateKey provided

Source:
Returns:

of objects that can be

Type
Array

isFullySigned() → {boolean}

Query whether the input is signed

Source:
Returns:
Type
boolean