aboutsummaryrefslogtreecommitdiff
path: root/azalea-crypto
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-15 11:14:40 +0930
committermat <git@matdoes.dev>2025-12-15 11:14:40 +0930
commitdcbd690f21665e22ea250024a1aa85dec34e6c9e (patch)
tree411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-crypto
parentb0a2a809331b0f781517649857d31e0aec67d300 (diff)
downloadazalea-drasl-dcbd690f21665e22ea250024a1aa85dec34e6c9e.tar.xz
sort derives with cargo sort-derives
might add to ci later, unsure how to do it without adding significant friction for contributors though
Diffstat (limited to 'azalea-crypto')
-rw-r--r--azalea-crypto/src/signing.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-crypto/src/signing.rs b/azalea-crypto/src/signing.rs
index 8d21a2f2..57d5e1ad 100644
--- a/azalea-crypto/src/signing.rs
+++ b/azalea-crypto/src/signing.rs
@@ -8,18 +8,18 @@ use rsa::{
use sha2::Sha256;
use uuid::Uuid;
-#[derive(Debug, Clone, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct SaltSignaturePair {
pub salt: u64,
pub signature: Vec<u8>,
}
-#[derive(Clone, Debug, PartialEq, AzBuf)]
+#[derive(AzBuf, Clone, Debug, PartialEq)]
pub struct MessageSignature {
pub bytes: [u8; 256],
}
-#[derive(Clone, Debug, AzBuf, PartialEq)]
+#[derive(AzBuf, Clone, Debug, PartialEq)]
pub struct SignedMessageHeader {
pub previous_signature: Option<MessageSignature>,
pub sender: Uuid,