Module handshakes::types::lockingscript[][src]

Expand description

Handshake LockingScript and WitnessProgram

Structs

LockingScript

A LockingScript

WitnessProgram

A WitnessProgram represents the data field of a LockingScript. Since Handshake is segwit only, the WitnessProgram doesn’t contain opcodes itself, it is templated into a script at runtime. The size of the WitnessProgram determines how it is interpreted for version 0 LockingScripts.

WitnessStackItem

A WitnessStackItem is a marked Vec<u8> intended for use in witnesses. Each Witness is a PrefixVec<WitnessStackItem>. The Transactions witnesses is a non-prefixed Vec<Witness>.

Enums

LockingScriptError

Errors associated with WitnessProgram

LockingScriptType

Standard script types, and a non-standard type for all other scripts.

Type Definitions

Witness

A Witness is a PrefixVec of WitnessStackItems. This witness corresponds to a single input.