Skip to content

Commit

Permalink
IOS-4136 Return Ikarus back to standart
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Aug 3, 2023
1 parent 67f3530 commit efba46c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ struct IkarusMasterKeyFactory: MasterKeyFactory {
self.passphrase = passphrase
}

/// TrustWallet ignores passphrase https://github.com/trustwallet/wallet-core/blob/master/src/HDWallet.cpp
func makePrivateKey() throws -> ExtendedPrivateKey {
return try SLIP23().makeIkarusMasterKey(entropy: entropy, passphrase: "")
return try SLIP23().makeIkarusMasterKey(entropy: entropy, passphrase: passphrase)
}
}
3 changes: 2 additions & 1 deletion TangemSdk/TangemSdkTests/KeysImportTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class KeysImportTests: XCTestCase {
}

func testKeyImportEd25519() throws {
let prvKey = try IkarusMasterKeyFactory(entropy: entropy, passphrase: passphrase).makePrivateKey()
/// TrustWallet ignores passphrase https://github.com/trustwallet/wallet-core/blob/master/src/HDWallet.cpp
let prvKey = try IkarusMasterKeyFactory(entropy: entropy, passphrase: "").makePrivateKey()

// validate with WalletCore
XCTAssertEqual(prvKey.privateKey.hexString.lowercased(), "58b41cb27297be1fbf192a65e526179f43b779a383f5d72f14e5db8a82bd77525f65dbfe80724cd61254ec14b351312b63b51c87238ebd3c880a6ad158a161cb")
Expand Down

0 comments on commit efba46c

Please sign in to comment.