Skip to main content

Crate tari_script

Crate tari_script 

Source

Macros§

inputs
script

Structs§

CheckSigHashDomain
A hashing domain instance
ExecutionStack
ScriptContext
Contextual data for use in Tari scripts. The context will typically be unambiguously and deterministically populated by nodes that are executing the script.
TariScript

Enums§

Opcode
OpcodeVersion
The script opcode version, used by consensus to restrict which opcodes may appear in output scripts.
ScriptError
StackItem

Constants§

MAX_SCRIPT_BYTES
The maximum length of a serialised script accepted by TariScript::from_bytes.
MAX_SCRIPT_OPCODES
The maximum number of opcodes in a script, the bound of ScriptOpcodes.
MAX_STACK_SIZE
The maximum number of items on an ExecutionStack.

Functions§

push_pubkey_script
The standard payment script to be used for one-sided payment to public addresses
slice_to_boxed_hash
Convert a slice into a Boxed HashValue.
slice_to_boxed_message
Convert a slice into a Boxed Message.
slice_to_hash
Convert a slice into a HashValue.

Type Aliases§

CheckSigSchnorrSignature
The type used for CheckSig, CheckMultiSig, and related opcodes’ signatures
CompressedCheckSigSchnorrSignature
HashValue
Message
ScalarValue
ScriptOpcodes
The sized vector of opcodes that make up a script, at most MAX_SCRIPT_OPCODES opcodes.