web3swift: Creating BIP32Keystore from mnemonics crashes with EXC_BAD_ACCESS

  • Xcode 12.0
  • Added using Carthage
  • Latest version from “master” branch (Cartfile.resolved github "matter-labs/web3swift" "59762337126f732345497daa11f18ad23510a575")
  • Ran on both iOS 13 & 14 emulator iPhone 8
  • Used the code example provided by documentation
let password = "web3swift"
let bitsOfEntropy: Int = 128 // Entropy is a measure of password strength. Usually used 128 or 256 bits.
let mnemonics = try! BIP39.generateMnemonics(bitsOfEntropy: bitsOfEntropy)!
let keystore = try! BIP32Keystore(
    mnemonics: mnemonics,
    password: password,
    mnemonicsPassword: "",
    language: .english)!

Will crash at BIP39.swift line 152

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I would like to make a gitcoin bounty for this fix

I switched to develop branch when I saw there were some commits and since then it has worked for me.