#instructions #anchor #solana #execution #encoding #cpi #handle-anyix

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

#11 in #cpi

Download history 1/week @ 2024-04-21 4/week @ 2024-05-19 4/week @ 2024-06-02 8/week @ 2024-06-09 3/week @ 2024-06-16 96/week @ 2024-07-07 7/week @ 2024-07-28

103 downloads per month
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

~11–19MB
~264K SLoC