#instructions #anchor #solana #execution #encoding #cpi #fallback

anyix

lightweight instruction encoding for arbitrary fallback execution

14 releases

0.1.13 Nov 20, 2022
0.1.12 Nov 20, 2022
0.1.1 Sep 30, 2022

#16 in #cpi


Used in 2 crates

Apache-2.0

11KB
209 lines

AnyIx

AnyIx is a lightweight instruction encoding scheme intended to allow arbitrary instruction execution without the need for adding direct support for the instructions within a program. Care needs to be taken when using this as it can easily lead to exploits, to prevent unintended consequences, the reference implementation of the handle_anyix function prevents "re-entrant cpi calls".

Dependencies

~10–18MB
~262K SLoC