Modules§
Structs§
Constants§
Functions§
- caller 🔒Unlike Motoko, the caller identity is not built into Rust. Thus, we use the ic_cdk::caller() method inside this wrapper function. The wrapper prevents the use of the anonymous identity. Forbidding anonymous interactions is the recommended default behavior for IC canisters.