Skip to content

Commit

Permalink
feat: add version to OKX data
Browse files Browse the repository at this point in the history
  • Loading branch information
soralit committed Sep 28, 2023
1 parent bfd6ac0 commit d5f60b3
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 53 deletions.
4 changes: 2 additions & 2 deletions rust/apps/aptos/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/bitcoin/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/cardano/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/cosmos/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/ethereum/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/near/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/solana/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/tron/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/apps/utils/Cargo.lock

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

26 changes: 2 additions & 24 deletions rust/apps/wallets/Cargo.lock

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

1 change: 1 addition & 0 deletions rust/apps/wallets/src/keplr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub fn generate_sync_ur(
keys,
Some(DEVICE_TYPE.to_string()),
None,
None,
))
}

Expand Down
1 change: 1 addition & 0 deletions rust/apps/wallets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mod utils;
pub mod xrp_toolkit;

pub const DEVICE_TYPE: &str = "Keystone 3 Pro";
pub const DEVICE_VERSION: &str = "1.0.2";

//key maybe 78 bytes xpub (k1) or just 32 bytes public key(ed25519) or 64 bytes bip32-ed25519 xpub
//they are differed in path
Expand Down
3 changes: 2 additions & 1 deletion rust/apps/wallets/src/okx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use third_party::{
},
};

use crate::{common::get_path_component, ExtendedPublicKey, DEVICE_TYPE};
use crate::{common::get_path_component, ExtendedPublicKey, DEVICE_TYPE, DEVICE_VERSION};

fn get_device_id(serial_number: &str) -> String {
use third_party::cryptoxide::hashing::sha256;
Expand Down Expand Up @@ -82,6 +82,7 @@ pub fn generate_crypto_multi_accounts(
keys,
Some(DEVICE_TYPE.to_string()),
Some(device_id),
Some(DEVICE_VERSION.to_string()),
))
}

Expand Down
1 change: 1 addition & 0 deletions rust/apps/wallets/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ pub fn generate_crypto_multi_accounts_sync_ur(
keys,
Some(DEVICE_TYPE.to_string()),
None,
None,
))
}
4 changes: 2 additions & 2 deletions rust/apps/xrp/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/keystore/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/rust_c/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/third_party/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/third_party/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ rsa = { version = "0.8.2", default-features = false }
sha1 = { version = "0.10.5", default-features = false }
cty = "0.2.2"
cstr_core = "0.2.6"
ur-registry = { git = "https://[email protected]/KeystoneHQ/keystone-sdk-rust.git", tag="0.0.15" }
ur-parse-lib = { git = "https://[email protected]/KeystoneHQ/keystone-sdk-rust.git", tag="0.0.15" }
ur-registry = { git = "https://[email protected]/KeystoneHQ/keystone-sdk-rust.git", tag="0.0.16" }
ur-parse-lib = { git = "https://[email protected]/KeystoneHQ/keystone-sdk-rust.git", tag="0.0.16" }
ed25519-bip32-core = { version = "0.1.1", default-features = false }
cryptoxide = "0.4"
itertools = { version = "0.10.5", default-features = false, features = ["use_alloc"] }
Expand Down

0 comments on commit d5f60b3

Please sign in to comment.