Skip to content

Commit

Permalink
Merge pull request #86 from iotaledger/hotfix/publish
Browse files Browse the repository at this point in the history
hotfix/publish
  • Loading branch information
nothingismagick authored Apr 19, 2021
2 parents e67e253 + 45a3b44 commit 8b2177e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ categories = [ "security" ]
description = "The canonical source of cryptographic ground-truth for all IOTA Rust projects"
homepage = "https://iota.org"
repository = "https://github.com/iotaledger/crypto.rs"
exclude = ["/tests", "/bindings", "/.github", "/.changes"]

[package.metadata.docs.rs]
all-features = true
Expand Down
8 changes: 5 additions & 3 deletions src/keys/slip10.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2020-2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

#![allow(clippy::from_over_into)]

extern crate alloc;

use crate::{macs::hmac::HMAC_SHA512, signatures::ed25519::SecretKey};
Expand Down Expand Up @@ -170,8 +172,8 @@ impl AsRef<Chain> for Chain {
}
}

impl From<[u8; 64]> for Key {
fn from(v: [u8; 64]) -> Key {
Key(v)
impl Into<Vec<u8>> for Key {
fn into(self) -> Vec<u8> {
self.0.to_vec()
}
}

0 comments on commit 8b2177e

Please sign in to comment.