replace all MnemonicKit
This commit is contained in:
parent
48c0bb706f
commit
333fea6e38
|
@ -5,7 +5,7 @@
|
|||
s.description = <<-DESC
|
||||
MnemonicSwift provides a Swift implementation of BIP39 using CriptoKit
|
||||
|
||||
This library is originally forked from MnemonicKit: https://github.com/keefertaylor/MnemonicKit
|
||||
This library is originally forked from MnemonicSwift: https://github.com/keefertaylor/MnemonicSwift
|
||||
DESC
|
||||
|
||||
s.homepage = "https://github.com/zcash-hackworks/MnemonicSwift"
|
||||
|
|
|
@ -35,14 +35,14 @@
|
|||
containerPortal = 1EE727346083BF37696D380B /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 3965BB285FF94319B8863435;
|
||||
remoteInfo = MnemonicKit_iOS;
|
||||
remoteInfo = MnemonicSwift_iOS;
|
||||
};
|
||||
D9A6EBA04CB47D7F58AE52BE /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1EE727346083BF37696D380B /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 3A14B55BA3F3716B46D8CA3F;
|
||||
remoteInfo = MnemonicKit_macOS;
|
||||
remoteInfo = MnemonicSwift_macOS;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
|
@ -198,7 +198,7 @@
|
|||
dependencies = (
|
||||
);
|
||||
name = MnemonicSwift_iOS;
|
||||
productName = MnemonicKit_iOS;
|
||||
productName = MnemonicSwift_iOS;
|
||||
productReference = 7DCB97C4881969FDB72C61DB /* MnemonicSwift.framework */;
|
||||
productType = "com.apple.product-type.framework";
|
||||
};
|
||||
|
@ -215,7 +215,7 @@
|
|||
dependencies = (
|
||||
);
|
||||
name = MnemonicSwift_macOS;
|
||||
productName = MnemonicKit_macOS;
|
||||
productName = MnemonicSwift_macOS;
|
||||
productReference = DC7EE929BD11BA8AB38F9C19 /* MnemonicSwift.framework */;
|
||||
productType = "com.apple.product-type.framework";
|
||||
};
|
||||
|
@ -234,7 +234,7 @@
|
|||
E436535C8686E9FC14FFB6D2 /* PBXTargetDependency */,
|
||||
);
|
||||
name = MnemonicSwiftTests_macOS;
|
||||
productName = MnemonicKitTests_macOS;
|
||||
productName = MnemonicSwiftTests_macOS;
|
||||
productReference = EBA32888ED203FE1DA16BFF1 /* MnemonicSwiftTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
|
@ -253,7 +253,7 @@
|
|||
33E8B97F445A81D3D3B6D0B7 /* PBXTargetDependency */,
|
||||
);
|
||||
name = MnemonicSwiftTests_iOS;
|
||||
productName = MnemonicKitTests_iOS;
|
||||
productName = MnemonicSwiftTests_iOS;
|
||||
productReference = 1645FE576891F45DC72864F6 /* MnemonicSwiftTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:/Users/pacu/Repos/ECC/MnemonicKit/MnemonicSwift.xcodeproj">
|
||||
location = "self:/Users/pacu/Repos/ECC/MnemonicSwift/MnemonicSwift.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
|
|
|
@ -9,7 +9,7 @@ This library is a fork of [MnemonicKit](https://github.com/keefertaylor/Mnemonic
|
|||
## Installation
|
||||
|
||||
### CocoaPods
|
||||
MnemonicSwift supports installation via CocoaPods. You can depened on MnemonicKit by adding the following to your Podfile:
|
||||
MnemonicSwift supports installation via CocoaPods. You can depened on MnemonicSwift by adding the following to your Podfile:
|
||||
|
||||
```
|
||||
pod "MnemonicSwift"
|
||||
|
@ -18,7 +18,7 @@ pod "MnemonicSwift"
|
|||
#### Carthage
|
||||
|
||||
If you use [Carthage](https://github.com/Carthage/Carthage) to manage your dependencies, simply add
|
||||
MnemonicKit to your `Cartfile`:
|
||||
MnemonicSwift to your `Cartfile`:
|
||||
|
||||
```
|
||||
github "zcash-hackworks/MnemonicSwift"
|
||||
|
@ -60,7 +60,7 @@ To get set up:
|
|||
```shell
|
||||
$ brew install xcodegen # if you don't already have it
|
||||
$ xcodegen generate # Generate an XCode project from Project.yml
|
||||
$ open MnemonicKit.xcodeproj
|
||||
$ open MnemonicSwift.xcodeproj
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
|
@ -15,7 +15,7 @@ class MnemonicSwiftTests: XCTestCase {
|
|||
/// Passphrase
|
||||
private let passphrase = "TREZOR"
|
||||
|
||||
/// Test that MnemonicKit can generate mnemonic strings from hex representations.
|
||||
/// Test that MnemonicSwift can generate mnemonic strings from hex representations.
|
||||
func testGenerateMnemonicFromHex() {
|
||||
guard let vectors = MnemonicSwiftTests.dictionaryFromTestInputFile(),
|
||||
let testCases = vectors[englishTestCases] as? [[String]] else {
|
||||
|
@ -32,7 +32,7 @@ class MnemonicSwiftTests: XCTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
/// Test that MnemonicKit can generate deterministic seed strings strings without a passphrase.
|
||||
/// Test that MnemonicSwift can generate deterministic seed strings strings without a passphrase.
|
||||
func testGenerateDeterministicSeedStringWithPassphrase() {
|
||||
guard let vectors = MnemonicSwiftTests.dictionaryFromTestInputFile(),
|
||||
let testCases = vectors[englishTestCases] as? [[String]] else {
|
||||
|
@ -150,7 +150,7 @@ class MnemonicSwiftTests: XCTestCase {
|
|||
/// Test an invalid mnemonic does not generate a seed string.
|
||||
func testDeterministicSeedStringInvalidMnemonic() {
|
||||
let invalidMnemonic =
|
||||
"mnemonickit mnemonickit mnemonickit mnemonickit mnemonickit mnemonickit mnemonickit mnemonickit mnemonickit"
|
||||
"MnemonicSwift MnemonicSwift MnemonicSwift MnemonicSwift MnemonicSwift MnemonicSwift MnemonicSwift MnemonicSwift MnemonicSwift"
|
||||
XCTAssertNil(Mnemonic.deterministicSeedString(from: invalidMnemonic))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
name: MnemonicKit
|
||||
name: MnemonicSwift
|
||||
options:
|
||||
bundleIdPrefix: co.electriccoin
|
||||
settings:
|
||||
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks $(PROJECT_DIR)/Carthage/Build/iOS"
|
||||
targets:
|
||||
MnemonicKit:
|
||||
MnemonicSwift:
|
||||
type: framework
|
||||
platform: [iOS, macOS]
|
||||
deploymentTarget:
|
||||
|
@ -18,7 +18,7 @@ targets:
|
|||
- script: swiftlint autocorrect --config .swiftlint.yml
|
||||
name: SwiftLint
|
||||
|
||||
MnemonicKitTests:
|
||||
MnemonicSwiftTests:
|
||||
type: bundle.unit-test
|
||||
platform: [iOS, macOS]
|
||||
sources: [Tests]
|
||||
|
|
Loading…
Reference in New Issue