You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Web3Core/KeystoreManager/BIP44.swift
+21-25Lines changed: 21 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,18 @@
6
6
import Foundation
7
7
8
8
publicprotocolBIP44{
9
-
/**
10
-
Derive an ``HDNode`` based on the provided path. The function will throw ``BIP44Error.warning`` if it was invoked with `throwOnWarning` equal to
11
-
`true` and the root key doesn't have a previous child with at least one transaction. If it is invoked with `throwOnWarning` equal to `false` the child node will be
12
-
derived directly using the derive function of ``HDNode``. This function needs to query the blockchain history when `throwOnWarning` is `true`, so it can throw
Transforms a bip44 path into a new one changing account & index. The resulting one will have the change value equal to `0` to represent the external chain. The format will be `m/44'/coin_type'/account'/change/address_index`
109
-
- Parameter account: the new account to use
110
-
- Parameter addressIndex: the new addressIndex to use
111
-
- Returns: a valid bip44 path with the provided account, addressIndex and external change or `nil` otherwise
112
-
*/
104
+
/// Transforms a bip44 path into a new one changing account & index. The resulting one will have the change value equal to `0` to
105
+
/// represent the external chain. The format will be `m/44'/coin_type'/account'/change/address_index`
106
+
/// - Parameter account: the new account to use
107
+
/// - Parameter addressIndex: the new addressIndex to use
108
+
/// - Returns: a valid bip44 path with the provided account, addressIndex and external change or `nil` otherwise
0 commit comments