Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

ethkey no longer uses byteorder #10786

Merged
merged 1 commit into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion accounts/ethkey/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ version = "0.3.0"
authors = ["Parity Technologies <admin@parity.io>"]

[dependencies]
byteorder = "1.0"
edit-distance = "2.0"
parity-crypto = "0.4.0"
eth-secp256k1 = { git = "https://github.com/paritytech/rust-secp256k1" }
Expand Down
5 changes: 2 additions & 3 deletions accounts/ethkey/src/extended.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ impl Label for u32 {
fn len() -> usize { 4 }

fn store(&self, target: &mut [u8]) {
use byteorder::{BigEndian, ByteOrder};

BigEndian::write_u32(&mut target[0..4], *self);
let bytes = self.to_be_bytes();
target[0..4].copy_from_slice(&bytes);
}
}

Expand Down
1 change: 0 additions & 1 deletion accounts/ethkey/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

// #![warn(missing_docs)]

extern crate byteorder;
extern crate edit_distance;
extern crate parity_crypto;
extern crate ethereum_types;
Expand Down