Skip to content

Commit

Permalink
tresor-style wallet is an icarus-style wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
Unisay committed Sep 12, 2023
1 parent 5bc44c3 commit 245d8e2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/wallet/api/http/Cardano/Wallet/Api/Http/Shelley/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1487,17 +1487,7 @@ postTrezorWallet
=> ctx
-> ByronWalletPostData '[12,15,18,21,24]
-> Handler ApiByronWallet
postTrezorWallet ctx body = do
postLegacyWallet ctx (rootXPrv, pwd) $ \wrk wid ->
W.createIcarusWallet @s genesisParams wrk wid wName
(RootCredentials rootXPrv pwdP)
where
wName = body ^. #name . #getApiT
seed = body ^. #mnemonicSentence . #getApiMnemonicT
pwd = body ^. #passphrase . #getApiT
pwdP = preparePassphrase currentPassphraseScheme pwd
rootXPrv = Icarus.generateKeyFromSeed seed pwdP
genesisParams = ctx ^. #netParams
postTrezorWallet = postIcarusWallet

postLedgerWallet
:: forall ctx s k n.
Expand Down

0 comments on commit 245d8e2

Please sign in to comment.