Skip to main content

tuwunel_matrix/pdu/
hashes.rs

1use serde::{Deserialize, Serialize};
2use tuwunel_core::arrayvec::ArrayString;
3
4/// Content hashes of a PDU.
5#[derive(Clone, Copy, Debug, Default, Deserialize, Serialize)]
6pub struct EventHashes {
7	/// The SHA-256 hash.
8	pub sha256: ArrayString<SHA256_LEN>,
9}
10
11const SHA256_LEN: usize = 43;