Skip to main content

SigHashType

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


@opcat-labs/scrypt-ts-opcat / SigHashType

Enumeration: SigHashType

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:230

Enum representing the different signature hash types used in Bitcoin script. These flags determine which parts of the transaction are signed.

Remarks

The values correspond to standard Bitcoin signature hash flags:

  • ALL: Signs all inputs/outputs (default)
  • NONE: Signs only inputs (outputs can be changed)
  • SINGLE: Signs inputs and corresponding output
  • ANYONECANPAY variants allow additional inputs to be added later

Enumeration Members

ALL

ALL: 1

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:231


ANYONECANPAY

ANYONECANPAY: 128

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:234


ANYONECANPAY_ALL

ANYONECANPAY_ALL: 129

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:235


ANYONECANPAY_NONE

ANYONECANPAY_NONE: 130

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:236


ANYONECANPAY_SINGLE

ANYONECANPAY_SINGLE: 131

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:237


NONE

NONE: 2

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:232


SINGLE

SINGLE: 3

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/primitives.ts:233