pub fn exchange(
route: &str,
sender: &str,
payload: Sadder,
modifiers: Sadder,
embeds: &[(&str, &[u8])],
recipient: Option<&str>,
date: Option<&str>,
dig: Option<&str>,
) -> Result<(SerderKERI, Vec<u8>), KERIError>Expand description
Build an exn message (keripy: peer/exchanging.py exchange).
route: therfield, e.g./fwd.sender: theifield, the sender’s AID.payload: theablock;recipient, when given, goes first in it asi.modifiers: theqblock.embeds: named KERI messages (with attachments) embedded ine. Each message’s body goes ine[label]; its attachments are returned in the second value as a pathed material group pointing at/e/label.date: thedtfield;Noneis now.dig: thepfield, the SAID of a priorexn.
Returns the exn and the pathed attachments to send after its own
signatures.