A KV abstracction API is made available for Circuits to maintain local state during lifecycles. Use that or any external state management solution. Please refrain from using any FS abstractions in your function!
Is Circuit data kept persistent after its lifecycle?
Yes, Circuit data is persisted in its KV Store and distributed to other nodes in the network.
How do I use time securely in my function?
Trusted time in enclaves is problematic, so please don’t use default time APIs. We provide an abstraction API usinng a virtual clock that’s periodically synced from a trusted source. Please refer to our SDKs for more details.
What is the difference between a Circuit and a Function?
A Circuit is a single stateful instance of a Function. A Circuit can be instantiated by other Circuits or by a Function, each with their own namespace identifier.