-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename Passphrase to Password + hint * wip * wip * wip * DRY factor source * wip * wip * bump version * wip * fmt * fixes + tests * bump version + fmt * fix test --------- Co-authored-by: Alexander Cyon <[email protected]>
- Loading branch information
1 parent
d016d67
commit 60beabe
Showing
63 changed files
with
570 additions
and
327 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...e/Sources/Sargon/Extensions/Methods/Profile/Factor/PassphraseFactorSource+Functions.swift
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
apple/Sources/Sargon/Extensions/Methods/Profile/Factor/PasswordFactorSource+Functions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension PasswordFactorSource { | ||
public init( | ||
mnemonicWithPassphrase mwp: MnemonicWithPassphrase, | ||
hint: PasswordFactorSourceHint | ||
) { | ||
self = newPasswordFactorSourceFromMnemonicWithPassphrase( | ||
mwp: mwp, | ||
hint: hint | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...nsions/SampleValues/Profile/Factor/FactorSource/PassphraseFactorSource+SampleValues.swift
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...tensions/SampleValues/Profile/Factor/FactorSource/PasswordFactorSource+SampleValues.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
#if DEBUG | ||
extension PasswordFactorSource { | ||
public static let sample: Self = newPasswordFactorSourceSample() | ||
|
||
public static let sampleOther: Self = newPasswordFactorSourceSampleOther() | ||
} | ||
|
||
#endif // DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
...e/PassphraseFactorSource+Swiftified.swift → ...rce/PasswordFactorSource+Swiftified.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
crates/sargon-uniffi/src/profile/mfa/mfa_factor_sources/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
mod arculus_card_factor_source; | ||
mod off_device_mnemonic_factor_source; | ||
mod password_factor_source; | ||
mod security_questions_factor_source; | ||
mod trusted_contact_factor_source; | ||
|
||
pub use arculus_card_factor_source::*; | ||
pub use off_device_mnemonic_factor_source::*; | ||
pub use password_factor_source::*; | ||
pub use security_questions_factor_source::*; | ||
pub use trusted_contact_factor_source::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
crates/sargon-uniffi/src/profile/mfa/mfa_factor_sources/password_factor_source/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mod password_factor_source; | ||
mod password_factor_source_hint; | ||
|
||
pub use password_factor_source::*; | ||
pub use password_factor_source_hint::*; |
Oops, something went wrong.