Skip to main content

buildPublicKeyIn

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / Script / buildPublicKeyIn

Function: buildPublicKeyIn()

buildPublicKeyIn(signature, sigtype?): Script

Defined in: node_modules/@opcat-labs/opcat/types/script/script.d.cts:423

Builds a scriptSig (a script for an input) that signs a public key output script.

Parameters

signature

a Signature object, or the signature in DER canonical encoding

Buffer | Signature

sigtype?

number

the type of the signature (defaults to SIGHASH_ALL)

Returns

Script