-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for OS specific keychains (#1703)
* feat: initial work into system keychain * chore: clean up * Add KeyName struct in address * Add Secret::Keychain * keys generate: allow for generating keys that are stored in keychain * keys generate: Namespace keychain entry to identity name * keys generate: don't allow 'keychain:' as a key name * keys address: use keychain entry in secret to get the pub key * tx sign: allow a keychain identity sign a tx * Cleanup * Use keyring mock for generate tests * Refactor keyring: add keyring entry as StellarEntry field - previously we were creating a new keyring entry for each interaction with the keyring - this change will allow us use a mock keyring entry for testing * Add tests for keyring * Update config/secret tests * Cleanup * Rename keychain arg to secure_store in generate * Rename Secret::Keychain to Secret::SecureStore * Rename SignerKind::Keychain to SignerKind::SecureStore * Use print for new fns in generate * Return error when trying to get Secure Store secret * Cleanup tests * Install libdbus for rpc-tests and bindings-ts workflows required for keyring crate * Update generated docs * Install libdbus for binaries workflow when target aarch64-unknown-linux-gnu * Clippy * Install libdbus for rust workflow * Install libdbus-1-dev in binaries workflow for build step * Impl Display for KeyName this change was made so that we can concat the KeyName with secure story prefix and service * Use resolve_muxed_account in resolve_secret * Use resolve_muxed_account to get public key * Clippy * fix: Sign tx hash instead of tx env with keychain * Remove unused bin/secret * Fix after merging with main * Apply suggestion from code review Co-authored-by: Willem Wyndham <[email protected]> * Limit key name length * Update public_key to work with secure storage keys * fix(address): remove private key function & use unresolved Address This simplifies the lookup of the address. * feat: store seedphrase instead of private key This will allow for exporting the phrase later * fix: clean up --------- Co-authored-by: Elizabeth Engelman <[email protected]>
- Loading branch information
1 parent
c928006
commit c055eac
Showing
16 changed files
with
615 additions
and
75 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.