toWireHeaders method
Serializes this message to wire headers map using Base64 for binary fields.
RETURNS: {"version": "$version", "window": "$window", "nonce": "<b64>", "ciphertext": "<b64>"}
HINT: Attach this map as HTTP headers at the call site; this library does not send HTTP.
Implementation
Map<String, String> toWireHeaders() {
return {
'version': version.toString(),
'window': window.toString(),
'nonce': Bytes.toBase64(nonce),
'ciphertext': Bytes.toBase64(ciphertext),
};
}