From ae944c03a4ae43df29a5cd7d35c7ad82b7cb937a Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Thu, 20 Oct 2022 14:30:42 +1100 Subject: [PATCH] Use immutable ref for `as_uncompressed_bytes` --- src/keys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keys.rs b/src/keys.rs index ed0265f..cdb21fd 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -157,7 +157,7 @@ impl PublicKey { } /// Export the public key to uncompress (x, y) bytes - pub fn as_uncompressed_bytes(&mut self) -> [u8; G1_BYTES * 2] { + pub fn as_uncompressed_bytes(&self) -> [u8; G1_BYTES * 2] { serialize_uncompressed_g1(&self.point) }