Skip to main content

Module script

Module script 

Source
Expand description

Managing sequences of opcodes.

Structs§

Code
Serialized script, used inside transaction inputs and outputs
Component
A script component is used as either the script sig or script pubkey in a script. Depending on T (which generally needs an opcode::Evaluable instance), it has different properties:
Parser
An iterator that provides Opcodes from a byte stream.
Raw
A script represented by two byte sequences – one is the sig, the other is the pubkey.

Enums§

ComponentType
When an entire crate::Script is validated, this is used to tag errors with which component they came from.
Error
Errors that can occur during script verification.

Traits§

Asm
Type that has a “asm” representation.
Evaluable
Evaluation functions for script components.

Type Aliases§

FromChain
A script component (sig or pubkey) that came from the chain.
PubKey
A script pubkey has any Opcode.
Redeem
A redeem script has any Opcode.
Sig
A script sig has only PushValue elements.