Skip to main content

SignatureRequest

scrypt-ts / SignatureRequest

Interface: SignatureRequest

SignatureRequest contains required informations for a signer to sign a certain input of a transaction.

Table of contents

Properties

Properties

address

address: AddressesOption

The address(es) of corresponding private key(s) required to sign the input.

Defined in

dist/bsv/abstract-signer.d.ts:15


csIdx

Optional csIdx: number

Index of the OP_CODESEPARATOR to split the previous output script at during verification. If undefined, the whole script is used.

Defined in

dist/bsv/abstract-signer.d.ts:24


data

Optional data: unknown

The extra information for signing.

Defined in

dist/bsv/abstract-signer.d.ts:26


inputIndex

inputIndex: number

The index of input to sign.

Defined in

dist/bsv/abstract-signer.d.ts:11


outputIndex

outputIndex: number

Defined in

dist/bsv/abstract-signer.d.ts:9


prevTxId

prevTxId: string

Defined in

dist/bsv/abstract-signer.d.ts:8


satoshis

satoshis: number

The previous output satoshis value of the input to spend.

Defined in

dist/bsv/abstract-signer.d.ts:13


scriptHex

Optional scriptHex: string

The previous output script of input, default value is a P2PKH locking script for the address if omitted.

Defined in

dist/bsv/abstract-signer.d.ts:17


sigHashType

Optional sigHashType: number

The sighash type, default value is SIGHASH_ALL | SIGHASH_FORKID if omitted.

Defined in

dist/bsv/abstract-signer.d.ts:19