diff --git a/ruma-signatures/src/signatures.rs b/ruma-signatures/src/signatures.rs index 8583b826..4c3e7afd 100644 --- a/ruma-signatures/src/signatures.rs +++ b/ruma-signatures/src/signatures.rs @@ -1,6 +1,6 @@ //! Digital signatures and collections of signatures. -use std::collections::HashMap; +use std::collections::BTreeMap; use base64::{encode_config, STANDARD_NO_PAD}; @@ -98,12 +98,12 @@ impl Signature { /// A map from entity names to sets of digital signatures created by that entity. /// /// "Entity" is generally a homeserver, e.g. "example.com". -pub type SignatureMap = HashMap; +pub type SignatureMap = BTreeMap; /// A set of digital signatures created by a single homeserver. /// /// This is represented as a map from signing key ID to Base64-encoded signature. -pub type SignatureSet = HashMap; +pub type SignatureSet = BTreeMap; #[cfg(test)] mod tests {