reilabs / llvm-to-cairo

Efforts to compile LLVM bytecode to run on top of the CairoVM and hence execute provably on Starknet
http://starknet.io
Apache License 2.0
1 stars 0 forks source link

Design Chain Interface for Rust #62

Open ktemkin opened 5 days ago

ktemkin commented 5 days ago

Description

Being able to excute LLVM IR alone is not all that useful. As we want this effort to enable writing contracts, we have to determine how to expose the chain’s interface to the guest code. This will likely require a source-language specific effort, so for now we will focus on Rust.

This should expose basic chain operations to rust, as well as "host calls" to allow passing data back and forth between user-written (non-polyfill) Cairo and code compiled from LLVM.