Skip to content

Commit

Permalink
fix: merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
XuNeal committed Jan 17, 2024
1 parent 916d9a1 commit 3baae10
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion imkey-core/ikc-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ num-integer = "=0.1.45"
prost = "=0.11.2"
bytes = "=1.4.0"
prost-types = "=0.11.2"
secp256k1 = {version = "=0.24.3", features = ["rand", "recovery"] }
secp256k1 = { version = "=0.24.3", features = ["rand", "recovery"] }
failure = "=0.1.8"
lazy_static = "=1.4.0"
aes = "=0.8.3"
Expand Down
4 changes: 4 additions & 0 deletions imkey-core/ikc-common/src/utility.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
use crate::Result;
use bitcoin::hashes::{sha256, Hash};
use bitcoin::util::base58;
use bitcoin::util::bip32::ExtendedPubKey;
use byteorder::BigEndian;
use byteorder::ByteOrder;
use num_bigint::BigInt;
use num_integer::Integer;
use num_traits::{FromPrimitive, Num, Zero};
Expand Down
13 changes: 6 additions & 7 deletions token-core/tcx-proto/src/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,12 @@ message SignParam {
}

message DeriveSubAccountsParam {
string id = 1;
string chainType = 2;
string curve = 3;
string network = 4;
string segWit = 5;
repeated string relativePaths = 6;
string extendedPublicKey = 7;
string chainType = 1;
string curve = 2;
string network = 3;
string segWit = 4;
repeated string relativePaths = 5;
string extendedPublicKey = 6;
}

message DeriveSubAccountsResult {
Expand Down
12 changes: 5 additions & 7 deletions token-core/tcx/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,18 +490,16 @@ pub mod sign_param {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeriveSubAccountsParam {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub chain_type: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
#[prost(string, tag = "2")]
pub curve: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
#[prost(string, tag = "3")]
pub network: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
#[prost(string, tag = "4")]
pub seg_wit: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "6")]
#[prost(string, repeated, tag = "5")]
pub relative_paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "7")]
#[prost(string, tag = "6")]
pub extended_public_key: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
5 changes: 1 addition & 4 deletions token-core/tcx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ mod tests {
use tcx_tron::transaction::{TronMessageInput, TronMessageOutput, TronTxInput, TronTxOutput};

static OTHER_MNEMONIC: &'static str =
"inject kidney empty canal shadow pact comfort wife crush horse wife sketch";
"calm release clay imitate top extend close draw quiz refuse shuffle injury";

fn _to_c_char(str: &str) -> *const c_char {
CString::new(str).unwrap().into_raw()
Expand Down Expand Up @@ -3405,7 +3405,6 @@ mod tests {

let (wallet, accounts) = import_and_derive(derivation);
let params = DeriveSubAccountsParam {
id: wallet.id.to_string(),
chain_type: "BITCOIN".to_string(),
curve: "secp256k1".to_string(),
network: "MAINNET".to_string(),
Expand Down Expand Up @@ -3447,7 +3446,6 @@ mod tests {

let (wallet, accounts) = import_and_derive(derivation);
let params = DeriveSubAccountsParam {
id: wallet.id.to_string(),
chain_type: "BITCOIN".to_string(),
curve: "secp256k1".to_string(),
network: "MAINNET".to_string(),
Expand Down Expand Up @@ -3489,7 +3487,6 @@ mod tests {

let (wallet, accounts) = import_and_derive(derivation);
let params = DeriveSubAccountsParam {
id: wallet.id.to_string(),
chain_type: "ETHEREUM".to_string(),
curve: "secp256k1".to_string(),
network: "MAINNET".to_string(),
Expand Down

0 comments on commit 3baae10

Please sign in to comment.