trezoa-instructions-sysvar 3.2.2

Type for instruction introspection during execution of Trezoa programs.
docs.rs failed to build trezoa-instructions-sysvar-3.2.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

The serialized instructions of the current transaction.

The instructions sysvar provides access to the serialized instruction data for the currently-running transaction. This allows for instruction introspection, which is required for correctly interoperating with native programs like the secp256k1 and ed25519 programs.

Unlike other sysvars, the data in the instructions sysvar is not accessed through a type that implements the Sysvar trait. Instead, the instruction sysvar is accessed through several free functions within this module.

See also the Trezoa documentation on the instructions sysvar.

Examples

For a complete example of how the instructions sysvar is used see the documentation for secp256k1_instruction in the trezoa-sdk crate.