Canister guard in Rust on the Internet Computer

David Dal Busco
3 min readDec 15, 2022
Photo by Illumination Marketing on Unsplash

I recently discovered ​it was possible to specify a guard function to be executed before update and query functions of canister smart contracts written in Rust on the Internet Computer.

​​You might tell me that the following post is just a rip off of the Crate documentation but, as I only figured out this was possible while having a look at the transaction notifier repo of OpenChat

--

--