[−][src]Function indyrs::crypto::pack_message
pub fn pack_message(
wallet_handle: WalletHandle,
message: &[u8],
receiver_keys: &str,
sender: Option<&str>
) -> Box<dyn Future<Item = Vec<u8>, Error = IndyError>>
Unpacks a message packed using indy_pack_message which follows the wire message format HIPE (Experimental)
Arguments
wallet_handle
: wallet handle (created by Wallet::open).message
: a pointer to the first byte of the message to be encryptedreceiver_keys
: a JSON array as a string containing a list of the receivers verkey'ssender
: a string of the sender's verkey When None is used in this parameter, anoncrypt is used
Returns
a json structure in the form of a JWE that contains the encrypted message and associated metadata