Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I introduced a new `persist_event_if` function to be used where a potentially async side effect needs to be performed so that we may construct a persistent event. In my particular situation, I have a behaviour that maintains a synchronised counter and a private key for all edge-based gateways. This counter is required to be incremented and then encrypted along with a single entity's stable MAC address, which is a field of the entity state. The result is a value that can be used in a "public address" which does not reveal an underlying stable address. For more info on this type of address: https://en.wikipedia.org/wiki/IPv6_address#Stable_privacy_addresses.
- Loading branch information