Specifies how to deliver a message to a recipient.
All messages are delivered encrypted to their recipient's public address key, so no other account will be able to
read their contents. This enum instead configures which guarantees exist regarding delivery.
There are two aspects to delivery guarantees:
the medium on which the message is sent (off-chain or on-chain)
whether the contract constrains the message to be constructed correctly
Specifies how to deliver a message to a recipient.
All messages are delivered encrypted to their recipient's public address key, so no other account will be able to read their contents. This enum instead configures which guarantees exist regarding delivery.
There are two aspects to delivery guarantees:
For scenarios where the sender is incentivized to deliver the message correctly, use MessageDeliveryEnum::OFFCHAIN (the cheapest delivery option, but requiring that sender and recipient can communicate off-chain) or MessageDeliveryEnum::ONCHAIN_UNCONSTRAINED. If the sender cannot be trusted to send the message to the recipient, use MessageDeliveryEnum::ONCHAIN_CONSTRAINED.