Skip to content

Commit

Permalink
Merge pull request #52 from sigp/uncompressed
Browse files Browse the repository at this point in the history
Use immutable ref for `as_uncompressed_bytes`
  • Loading branch information
kirk-baird authored Nov 1, 2022
2 parents e8c48ea + ae944c0 commit 8802e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,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)
}

Expand Down

0 comments on commit 8802e5c

Please sign in to comment.