Skip to main content

isDefinedHashType

reddcoinjs-lib v7.0.1-rdd.1Docs


reddcoinjs-lib v7.0.1-rdd.1 / script / isDefinedHashType

Function: isDefinedHashType()

isDefinedHashType(hashType): boolean

Checks if the provided hash type is defined.

A hash type is considered defined if its modified value (after masking with ~0x80) is greater than 0x00 and less than 0x04.

Parameters

hashType: number

The hash type to check.

Returns

boolean

True if the hash type is defined, false otherwise.

Defined in

ts_src/script.ts:310