Skip to content

Commit ef98da4

Browse files
committed
Merge remote-tracking branch 'benma/drop-eth-crate'
2 parents a3698ec + 84a3e06 commit ef98da4

File tree

12 files changed

+153
-220
lines changed

12 files changed

+153
-220
lines changed

src/rust/Cargo.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ members = [
1818
"bitbox02-rust-c",
1919
"bitbox02-rust",
2020
"util",
21-
"apps/ethereum",
2221
"bitbox02-noise",
2322
"bitbox02",
2423
"bitbox02-sys",

src/rust/apps/ethereum/Cargo.toml

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/rust/apps/ethereum/src/keypath.rs

Lines changed: 0 additions & 145 deletions
This file was deleted.

src/rust/apps/ethereum/src/lib.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/rust/bitbox02-rust-c/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ bitbox02-rust = { path = "../bitbox02-rust", optional = true }
2727
bitbox02 = { path = "../bitbox02", optional = true }
2828
bitbox02-noise = { path = "../bitbox02-noise", optional = true }
2929
util = { path = "../util" }
30-
ethereum = { path = "../apps/ethereum", optional = true }
3130
hex = { version = "0.4", default-features = false }
3231
sha2 = { version = "0.9.2", default-features = false, optional = true }
3332

@@ -55,8 +54,6 @@ firmware = ["bitbox02-rust", "bitbox02", "bitbox02-noise", "sha2"]
5554
testing = ["bitbox02/testing"]
5655

5756
app-ethereum = [
58-
# these are dependencies
59-
"ethereum",
6057
# enable this feature in the deps
6158
"bitbox02-rust/app-ethereum",
6259
"bitbox02/app-ethereum",

src/rust/bitbox02-rust/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ doctest = false
2828
[dependencies]
2929
bitbox02 = {path = "../bitbox02"}
3030
util = {path = "../util"}
31-
ethereum = { path = "../apps/ethereum", optional = true }
3231
binascii = { version = "0.1.4", default-features = false, features = ["encode"] }
3332
bitbox02-noise = {path = "../bitbox02-noise"}
3433
hex = { version = "0.4", default-features = false }
@@ -52,7 +51,6 @@ features = ["prost-derive"]
5251
[features]
5352
app-ethereum = [
5453
# enable these dependencies
55-
"ethereum",
5654
"sha3",
5755
"num-bigint",
5856
# enable this feature in the deps

src/rust/bitbox02-rust/src/hww/api/ethereum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ compile_error!(
1717
"Ethereum code is being compiled even though the app-ethereum feature is not enabled"
1818
);
1919

20+
mod address;
2021
mod amount;
2122
mod keypath;
2223
mod pubrequest;

src/rust/apps/ethereum/src/address.rs renamed to src/rust/bitbox02-rust/src/hww/api/ethereum/address.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2021 Shift Crypto AG
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
use sha3::digest::Digest;
216

317
use alloc::string::String;
@@ -38,7 +52,6 @@ pub fn from_pubkey(pubkey_uncompressed: &[u8; 65]) -> String {
3852
#[cfg(test)]
3953
mod tests {
4054
use super::*;
41-
use std::prelude::v1::*;
4255

4356
#[test]
4457
fn test_from_pubkey_hash() {

0 commit comments

Comments
 (0)