Skip to main content

SigHashType

scrypt-ts-opcat v1.0.1


scrypt-ts-opcat / SigHashType

Enumeration: SigHashType

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

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:223


ANYONECANPAY

ANYONECANPAY: 128

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


ANYONECANPAY_ALL

ANYONECANPAY_ALL: 129

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


ANYONECANPAY_NONE

ANYONECANPAY_NONE: 130

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


ANYONECANPAY_SINGLE

ANYONECANPAY_SINGLE: 131

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


NONE

NONE: 2

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


SINGLE

SINGLE: 3

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