Skip to content

Commit f18cfba

Browse files
committed
updates per comments
1 parent e23a33e commit f18cfba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/Web3Core/KeystoreManager/BIP39.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class BIP39 {
7575
/// Returned value is a single string where words are joined by ``BIP39Language/separator``.
7676
/// Keep in mind that different languages may have different separators.
7777
/// - Parameters:
78-
/// - bitsOfEntropy: 128 - 12 words, 192 - 18 words, 256 - 24 words in output.
78+
/// - bitsOfEntropy: 128 - 12 words, 160 - 15 words, and up to 256 - 24 words as output. The value must be a multiple of 32.
7979
/// - language: words language, default is set to english.
8080
/// - Returns: mnemonic phrase as a single string containing 12, 15, 18, 21 or 24 words.
8181
public static func generateMnemonics(bitsOfEntropy: Int, language: BIP39Language = .english) throws -> String? {

Tests/web3swiftTests/localTests/BIP32MnemonicPhraseStringArrayTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ final class BIP32MnemonicPhraseStringArrayTests: XCTestCase {
7171
print(keystore!.addressStorage.paths)
7272
}
7373

74-
func testByBIP32keystoreSaveAndDeriva() throws {
74+
func testByBIP32keystoreSaveAndDerive() throws {
7575
let keystore = try BIP32Keystore(mnemonicsPhrase: mnemonic, password: "", mnemonicsPassword: "", prefixPath: "m/44'/60'/0'")
7676
XCTAssertNotNil(keystore)
7777
XCTAssertEqual(keystore!.addresses?.count, 1)

Tests/web3swiftTests/localTests/BIP32MnemonicPhraseStringTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ final class BIP32MnemonicPhraseStringTests: XCTestCase {
7171
print(keystore!.addressStorage.paths)
7272
}
7373

74-
func testByBIP32keystoreSaveAndDeriva() throws {
74+
func testByBIP32keystoreSaveAndDerive() throws {
7575
let keystore = try BIP32Keystore(mnemonics: mnemonic, password: "", mnemonicsPassword: "", prefixPath: "m/44'/60'/0'")
7676
XCTAssertNotNil(keystore)
7777
XCTAssertEqual(keystore!.addresses?.count, 1)

Tests/web3swiftTests/localTests/KeystoresTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class KeystoresTests: LocalTestCase {
175175

176176
}
177177

178-
func testByBIP32keystoreSaveAndDeriva() throws {
178+
func testByBIP32keystoreSaveAndDerive() throws {
179179
let mnemonic = "normal dune pole key case cradle unfold require tornado mercy hospital buyer"
180180
let keystore = try! BIP32Keystore(mnemonics: mnemonic, password: "", mnemonicsPassword: "", prefixPath: "m/44'/60'/0'")
181181
XCTAssertNotNil(keystore)

0 commit comments

Comments
 (0)