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
{{ message }}
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
But it's not valid, because method public init(entropySize: EntropySize = .b256, language: BIP39Language = .English)
generate 12, 15, 18, 21, 24 word. By BIP39 spec
If you write test:
do {
let mnemonic = Mnemonics(entropySize: .b192, language: .english)
let mnemonic2 = try Mnemonics(mnemonic.string, language: .english)
} catch let error {
print(error) // web3swift.Mnemonics.EntropyError.invalidNumberOfWords
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello
In
BIP39.swift
classMnemonic
haspublic init(_ string: String, language: BIP39Language = .english) throws
There have checking code:
But it's not valid, because method
public init(entropySize: EntropySize = .b256, language: BIP39Language = .English)
generate 12, 15, 18, 21, 24 word. By BIP39 spec
If you write test:
The text was updated successfully, but these errors were encountered: