-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: refactoring #3
Conversation
@@ -162,53 +162,48 @@ public class BIP32Keystore: AbstractKeystore { | |||
|
|||
public func createNewCustomChildAccount(password: String, path: String) throws { | |||
guard let decryptedRootNode = try getPrefixNodeData(password), | |||
let keystoreParams else { | |||
keystoreParams != nil else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this wrong change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
throw AbstractKeystoreError.keyDerivationError | ||
} | ||
|
||
var newPath: String | ||
let newPath: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it be working ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, absolutely.
pathAppendix
is set as a non-optional;throw AbstractKeystoreError.encryptionError("Derivation depth mismatch")
into one;newPath
is declared aslet
;CharacterSet.init
to just.init
.