This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add local wallet management to Motion
Add functionality to create and configure a local wallet with local disk key storage. The changes introduce two new flags: * `--localWalletDir` - defaulting to `~/.motion/wallet` indicates where the wallet keys are stored. * `--localWalletGenerateIfNotExist` - defaulting to `true` automatically instantiates a FileCoin wallet if none exists. The wallet functionality would also automatically set the default wallet address to the first address found in the key store if no default is specified. Upgrade to the latest ribs dependency which introduces opotions to set the previously hardcoded local wallet, and connect it to the new Motion wallet. Other blob store implementations that wish to store keys in database should implement an instance of `types.KeyStore` and set it to Motion wallet via `WithKeyStoreOpener` option. To avoid indirect dependency to `filecoin-ffi`, the code forks the local wallet implementation from Lotus, clearly marked as HACK. TODOs are left to revisit this in future PRs in order to either embrace ffi change build to accommodate C-bindings, or fork code in a separate repo/go module and depend on that instead. For now, to reduce changes and iteratively deliver functional code the code is simply forked.
- Loading branch information
Showing
10 changed files
with
825 additions
and
21 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
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.