We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7876390 + a9ed5cd commit b82e347Copy full SHA for b82e347
Sources/Web3Core/KeystoreManager/BIP32Keystore.swift
@@ -156,15 +156,7 @@ public class BIP32Keystore: AbstractKeystore {
156
guard let newAddress = Utilities.publicToAddress(newNode.publicKey) else {
157
throw AbstractKeystoreError.keyDerivationError
158
}
159
-
160
- let prefixPath = self.rootPrefix
161
- var newPath: String
162
163
- if newNode.isHardened {
164
- newPath = prefixPath + "/" + String(newNode.index % HDNode.hardenedIndexPrefix) + "'"
165
- } else {
166
- newPath = prefixPath + "/" + String(newNode.index)
167
- }
+ let newPath = rootPrefix + "/" + String(newNode.index)
168
addressStorage.add(address: newAddress, for: newPath)
169
170
0 commit comments