Skip to content
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

KeystoreV3.swift An error occurred .error missage: 'Type of expression is ambiguous without more context' #65

Open
Ann-iOS opened this issue Oct 15, 2021 · 0 comments

Comments

@Ann-iOS
Copy link

Ann-iOS commented Oct 15, 2021

private func encryptData(password: String, salt: Data, length: Int, N: Int, R: Int, P: Int) -> Data? { guard let passwordData = password.data(using: .utf8)?.sha3(.keccak256) else {return nil} guard let deriver = try? Scrypt(password: [UInt8](passwordData), salt: [UInt8](salt), dkLen: length, N: N, r: R, p: P) else {return nil} guard let result = try? deriver.calculate() else {return nil} return Data(result) }
This method prompts an error: Type of expression is ambiguous without more context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant