receiveMessage method
[Future<[void>]] receiveMessage(
- [[Map[<[String], dynamic>]] message, ]
- [[HiveInterface] hive]
)
Helper function to decrypt the message.
Internally uses the loadKeyPair function to get private key and assymetricDecryptString to decrypt the given message.
params:
message
: Message object containing a field namedencryptedMessage
which is supposed to contained user's message in encrypted format.hive
: The HiveInterface to store things in.
returns: None
Implementation
Future<void> receiveMessage(
Map<String, dynamic> message,
HiveInterface hive,
) async