Skip to content

Commit f9e142e

Browse files
rebase
1 parent ced49dd commit f9e142e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crypto/bls/src/impls/fake_crypto.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,7 @@ impl TAggregateSignature<PublicKey, AggregatePublicKey, Signature> for Aggregate
164164
}
165165

166166
fn serialize(&self) -> [u8; SIGNATURE_BYTES_LEN] {
167-
let mut bytes = [0; SIGNATURE_BYTES_LEN];
168-
169-
bytes[..].copy_from_slice(&self.0);
170-
171-
bytes
167+
self.0
172168
}
173169

174170
fn deserialize(bytes: &[u8]) -> Result<Self, Error> {

0 commit comments

Comments
 (0)