Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/iota-crypto/src/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl crate::PrivateKeyExt for Secp256k1PrivateKey {
const SCHEME: SignatureScheme = SignatureScheme::Secp256k1;

fn to_bytes(&self) -> Vec<u8> {
self.0.to_bytes().as_slice().to_vec()
self.0.to_bytes().to_vec()
}

fn from_raw_bytes(bytes: &[u8]) -> Result<Self, crate::PrivateKeyError> {
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-crypto/src/secp256r1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl crate::PrivateKeyExt for Secp256r1PrivateKey {
const SCHEME: SignatureScheme = SignatureScheme::Secp256r1;

fn to_bytes(&self) -> Vec<u8> {
self.0.to_bytes().as_slice().to_vec()
self.0.to_bytes().to_vec()
}

fn from_raw_bytes(bytes: &[u8]) -> Result<Self, crate::PrivateKeyError> {
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-sdk-types/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Hasher {
let mut buf = [0; Digest::LENGTH];
let result = self.0.finalize();

buf.copy_from_slice(result.as_slice());
buf.copy_from_slice(result.as_ref());

Digest::new(buf)
}
Expand Down
Loading