Private
#kindPrivate
#originalPrivate
#scripNOfKPrivate
#scriptPrivate
#scriptPrivate
#scriptPrivate
#timelockPrivate
#timelockGets a ScriptAll from a NativeScript instance.
a ScriptAll if the native script can be down cast, otherwise, undefined.
Gets a ScriptAny from a NativeScript instance.
a ScriptAny if the native script can be down cast, otherwise, undefined.
Gets a ScriptNOfK from a NativeScript instance.
a ScriptNOfK if the native script can be down cast, otherwise, undefined.
Gets a ScriptPubkey from a NativeScript instance.
a ScriptPubkey if the native script can be down cast, otherwise, undefined.
Gets a TimelockExpiry from a NativeScript instance.
a TimelockExpiry if the native script can be down cast, otherwise, undefined.
Gets a TimelockStart from a NativeScript instance.
a TimelockStart if the native script can be down cast, otherwise, undefined.
Computes the script hash of this native script.
the script hash.
Gets the native script kind.
The native script kind.
Creates a Core NativeScript object from the current NativeScript object.
The Core NativeScript object.
Static
fromDeserializes the NativeScript from a CBOR byte array.
The new NativeScript instance.
The CBOR encoded NativeScript object.
Static
fromCreates a NativeScript object from the given Core NativeScript object.
The core NativeScript object.
Static
newGets a NativeScript from a ScriptAll instance.
The ScriptAll instance to 'cast' to native script.
Static
newGets a NativeScript from a ScriptAny instance.
The ScriptAny instance to 'cast' to native script.
Static
newGets a NativeScript from a ScriptNOfK instance.
The ScriptNOfK instance to 'cast' to native script.
Static
newGets a NativeScript from a ScriptPubkey instance.
The ScriptPubkey instance to 'cast' to native script.
Static
newGets a NativeScript from a TimelockExpiry instance.
The TimelockExpiry instance to 'cast' to native script.
Static
newGets a NativeScript from a TimelockStart instance.
The TimelockStart instance to 'cast' to native script.
Generated using TypeDoc
The Native scripts form an expression tree, the evaluation of the script produces either true or false.
Note that it is recursive. There are no constraints on the nesting or size, except that imposed by the overall transaction size limit (given that the script must be included in the transaction in a script witnesses).