diff --git a/lightspark/src/key.rs b/lightspark/src/key.rs index f79c907..cc23833 100644 --- a/lightspark/src/key.rs +++ b/lightspark/src/key.rs @@ -20,7 +20,7 @@ impl OperationSigningKey for RSASigningKey { } fn sign_payload(&self, data: &[u8]) -> Result { - crypto::sign_payload(&self.key_bytes, data) + crypto::sign_payload(data, &self.key_bytes) } }