How to extract the private key from Daedalus and import it into yoroi

I lost the Daedalus recovery phrase.
I haven’t moved from the pre-sale, so I can’t send money with the latest update.
To improve, I extracted root from the sqlite database in the Daedalus folder.
It is encrypted by the spending password.
Here you can see that there are 256 characters [64 characters encrypted private key, 64 characters public key, 128 characters chain code].
I’m wondering if I could decrypt this 64-character private key to create a masterkey for yoroi.

Hi,

U can’t extract → import the keys from daedalus → yoroi… u will need the seed words to restore the wallet on yoroi…

Let me understand better… is ur daedalus a byron wallet?

Cheers,

1 Like

This is byron.
I believe that if I decrypt the encrypted private key in the root column of the db with the spreading pass, I get the raw private key.
I would like to convert these to a master key that can support yoroi.

check if u can find the secret.keys and make a bkp … then on a new daedalus wallet try to restore the wallet using import option… but still u will need the spending paswword to move the funds

Cheers,

I tried these.
The synchronization is 100% complete.
However, I get an error code when sending money.
These suspect that the old byron doesn’t work with Daedalus.
I tried rebooting, but I get the same error.

The following error.

The submitted transaction was rejected by the local node. Here’s an error message that may help with debugging: TxValidationErrorInMode (ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (MissingVKeyWitnessesUTXOW)

log

metadata:
  scriptValidity: valid
SealedTx:
  ShelleyTx ShelleyBasedEraAlonzo
      ( ValidatedTx
          { body = TxBodyConstr TxBodyRaw
              { _inputs = fromList
                  [ TxInCompact
                      ( TxId
                          { _unTxId = SafeHash "  " }
                      ) 0
                  ]
              , _collateral = fromList []
              , _outputs = StrictSeq
                  { fromStrict = fromList
                      [
                          ( Addr Mainnet
                              ( KeyHashObj
                                  ( KeyHash "   )
                              )
                              ( StakeRefBase
                                  ( KeyHashObj
                                      ( KeyHash "  " )
                                  )
                              )
                          , Value 1000000
                              ( fromList [] )
                          , SNothing
                          )
                      ,
                          ( AddrBootstrap
                              ( BootstrapAddress
                                  ( Address
                                      { addrRoot =  
                                      , addrAttributes = Attributes
                                          { data: AddrAttributes
                                              { aaVKDerivationPath = Just
                                                  ( HDAddressPayload
                                                      { geddressPayload = "}æs$mºº
                                                      ²~Ê\x9eÊÜEGV\x13õ\x10¯\x0ÈùDÁºÅ" }
                                                  )
                                              , aaNetworkMagic = NetworkMainOrStage
                                              }
                                          }
                                      , addrType = ATVerKey
                                      }
                                  )
                              )
                          , Value 426359
                              ( fromList [] )
                          , SNothing
                          )
                      ]
                  }
              , _certs = StrictSeq
                  { fromStrict = fromList [] }
              , _wdrls = Wdrl
                  { unWdrl = fromList [] }
              , _txfee = Coin 173
              , _vldt = ValidityInterval
                  { invalidBefore = SNothing
                  , invalidHereafter = SJust
                      ( SlotNo 492041 )
                  }
              , _update = SNothing
              , _reqSignerHashes = fromList []
              , _mint = Value 0
                  ( fromList [] )
              , _scriptIntegrityHash = SNothing
              , _adHash = SNothing
              , _txnetworkid = SNothing
              }
          , wits = TxWitnessRaw
              { _txwitsVKey = fromList []
              , _txwitsBoot = fromList
                  [ BootstrapWitness'
                      { bwKey' = VKey
                          ( VerKeyEd25519DSIGN "   " )
                      , bwSig' = SignedDSIGN
                          ( SigEd25519DSIGN "     " )
                      , bwChainCode' = ChainCode "\xad\x81\x85HÛpRæ\x9;m*£±\x8b{E¬Ú\x18\x1f{\
                      , bwAttributes' = "¡\x1X\x1eX\x1c}æs$mººÝÖæ\x9a\x9ef\x19ð8\x1aëÃôI©
                      , bwBytes = "\x84X ÿ¯p²\x16Ò»<\x15¦
                        j×Ùè*"ÿ`\x85\x6Ä`\x5\x9d\x2\x18RsècÔX@6¥\x9fçñ$C+[\x90Æ)\xf\x98"\x3Ö~\x93ÚÆ͸\x81\x7JfÈ'{@¢4OüûÑ\x11±\x8c"ÿ+£\x9f\xeƳøÒ#\x96î¢2¦"¼w$4øi\x6X \xad\x81\x85HÛpRæ\x9;m*£±\x8b{E¬Ú\x18\x1f{\x8a^Î\ï7²¦Ñ[X"¡\x1X\x1eX\x1c}æs$mººÝÖæ\x9a\x9
                      }
                  ]
              , _txscripts = fromList []
              , _txdats = TxDatsRaw
                  ( fromList [] )
              , _txrdmrs = RedeemersRaw
                  ( fromList [] )
              }
          , isValid = IsValid True
          , auxiliaryData = SNothing
          }
      )
TxMeta: -3641 pending since

What daedalus version do u have? This is the error when u try to move the funds from byron to shelley walet right?

that’s right.
I couldn’t send money.
The same error will occur with addresses between byrons.
It is the latest ver4.8.0.
I’m looking for a way to migrate or send money.
Therefore, I am wondering if I can move to yoroi by the above method.

and u now inside daedalus u have a byron and a shelley wallet right? In this case u should contact IOHK support team

I have already contacted iohk.
However, I cannot get a strong answer.