-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backend,Frontend: import wallet using BIP39 seed
Added option to import wallet using BIP39 seed phrase (mnemonic). All funds from imported wallet (currently only first receiving address is used) are sent to BTC account of choice. After that, imported account is converted to archived account so geewallet will warn the user if more funds arrive to it in the future.
- Loading branch information
1 parent
600cccf
commit 0b5c686
Showing
6 changed files
with
161 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,14 @@ type ArchivedUtxoAccount(currency: Currency, accountFile: FileRepresentation, | |
interface IUtxoAccount with | ||
member val PublicKey = fromAccountFileToPublicKey accountFile with get | ||
|
||
type EphemeralUtxoAccount(currency: Currency, accountFile: FileRepresentation, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
webwarrior-ws
Author
Contributor
|
||
fromAccountFileToPublicAddress: FileRepresentation -> string, | ||
fromAccountFileToPublicKey: FileRepresentation -> PubKey) = | ||
inherit GWallet.Backend.EphemeralAccount(currency, accountFile, fromAccountFileToPublicAddress) | ||
|
||
interface IUtxoAccount with | ||
member val PublicKey = fromAccountFileToPublicKey accountFile with get | ||
|
||
module Account = | ||
|
||
let internal GetNetwork (currency: Currency) = | ||
|
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
@webwarrior-ws cannot we just have EphemeralUtxoAccount inherit from ArchivedAccount directly, instead of having 2 levels of inheritance? to simplify the code